[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
  • Bruce,

    I've confirmed the reported behavior of the "Promote" process not retaining database linkages when processing grouped hole elements. Upon further investigation have determined that this is a known issue with an existing Bentley Map defect on file.

    Considering this problem and what you are attempting to accomplish as described in this thread I developed the attached Bentley Map MVBA promote1.mvba example application which uses Dynamic Feature Scoring (DFS) to locate elements (including grouped holes) to be promoted to native XFM polygon collections. During the promote process the existing business properties (from the database) are copied from the inferred DFS feature instances to the new native XFM polygon collection feature instance. The process of copying these business properties can be eliminated or modified as desired (e.g. maybe only copying the MSLINK value) to suite your specific data conversion needs.

    promote1.mvba

    Regards,

    Jeff Bielefeld [Bentley]



  • One again - Thanks for the explanation and the possible work-around. I will look at the provided example. It sounds like a possible good solution.

    As a FYI, I did write some VBA code that does take the Grouped Hole elements (i.e. un-named cells), read the User Data Linkage from the header and then "attach" the linkages to the sub-elements. I haven't attempted to "Promote" one of these via Bentley Map yet, but I think it may be another alternative for a one-time attempt....


    Thanks,
    Bruce
  • When I run the example code, once the inferred features are located and ILocateEvents_OnFinished() is called, the code attempts to find the PropertyName for "Mslink" in the function getMslinkPropertyName(). Once in that function, the property enumerator always comes back "empty" - no properties are found. Is that because we are searching the "inferred feature" and the created Feature Instance? Should the inferred feature return a valid property enumerator?
Reply Children