I have a part with the following features:
- several holes
- holes that have been created with a (rectangular) pattern feature
- mirror feature of the entire body
I need to access the faces of the holes in the API. This works perfectly for parts that have no MirrorFeature. But a customer needs to create parts left-handed and right-handed and thus mirrors the whole body along a plane. The mirrored holes still have faces, but the holes which were created with a (rectangular) pattern feature have no faces in the API even though you can see them in the part itself.
The API documentation says under RectangularPatternFeature.Faces:
The Faces collection object will return the faces that still currently exist in the part. For example, if a face has been consumed by additional modeling operations it will not be returned.
So, is there any way to access these missing faces? Or is there a way to create them temporarily (I could calculate the properties and geometry myself, like creating a point in TransientGeometry)?
Solved! Go to Solution.
Solved by DKonzelmann. Go to Solution.
If anyone is interested: I've found the solution after a tip from a colleague from our support team.
The face of the hole / pattern element appears in the faces of the MirrorFeature of the body, i. e. consumed by this feature (that's obviously what the API description meant). So all I have to do to access them is search there.
Can't find what you're looking for? Ask the community or share your knowledge.