Hi All,
Any way(s) or VBA to annotate the properties of Item Types for each exiting element in the DGN model? similar to Display Text: ON in tagged elements.
Hi Jing Jing,
Jing Jing said:similar to Display Text: ON in tagged elements.
This Tags functionality is slightly different (and in may opinion more useful ;-) than how Items work:
Jing Jing said:Any way(s) or VBA to annotate the properties of Item Types for each exiting element in the DGN model?
Unfortunately there is probably no such VBA available. Problem is that VBA supports Item Types, but not Text Fields, so it is possible to create and attach Items to elements, but not create linked text.
As far as I know, to work with Text Fields is possible in C++ API only.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Jon Summers said:What's not clear is how the new Text Field is incorporated into a text element. Perhaps Marco Salino could provide a hint?
Perhaps you can try it yourself? ;-)
I do not see any magic and unclearness here: When Item is attached, new text node is created with Text Fields, equal and linked to individual Item properties.
[Corection] Individual Text Node is created for every property, so when there are e.g. 4 "should be linked to text" properties, 4 individual text elements are created.
Regards,
Mark Shamoun said:Perhaps the new Item Type Text functionality may help
Thanks for pointing out that new functionality!
What's not clear is how the new Text Field is incorporated into a text element. Perhaps Marco Salino could provide a hint?
Regards, Jon Summers LA Solutions
Perhaps the new Item Type Text functionality may help:
New in MicroStation CONNECT Edition Update 17 - Item Types - MicroStation Blog - MicroStation - Bentley Communities
Mark
OpenRoads Designer 2022 R3 (10.12) | Microstation 2023.1 | ProjectWise CE 3.4
Jing Jing said:We want the properties of item types being labelled next to those points
The way to label Item Type data is to use a text field in a text, text node or cell element. When editing text, you have the option to insert a text field that connects to an element. If that element includes Item data, you can pick one of those properties to display the data. Your text may include one or more text fields, each displaying a different element property.
Post a DGN file that includes your Item Type definition and tell us how you want to see those data.
N.B. MicroStation has had a different and unrelated technology, enter data fields, for decades. Enter data and text fields are two different technologies. Don't confuse them!