Print Page | Close Window

Layer Macro

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=91
Printed Date: 31.May.2026 at 20:19


Topic: Layer Macro
Posted By: DJMike
Subject: Layer Macro
Date Posted: 07.Sep.2007 at 20:41
In AutoCad 2004LT I have the need for a couple of custom buttons.
I have made an "ALL Layer OFF" & "ALL LAYER ON" toolbar using the following macro commands:
All Layers On
^C^C-LAYER;ON;*;;

All Layers Off
^C^C_ai_molc;\-layer;off;*;;;
 
What I want is for the All OFF button is to leave the default "Layer 0"
on. The all off button now , when clicked, you must click a layer object
and then all but that layer is turned off. I would like to have a button that turns on just "layer 0" or allows the current function I have plus leaves the "layer 0 " on.
 
 
Regards,
DJMike



Replies:
Posted By: Vladimir Michl
Date Posted: 09.Sep.2007 at 15:00
You can just add "_-LAYER;_ON;0;;" at the end of the All Layers Off macro.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window