+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member
    Computer Details
    paul1966's Computer Details
    Operating System:
    win 7 pro
    Motherboard:
    ASRock AM2NF3-VSTA
    CPU:
    AMD Sempron 3400+ 1.81Ghz
    RAM:
    3 GB
    Graphics:
    NVIDIA Quadro FX1000
    Primary Storage:
    Maxtor 80 GB
    Monitor:
    Samsung 2232BW 22 inch wide screen + 22inch TFT
    Discipline
    HVAC
    Using
    AutoCAD 2010
    Join Date
    Dec 2007
    Location
    Leicester, UK
    Posts
    162

    Default change xref colour some not by layer

    Registered forum members do not see this ad.

    i have an xref that i want to change all colours to grey, if i select all layers in the layer state manager and change their colour there are still a few lines that are colured, i am assuming these are not coloured by layer, is there an easy way round this?

  2. #2
    Super Member chulse's Avatar
    Computer Details
    chulse's Computer Details
    Operating System:
    Windows 7
    Computer:
    Lenovo W701 mobile workstation
    RAM:
    12GB
    Graphics:
    NVIDIA Quadro FX 3800M
    Monitor:
    17" wide screen laptop w/ 22" acer
    Discipline
    See details...
    chulse's Discipline Details
    Occupation
    Conservation Planner/Arborist
    Discipline
    See details below.
    Details
    Tree Preservation Planning for civil design and developent
    Using
    Civil 3D 2013
    Join Date
    Jul 2007
    Location
    Front Royal, Virginia
    Posts
    1,313

    Default

    I think you will need to fix them in the xref dwg. Likely they are blocks...
    Cary Hulse
    Conservation Planner
    www.TreePreservationPlan.com
    www.Pack53.info

  3. #3
    Senior Member
    Computer Details
    paul1966's Computer Details
    Operating System:
    win 7 pro
    Motherboard:
    ASRock AM2NF3-VSTA
    CPU:
    AMD Sempron 3400+ 1.81Ghz
    RAM:
    3 GB
    Graphics:
    NVIDIA Quadro FX1000
    Primary Storage:
    Maxtor 80 GB
    Monitor:
    Samsung 2232BW 22 inch wide screen + 22inch TFT
    Discipline
    HVAC
    Using
    AutoCAD 2010
    Join Date
    Dec 2007
    Location
    Leicester, UK
    Posts
    162

    Default

    thanks for the reply, in the end i used the command SETBYLAYER and selected the whole dwg. then changed the colour via layer manager.

  4. #4
    Super Member chulse's Avatar
    Computer Details
    chulse's Computer Details
    Operating System:
    Windows 7
    Computer:
    Lenovo W701 mobile workstation
    RAM:
    12GB
    Graphics:
    NVIDIA Quadro FX 3800M
    Monitor:
    17" wide screen laptop w/ 22" acer
    Discipline
    See details...
    chulse's Discipline Details
    Occupation
    Conservation Planner/Arborist
    Discipline
    See details below.
    Details
    Tree Preservation Planning for civil design and developent
    Using
    Civil 3D 2013
    Join Date
    Jul 2007
    Location
    Front Royal, Virginia
    Posts
    1,313

    Default

    Glad to hear you found a solution
    Cary Hulse
    Conservation Planner
    www.TreePreservationPlan.com
    www.Pack53.info

  5. #5
    Super Member chelsea1307's Avatar
    Computer Details
    chelsea1307's Computer Details
    Operating System:
    windows xp
    Using
    AutoCAD 2011
    Join Date
    Sep 2008
    Location
    Sacramento, Ca USA
    Posts
    1,109

    Default

    Registered forum members do not see this ad.

    This code from kpblc is handy when the objects that are set to by layer are inside of blocks it does it for the whole dwg though so be carefull if there are some blocks you dont want by layer
    Code:
    Author kpblc 
    changes all blocks inserted in a dwg from by block/color to by layer.
    (defun c:norm (/ *error* adoc lst_layer func_restore-layers)
      (defun *error* (msg)
        (func_restore-layers)
        (vla-endundomark adoc)
        (princ msg)
        (princ)
        ) ;_ end of defun
    
      (defun func_restore-layers ()
        (foreach item lst_layer
          (vla-put-lock (car item) (cdr (assoc "lock" (cdr item))))
          (vl-catch-all-apply
            '(lambda ()
               (vla-put-freeze (car item) (cdr (assoc "freeze" (cdr item))))
               ) ;_ end of lambda
            ) ;_ end of vl-catch-all-apply
          ) ;_ end of foreach
        ) ;_ end of defun
    
      (vl-load-com)
      (vla-startundomark
        (setq adoc (vla-get-activedocument (vlax-get-acad-object)))
        ) ;_ end of vla-startundomark
      (vlax-for item (vla-get-layers adoc)
        (setq lst_layer (cons (list item
                                    (cons "lock" (vla-get-lock item))
                                    (cons "freeze" (vla-get-freeze item))
                                    ) ;_ end of list
                              lst_layer
                              ) ;_ end of cons
              ) ;_ end of setq
        (vla-put-lock item :vlax-false)
        (vl-catch-all-apply '(lambda () (vla-put-freeze item :vlax-false)))
        ) ;_ end of vlax-for
      (vlax-for blk (vla-get-blocks adoc)
        (if (and (equal (vla-get-islayout blk) :vlax-false)
                 (equal (vla-get-isxref blk) :vlax-false)
                 ) ;_ end of and
          (progn
            (vlax-for subent blk
               ;(vla-put-layer subent "0");edit-> removed force to layer 0
              (vla-put-color subent 256)
              (vla-put-lineweight subent aclnwtbyblock)
              (vla-put-linetype subent "byblock")
              ) ;_ end of vlax-for
            ) ;_ end of progn
          ) ;_ end of if
        ) ;_ end of vlax-for
      (func_restore-layers)
      (vla-endundomark adoc)
    (command "_regenall")
      (princ)
      ) ;_ end of defun
    "The problem is stupidity. I am not saying there should be capital punishment for stupidity, but, why don't we just take the safety labels off of everything and let the problem solve itself? "

Similar Threads

  1. Can't change layer or colour
    By Connect Project Tech in forum AutoCAD General
    Replies: 13
    Last Post: 4th Mar 2011, 10:11 pm
  2. Replies: 3
    Last Post: 25th May 2009, 06:08 am
  3. By layer objects - change layer but keep colour?
    By Connect Project Tech in forum AutoCAD General
    Replies: 5
    Last Post: 9th Jan 2009, 05:49 pm
  4. Layer colour change on base DWG not updating in XREF
    By maffpunton in forum AutoCAD Drawing Management & Output
    Replies: 16
    Last Post: 29th Jun 2007, 08:31 pm
  5. Xref Not Updating With Layer Colour Change After Reload
    By Unick in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 20th Sep 2006, 07:16 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts