[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Change Xref Layer Colors Quickly
Tip# 3995 By Leland Leahy On 20-Oct-2012
0
Rated By 0 users Downloaded : 253
Categories : DWG, Layer Properties
Software type : AutoCAD 2013
Rename File To : x250.lsp
Screen back xref entities by changing them to color 250.

Leland Leahy uses this routine to change all the layers in an AutoCAD xref. You can modify the color to your liking, but Leland uses 250 to screen back the xref entities really quickly. Of course, since this routine only changes the xref layer colors, anything in the xref whose color is not bylayer probably will not change.

To use this routine, load the LISP file, then type in the command X250. Select any entity that is part of the desired xref and press Enter. Performance would be better if the code didn't make repeated calls to: (vla-get-Layers (vla-get-ActiveDocument (vlax-get-Acad-Object). You could set this to a variable and reference the variable in the loop.

 

Average Rating:
0


User comments


Log In