INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Is there a simple way of automating layers on/off...

Is there a simple way of automating layers on/off...

(OP)
I'm using AutoCAD 2002. Yes I know I'm dated.

This is what I'm trying to do. Let say you have layer a and layer b on. By those being on autocad will automatically shut off or freeze layer c and layer d and vice versa.

Is there an easy way to do this without having to write a lisp routine?

RE: Is there a simple way of automating layers on/off...

Look into Layer Filters.

_________________________________________
NX8.0, Solidworks 2014, AutoCAD, Enovia V5

RE: Is there a simple way of automating layers on/off...

Decent link. I haven't read the post, but her posts/tutorials are /typically/ decent.

http://www.ellenfinkelstein.com/acadblog/tutorial-...

_________________________________________
NX8.0, Solidworks 2014, AutoCAD, Enovia V5

RE: Is there a simple way of automating layers on/off...

(OP)
I figured it out. You can save and name current layer states. Restore them from a list in the layer properties manager.

Right in front of my face. Thanks for the help.

RE: Is there a simple way of automating layers on/off...

You can also define some quick lisp functions. Add the lines below in your ACAD.lsp file. Restart Autocad. Type L1 or L2 to make them work. Modify as needed.


(DEFUN C:L1 ()
(COMMAND "LAYER" "OFF" "A,B" "")
(COMMAND "LAYER" "ON" "C,D" "")
)

(DEFUN C:L2 ()
(COMMAND "LAYER" "On" "A,B" "")
(COMMAND "LAYER" "Off" "C,D" "")
)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close