Creating a layer state in autolisp

Creating a layer state in autolisp

Anonymous
Not applicable
2,413 Views
5 Replies
Message 1 of 6

Creating a layer state in autolisp

Anonymous
Not applicable

Hi

 

I'm just getting into autolisp and as far as I understand a Layer State is a group of layers. Therefore I'd like to create a Layer State to collect all the different Layers I will create later. The catch is that I want to do this in autolisp.

I cannot seem to find a command that will allow me to programatically create a Layer State. All the command deal with restoring, saving, or modifing an already existing state. I am using AutoCAD 2012.

What have I missed?

0 Likes
2,414 Views
5 Replies
Replies (5)
Message 2 of 6

mid-awe
Collaborator
Collaborator

You may have misunderstood the use of Layerstates; possibly a result of wishfull thinking. (I did it too at first until I understood.)

 

Here is a great link that may clear it up for you: 

 

There are some great LISPs floating around here for utilizing Layerstates. Come back to this thread once you've acquired a better understanding and have an answerable question.

 

(It sounds to me that you really want to work with CAD Standards or possibly a sheet set).

Message 3 of 6

hmsilva
Mentor
Mentor

Hello EnthusiasticStudent and welcome to the Autodesk Community!

 

look at

layerstate-save (AutoLISP)

layerstate-has (AutoLISP)

layerstate-getnames (AutoLISP)

layerstate-rename (AutoLISP)

and the

layerstate-***

 

this thread may be of interest

 

 

Hope this helps,
Henrique

EESignature

Message 4 of 6

Anonymous
Not applicable

Thanks mid-awe and hmsilva. I'll check out the links!

0 Likes
Message 5 of 6

hmsilva
Mentor
Mentor

You're welcome, EnthusiasticStudent

Henrique

EESignature

0 Likes
Message 6 of 6

mid-awe
Collaborator
Collaborator
Glad to help.
0 Likes