I have been working on a utility data model in GSA and it seems that in some cases the promote tool does not delete the existing element. I believe have created the operations and methods correctly to eventually update the command manager with a place and promote command. My data model contains only RDBMS attributes.
It seems that if the element is a previous XFM feature where the attributes (MSLINK) have been removed, the promote tool cannot delete the existing element. And even if I try to delete the element manually after the attempt to promote it, it is simply not possible. If I close Bentley Map and reopen or compress the designfile, then I can delete the 'old' element.
If I create an entirely new (Microstation) element the promote tool works as expected.
I am using Bentley Map SS4 08.11.09.882.
Has anyone experienced the same behavior? Any help is appreciated.
I believe it should be possible to promote elements (XFM features) that somehow have lost their MSLINK.
When you promote these elements, are these elements in their source model or being pulled as a reference?
Are the elements editable?
If they are being pulled from another model, and if you are using a Map Manager, make that element layer active for editing: Right Click> Make Active for Edit.
More information: https://communities.bentley.com/products/geospatial/desktop/w/geospatial_desktop__wiki/38136/--edit-features-in-reference-with-make-active-for-edit
This should delete the elements when you have chosen to 'Delete existing elements after Promote'
I hope this helps! Please correct me if I am wrong in understanding your query.
Please update in case you need more information.
All the elements I have tested with are editable and in the active model.
For verification I tried with a simple data model with just one feature. This is what I did.
1. I start by placing a XFM feature using the PLACE command from the command manager.
2. Then I remove all database linkages using the 'Detach database linkage' tool from the Database toolbox
3. Then if I try to promote this element and choose to 'Delete existing elements after Promote', the existing element is not deleted. Only if I compress or reopen the file I can delete the element.
As I mention I only get this behavior when I start with a XFM feature and remove the MSLINK before I promote the element.
I hope this clarifies it.
Can you please provide me your project schema XML and a sample design file? You can email directly to me: firstname.lastname@example.org thank you.
Pick the tool. Adjust the settings. Follow the prompts.