gmm18 Posted August 30, 2011 Share Posted August 30, 2011 Hi I have a file I have adopted that uses tons (hundreds) of Locks on objects. (Select object or group of objects, -> Modify -> Lock) It is a serious pain to work in this file, it requires going to Modify->Unlock over and over to the point of insanity. There are groups that are locked, so unlock that and find that everything inside that group is locked, and then do that hundreds of times. Does anyone know of a script or other method that might Unlock all objects in a single batch process? Quote Link to comment
VectorGeek Posted August 30, 2011 Share Posted August 30, 2011 Try this. You'll need to make a new palette and script, then paste this code into it and run it). Have not tested thoroughly, feel free anyone to improve. {----------------------------------------------------------------------------------------------------------------------------} Procedure unlocker; VAR h : HANDLE; Procedure unlockme(h : HANDLE); BEGIN SetSelect(h); UnLckObjs; END; BEGIN ForEachObject(unlockme,(INSYMBOL & INOBJECT & INVIEWPORT & (ALL))); DSelectObj(ALL); END; Run(unlocker); {----------------------------------------------------------------------------------------------------------------------------} Quote Link to comment
Pat Stanford Posted August 30, 2011 Share Posted August 30, 2011 Another version posted in the Vectroscript Share forum http://techboard.vectorworks.net/ubbthreads.php?ubb=showflat&Number=159615Post159615 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.