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.
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.