Jump to content

Recommended Posts

Posted

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!)

Posted

there are already buttons for LAYFRZ, LAYLOCK and LAYOFF (Layers II toolbar)

 

or do you mean for specific layers?

Posted

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

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...