AutoCad AutoLISP Functions layerstate-save

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.