メッセージ1/7
C# - Get face of extruded hole?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- パーマリンクを表示
- 印刷
- 報告
I'm trying to get the face plane of an extruded hole (blue in picture below) to start a sketch. I'm using the CustomCommand addin example as a reference and this works to get the extruded hole:
EnableInteraction()
{
...
m_selectEvents.AddSelectionFilter(SelectionFilterEnum.kPartFaceCylindricalFilter);
...
}
And in OnPreSelect , preSelectEntity even evaluates to Face. But if I pass the Face to AddByPlaneAndOffset it throws an exception about the face being a wrong parameter. It works fine if I change the selection filter to kPartFacePlanarFilter and select the actual face (red in picture).
Is there a way to use kPartFaceCylindricalFilter as my selection filter and get the face of the cylinder? I spent a good 8 hours looking in the API reference and trying different things. Picture for reference: