VISRETAIN

VISRETAIN

john.uhden
Mentor Mentor
419 Views
4 Replies
Message 1 of 5

VISRETAIN

john.uhden
Mentor
Mentor

Having had too many years away from AutoCAD, I made a dumb blunder today.

I changed linetypes and freeze states in the xref, not the host, where VISRETAIN is on. DOH!

 

Unless there's a trick to loading in the xref's new layer properties, I guess I'll have to make all the changes again in the host, right.

Oh, someone please teach me the trick.

John F. Uhden

0 Likes
Accepted solutions (3)
420 Views
4 Replies
Replies (4)
Message 2 of 5

jtohillVY4VS
Contributor
Contributor
Accepted solution

unless I am not understanding what you did just turn visretain to 0 in the host and reload the xref. then reset visretain back to 1.

0 Likes
Message 3 of 5

paullimapa
Mentor
Mentor
Accepted solution

If you’re saying that you want the host dwg layer properties to match with the xref layer override properties you made then one way is to generate code while in the xref dwg that loops through the layer table looking for only layers of the host dwg that have layer property overrides and open the host dwg using Odbx method to change the matching host layer properties similar to freezing it as shown in this thread

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/freeze-layer-without-opening-the-dra...


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 5

pbejse
Mentor
Mentor
Accepted solution

@john.uhden wrote:

Unless there's a trick to loading in the xref's new layer properties, I guess I'll have to make all the changes again in the host, right.


Are we talking more than 1 external reference to deal with or just one?   

Besides, I have a feeling that this is just a one-off thing and and you can do this yourself?  You're just frustrated that you failed to notice the VISRETAIN variable and that is the reason for this post. 😄

 

Message 5 of 5

john.uhden
Mentor
Mentor

@pbejse ,

I love it when you respond.  It gives me the assurance that you still have a pulse.

You're right.  I was just POed with myself for having forgotten, but I have had no occasion to change its setting since it first came to be.

Anyway, it turned out easier to just fix the layers in the host.

John F. Uhden

0 Likes