CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.092.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedturn of layers -map key

 Post Reply Post Reply
Author
gegenytibor View Drop Down
Groupie
Groupie


Joined: 30.Jan.2013
Location: Hungary
Using: AutoCAD 2011
Status: Offline
Points: 37
Direct Link To This Post Topic: turn of layers -map key
    Posted: 27.Oct.2015 at 08:01
Hello Guys,

Is there a possibility to make a map key to turn off a group of layers at the same time (f.e. 8-10 layers)?

Thank you for your answer!
T
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 27.Oct.2015 at 10:23
It could probably be done using a macro or a lisp routine.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 685
Direct Link To This Post Posted: 28.Oct.2015 at 14:29
Many options in the Layer command [command-line, not dialog-box, version] can take as many Layer names as you want, with comma separators.  So, an AutoCAD command macro would be like this:

'_.-Layer _off Layer1,Layer2,Layer3,LayerA,LayerB,LayerC,LayerTom,LayerDick,LayerHarry ;

The apostrophe at the beginning, and the lack of the ^C^C that you so often see used at the beginning of command macros to cancel any command that you may be in at the time, allows you to do it even within another command.  The underscore lets it work in other-than-English versions of AutoCAD.  The period forces it to use the native Layer command in case there's been any redefinition.  The hyphen suppresses the dialog box [you need that, but the preceding punctuation you can omit depending on your circumstances].  The colon at the end is an Enter to complete the Layer command -- other options could be added before that [turning some other Layer(s) on, setting a particular Layer current, etc.].


Edited by Kent Cooper - 28.Oct.2015 at 14:31
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,156 seconds.