Jump to content

Automatic Unique references


ngowans8

Recommended Posts

I'm currently just getting to grips with both dynamic blocks, fields and data extraction, and I was having a play trying to figure out how to do the following.

 

I want to create a dynamic block which allows me to draw a rectangle, then position it using the block base point, then stretch the rectangle to a any given size. This part is easy. Now I want to take certain measurements from that rectangle, and populate a table with that data including the addition of a quantity column showing all the blocks with identical values. Also not too challenging.

 

The next part is where I struggle however. I need to assign each row of the table with a unique reference number, and then I need to take the data out of this reference number column and show it on the rectangle block in the form of a label.

 

Alternatively, (but with the same outcome) I need to create a "reference" attribute which compares certain values of the block to other variations of the same block, and then either, applies the same reference as any matching blocks, or gives it a new reference if there are no blocks with identical values.

 

 

Does anyone have any ideas how this could be accomplished? It would save me weeks of my life. FYI I'm using Acad2017

Link to comment
Share on other sites

Have you looked at Xdata you can add a "id" to say your rectangle then retrieve it later. The other may be to make a block 1x1 and use scale to set the x & y values you can have a atribute but its set to invisible.

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