(layerstate-getlayers layerstatename [invert])


Returns the layers saved in a layer state.


The layerstatename argument is a string specifying the name of the layer state to query for layers. If invert is omitted or nil, returns a list of the layers saved in the layer state. If invert is T, it returns a list of the layers in the drawing that are not saved in the layer state.

Returns a list of layer names. Returns nil if the layer state does not exist or contains no layers.

Example

Code Returns
(layerstate-getlayers myLayerState) Layername1 Layername2

 

Tell me about...

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language