[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/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 - Locked Layers
Page 1 of 1

Locked Layers

PostPosted: Wed May 24, 2017 3:18 pm
by dhs
I think I already know the answer to this, but hopefully I'm wrong:

Is it possible for a DCAL macro to see entities that are on a locked layer ?

I would have expected to be able to read them but not to update or add anything on a locked layer, but getmode does not appear to return anything from a locked layer, and also trying to read a selset (that had been set up before the layer was locked) does not return the entities. Is there any way to get them ?

I did a search for the word 'lock' in all the dcal documentation, but all I found was a couple new procedures relating to symbol lock size, so I am assuming that DCAL has no functionality relating to layer locking (other than being able to display function keys with struck through text)

Re: Locked Layers

PostPosted: Wed May 24, 2017 3:42 pm
by David A. Giesselman
David,

How are you initializing the mode_type variable?

Dave

Re: Locked Layers

PostPosted: Wed May 24, 2017 4:14 pm
by dhs
Hello Dave,

Nothing unusual about the way I was initialising, but it looks like I was partly wrong:

My post was based on testing using a drawing with about 50,000 entities on the locked layer. With this file my macro cannot get any of the entities on the locked layer, but can access them if I unlock the layer.
Testing on a file with just a handful of entities, I can access these entities on a locked layer.

The file I was originally testing may be a bit extreme (array copy of exploded 3D entities created for testing the shadow macro), but the reason I was testing was because an architect had tested the macro and reported that he could not cast shadows of entities on locked layers. Presumably he was using a 'real' file, so the symptom is not just limited to my test file...

Re: Locked Layers

PostPosted: Wed May 24, 2017 5:20 pm
by David A. Giesselman
David,

Upon which layer are the shadow polygons created? Does your macro attempt to modify (in any way) the entities that are considered to cast shadows?

Also, please check your private messages here on the forum.

Cheers!
Dave

Re: Locked Layers

PostPosted: Wed May 24, 2017 11:50 pm
by dhs

Re: Locked Layers

PostPosted: Sun Jun 25, 2017 5:21 pm
by dhs
Am I just to assume that this is a known bug with DataCAD?

I no longer have the test drawing where this was occurring and cannot reproduce the problem at this stage. Out of interest, it was not just the DCAL macro that had problems with the entitites on the locked layer .... I could not even identity them using the DataCAD interface.

I will raise this issue again if I reproduce it in the future.

Rgds,
David H