• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Civil 3D

    Reply
    Product Support
    Posts: 123
    Registered: ‎04-12-2010

    Question about XRef'd drawings and color changes

    922 Views, 7 Replies
    11-12-2010 07:15 AM

    Customer question that I received:

     

    I have drawing “A” and it is xref’d into drawing “B”. If I change the color of a layer in drawing “A”, the color of the layer will not update on drawing “B”. I have VISRETAIN set to 1 so the color should automatically change. The only way I can fix this is to detach the xref and attach it again. If I have a drawing with multiple tabs and the xref is on each tab (title block in paper space for example), I have to delete the xref from each tab, detach and reattach. What could be causing this?

     

    Alison Gangler, Autodesk Product Support


    1848iFB1446A5DC1D1EE0
    Alison Gangler
    Autodesk Product Support
    Autodesk, Inc.

     

     

    ___________________________________________________________

    If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!



    Alison Gangler
    Support Specialist
    Product Support
    Autodesk, Inc.

    Please use plain text.
    Distinguished Contributor
    Posts: 179
    Registered: ‎09-30-2008

    Re: Question about XRef'd drawings and color changes

    11-12-2010 07:58 AM in reply to: alison.gangler

    I thought visretain had to be 0 to update the layer color.

    If not, any chance the layer is locked?

    Since visretain holds not just colors but also layers set in current drawing, I probably wouldn't change that setting.  Chances are I would just change the color in the current drawing.  That would take less time than detaching and reloading the xref and setting the layers up again.  (unless all are on and thawed of course)

    Please use plain text.
    *Expert Elite*
    johnm
    Posts: 1,725
    Registered: ‎11-13-2006

    Re: Question about XRef'd drawings and color changes

    11-12-2010 08:32 AM in reply to: alison.gangler

    I also think you want visretain at zero but I think you have to reopen the active dwg to see the changes.

    John Mayo, PE
    C3D 2012, RD 2012
    Win 7 64, Core i7,
    6 GB RAM, Quadro FX 1700
    Please use plain text.
    *Expert Elite*
    Posts: 2,272
    Registered: ‎07-09-2003

    Re: Question about XRef'd drawings and color changes

    11-12-2010 09:53 AM in reply to: alison.gangler

    This may work...

     

    1. Open drawing B
    2. Save a layer state BUT turn off the Color toggle (it won't restore the color state)
    3. Set VISRETAIN to 0
    4. Reload the XREF
    5. Restore the layer state, the layers will freeze/thaw as required, but the colors won't change back to pre-VISRETAIN.

    Good luck.

    Matt Kolberg
    Cansel - Autodesk Division
    http://www.cansel.ca/
    Please use plain text.
    Valued Contributor
    Posts: 51
    Registered: ‎06-22-2006

    Re: Question about XRef'd drawings and color changes

    11-12-2010 10:02 AM in reply to: alison.gangler
    1. Set Visretain = 0
    2. reload 'Drawing A' Xref
    3. Set Visretain = 1

    ~g

    Please use plain text.
    *Expert Elite*
    Posts: 2,272
    Registered: ‎07-09-2003

    Re: Question about XRef'd drawings and color changes

    11-12-2010 10:06 AM in reply to: alison.gangler

    That would work fine unless the user needs to keep layers frozen/thawed differently in DWG A vs DWG B.

    Matt Kolberg
    Cansel - Autodesk Division
    http://www.cansel.ca/
    Please use plain text.
    Valued Contributor
    Posts: 65
    Registered: ‎01-11-2006

    Re: Question about XRef'd drawings and color changes

    11-12-2010 12:04 PM in reply to: alison.gangler

    I have the same problem quite often.  My trick is to rename the layer in drawing "A", then drawing "B" thinks it is a new layer, and updates the color.  So, I change "text" to "textA". for example.  If I change the color again, I change the layer name back to orginal.

    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎08-01-2012

    Re: Question about XRef'd drawings and color changes

    10-11-2012 03:01 PM in reply to: alison.gangler

    I'm going to assume this wasn't the case back in 2010 but... In the 2012 version I'm working in, when you attach an xref it creates layers in your drawing with the suffix being the name of the xref drawing.  If this is obvious to everyone now, then sorry for this post. But I was looking through this thread and then found that out.

     

    I used to hate how many extra layers showed up but it makes changing the colors or freezing layers easier without affecting the original drawing.

    Please use plain text.