Gratitude1977 Posted October 28, 2010 Posted October 28, 2010 Hi all, Another question regarding creating specific buttons. Is it possible to create buttons that would allow you to turn on or off layers in a dwg. Also for freezing and unfreezing. I know that it should be possible I just need the right command line for it. Thanks alot (hopefully I will be done with this standardizing of my office soon!) Quote
designerstuart Posted October 28, 2010 Posted October 28, 2010 there are already buttons for LAYFRZ, LAYLOCK and LAYOFF (Layers II toolbar) or do you mean for specific layers? Quote
Gratitude1977 Posted October 28, 2010 Author Posted October 28, 2010 Sorry I should have been a little more specific. I have created a bunch of layers for the office standards and I need to be able to turn off or on when I am in the drawing so that it can turn off the specific layers that I have created. Some or all the layers that were created. Thanks Quote
alanjt Posted October 28, 2010 Posted October 28, 2010 Hi all, Another question regarding creating specific buttons. Is it possible to create buttons that would allow you to turn on or off layers in a dwg. Also for freezing and unfreezing. I know that it should be possible I just need the right command line for it. Thanks alot (hopefully I will be done with this standardizing of my office soon!) I'm not a macro writer (LISP is my forte), but you can do what you are wanting with the -layer command (on/off/freeze/thaw/color/linetype/etc). Learn how to use -layer first, then writing macros for it will make a lot more sense.eg. Command: la -LAYER Current layer: "0" Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck /Unlock/stAte/Description/rEconcile]: [color=red]of[/color] <choose OFF option Enter name list of layer(s) to turn off or <select objects>: [color=red]*strm*[/color] <turn off all layers that match *strm* (not case sensitive) Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck /Unlock/stAte/Description/rEconcile]: there are already buttons for LAYFRZ, LAYLOCK and LAYOFF (Layers II toolbar) or do you mean for specific layers? Layers II toolbar didn't come around until 07/08. In 2005, they were still part of Express Tools. 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.