Jump to content

Recommended Posts

Posted

This is the macro I have written for turning off multiple layers. It does not work....thoughts?

 

 

^C^C_-LAYER;OFF;SHADE*;OFF;M-HVAC*;OFF;E-*;OFF;D-*;OFF;A-GLAZ*;OFF;A-MILW*;OFF;A-PFLR*; OFF;A-TEXT*;OFF;P-*;OFF;A-DOOR*;OFF;A-FLOR*;OFF;A-CLNG*;OFF;A-KTCH*;OFF;A-SCHD*;;

Thanks

BA

Posted

At what point does the macro cease to function?

 

Would the asterisk be a wildcard?

Posted
At what point does the macro cease to function?

 

Would the asterisk be a wildcard?

 

 

yes.........and the ;; ends the string

Posted

also...for whatever reason some layers or strings do work or turn off when the command is invoked. (shade*, E-*, A-MILW-*) turn off, the rest do not?

Posted

If you could post a file here with all of those layers in it I can figure it out for you.

Posted
If you could post a file here with all of those layers in it I can figure it out for you.

 

 

 

there are hundreds of layers. The syntax is typical AIA nomenclature...i.e A-DOOR-FULL-INTR...or (A-Door-*) in my string...* being the wildcard.

Posted

Can you put a file with one of each typical layer here? I already know that * is a wildcard. I just want to see if I can fix the problem for you.

Posted

The problem is the "-" in the name, can you get rid of that ?

or at least change the macro to *door* without losing functionality of your macro,

Posted
The problem is the "-" in the name, can you get rid of that ?

 

 

 

A-MILW-* works. A-DOOR-* does not?

Posted

Got it.....Steven-G. You got part of it and I had a space between an off in the string. Here is the working string...

 

 

^C^C_-LAYER;OFF;SHADE*;OFF;M-HVAC*;OFF;E*;OFF;D-DEMO*;OFF;A-GLAZ*;OFF;A-MILW*;OFF;A-PFLR*;OFF;A-TEXT*;OFF;P-FIXT*;OFF;A-DOOR*;OFF;A-FLOR*;OFF;A-CLNG*;OFF;A-KTCH*;OFF;A-SCHD*;OFF;A-FURN*;;

Posted

Yup spotted it, It is usually something simple like that. Well done

Posted

Wow, I checked for spaces too and didn't see any... It's pretty hard to pick em out but I see it now that I looked even closer.

Posted

Thanks all. I use this macro in conjunction with my layering which I have "On Screen" each layer is in a toolbar (several) "on" "off" and I have a tool bar that has "wildcard" layers on and off. This button turns off multiple layers in different items (architectural, structural, texts, etc.) for editing different parts of a drawing. In this case specific to roof framing. I find it quicker and easier than layer filters.

Posted

Good idea, I can use that, I use filters a lot but macro's might be easier.

Posted

I use dual monitors. I grew up on a digitizer tablet with multiple menu overlays. When windows went graphic, I replaced the digitizer with a monitor and put all of my commands on it just as my digitizer used to. I virtually have any and all commands on screen along with all of my layering. Very fast. I was really pissed when ACAD 14 came along!!!!

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