AutoCad AutoLISP Functions layerstate-save

AutoCad AutoLISP Functions layerstate-save

Anonymous
Not applicable
694 Views
1 Reply
Message 1 of 2

AutoCad AutoLISP Functions layerstate-save

Anonymous
Not applicable

layerstate-save for autolisp cannot turn on the transparency.

 

From AutoCAD help:
(layerstate-save layerstatename mask viewport)

mask

An integer sum designating which properties in the layer state are to be restored.

1- Restore the saved On or Off value

2- Restore the saved Frozen or Thawed value

4- Restore the saved Lock value

8- Restore the saved Plot or No Plot value

16- Restore the saved VPVSDFLT value

32- Restore the saved Color

64- Restore the saved LineType

128- Restore the saved LineWeight

 

(layerstate-save "myLayerState" nil nil)
This will create a layer state with ticking all layer properties to restore including transparency.

Then, I tried below
(layerstate-save "myLayerState1" 1023 nil)
(layerstate-save "myLayerState2" 2047 nil)
These two will create a layer state with ticking all layer properties to restore except transparency.

 

How can I handle the layer state with transparency setting.

0 Likes
695 Views
1 Reply
Reply (1)
Message 2 of 2

lena.talkhina
Alumni
Alumni

Welcome to the Autodesk Community @Anonymous !

 

Great to see you here on LISP forum.

Hope you will find a solution soon!

Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям! | Do you find the posts helpful? "LIKE" these posts!
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.



Лена Талхина/Lena Talkhina
Менеджер Сообщества - Русский/Community Manager - Russian

0 Likes