Hello Bentley Communities!
I've got a problem. I've got a dgn file *** has been opened and worked on in PowerMap V8.1. There are typical polygons with very important for me User Atrribute (look at the attached pic - I know that my Attribute has ID 889 and is in hex format). Now I open this file in Bentley Map SS3 and I see not simple poylygons but every polygon is a polygon collection with one sub-feature. In BM SS3 I've got a vb script *** copies my User Attribute to table in a database, but it doesn't work well *** these polygon collections. I think solution for me would be a macro in PowerMap to label polygons with these User Attribute, but I don't know how to write it :-P
Any solutionts?
Thank's and regards
Hi Jan,
many changes and enhancements were implemented in recent versions of Bentley Map. They are e.g. different storage format (XML Fragments were replaced by XAttributes), new polygon type (associative areas were replaced by new element type) a also changes in DFS engine. I guess something from these changes is the reason of the behaviour you describe.
You did not provide too much information, dgn file example would be nice.
I have no any testing data (and have not SS1 installed), so I am not able to test it, but I guess you will have to accept the situation and to modify your code to work with a new polygon structure.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thanks for trying help. Of course first what I did, I saved project with conversion to new XFM format. But it didn't help.
One question: how can I attach some file?
Maybe I will describe whole problem.
Usually I've got a dgn file, that was edited in Power Map 08.01.01.06. Every element in the file has its own identification number used to link this element with its description in a sql server database, this is an User Data value (Attribute ID 889). Now I have to trasfer this data to Bentley Map SS3 and to database sql server (transfer geometry and link with description using this id). I do it that way:
- use "promote" method to move data
- use vba macro to overwrite attribute named ID_GL, with id from User Data
- write promoted and chaged elements into a database
I've done it many times with success, but now I've got a problem because..:
I've got a dgn file, which was created probably in "new" Power Map 08.11.07.xx. Some elements in this file have XFM Attributes (in Power Map 08.01.01.06 it's additional data block). In "old" Power Map, all polygons seems normal, but when I open this file in Bentley Map, I can't modify this elements. Of course, I have to save the file to new XFM format to edit this elements, but polygons with XFM attributes chagne into polygon collections with one element. I can transfer polygons into a database with promote method, but my vba macro doesn't work with this polygons (it doesn't overwrite ID's).
I've got this idea: in "old" Power Map label polygons with ID from user data (I must use a macro (in vba), but can't write it), next promote polygons to a database in Bentley Map, don't overwrite my ID_GL and use another gis program to spatial join labels and polygons from database. Maybe not simple way but probably effective :-)
I've got files with lines, points, polygons, but problem is only with polygons.
Regards