AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
New Member
mmbruce
Posts: 2
Registered: ‎02-11-2011
Message 1 of 8 (7,563 Views)

Cannot Change Color of XREF Layers

7563 Views, 7 Replies
02-11-2011 09:18 AM

I am referencing a survey file in my site plan.  Both were created using Civil 3D.  I want to change the color of all of the reference files' layers to 250, so I selected them all in the layer properties manager and did so.

 

However, some layers are not changing colors.  One layer is red in the reference file, but comes through on the site plan as magenta.  Some Civil3D structures are also refusing to change colors.

 

I selected all of the objects in the reference file and made sure their colors were "by layer," but it did not completely fix the problem.

 

What am I missing?

 

Thank you for your help.

Active Contributor
dirtleg
Posts: 42
Registered: ‎01-12-2006
Message 2 of 8 (7,556 Views)

Re: Cannot Change Color of XREF Layers

02-11-2011 09:32 AM in reply to: mmbruce

A couple of things to check: if the objects are blocks the entities within the blocks may have colors assigned. This would go for any 3d objects in the subject drawing as well. Entities may have layer and colors assigned within the properties of the object. Something else, is your xref inserted on layer 0. Makes a difference. Over the years I have run into similar issues many times with drawings that come from out of house or that do not follow sensible layer/color/linetype standards. You may just have to drill down on the offending entities till you find the problem.

Product Support
AlmasSuljevic
Posts: 778
Registered: ‎08-11-2010
Message 3 of 8 (7,551 Views)

Re: Cannot Change Color of XREF Layers

02-11-2011 09:51 AM in reply to: mmbruce

Just an idea to try. There is a VISRETAIN system variable. You may want to give it a try. 

0=The layer table, as stored in the reference drawing (xref), takes precedence.

1=Xref-dependent layer changes made in the current drawing take precedence.



Almas Suljevic
Product Support Specialist
Autodesk Global Subscription and Support
Autodesk, Inc.

Please click on "Accept as Solution" if post helped you resolve the issue.
New Member
mmbruce
Posts: 2
Registered: ‎02-11-2011
Message 4 of 8 (7,529 Views)

Re: Cannot Change Color of XREF Layers

02-11-2011 11:17 AM in reply to: mmbruce

My VISRETAIN is set to 1, that's not an issue.

*Expert Elite*
Sinc
Posts: 6,207
Registered: ‎11-18-2006
Message 5 of 8 (7,523 Views)

Re: Cannot Change Color of XREF Layers

02-11-2011 11:44 AM in reply to: mmbruce

If the color of an object is set in a C3D Style, you can't change it by changing layer colors.

Sinc
Valued Mentor
gccdaemon
Posts: 461
Registered: ‎09-14-2010
Message 6 of 8 (7,505 Views)

Re: Cannot Change Color of XREF Layers

02-11-2011 08:48 PM in reply to: Sinc

Sinc is right, you'll have to change the colors in your styles to byblock or bylayer.

Andrew Ingram

Civil 3D x64 2012
Win 7 x64 Ultimate
I7 3820 (3.6ghz quad core with HT)
32gig RAM (Corsair XMS3 4x8g)
Intel x z79 mobo (BOXDX79TO 2011 socket)
Radeon HD 7850 2gb GDDR5
Valued Mentor
Hidden_Brain
Posts: 678
Registered: ‎03-24-2009
Message 7 of 8 (7,481 Views)

Re: Cannot Change Color of XREF Layers

02-13-2011 06:14 AM in reply to: mmbruce

try commandline SETBYLAYER in the actual xref drawing, and include the blocks as well. this may help finding "offenders" to some extent.

Avishek Chhibber, P.E., CFM
Civil 3D 2013 SP2, Win 7-64 bit
8GB RAM
Contributor
kruzcad
Posts: 14
Registered: ‎03-14-2006
Message 8 of 8 (3,302 Views)

Re: Cannot Change Color of XREF Layers

08-23-2013 09:59 AM in reply to: mmbruce

VISRETAIN may be the answer you are looking for.

 

If I'm understanding you correctly, it sounds like you have an Xref  that you changed in terms of layer color and it's not reflecting in your associated drawings.  So, you went into your original file (the one acting as the "mother" xref) and changed a layer color through your LAYERS PROPERTY MANAGER; saved it, and went back into your drawing files which contain that Xref, expecting it to change in your host drawings, but the layer color did not change!

Perhaps you even tried reloading it in the INSERT-EXTERNAL REFERENCES, yet to no avail.

 

Solutions:

Set the VISRETAIN to (0) zero in your host files, and RELOAD the Xref in INSERT-EXTERNAL REFERENCES.  You will finally see your drawing taking on the layer color change you made in your original Xref.

 

A second work-around is to go into your LAYERS PROPERTY MANAGER of those host drawings and change the color of the layer there.  This works fine if you have only one or two files that rely on that particular Xref...

 

A third (and perhaps obvious) work-around would be to delete the Xref, DETACH it in INSERT-EXTERNAL REFERENCES, and re-insert the "newly-revised" Xref.  This of course, is more of an inconvenience, plus it sort of defeats the whole idea of relying on the attributes of what an Xref is all about, doesn't it?

 

So, setting your VISRETAIN to (0) is probably the best solution for this particular circumstance.

 

 

However, that being said, I usually set my VISRETAIN to (1) one.  The reason is,  I like being able to change (or customize) the pen color of a layer(s) to reflect the work I do in other drawing files.  For example, I like toning down the overall floor plan color when I do electrical plans so the electrical symbols can really stand out; that's just one example.

 

To me, VISRETAIN is all about layer manipulation in Xrefs:  VISRETAIN (1) allows for that kind of layer color flexibility in the host drawings, whereas VISRETAIN (0) carries-over and maintains - the layer color change you make in the original drawing being used as the Xref.

 

WARNING:  If your VISRETAIN is set to (0) in a host drawing, and you start customizing your layers of that Xref in your host drawing, those changes will not be maintained when you SAVE it.  You will need to set your VISRETAIN to (1) if you want those color changes you made in that session to remain.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.