Brochillington Posted December 9, 2015 Posted December 9, 2015 Hi all, I usually deal with a lot of base xref drawings where one set of plans may screen forward something of importance while screening back many other layers and/or changing various linetypes. Setting up these drawings is often a pain, especially when we receive cad files from outside consultants who have their own standards for layer naming conventions. Usually in this case I will use the XLIST command to find the layer name -- memorize the name -- then enter it into the layer properties manager filter box and change the layer color/linetype/ect from there. From my research on some forums this seems to be what most people who use XLIST do...I feel like there has got to be a better way! Does anyone know of a lisp routine where I could simply pick an object in an XREF (or really any object in the drawing), then have that layer name automatically entered into the layer properties manager filter search, or perhaps change the highlighted layer in the layer properties manager to be the layer of the object I've picked? This feels like an obvious feature that should exist for layer management...but for some reason I can't seem to find anything that fits my description. Thanks! Quote
rlx Posted December 9, 2015 Posted December 9, 2015 Found this one : https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-request-create-local-layer-filter/td-p/4364662 gr. Rlx. Quote
Brochillington Posted December 10, 2015 Author Posted December 10, 2015 This looks like it is simply creating a layer filter that removes all xrefs. I was hoping to find something where I could pick any entity in the drawing, then have the layer name that the selected entity is on be entered into the layer property manager "search for layer" field box. For example, say I have a line object being xref'd into a drawing and the layer its on is Z-Xref|A-Bldg I could type the command, pick the xref'd line, then the layer name would be automatically entered into the layer search box highlighted in the attached screen shot. The layer would then be found via the search. I've seen quite a few lisp routines that will extract the layer name that I could borrow for making this script, but I'm having trouble finding anything that could take a string and insert it into the layer search box. Is it even possible to have a lisp routine interact with the search box like that? Thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.