TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Jim Yadon on April 21, 2006, 06:55:57 AM
-
I have a challenge for you folks. I would have no idea how to do it myself so I wouldn't even know where to start.
Here are the criteria-- Lock a single entity.
- The layer itself cannot be locked. You have to have freedom to modify anything else on that layer.
- Nothing about the object can be changed. Not a single attribute or property.
- It has to work with any geometry (including text) in AutoCAD
EDIT: Thread title change ;)
-
Kinda hard to lock an entity without being able to modify the entity. Please clarify, as even an object reactor may modify an entity.
-
I posted here the routine KEEP... it does basically what you want, do a search and if you can't find it, I'll posted here again.
HTH
-
I have a challenge for you folks. I would have no idea how to do it myself so I wouldn't even know where to start.
Here are the criteria-- Lock a single entity.
- The layer itself cannot be locked. You have to have freedom to modify anything else on that layer.
- Nothing about the object can be changed. Not a single attribute or property.
- It has to work with any geometry (including text) in AutoCAD
EDIT: Thread title change ;)
;;; Lockdown.lsp Written By: Peter Jamtgaard copr 2004
;;; This routine will lock down layers so they cannot be unlocked <uses a reactor>
Go to http://www.waun.org/
Post the request to Peter for the routine.
Works great.
Gary
-
See if this link works, directly to the thread.
http://www.archivehelps.com/ArchiveManager/ViewThread.aspx?ID=8102004165133lisp
-
Luis, your link is here
http://www.theswamp.org/index.php?topic=6455.0
And one from Michael.
http://www.theswamp.org/index.php?topic=6463.0
-
I have a challenge for you folks. I would have no idea how to do it myself so I wouldn't even know where to start.
Here are the criteria-- Lock a single entity.
- The layer itself cannot be locked. You have to have freedom to modify anything else on that layer.
- Nothing about the object can be changed. Not a single attribute or property.
- It has to work with any geometry (including text) in AutoCAD
EDIT: Thread title change ;)
;;; Lockdown.lsp Written By: Peter Jamtgaard copr 2004
;;; This routine will lock down layers so they cannot be unlocked <uses a reactor>
Go to http://www.waun.org/
Post the request to Peter for the routine.
Works great.
Gary
Locking the layer is easy. i wrote one of those my self. I'm looking at locking only a single entity of any type. Locking all attributes or properties.
-
I guess you could get the atoms family for all the vlax-properties, and then test those to see which ones will apply to that object, and then make an associated list of the properties and the values. Then set up a reactor for that object, and when anything is changed, change it back.
/idea
-
Luis, your link is here
http://www.theswamp.org/index.php?topic=6455.0
And one from Michael.
http://www.theswamp.org/index.php?topic=6463.0
Those were great examples of locking it into the drawing but I still don't understand the logic enough (or maybe I'm missing something all together) to see how it would prevent the change of any properties or attributes of an object.
-
Jay;
Have a look also on the samples I uploaded about reactorswiz... on the show your stuff, in them I added some functions to lock the attributes heights, location, layer, etc...
I am busy right now with a dead line, I'll be back... to see if I can help...
Cheers...