I have imported a shape file (from ESRI) into Microstation (not Bentley Map). This shape file includes some parcels (polygons) and their attributes. I can see the attributes of each polygon in Microstaion.
Question: How can I label polygons based on the attributes (e.g. name) in Microstation? I need all polygons to have their names labelled in the centre of polygons.
How can I do that in Microstation?
Hi Davood,
Unknown said:How can I label polygons based on the attributes (e.g. name) in Microstation?
in addition to Andrew's answer: The solution can be different depending on what MicroStation version do you use. Andrew's solution is general, but MicroStation CONNECT Edition offers enhanced labeling functionality, so maybe the process will be simpler there. But I have had no time to do any hands on tests.
Unknown said:I need all polygons to have their names labelled in the centre of polygons.
A crucial question is how many polygons you need to label? Using fileds mentioned by Andrew requires to place every text individually including to select linked element and to choose attribute to display, so it can be time consuming if many polygons exist.
An alternative solution can be to create small VBA macro that will iterate through shapes in a selected level and will place the text automatically in the shapes centroid. The difference is that no fields (dynamic link to element property) can be used, because there is no API to access this functionality from VBA. But I guess static texts seems to be no problem in this case.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point