Message 1 of 4
Determine Feature Relationships via API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to find a way to determine all children and parents for a given Part feature, similar to the feedback provided by the Relationships dialog:
I can find the Parent sketch easily enough for sketched features, but in the above example I have the following additional dependencies:
- Extrusion 1 due to Sketch 4 being started on one of the faces of Extrusion 1
- Extrusion 2 due to an edge from Extrusion 2 being projected onto Sketch 4
Is there no simple way via the API to determine these relationships? The only thing I can think of is to do this:
For sketched features:
- Determine the reference for the sketch plane
- For each entity on the sketch determine if it is projected, and if so the feature from which it is projected
For placed features (e.g. fillet)
- Determine the feature inputs (face, edge, etc)
- For each input determine the associated features (not quite sure how to do this)
Is there no easier way to determine these relationships? I was hoping with the new Relationship browser in 2017 that there would be a straightforward API call but I can't find it.