[CONNECT C++] Loop TextFields in existing text element and then get field properties and set field Properties?

Could anyone offer any help with how to do this? I see a TextFieldDictionary in the API. but not really sure how to implement this.

what im trying to do is for a given text element get all the text fields that are linked to a property of a item type. as well as change what property that field is linked to.

I used the code from Yongan.Fu in post https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/180135/msce-c-textblock to create a text field but that's pretty much the only example of textfields I could find.

JD

Parents
  • The way the the API treats text in memory in the CONNECT MicroStationAPI is abstract.  It has nothing to do with DGN elements (Text and Text Nodes) and discards completely the V8 way of handling text elements directly with the mdlText_api.

    The TextBlock is the foundation of CONNECT MicroStationAPI  text handling.  It is well-documented in MicroStationAPI  help.  There are examples but, perversely, they are in the deprecated mdlText_api documentation...

    mdlText_api deprecated

     
    Regards, Jon Summers
    LA Solutions

Reply
  • The way the the API treats text in memory in the CONNECT MicroStationAPI is abstract.  It has nothing to do with DGN elements (Text and Text Nodes) and discards completely the V8 way of handling text elements directly with the mdlText_api.

    The TextBlock is the foundation of CONNECT MicroStationAPI  text handling.  It is well-documented in MicroStationAPI  help.  There are examples but, perversely, they are in the deprecated mdlText_api documentation...

    mdlText_api deprecated

     
    Regards, Jon Summers
    LA Solutions

Children