
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello there!
We've written an Inventor AddIn that creates a ClientFeature in a part document using one or more NonParametricBaseFeature objects that get force-fed with the geometry we compute (through a TransientBRep object). The result of this is one solid. So far, this works well enough.
However, we've recently encountered a problem with drawings based on part documents like that: Dimensions (measures) added to the drawing get deleted when the NonParametricBaseFeature gets replaced by a new one, even if the two have the same topology or are, in fact, geometrically identical. I assume this is because the new feature has no relation to the original one and there is basically no way the drawing can know what geometry the dimension is referring to. So far, we assumed the references to geometry in a part document would be something like Solid(0).Face(0).Edge(0) etc, but this doesn't seem to be the case. Otherwise, replacing the feature with a new one that is identical would not destroy these references.
Is there a way to make this work?
Ideally, I would like to achieve the following: Through the use of ModelingEvents.OnClientFeatureDoubleClick our ClientFeature gets replaced by an updated version and all drawings referencing this feature get updated accordingly with all dimensions intact, as long as the changes only affect geometry and the topology stays the same.
PS: Currently we're working with Inventor 2013 and 2014, using the .NET API in C#.
Solved! Go to Solution.