Jump to content

Pick object for layer properties


Recommended Posts

Posted

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!

Posted

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!HzozNYJZrTDKAAAAAElFTkSuQmCC

Capture.jpg

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...