hyposmurf Posted June 14, 2003 Posted June 14, 2003 This a handy new lisp I've found .It will freeze all your layers except the one that is current.Useful if you want to work on one layer while in a complex drawing. (defun c:ao () (setvar "expert" 0) (command "layer" "off" "*" "" "" "") ) For anyone unsure of how to save and load a lisp here you go: Save of Copy this file into a notepad file and save it with a file extension .lsp then load the lisp via the "appload" command.In appload find the file and then press load.You can add this to your startup suite by clicking on the "contents" feature,select "add" then all you need to load the lisp each time you require it is add "ao" to the command line Quote
fuccaro Posted June 16, 2003 Posted June 16, 2003 Hyposmurf runing this routine the EXPERT system variable remains set to 0. This may couse confusion for beginer users, data lose and other lisp routines can be affected. Please let me propose a better version of your routine: save the EXPERT variable before to change it and restore it at the end. (defun c:ao () (setq old (getvar "expert")) ;save the value of EXPERT (setvar "expert" 0) (command "layer" "off" "*" "" "" "") (setvar "expert" old) ;Restore the old value ) Quote
hyposmurf Posted June 16, 2003 Author Posted June 16, 2003 Thanks Fuccaro nice to know you noticed that. Quote
f700es Posted June 16, 2003 Posted June 16, 2003 This a handy new lisp I've found .It will freeze all your layers except the one that is current.Useful if you want to work on one layer while in a complex drawing. (defun c:ao () (setvar "expert" 0) (command "layer" "off" "*" "" "" "") ) For anyone unsure of how to save and load a lisp here you go: Save of Copy this file into a notepad file and save it with a file extension .lsp then load the lisp via the "appload" command.In appload find the file and then press load.You can add this to your startup suite by clicking on the "contents" feature,select "add" then all you need to load the lisp each time you require it is add "ao" to the command line Not trying to rain on your parade and that lisp is very cool but....express tools has had something like this for a while. It is called Isolate Object's Layer. Only difference is that it does not freeze the layers it turns them off. I like this because when I am finished editing on that one layer it is easy to get my drawing back like I had it. I simply turn on all the layers and the ones I had frozen are still that way but yours is still pretty cool F7 Quote
hyposmurf Posted June 16, 2003 Author Posted June 16, 2003 Yes there is!In CAD 2K you do the following : Select from the express/layers menu the following "layer isolate" or enter LAYISO,then select your layer to isolate.To return to your original configuration of frozen and thawed layers select "layer unisolate" from the express/layers menu or enter LAYUNISO.Thanks for that didnt realise before ,now I can go and make a some menu buttons for these handy commands.Thats also good that it doesnt alter your original layer configuration. Quote
Bertdorf3 Posted November 10, 2011 Posted November 10, 2011 I have a situation frustrating me. I have alwasy been able to go to Layer Properties, right click a layer, then from the menu select "Isolate Selected Layer"... but now I am on C3D 2011 and that option is now greyed out! I cannot seem to find a solution. Anyone have an idea as how to restore this option? I have been ACADing for 5 years, started with ACAD 2000... Quote
pman860507 Posted November 11, 2011 Posted November 11, 2011 I use a button. with this macro to do mine. ^C^CLL;F;*;; Quote
Bertdorf3 Posted November 14, 2011 Posted November 14, 2011 I use a button. with this macro to do mine. ^C^CLL;F;*;; That appears to be a macro for [FILLET] Quote
pman860507 Posted November 14, 2011 Posted November 14, 2011 That appears to be a macro for [FILLET] not for i. LL does the layer command for me and then f to freeze and * for all. Quote
alanjt Posted November 14, 2011 Posted November 14, 2011 You should use full command names instead of an alias. You never know when you might change LL to be something else or AutoCAD assigns that syntax to another command name. For instance, in Civil 3D, "LL" is a command that converts Lat/Long to an XYZ point and it's NOT defined in the PGP file - cannot be defined as anything else. Quote
Bertdorf3 Posted November 14, 2011 Posted November 14, 2011 Thanks for the suggestions. I certainly can work around getting the layers to freeze in various ways, my main question I guess was if anyone knows how to get the option on the menu un-greyed and available again... co-workers here have it as an available option... I was thinking maybe I had a variable turned off or something. Quote
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.