Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I have two parts as occurrences in an assembly, how can I programatically constraint two workplanes (one from each part) to a flush constraint.
In C++ would be lovely, but any help happily accepted!
My problem is that I can get the Occurrences, say ...
CComPtr<ComponentOccurrence> pTube1Occ = ...
CComPtr<ComponentOccurrence> pTube2Occ = ...
...but I don't know how to delve into these two pointers to get hold of two named workplanes within them. I'd then pass the two workplanes (somehow?!) to the AddFlushConstraint function.
get_SurfaceBodies doesn't seem right and neither does get_SubOccurrences.
Solved! Go to Solution.