Add-In: Is it possible to bind a drawing text field to a sheet Attribute?

Add-In: Is it possible to bind a drawing text field to a sheet Attribute?

DRoam
Mentor Mentor
344 Views
2 Replies
Message 1 of 3

Add-In: Is it possible to bind a drawing text field to a sheet Attribute?

DRoam
Mentor
Mentor

So we can insert iProperty fields into drawing text objects, and those fields stay "bound" to the iProperty value. If the iProperty changes, so does the text field. If the text object gets copy/pasted to a different sheet, the field updates to reflect the value for the primary component on that sheet. This works great for iProperties of the drawing itself or the primary component on a sheet.

 

However, since there's no such thing as Sheet iProperties, I'd like to implement a similar behavior but for a sheet Attribute, as accessed from Sheet.AttributeSets. We already have a custom "Drawing Set" attribute, associated with each Sheet object, that has a value like "D01", "D02", etc. I want to be able to create an annotation that contains the "Drawing Set" Attribute's value, and I want that annotation to stay bound to the "Drawing Set" Attribute's value.

 

Is this possible? How might I implement something like this?

0 Likes
345 Views
2 Replies
Replies (2)
Message 2 of 3

YuhanZhang
Autodesk
Autodesk

Unfortunately this is not supported to link to the attribute in drawing notes at present, you can log a wish to IdeaStation for this. Or currently just make use of the iProperty for your purpose.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes
Message 3 of 3

BrianEkins
Mentor
Mentor

An alternative is for you to do the "binding" yourself.  Since you'll need to create some type of UI to edit the value of the attribute, as part of that UI you can also use the modified value to update drawing text.  You can attach an attribute to the textbox so you can find it and then update it's associated text.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes