Is it possible to transfer the element ID of objects from Microstation into BentleyMap to use as a unique identifier in the database? If so, how? I am trying to get the element ID of objects into the sdsID field as seen below. I was hoping that I could set it to auto-populate.
Unknown said:Is it possible to transfer the element ID of objects from Microstation into BentleyMap?
Bentley Map uses MicroStation as its platform. A graphic element in Map is a MicroStation DGN element, and hence already has an Element ID.
If that's not an answer to the question you thought you asked, please clarify the question.
You might also prefer to post your questions about Bentley Map to the appropriate Forum.
Regards, Jon Summers LA Solutions
This is not the answer I was looking for. I have clarified my question and moved it to the Bentley Map forum. What I am trying to do is get the element ID into the database ID field for each object.
Joshua,
Yes, it is possible in Bentley Map to automatically set a feature's property based on the element ID of the graphic element used for the root feature. I've attached a sample Bentley Geospatial Administrator schema XML which demonstrates how this can be done using an "editing" initial value key on the property. Please review the "Initial Values" section of the "ElementID" property of the "Pole" feature class in the provided schema.
Please keep in mind however that element IDs are only unique within design files, so if you require unique values across an entire database table for use as a primary key, element ID values might not be desirable since they can be repeated across multiple design files.
element_id1.zip
Regards,
Jeff Bielefeld [Bentley]
Jeff, thank you for the reply. To be honest, I had no expected the answer to be within XML. I have found the area you mentioned in the schema provided. My follow up question is, would changing my schema to match the one provided automatically populate each object with the element ID?
Thanks,
Josh
Joshua, using the Bentley Geospatial Administrator, you should be able to load your XML schema file and make similar "Initial Value" changes as seen in the following:
Please note this type of change will not change existing feature instances, only those that are placed as new or edited.