im trying to figure out how to reassign text fields.
i have several text elements with several text fields that are "linked" to item type properties on another element. the text fields have lost their association. and it is a very tedious task to go into each text element and right click on each text field within each text element and select reassign field and then select the element containing the item type.
would like to do this from c#/.net but i think in the past i have had to go to the unmanaged side of the sdk to deal with text and text fields.
any guidance on some api calls i can start looking at.
Hi John,
John Drsek said:would like to do this from c#/.net but i think in the past i have had to go to the unmanaged side of the sdk to deal with text and text fields.
I think it's still the same, the only way how to access text fields is C++ API.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
John Drsek said:any guidance on some api calls i can start looking at
C++ TextBlock has AppendField, InsertField which set/get a TextField.
AppendField
InsertField
TextField
The TextField class has creation methods.
As Jan mentions, I don't see similar methods or classes in .NET or VBA.
Regards, Jon Summers LA Solutions