Hi,
Is there any way a layer can be locked so that nothing can be erased or drawn on that layer?
thanks for your help.
Maurice.
|
Hi,
Is there any way a layer can be locked so that nothing can be erased or drawn on that layer?
thanks for your help.
Maurice.
Hi,
Thanks for the reply. Personally, I would go down the xref route, but my client - for his own good reasons - wants one drawing containing all the elements and is looking for a way to protect certain layers against accidental modification.
I not surprised there is not facility for this. It seems users would like a secure layer locking feature (particularly the 'smaller' user) but its not high enough on any wish list.
Thanks for your help.
Maurice.
Look into using either Object, or Editor Reactors (Visual LISP) for this.
You won't be able to stop someone from deleting any objects, but the reactor can copy the entity data, and rebuild the object someone deletes seemingly instantaneously. The user, if unaware that the reactor is being used, will simply see that they cannot delete an object.
Edit:
Similarly, you could have your reactor set such that if any layer in your predefined layer list is unlocked, the reactor would in turn re-lock said layer. Again, seemingly instantaneously. You have several options, despite being unable to use XREFs.
Check out the AutoLISP Programming forum for help.
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
Computer Specs:
Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000
Hi,
Thanks for all your help, I'll look into the editor reactor option.
Maurice.