Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create new Layer Macro

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
1191 Views, 4 Replies

Create new Layer Macro

Hi,

 

I am trying to figure out how to create macros to manage my layers so I can easily switch between existing, demolition, and new layers as well as floor plan layers and ceiling plan layers.

 

I.E.: I want to be able to be working on one model space (say a floor plan) but then I want to be able to click a marco called New Ceiling, so the macro will turn off all irrelevant layers and turn on all relevant layers.

 

Thanks for the help!

4 REPLIES 4
Message 2 of 5
Patchy
in reply to: Anonymous

Why can't you use LAYERSTATE ?

Message 3 of 5
john.vellek
in reply to: Anonymous

Hi @Anonymous,

 

Welcome to the Autodesk Community!

 

I agree with Patchyt that you likely want to use Layer States for this kind of activity. Here is a link to an AKN Article that describes the functionality.

 

Now, if you need something more than that, I suggest that can be done with a Macro or a LISP routine.

 

If you use the Action Recorder remember that it is best to use only command line type functions.

 

For instance, if you want something a bit more global than remembering specific layers the way Layer States does try something like this:

-Layer

Thaw

0

on

0

s

0

freeze

all

thaw

A-CLNG*

 

This type of macro would turn on just architectural ceiling layers.

 

Let me know if either of these approaches will help your process or if you need additional information.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 4 of 5
john.vellek
in reply to: Anonymous

Hi @Anonymous,

 

I am checking back to see if my post helped you with your problem or if you need additional assistance or information. Please add a post with how you decide to proceed and your results so other Community members may benefit.

Please hit the Accept as Solution button if my post fully solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 5 of 5
Anonymous
in reply to: Anonymous

Hi,


I am sorry to not have replied yet. I haven't had the time yet to try out the suggested solutions. I'll keep you posted.

 

Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report