Author Topic: XRef via Layer Control or Transparency  (Read 245 times)

0 Members and 1 Guest are viewing this topic.


  • Water Moccasin
  • Posts: 2065
  • I can't remeber what I already asked! I need help!
XRef via Layer Control or Transparency
« on: June 06, 2017, 09:53:48 am »
Just wanting to get some thoughts on this. Currently we use Layer Control on all xrefs. Rather than messing with Layer Control and Pen Settings, does it make sense just to "add transparency's" to the xrefs when plotting? User Xrefs the drawing in; then instead of going through layer control. They can apply a 50% Transparency to it; then plot.

Again just getting some thoughts on this...
Autodesk Infrastructure Design Suite 2017


  • King Gator
  • Posts: 3776
  • Take a little time to stop and smell the roses.
Re: XRef via Layer Control or Transparency
« Reply #1 on: June 06, 2017, 11:49:49 am »
Not a bad idea as long as you can deal with the varying lineweights, if they come up.
CAD Tech


  • Swamp Rat
  • Posts: 531
Re: XRef via Layer Control or Transparency
« Reply #2 on: June 06, 2017, 05:14:29 pm »
Yes it makes perfect sense. Transparancy can be used for both 2d/3d purposes

a. underlay in 2d
b. viewing THOUGH (xref) parts and pieces

Therefore i personally use CETRANSPARENCY "Byblock" in stead of "Bylayer" by default on all i get my hand upon ;-)
Just tweak the xref "in one go" by setting it to 60% or 70% in stead of going thought the layermanager..

You could tweak this code (source: Cadtutor)

Code: [Select]
;ktool xcolor

(defun c:xcolor ( / acadobj acaddoc acadlays count)
(vl-load-com) ;load active x support

  (setq acadobj  (vlax-get-acad-object) ;get autocad
acaddoc (vla-get-activeDocument acadobj) ;get active document
acadlays  (vla-get-layers acaddoc ) ;get layers
count      0) ;temporary counter

;set colors
  (setq color_source 253 ;>> source layer color, can be changed to any color
color_target 3   ;>> destination color , can be changed to any color
filter  "*|*" )     ;>> filter string, xref xref layer contains "|"

(vlax-for n acadlays
      (wcmatch (vla-get-name n) filter ) ;if it meets the filter
      (= (vla-get-color n) color_source) ;& if it matches the color
    (vla-put-color n color_target) ;change it to the required color
    (setq count (1+ count)  ;increase counter

(princ (strcat "\n <"(rtos count 2 0)"> Layer(s) changed from color <" (rtos color_source 2 0)"> to <" (rtos color_target 2 0)">" ))

(princ "\nType xcolor to begin :")

or take a look at this tool for setting it to "byblock"
Design is something you should do with both hands. My 2d hand , my 3d hand ..


  • Swamp Rat
  • Posts: 1274
Re: XRef via Layer Control or Transparency
« Reply #3 on: June 07, 2017, 10:01:46 am »
Just be careful with transparency when it comes to plotting. Each plotter seems to vastly handle transparency different.