Home Product Purchase Support Testimonials Contact

CADSTA Tools - LayerState-Save

layerstate-save

Saves a layer state in the current drawing.

(layerstate-save layerstatename mask viewport)

Arguments

layerstatename

Type: String

Name of the layer state to be checked.

mask

Type: Integer

A bit value in the layer state.

1

Restore the saved On/Off value of the layer

2

Restore the saved Frozen/Thawed value of the layer

4

Restore the saved Lock/Unlock value of the layer

8

Restore the saved Plotable/Not-Plotable value of the layer

16

Restore the saved VPVSDFLT value of the layer

32

Restore the saved Color of the layer

64

Restore the saved Linetype of the layer

128

Restore the saved Lineweight of the layer

viewport

Type: ads_name

An ename of the viewport whose VPLAYER setting is to be used.If viewport is nil, the layer state will be saved without VPLAYER settings.

Return Value

T or nil.

Examples

_$ (layerstate-save "myLayerState" 21 viewportId)

T

Related References

layerstate-compare

layerstate-getnames

layerstate-rename

layerstate-delete

layerstate-has

layerstate-restore

layerstate-export

layerstate-import

layerstate-addlayers

layerstate-getlastrestored

layerstate-importfromdb

layerstate-getlayers

layerstate-removelayers

Try or Buy

Product Information

CADSTA Tools

CADSTA Tools Features

Using AutoLISP with CADSTA Tools

Supported AutoLISP file format

Enter AutoLISP codes at command Line

Using AutoLISP with Menu

Using MNL file with CADSTA Tools

Appload Command

CADSTATools.lsp / acad.lsp

CADSTAToolsDoc.lsp / acaddoc.lsp

S::STARTUP Function

Startup Suite

LISP Functions: Operators

LISP Functions: A - C

LISP Functions: D - H
LISP Functions: I - P
LISP Functiosns: Q - U

LISP Functions: V

LISP Functions: W - Z

CADSTA Elements Features

Forum

Click here to go to our forum where you can exchange information, ask questions and share tips with others.

Search

Enter search words

Sign Up For Newsletter

Click here to sign up for our newsletter.

Follow Us