Hello
In the application a feature has to get a new geometry, not modify.The function I use works under SS2 but in SS3 it fails with shapes / group holes
I do this
1 - remove the existing subfeatures
m_Feature.RemoveSubFeature(item);GeoOperate.FeatureMgr.DeleteFeatureByUuid(App.ActiveDesignFile, item.Uuid, true);
2 - add the new geometry
BXFT.feature subFeature = GeoOperate.FeatureMgr.CreateFeature(item);subFeature.Name = m_ComponentName;subFeature.ApplyAttributeChanges();m_Feature.AddSubFeature(subFeature);
m_Feature.ApplyAttributeChanges();
3 - write the feature (here the exception occurs)
m_feature.write(true)
The feature is locked before.
But what I am doing wrong?
Greeting Olaf
Hi Olaf,
I have no exact answer to your code (I guess Jeff will ;-) , but I am quite sure the general reason is that as internal format of XFM in DGN changed between SS2 and SS3 (XML fragments > XAttributes), also the implementation of shapes with holes changed completely (check what Element Information tells you in SS2 and SS3 for visualy the same object). And may be because of that the code has to be modified to reflect these changes?
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point