Solved! Go to Solution.
Solved by CADjinni. Go to Solution.
@CADjinni wrote:
When entering the following Autolisp code: (layerstate-save "myname" 15 (getvar "cvport")) I get the following result: Error: ADS request error ...system reset. Can anyone help? Autocad 2010 Many thanks Colin
The layerstate-save function requires three arguments,
the LayerStateName as a string
the Mask an integer (sum designating the layer properties to save)
the viewport (to store the VPLAYER setting needs a entity name - ename - from the viewport.... if nil the layerstate will be saved without the VPLAYER settings
i.e.
(layerstate-save "myname" 15 nil)
to save without the VPLAYER settings, or
(layerstate-save "myname" 15 (car (entsel "\nSelect a viewport: ")))
HTH
Henrique