[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5077: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5079: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5080: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5081: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3937)
forum.datacad.com • View topic - mode_group bug ? (Dcal for Delphi)
Page 1 of 2

mode_group bug ? (Dcal for Delphi)

PostPosted: Sat Aug 19, 2017 12:41 am
by dhs

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Sun Aug 20, 2017 8:58 am
by Jsosnowski
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?

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Sun Aug 20, 2017 4:22 pm
by dhs
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.

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Sun Aug 20, 2017 11:13 pm
by Jsosnowski
This looks like a straightforward bug fix (I hope). Unfortunately that may mean any change must wait for the next release upgrade or DCAD20.

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Thu Feb 22, 2018 4:50 pm
by Mark F. Madura

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Fri Feb 23, 2018 3:01 pm
by dhs
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

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Fri Feb 23, 2018 4:11 pm
by Mark F. Madura

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Fri Feb 23, 2018 5:02 pm
by Mark F. Madura
Can you send me a complete example so I can build it, then trace though the debugger in DataCAD's source?

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Fri Feb 23, 2018 6:22 pm
by dhs
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

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Fri Feb 23, 2018 9:53 pm
by Jsosnowski
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

Edit Group Example

PostPosted: Mon Feb 26, 2018 7:58 am
by Mark F. Madura

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Mon Feb 26, 2018 8:09 am
by Mark F. Madura

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Mon Feb 26, 2018 7:24 pm
by Jsosnowski

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Tue Feb 27, 2018 5:23 am
by dhs

Re: mode_group bug ? (Dcal for Delphi)

PostPosted: Tue Feb 27, 2018 8:34 am
by Mark F. Madura