Need LISP to add new layers to existing saved Named Views

Need LISP to add new layers to existing saved Named Views

jorgearone_inssitu
Enthusiast Enthusiast
557 Views
6 Replies
Message 1 of 7

Need LISP to add new layers to existing saved Named Views

jorgearone_inssitu
Enthusiast
Enthusiast

hello everyone

I have a problem that suddenly can be solved with a lisp

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/need-lisp-to-add-new-layers-to-exist... 
I have an Architecture base and created saved views,

but as I add layers (because that is usually my work routine)

When I change views, all the layers created after the views were created are frozen.
I think even LAYER STATES have the same characteristic.
I would like to see if it is possible that there is a lisp that updates all the saved views (with all the current layers)

 

 

 

[ The subject line of this post has been edited for clarity by @pendean Original: Updates Saved Views]

0 Likes
Accepted solutions (1)
558 Views
6 Replies
Replies (6)
Message 2 of 7

Kent1Cooper
Consultant
Consultant

@jorgearone_inssitu wrote:

... as I add layers .... When I change views, all the layers created after the views were created are frozen. ....


That sounds like exactly what is supposed to happen when you add Layers using this icon in the Layer Manager:

Kent1Cooper_0-1691084137814.png

Is that how you are adding them?  If you use the one to the left of that, the added Layer will be visible in all Viewports.

Kent Cooper, AIA
0 Likes
Message 3 of 7

jorgearone_inssitu
Enthusiast
Enthusiast

jorgearone_inssitu_0-1691088190649.png

no, I have been using this option. I have checked again.

0 Likes
Message 4 of 7

pendean
Community Legend
Community Legend

@jorgearone_inssitu wrote:

...When I change views, all the layers created after the views were created are frozen....


Explain your process very precisely please so someone over here can follow along: "views" can mean many things and in many places in a DWG file.

 


@jorgearone_inssitu wrote:

.... a lisp that updates all the saved views...


updates what please? be detailed, you may be using too generic a term when we need specifics to follow along.

 


@jorgearone_inssitu wrote:

... (with all the current layers)...

...no, I have been using this option. I have checked again....


What "all" do you mean please? again, we want to follow along more precisely.

 

TIA

0 Likes
Message 5 of 7

jorgearone_inssitu
Enthusiast
Enthusiast

Ok, I have saved views

jorgearone_inssitu_2-1691092224044.png

 

I have a problem that suddenly can be solved with a lisp.
I have an Architecture base and created saved views,

but as I add layers (because that is usually my work routine)

When I change views, all the layers created after the views were created are frozen.

jorgearone_inssitu_3-1691092341592.png

When I create the views, I keep creating layers (that's my workflow) and work with them (they are not turned off or frozen), but when I change views, the layers disappear, as you can see, the layers created after creating the views views are frozen (when changing views)

0 Likes
Message 6 of 7

ВeekeeCZ
Consultant
Consultant
Accepted solution

So why don't you save the views WITHOUT layer snapshot 

 

eekeeCZ_0-1691167123361.png

 

0 Likes
Message 7 of 7

jorgearone_inssitu
Enthusiast
Enthusiast

Thank you very much, I did not know that option.
Yes indeed that is the solution. Thank you very much again.

0 Likes