Results 1 to 3 of 3

Thread: Launch the layer manager form Autolisp .lsp

  1. #1
    Member
    Join Date
    2010-01
    Posts
    18
    Login to Give a bone
    0

    Default Launch the layer manager form Autolisp .lsp

    AutoCAD.
    Is it possible to launch the layer manager form Autolisp .lsp?
    (command ".-layer")

    Not the desired result.
    Any idea?

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,608
    Login to Give a bone
    0

    Default Re: Launch the layer manager form Autolisp .lsp

    You can do anything you want with layers using lisp but you're using the wrong command.
    Try (command ".LAYERPALETTE") https://www.cadtutor.net/forum/topic...comment-555676

    (command ".-layer") in 2022 version returns:
    Current layer: "0"
    Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile/Xref]:

    (command ".+layer") in 2022 version returns:
    Specify filter [All/All Used Layers/Unreconciled New Layers/Viewport Overrides] <All>:

    Command options vary depending on what version of AutoCAD you're using but using lisp instead is more consistent between versions.

  3. #3
    Member
    Join Date
    2010-01
    Posts
    18
    Login to Give a bone
    0

    Default Re: Launch the layer manager form Autolisp .lsp

    Thank you Tom, the best solution! This is also an option: (initdia 1)(command "_LAYER") to start the dialog. But just start, no other control is possible this way. But not so stable.

Similar Threads

  1. Launch AutoLISP program from VB Macro
    By johannvonspiralspine in forum VBA/COM Interop
    Replies: 3
    Last Post: 2008-04-27, 04:16 AM
  2. Cut Geometry, Solid form, Void form
    By mmolina in forum Revit Architecture - General
    Replies: 2
    Last Post: 2005-05-11, 09:33 PM
  3. LAYER MANAGER DELAY IN 2005 LT & LSP
    By JKVMAD in forum AutoCAD LT - General
    Replies: 6
    Last Post: 2004-12-14, 05:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •