Is it possible to create a asociative text in a sketched symbol that is linked to a BOM row? I want to display the object number of BOM row in a sketched symbol in a drawing. Sorting and renumbering BOM should be recognized and the number should be updated.
The ESKD-AddIn seems to be able to do so in technical requirements, but how is this done?
BOMRow object has AttributeSets property. This allows you
a) assign unique attribute to every BOMRow object in BOMRows collection,
b) find the reference to the BOMRow associated with the named attribute with the specific value (see help for AttributeManager.FindObjects method).
Saving unique pair [attribute name + attribute value] in your sketched symbol makes it possible at any moment to find “parent” BOMRow, extract current item number value from BOMRow object and update symbol if this number was changed.
There is the overview on attributes in the Inventor API Help.
Vladimir Ananyev Developer Technical Services Autodesk Developer Network