Page 1 of 1

Finding specific faces of inserted parts

Posted: Fri Feb 11, 2022 7:26 pm
by josh
I'm wanting to use InsertPart3 to stick a derived part into another part at a few places. I'd like to use mate constraints rather than just setting the transform so that these inserted bodies move appropriately when the design changes. I see how to add mate constraints to the DerivedPartFeatureData, but I'm having trouble figuring out how to pick the faces of the inserted part that I want to use for mating. The user will select the appropriate faces of the base part, but I want to automatically select the faces of the inserted part.

I know which face it is that I want in the model of the inserted part, but I can't get that face in the context of the part it's inserted into. If I were inserting parts into an assembly, I could use GetCorresponding, but that doesn't work when inserting parts into a part. I thought about assigning names to the faces of the original part, but these are not carried over when inserting into another part.

I thought about transferring the planes when inserting, but this does't work because the relationship between the inserted body and the planes is not maintained. When you use constraints to locate the body, the planes don't actually move along with it.

I'm just about down to the option of making special cuts in the various faces of the insert part so that the areas of the faces I care about are unique, and I can just iterate through the body's faces until I find the one that has the area I know it's supposed to have....

Re: Finding specific faces of inserted parts

Posted: Sat Feb 12, 2022 9:35 pm
by artem