If I use the function from the Legend menu Data -> Export and after this decide to add the exported layer to the open map control a saved dspx file is incomplete.
For the new exported and added layer in the dspx file is no link to the .shp file.
The error seems in the "LoadFeatureSetAsLayer" function of the FeatureLayerActions.cs
The same happens if I use the export selected features in the table editor.
In a function of my ds application I use
Thanks for any help
Thomas
For the new exported and added layer in the dspx file is no link to the .shp file.
<member name="DataSet" type="32" arg="0">
Where correct is<member name="DataSet" type="30" arg="0">
<member name="FilePath" type="3" arg="0" value="MyExportedFile.shp" />
</member>
After edit the the dspx file manualy the the project opens correct.The error seems in the "LoadFeatureSetAsLayer" function of the FeatureLayerActions.cs
The same happens if I use the export selected features in the table editor.
In a function of my ds application I use
Dim pointLayer As IMapPointLayer = CType(Map1.Layers.Add(dlg.FileName), IMapPointLayer)
to add a new layer and this works fine saving the dspx file correct and load again.Thanks for any help
Thomas