I noticed that you used mode_group in your shadow macro. Is that where the bug occurs? It appears to work in my DCAD12 . Is it possible that difference is in the number of entities in the group?
Joe
User since V2.4
User since V2.4
mode_group works just fine in Classic DCAL (that I used for the Shadow macro).
It is in DCAL for Delphi that the bug exists. This makes it impossible to write any D4D macro that wants to implement the normal selection menu.
It is in DCAL for Delphi that the bug exists. This makes it impossible to write any D4D macro that wants to implement the normal selection menu.
David Henderson
This looks like a straightforward bug fix (I hope). Unfortunately that may mean any change must wait for the next release upgrade or DCAD20.
Joe
User since V2.4
User since V2.4
Hi Mark,
I don't think it is a syntax issue, but I'm a bit confused by the example you included from PSymColors as it does not call mode_group at all.
I have only been able to find one example of the use of mode_group call in the sample source code, and that is in the UAUTOVOID unit in the AEC_Model sample.
Unfortunately I don't seem to be able to get the AEC_Model macro to call this line of code ... it is in the remove functionality, so I tried creating some windows and then removing them, but the remove functionality didn't seem to work: it kept telling me it could not find a Window/Door/Cutout to remove (I haven't done a thorough analysis, but it seems like the logic that is asking you to select the window/door to remove is ignoring entities with the '*AEWINDDOOR' attribute - and as that attribute is added to windows/doors created by the macro it is not able to select them for removal ???).
I am not the first person to have problems with the mode_group call: There were problems with in when Pietro was writing his book as he also noted that the only result he could obtain with mode_group was a crash.
When I was debugging it the code right up to the mode_group call exectuted correctly but it crashed on the mode_group call itself.
Regards,
David H
I don't think it is a syntax issue, but I'm a bit confused by the example you included from PSymColors as it does not call mode_group at all.
I have only been able to find one example of the use of mode_group call in the sample source code, and that is in the UAUTOVOID unit in the AEC_Model sample.
Unfortunately I don't seem to be able to get the AEC_Model macro to call this line of code ... it is in the remove functionality, so I tried creating some windows and then removing them, but the remove functionality didn't seem to work: it kept telling me it could not find a Window/Door/Cutout to remove (I haven't done a thorough analysis, but it seems like the logic that is asking you to select the window/door to remove is ignoring entities with the '*AEWINDDOOR' attribute - and as that attribute is added to windows/doors created by the macro it is not able to select them for removal ???).
I am not the first person to have problems with the mode_group call: There were problems with in when Pietro was writing his book as he also noted that the only result he could obtain with mode_group was a crash.
When I was debugging it the code right up to the mode_group call exectuted correctly but it crashed on the mode_group call itself.
Regards,
David H
David Henderson
Can you send me a complete example so I can build it, then trace though the debugger in DataCAD's source?
Hi Mark,
I have emailed you the source of the project where I was experiencing this problem. Had some problems emailing it so please let me know if you don't get it (and apologies if you received it multiple times!)
David
I have emailed you the source of the project where I was experiencing this problem. Had some problems emailing it so please let me know if you don't get it (and apologies if you received it multiple times!)
David
David Henderson
Hi Mark,
I also sent a copy of a macro that fails on the call to mode_group. I hope its an easy fix!
Joe
I also sent a copy of a macro that fails on the call to mode_group. I hope its an easy fix!
Joe
Joe
User since V2.4
User since V2.4
Joe
User since V2.4
User since V2.4
Who is online
Users browsing this forum: No registered users and 35 guests