TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: connieleo on April 01, 2005, 02:32:38 AM

Title: Could someone make one layer not to add any entity
Post by: connieleo on April 01, 2005, 02:32:38 AM
I want make a especial layer which can not add any entity. Is it possible?
Thanks in advance.
Title: Could someone make one layer not to add any entity
Post by: MP on April 01, 2005, 06:35:13 AM
You could probably achieve what you ask by some reactor slight of hand but can I ask what purpose such a layer serves?
Title: Could someone make one layer not to add any entity
Post by: Kerry on April 01, 2005, 07:47:59 AM
A layer with its locked property set to True comes to mind ...

.. but as MP noted, It would require some black magic to ensure it stayed locked in all circumstances.
Title: Could someone make one layer not to add any entity
Post by: MP on April 01, 2005, 07:49:52 AM
Ahhh, but you can add entities to locked layers, you just can't modify / delete 'em once they're on said layer.
Title: Could someone make one layer not to add any entity
Post by: Kerry on April 01, 2005, 07:55:49 AM
duh !!   :oops:

.. I'm having visions of an old crone stirring a cauldron ..
.. .. bubble, bubble, toil and trouble .....
Title: Could someone make one layer not to add any entity
Post by: MP on April 01, 2005, 07:57:49 AM
Hey, where'd you find my pic!?
Title: Could someone make one layer not to add any entity
Post by: CADaver on April 01, 2005, 08:28:58 AM
ummm... what for??  Do you mean a layer that can have NO entities or a layer that you can't add any new entities??

I'm soooo cunfused.
Title: Could someone make one layer not to add any entity
Post by: Kerry on April 01, 2005, 08:38:20 AM
I'm guessing here,

connieleo may want to ONLY be able to add/remove entities/objects programmatically using HIS routines.

.. I can see some use for that ..
Title: Could someone make one layer not to add any entity
Post by: CADaver on April 01, 2005, 09:15:00 AM
Ahhhhh.... okay, I can see that.