예제 #1
0
        /// <summary>
        /// 薄壁拉伸
        /// </summary>
        /// <param name="segment"></param>
        /// <param name="swApp"></param>
        public static void CreateCube(this SketchSegment segment, SldWorks swApp)
        {
            ModelDoc2 swDoc = (ModelDoc2)swApp.ActiveDoc;
            //bool boolstatus = false;
            Feature         myFeature = null;
            IFeatureManager featMan   = swDoc.FeatureManager;

            myFeature = featMan.FeatureExtrusionThin2(
                true,
                false,
                true,
                (int)swEndConditions_e.swEndCondMidPlane,
                (int)swEndConditions_e.swEndCondMidPlane,
                0.01,
                0.01,
                false,//拔模
                false,
                false,
                false,
                0,
                0,
                false,
                false,
                false,
                false,
                false,//merge
                0.022,
                0.022,
                0,
                2,
                0,
                false,
                0.005,
                false,
                true
                ,
                (int)swStartConditions_e.swStartSketchPlane,
                0.0,
                false
                );
        }