I have three different feature definitions (XML files) in directories "MS_GEOPROJHOME" & "\xml\features\" and three in "MS_GEOWSHOME" & "\xml\features\" directory. I want to reset features from two DGN files and join them in one using VBA.
My code works as follows and it actually does what it is supposed to:
I have to reopen file so many times because I don't know better way to force PowerMap to read proper XML file and reset in proper symbology. Is there any other way to do so? It is really annoying for users to click „Yes“ on PM 'Save Changes' dialog 5 times. Or is there a way to automate clicking "Yes" bottun or avoid "Save changes" dialog?
So why are you constantly resetting the features ? I suppose this reset is for symbology reasons ( color, weight, scale, etc.). Do you have 3 different XFM schemas, or just one and you have made copies of the feature xml file 3 times and made minor edits from there ? I just don't understand why you are going thru this.
I have one schema and 3 copies of feature.XML file.
I have custom dashed lines with symbols in feature definition and I want to separate lines from symbols. First xml has custom line style with symbols, second custom line style without symbols (only stroke pattern) and third has line style that consists only of point symbols.
Why not have 2 seperate fetures ? One fo the point, one for the linear ? Use the "Place On' option for placing the point feature. This way you can either place or not place the point feature, seperate from the linear, all in the same session.
Our schemas are designed long time ago. This is special requirement that came out lately and will not be often used so application is better idea for now.
Then since you are changing one of the fundamental configuration varialbes of the workspace, you will need to exit PowerMap before each change and re-enter after the change is made, as you are doing now.
Jerry