Using Microstation element ID in BentleyMap database?

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.

Parents
  • 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]



Reply
  • 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]



Children