Jump to content

Attribute FIELD w/ Block Handle Information


SCVTeerav

Recommended Posts

Greetings,

 

Supreme programming noob here.

 

We use a dynamic block with about 12 attributes for our drawings. One of the attributes, we would like to have a unique identifier generated for each particular instance of this block within a drawing, and several drawings if possible.

 

So for instance, we have 620 instances of this block in a drawing, each one should have a unique identifier. Is there a way to utilize the block's "handle" within this particular attribute, so that it remains unique?

 

Any help with the would be extremely appreciated.:D

Link to comment
Share on other sites

There is sample of blocks with Field Attribute of the block Handle and block ObjectID (decimal entity number not Hex as Handle). To make the same result change Default Value of attribut inside of block editor (_BEDIT) to:

 

%%

 

or

 

%%.

 

Values will appears after first block insertion after changing (not in old block references).

Hande_&_ObjectID.dwg

Link to comment
Share on other sites

  • 11 months later...

Hi,

 

I've tried this and the Handle option works and does indeed give a unique hex ID to all my blocks. The other option however only gives me ---- when I assumed I would get a 4 digit ID. Any I approaching this wrong?

 

Thanks,

Josh

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