luiso Posted August 30, 2005 Share Posted August 30, 2005 SetLayerOptions(5); DSelectAll; Only deselect the objects in active layer. How to deselec ALL selected objets in ALL layers. Thank you. Quote Link to comment
PeterT Posted September 8, 2005 Share Posted September 8, 2005 Hi luiso, I think you must have layers at different scales. SetLayerOptions(5) [show, snap, modify others] only works on layers of the same scale. To deselect objects on layers of different scales you will have to go to those layers in your script by traversing through the layer list. One way would be to use "ForEachObjectInLayer", and set the layer options to "All Layers" Try this: code: PROCEDURE DeSelect; FUNCTION DeSelectIt (h:HANDLE) :BOOLEAN; BEGIN SetDSelect(h); END; BEGIN ForEachObjectInLayer(DeSelectIt,2,0,1); END; RUN (DeSelect);[/code] I am not too advanced at this, so maybe someone has a better way, but I think this should work. 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.