Jump to content

Autonumber blocks


sketch11

Recommended Posts

If I have a dynamic block, and convert to a regular block via "Edit Block In-place", the name is changed as follows:

"Dynamic block name" + "the next sequential digit".

 

For example, if I have 2 copies of the dynamic block:

- Dynamic black names: 530UB82 for both blocks.

- Regular block names: 530UB821 and 530UB822 (1 and 2 is added at the end).

 

I wanted to add a separator before the digit, so something like 530UB82_1 and 530UB82_2.

 

This is in LT so can't use LISP.

 

image.thumb.png.60028896211d521492ef3606d7739bb1.png

Block_Autonumber.dwg

Link to comment
Share on other sites

Unfortunately in LT I don't think there is a way to 'read' the name of a block, in a diesel macro you could in theory find the last digit and add an underscore before it, but I don't know of a way to get at the block name to do that. No doubt that is an option with Lisp but this is one of the limitations of LT. You can in LT create new blocks and use a macro to give a name with an incremental number but reading the name of an existing block is to the best of my knowledge not possible.

  • Like 1
Link to comment
Share on other sites

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