View Full Version : XList Layer Current
nigel.chesworth
2006-03-09, 06:30 PM
Has anyone got a lisp routine to make a selected layer within an Xref current.
I imagine that it would combine the "make objects layer current" and the Xlist command from xpress tools.
Unfortunately, you can't make a referenced layer current without making a new layer within the existing drawing. You could get the information for that layer to create a new one.
nigel.chesworth
2006-03-09, 06:51 PM
what i actually want to do is change the properties of the selected layer. At present I Xlist to identify the layer and go into the layer manager to change the properties for the layer, however, I currently need to search the layers to find the one to change, is there an easier way to do what I want.?
This little snip of code will return the name of the layer any entity resides on:
(setq layname (cdr (assoc 8 (entget (car (nentsel "\nSelect object: "))))))
If you want the LayerManager to go directly to that layer, that is not possible. But it is quite simple to make the changes to the layer without the manager. What do you wish to change?
Jeff
nigel.chesworth
2006-03-10, 10:09 AM
I usually want to change the line weight and line type of an xrefs layer within the host drawing.
Your help is much appreciated.
Thank you.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.