wimal 发表于 2022-7-6 06:59:50

Find current layer - system va

Is there any system variable to find out the current layer name.
If not how can use the lisp to find out it.

hmsilva 发表于 2022-7-6 07:11:18

system variable - CLAYER
 
in lisp

(getvar "CLAYER")
 
Henrique

wimal 发表于 2022-7-6 07:23:29

 
Thanks it works.

hmsilva 发表于 2022-7-6 07:36:58

You're welcome, wimal
glad I could help
 
Henrique

Lee Mac 发表于 2022-7-6 07:48:38

@wimal: try the sysvdlg command if you haven't already

CheSyn 发表于 2022-7-6 07:54:51

@Lee, I have never seen that before. I typically flip through an online PDF if I want to find a variable I do not know exists.
 
That will help a lot!

Lee Mac 发表于 2022-7-6 08:06:11

No worries, happy to help!
页: [1]
查看完整版本: Find current layer - system va