Print Page | Close Window

Launch the layer manager form Autolisp .lsp

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=13775
Printed Date: 31.May.2026 at 23:19


Topic: Launch the layer manager form Autolisp .lsp
Posted By: Vladimir Michl
Subject: Launch the layer manager form Autolisp .lsp
Date Posted: 19.Nov.2022 at 13:04
Tha dashed version of the command starts its command line version. Use:

(initdia 1)(command "_LAYER")

 to start the dialog. But just start, no other control is possible this way.


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



Replies:
Posted By: Kent Cooper
Date Posted: 21.Nov.2022 at 14:01
Originally posted by Vladimir Michl Vladimir Michl wrote:

(initdia 1)(command "_LAYER")

[Just a little technicality:  The 1 in there is harmless, but does nothing for you.  Any value other than zero is the same as not having anything there at all.  (initdia) by itself accomplishes the same thing.]


Posted By: Kent Cooper
Date Posted: 21.Nov.2022 at 20:36
Originally posted by remcokoedoot remcokoedoot wrote:

What about (COMMAND "_.LAYERPALETTE")
Not needed to change variables.

[Just another little technicality:  The (initdia) approach does not change any variables, if that's the implication.  It's not a System Variable, only a "trigger" that affects how the immediately-following command in a (command) function operates, but has no effect on anything after that.]



Print Page | Close Window