madriver Posted January 9, 2014 Posted January 9, 2014 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 Quote
ReMark Posted January 9, 2014 Posted January 9, 2014 At what point does the macro cease to function? Would the asterisk be a wildcard? Quote
madriver Posted January 9, 2014 Author Posted January 9, 2014 At what point does the macro cease to function? Would the asterisk be a wildcard? yes.........and the ;; ends the string Quote
madriver Posted January 9, 2014 Author Posted January 9, 2014 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? Quote
Tuns Posted January 9, 2014 Posted January 9, 2014 If you could post a file here with all of those layers in it I can figure it out for you. Quote
madriver Posted January 9, 2014 Author Posted January 9, 2014 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. Quote
Tuns Posted January 9, 2014 Posted January 9, 2014 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. Quote
steven-g Posted January 9, 2014 Posted January 9, 2014 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, Quote
madriver Posted January 9, 2014 Author Posted January 9, 2014 The problem is the "-" in the name, can you get rid of that ? A-MILW-* works. A-DOOR-* does not? Quote
madriver Posted January 9, 2014 Author Posted January 9, 2014 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*;; Quote
steven-g Posted January 9, 2014 Posted January 9, 2014 Yup spotted it, It is usually something simple like that. Well done Quote
Tuns Posted January 9, 2014 Posted January 9, 2014 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. Quote
SLW210 Posted January 9, 2014 Posted January 9, 2014 You should place your Macro in Code Tags, it makes it easier for others to help. Code posting guidelines Quote
madriver Posted January 9, 2014 Author Posted January 9, 2014 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. Quote
steven-g Posted January 9, 2014 Posted January 9, 2014 Good idea, I can use that, I use filters a lot but macro's might be easier. Quote
madriver Posted January 9, 2014 Author Posted January 9, 2014 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!!!! 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.