Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to control LayerManager palette display or close in AutoCAD 2014 for Mac ?

2 REPLIES 2
Reply
Message 1 of 3
lkcadway
323 Views, 2 Replies

How to control LayerManager palette display or close in AutoCAD 2014 for Mac ?

the system variable "LAYERMANAGERSTATE" is read only.

Command "layerclose" can close the palette, but not a "layeropen" command .

2 REPLIES 2
Message 2 of 3
lkcadway
in reply to: lkcadway

ok, search in this forum , the answer is :

 

(defun C:LayerManager_DisplaySwitch ( / oldvar)
  (setq oldvar (getvar "CMDECHO"))
  (setvar "CMDECHO" 0)
  (if (= (getvar "LAYERMANAGERSTATE") 0)
    (progn
      (initdia)
      (vl-cmdf “_.layer")
    )
    (vl-cmdf "_.layerclose")
  );fi
  (setvar "CMDECHO" oldvar)
  (princ)
);end defun

 

Message 3 of 3
gccdaemon
in reply to: lkcadway

Paste this into your icon

 

$M=$(if,$(and,$(>,$(getvar,LayerManagerState),0)),^C^C'_LayerClose,^C^C'_Layer)

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost