xikes Posted March 24, 2011 Share Posted March 24, 2011 Hello there. I was looking for a macro, that locks all layers except the one, that contains the object, that I select. ^C^C-layer;LO;*;U;;\; Somehow the pause "\" skips object selection. Any suggestions why? Quote Link to comment Share on other sites More sharing options...
Tyke Posted March 24, 2011 Share Posted March 24, 2011 I've not tried it but your macro seems to be missing something, the following would seem more logical: ^C^C-LAYER;LO;;ALL;;U;;\;; When selecting the layers to freeze you can't use an asterisk (*) Hope that helps Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 28, 2011 Share Posted March 28, 2011 (edited) 1. use ai_molc or laymcur to select an object on the layer you want to keep unlocked (also setting it as current). 2. use -layer to lock all layers, then unlock by name, using Diesel to get the current layer $(getvar,clayer) I'm a coder, not a macro writer, so I'll leave the logistics to someone else. Maybe... ^C^C_ai_molc;\-layer;LO;*;U;$(getvar,clayer);; Edited March 28, 2011 by alanjt Quote Link to comment Share on other sites More sharing options...
SLW210 Posted March 28, 2011 Share Posted March 28, 2011 Is _LAYISO available in 2007LT? Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 28, 2011 Share Posted March 28, 2011 Is _LAYISO available in 2007LT? I'm pretty sure it became core in 2008. Prior to that it was just a Bonus/Express Tool LISP routine that turn the layers off. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted March 28, 2011 Share Posted March 28, 2011 I'm pretty sure it became core in 2008. Prior to that it was just a Bonus/Express Tool LISP routine that turn the layers off. I know it was core in 2008, just wasn't sure about 2007. Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 28, 2011 Share Posted March 28, 2011 I know it was core in 2008, just wasn't sure about 2007. Well, I didn't just want to say "NO". LoL Quote Link to comment Share on other sites More sharing options...
SLW210 Posted March 28, 2011 Share Posted March 28, 2011 Another case for upgrading AutoCAD. Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 28, 2011 Share Posted March 28, 2011 Another case for upgrading AutoCAD. Agreed..... Quote Link to comment Share on other sites More sharing options...
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.