To put Block Attribute in dimension

To put Block Attribute in dimension

jim.murphy
Enthusiast Enthusiast
1,291 Views
5 Replies
Message 1 of 6

To put Block Attribute in dimension

jim.murphy
Enthusiast
Enthusiast

Is there a way to put a block attribute text into a dimension style?

0 Likes
1,292 Views
5 Replies
Replies (5)
Message 2 of 6

GeeHaa
Collaborator
Collaborator

Why do you want to do this?

0 Likes
Message 3 of 6

jggerth
Advisor
Advisor

I would say "Nope".  And I'm not sure how it could be made possible, or how it would be useful.  Each instance of an inserted Block can have a different value for the same Attribute definition, so you would need a mechanism for a Dimension Style to grab an attribute value, either as a prefix or suffix.

 

But there's no way in the style definition to handle any kind of link or field.  What is possible is to edit the text of the Dimension String after it's placed, and use a Field to grab an attribue value from an inserted block, and add that to the DIM string

 

 

I suyppose it would be 

0 Likes
Message 4 of 6

3wood
Advisor
Advisor

You can use your block as part of a Mleader definition but not in a dimension style definition.

Capture.PNG

 

0 Likes
Message 5 of 6

jim.murphy
Enthusiast
Enthusiast

I have blocks that have attributes in them.  I place those blocks around my plan and then use a LISP routine to then number each one of those blocks sequentially.    The LISP routine looks for attributed text.   I want to be able to run this LISP on dimension strings to override the measurement and replace the dimension text with sequential numberings.

0 Likes
Message 6 of 6

pendean
Community Legend
Community Legend
@Anonymous Duplicate your last reply (message #5) over at the LISP forum for help creating a customization that can do that for you https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130

It would help if you posted a sample DWG file too.

HTH
0 Likes