Article | 70002105 |
Type | Wish |
Product | WebJS |
Version | 9002 |
Date Added | 11/15/2021 12:00:00 AM |
Fixed | 9.9003.0.3 (11/15/2021 12:00:00 AM) |
Submitted by | Bogumil Styczen |
Summary
Update the block reference Attributes list after adding a new attribute definition to a block
Solution
In version 9003.0.3
a new method var modifiedInserts = vdrawobj.RecalculateBlockReferencesAttribs(block) was added
Enumerate all vdInsert that refence to the passed block and fix the Attributes collection by adding new ones that are not exist to block reference Attributes
Returns an array contains the insert objects that reference the passed block and modified by adding new items to their Attributes collection
It can be called after the vdrawobj.AddAttribDef(block, height, rotation, tag, value, insertionPt)