Message 1 of 2
adding a sub-component as a participant in an assembly feature in iLogic/API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a trick to making a sub-component participate in a feature (ExtrudeFeature, SweepFeature, etc.)?
I've tried using the SweepFeature.AddParticipant(ComponentOccurrence) and ExtrudeFeature(ComponentOccurrence) functions, and both work fine when the ComponentOcurrence is a direct component of the assembly.
However, if I explode down another level, and pass in a ComponentOccurrence for a sub-component, I get an INVALID_ARG error.
I can do this manually in the Inventor model browser.
I worked around the problem by collapsing the assembly structure, but now my customer is pressing me "to do it right".
If necessary, I'll reconstruct a the code snippet that was failing.
Any help is appreciated. thanks
