Hello,
actually working on an Addin in which I need to edit the selected Sheetmetal Cornerfeature's definition. Currently there is no real option for this, since the CornerFeature.Definition is readonly.... My current workaround is to copy the definition, delete the original feature, create a new one, pass the name of the original, and so on... since this results in a change of the feature generated edge/face ID's, relying features get corrupt.
I generally miss a common concept for editing Features by API. All of them are inherited from Partfeature, aren't they? Could a common Edit-Concept be implemented on this level???
I also miss the "Start/ExitEdit" method itself for most features, I believe to seen it on some Partfeature's help in the doc. In my understanding this shall maintain the temporary suppression of the feature and the Browser-node appearance with grayed out subtree, as it is in Inventor's own editing state.....
Previewhandling might be another Idea, I just put here my raw thought's on it... when editing a feature via API (speaking of "standard" features not clientfeatures though), there should be a method "GeneratePreview", which generates the Clientgraphics during edit.... Now I unsuppress the feature after editing its definition, collect the faces+edges created, copy them to the clientgraphics, suppress the feature again to mimic a preview.... this is the only way I found so far, but it "stinks", I know. Not to mention the terrible performance of this workflow....
BR,
Daniel
Show More