/// <summary> /// 检测草图可用的特征 /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_BASEEXTRUDE"/>:基本拉伸特征 /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_BASEEXTRUDETHIN"/>: 基本薄壁拉伸特征 /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_BOSSREVOLVE"/>:基本旋转特征 /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_LOFTSECTION"/>:放样草图块 /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_LOFTGUIDE"/>:放样引导线草图 /// </summary> /// <param name="ske"><see cref="ISketch"/> Interface</param> /// <param name="featProfileType"><see cref="swSketchCheckFeatureProfileUsage_e"/></param> /// <returns>Tuple result /// Item1: <see cref="swSketchCheckFeatureStatus_e"/> /// Item2: <see cref="int"/> OpenCount 开环数量 /// Item3: <see cref="int"/> ClosedCount 闭环数量 /// </returns> public static Tuple <swSketchCheckFeatureStatus_e, int, int> CheckFeatureUseEx(this ISketch ske, swSketchCheckFeatureProfileUsage_e featProfileType) { int openCount = 0; int closedCount = 0; var status = ske.CheckFeatureUse(featProfileType.SWToInt(), ref openCount, ref closedCount).CastObj <swSketchCheckFeatureStatus_e>(); return(new Tuple <swSketchCheckFeatureStatus_e, int, int>(status, openCount, closedCount)); }
/// <summary> /// 检测草图可用的特征 /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_BASEEXTRUDE"/>:基本拉伸特征 /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_BASEEXTRUDETHIN"/>: 基本薄壁拉伸特征/> /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_BOSSREVOLVE"/>:基本旋转特征/> /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_LOFTSECTION"/>:放样草图块/> /// <see cref="swSketchCheckFeatureProfileUsage_e.swSketchCheckFeature_LOFTGUIDE"/>:放样引导线草图/> /// </summary> /// <param name="ske"><see cref="ISketch"/></param> /// <param name="featProfileType"><see cref="swSketchCheckFeatureProfileUsage_e"/> Interface</param> /// <param name="openCount">开环数量</param> /// <param name="closedCount">闭环数量</param> /// <returns><see cref="swSketchCheckFeatureStatus_e"/></returns> public static swSketchCheckFeatureStatus_e CheckFeatureUseEx(this ISketch ske, swSketchCheckFeatureProfileUsage_e featProfileType, ref int openCount, ref int closedCount) { return(ske.CheckFeatureUse(featProfileType.SWToInt(), ref openCount, ref closedCount).CastObj <swSketchCheckFeatureStatus_e>()); }