[BM SS4] User Data Linkages and Group Hole Elements

In an earlier post (http://communities.bentley.com/products/geospatial/desktop/f/5924/t/116655) Jeff Bielefeld explained that graphics "Promoted" to a Native Feature still retain any source User Data Linkage information until they are posted into a Spatial Database Feature, providing you the opportunity to extract the linkage information and assign values as a property(s) of the feature. In "Promoting" existing data, I have run into instances where there are Grouped Hole elements with the User Data Linkage on the cell header component that "appears" to be lost when the "Promote" process creates the Native Feature. When you process the sub-features, the cell header is not included as a sub-feature of the feature.

One solution (the only one I can think of so far) is to "pre-process" the original data, and copy the User Data Linkage from the header of the Grouped Hole and attach it to the Grouped Hole components so it would be available when you process the Native Feature sub-features.

Are there any other approaches or methods to access those linkages on the Grouped Hole cell header?

Thanks

Bruce

Parents Reply Children
  • Bruce,

    I appreciate the additional sample data. I've been out of the office for the past few days travelling on business but earlier today using the new data I ran the attached promote2.mvba process which created 4 new polygon collection feature instances that I then successfully posted to a Microsoft SQL Server Spatial database instance.

    Before running the promote2.mvba process you will need to modify your DFS rules XML file so that the feature name attribute is different than that of the feature class name for the promoted feature instances. For example I used "MySourcePolygons" as seen in the following...

    ...which you will see referenced in the VBA code. This change is required so that XFM can enumerate the business property names on the inferred feature class and read the original MSLINK property value.

    To perform the data conversion I used the following steps:

    1. Modified the DFS rules file as described above.
    2. Started a new Bentley Map session using a Bentley Geospatial Administrator defined workspace that included a registered Microsoft SQL Server Spatial graphical source and a MS_GEOXFM_DYNAMICFEATURESCORING_FILES macro which referenced the DFS rules XML file.
    3. Entered "VBA RUN [promote2]Module1.promotePolygons Siteusepermit" and followed the prompt, pressing a Datapoint to accept and process the entire design file.
    4. Using "Analyze Feature" reviewed the result of the promote process, verifying that the ORACLE_LINK business property on each feature instance had the correct value.
    5. Performed a spatial "Post" operation to upload the promoted polygon collection feature instances to the spatial database.
    6. Performed a spatial "Erase" operation to remove from the session the locally cached polygon collection feature instances.
    7. Performed a spatial "Query" operation to fetch the polygon collection feature instances from the spatial database.

    Please note this promote process does not attempt to remove from the design file the original input MicroStation elements. I will leave that removal to your discretion.

    promote2.mvba

    Regards,

    Jeff Bielefeld [Bentley]