Jump to content

Using Current Layer Name Field within Block


Recommended Posts

Posted

I have a block which has an attributed with a field value in it. When I double click the block I placed a field value to the current layer name that the block is on.

When I Xref the file into a new file. The Block shows the XREF-NAME | Layer Name.

 

How can i get it to  read just the Layer name and not with the XREF name in front of it?

 

Thanks!

Posted (edited)

The problem is that once  the drawing is an xref, then the layer list in the drawing xref'ed to, needs to be updated with unique layer names appended to the existing list. Whether or not the xref layers are already unique you still get the xref- or xref_  out in front. Not doing so would lead to all sorts of problems with  many of the layer manipulating command results, for instance LAYISO (Layer Isolate).

 

Otherwise you may as well just copy the 2nd drawing into the first and be done with it.

 

Are you doing any operations on this field based on the original layer name, like a LISP routine or something?

 

If not then life is too short for the small stuff to become a big problem.  Put a wipeout in the block over the end of the field text box where the XREF- part of the name shows.

Edited by Dana W
Posted

Thank you for the response. Honestly, yes this ties to using a routine. This was geared more towards using a matchline block with the layer name being match line area. 

I was trying to figure to remove the (XREF) name, but if its something that needs to be done manually then, that is how it would go.

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...