《3-特征造型.ppt》由会员分享,可在线阅读,更多相关《3-特征造型.ppt(32页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、特征造型特征造型 SW 二次开发VB讲座一一.特征实体造型特征实体造型特征造型 SW 二次开发VB讲座特征造型简述 特征实体造型是在草图编辑完成后,对该草图进行特征实体造型是在草图编辑完成后,对该草图进行的特征造型操作。特征造型分单一实体与多实体两的特征造型操作。特征造型分单一实体与多实体两种,这里主要讨论的是单一实体造型种,这里主要讨论的是单一实体造型在同一零件文档中一般包括单独的拉伸、旋转、放在同一零件文档中一般包括单独的拉伸、旋转、放样、或扫描等样、或扫描等*二二.拉伸语句拉伸语句特征造型 SW 二次开发VB讲座1.单侧拉伸Part.FeatureManager.FeatureExtru
2、sion2(True,False,False,0,0,0.04,0,False,False,False,False,0,0,False,False,False,False,True,True,True,0,0,False)2.反向拉伸Part.FeatureManager.FeatureExtrusion2(True,False,True,0,0,0.04,0,False,False,False,False,0,0,False,False,False,False,True,True,True,0,0,False)*二二.拉伸语句拉伸语句特征造型 SW 二次开发VB讲座3.双侧对称拉伸Part.
3、FeatureManager.FeatureExtrusion2(True,False,False,6,0,0.04,0,False,False,False,False,0,0,False,False,False,False,True,True,True,0,0,False)4.双侧不对称拉伸Part.FeatureManager.FeatureExtrusion2(False,False,False,0,0,0.04,0.01,False,False,False,False,0,0,False,False,False,False,True,True,True,0,0,False)*二二.拉伸
4、语句拉伸语句特征造型 SW 二次开发VB讲座5.拉伸拔模Part.FeatureManager.FeatureExtrusion2(True,False,False,0,0,0.04,0,True,False,True,False,0.1047197551197,0,False,False,False,False,True,True,True,0,0,False)6.拉伸到成形一点Part.Extension.SelectByID2(Point1草图2,EXTSKETCHPOINT,0,0,0,True,1,Nothing,0)Part.FeatureManager.FeatureExtrus
5、ion2(True,False,False,3,0,0,0,False,False,False,False,0,0,False,False,False,False,True,True,True,0,0,False)*二二.拉伸语句拉伸语句特征造型 SW 二次开发VB讲座7.拉伸到一面Part.Extension.SelectByID2(基准面1,PLANE,0,0,0,True,1,Nothing,0)Part.FeatureManager.FeatureExtrusion2(True,False,False,4,0,0,0,False,False,False,False,0,0,False,
6、False,False,False,True,True,True,0,0,False)8.完全贯穿Part.FeatureManager.FeatureExtrusion2(True,False,False,1,0,0,0,False,False,False,False,0,0,False,False,False,False,True,True,True,0,0,False)*二二.拉伸语句拉伸语句特征造型 SW 二次开发VB讲座9.到离指定面指定的距离Part.Extension.SelectByID2(基准面3,PLANE,0,0,0,True,1,Nothing,0)Part.Featu
7、reManager.FeatureExtrusion2(True,False,False,5,0,0.04,0.04,False,False,False,False,0,0,False,False,False,False,True,True,True,0,0,False)10.成形到实体Part.Extension.SelectByID2(曲面-拉伸1,SURFACEBODY,0,0,0,True,1,Nothing,0)Part.FeatureManager.FeatureExtrusion2(True,False,False,7,0,0,0,False,False,False,False,
8、0,0,False,False,False,False,True,True,True,0,0,False)*三三.旋转语句旋转语句特征造型 SW 二次开发VB讲座1.全圆周旋转Part.FeatureManager.FeatureRevolve(6.28318530718,False,0,0,0,True,True,True)2.旋转某一角度值Part.FeatureManager.FeatureRevolve(1.570796326795,False,0,0,0,True,True,True)*三三.旋转语句旋转语句特征造型 SW 二次开发VB讲座3.反向旋转某一角度值Part.Featur
9、eManager.FeatureRevolve(6.28318530718,True,0,0,0,True,True,True)4.两侧对称旋转Part.FeatureManager.FeatureRevolve(1.570796326795,False,0,1,0,True,True,True)*三三.旋转语句旋转语句特征造型 SW 二次开发VB讲座5.双向旋转Part.FeatureManager.FeatureRevolve(1.570796326795,False,0.7853981633975,2,0,True,True,True)6.旋转合并实体Part.FeatureManage
10、r.FeatureRevolve(1.5707963267,False,0,0,0,False,True,True)*四四.扫描语句扫描语句特征造型 SW 二次开发VB讲座1.随路径变化Part.Extension.SelectByID2(草图1,SKETCH,0,0,0,False,1,Nothing,0)Part.Extension.SelectByID2(3D草图1,SKETCH,0,0,0,True,4,Nothing,0)Part.FeatureManager.InsertProtrusionSwept3(False,False,0,False,False,0,0,False,0,0
11、,0,0,True,True,True,0,True)2.沿路径扭转Part.FeatureManager.InsertProtrusionSwept3(False,False,8,False,False,0,0,False,0,0,0,0,True,True,True,12.5663706143592,True)*五五.拉伸切除语句拉伸切除语句特征造型 SW 二次开发VB讲座1.单侧拉伸切除Part.FeatureManager.FeatureCut(True,False,True,0,0,0.115,0,False,False,False,False,0,0,False,False,Fal
12、se,False,False,True,True)2.两侧给定深度拉伸切除Part.FeatureManager.FeatureCut(False,False,True,0,0,0.115,0.01,False,False,False,False,0,0,False,False,False,False,False,True,True)*五五.拉伸切除语句拉伸切除语句特征造型 SW 二次开发VB讲座3.反侧拉伸切除Part.FeatureManager.FeatureCut(False,True,True,0,0,0.115,0.01,False,False,False,False,0,0,Fa
13、lse,False,False,False,False,True,True)4.完全贯穿拉伸切除Part.FeatureManager.FeatureCut(True,False,True,1,0,0.115,0,False,False,False,False,0,0,False,False,False,False,False,True,True)*五五.拉伸切除语句拉伸切除语句特征造型 SW 二次开发VB讲座5.成形到一顶点拉伸切除Part.Extension.SelectByID2(,VERTEX,0.16,0,0.05,True,1,Nothing,0)Part.FeatureManag
14、er.FeatureCut(True,False,True,3,0,0.01,0.01,False,False,False,False,0,0,False,False,False,False,False,True,True)6.成形到一面拉伸切除Part.Extension.SelectByID2(,FACE,0.1167617,0.0393075,0.0186552,True,1,Nothing,0)Part.FeatureManager.FeatureCut(True,False,True,4,0,0.01,0.01,False,False,False,False,0,0,False,Fa
15、lse,False,False,False,True,True)*五五.拉伸切除语句拉伸切除语句特征造型 SW 二次开发VB讲座7.单侧拉伸切除Part.Extension.SelectByID2(,FACE,0.09115,0.06259,0.036592,True,1,Nothing,0)Part.FeatureManager.FeatureCut(True,False,True,5,0,0.012,0,False,False,False,False,0,0,False,False,False,False,False,True,True)8.两侧对称拉伸切除Part.FeatureMana
16、ger.FeatureCut(True,False,True,6,0,0.115,0,False,False,False,False,0,0,False,False,False,False,False,True,True)*五五.拉伸切除语句拉伸切除语句特征造型 SW 二次开发VB讲座9.成形到实体拉伸切除Part.Extension.SelectByID2(拉伸拉伸1 1,SOLIDBODY,0,0,0,True,1,Nothing,0)Part.FeatureManager.FeatureCut(True,False,True,7,0,0.012,0,False,False,False,F
17、alse,0,0,False,False,False,False,False,True,True)10.拔模斜度拉伸切除Part.FeatureManager.FeatureCut(True,False,True,0,0,0.115,0,True,False,False,False,0.087266462599717,0,False,False,False,False,False,True,True)*六六.旋转切除语句旋转切除语句特征造型 SW 二次开发VB讲座1.旋转360度切除Part.FeatureManager.FeatureRevolveCut(6.28318530718,Fals
18、e,0,0,0,True,True)2.旋转角度切除Part.FeatureManager.FeatureRevolveCut(0.785398163397448,False,0,0,0,True,True)*六六.旋转切除语句旋转切除语句特征造型 SW 二次开发VB讲座3.旋转反向切除Part.FeatureManager.FeatureRevolveCut(5.10508806208341,True,0,0,0,True,True)4.旋转对称切除Part.FeatureManager.FeatureRevolveCut(0.785398163397448,False,0,1,0,True
19、,True)*六六.旋转切除语句旋转切除语句特征造型 SW 二次开发VB讲座5.旋转双向切除Part.FeatureManager.FeatureRevolveCut(0.392699081698724,False,5.10508806208341,2,0,True,True)*七七.倒圆角语句倒圆角语句特征造型 SW 二次开发VB讲座1.语句说明FeatureFillet(options,r1,ftyp,overFlowType,radii,setBackDistances,pointRadiusArray)Options为圆角功能选项,常用两种195与193195=1+2+64+128:O
20、ptions=swFeatureFilletPropagate+swFeatureFilletUniformRadius+swFeatureFilletAttachEdges+swFeatureFilletKeepFeatures193=1+64+128:Options=swFeatureFilletPropagate+swFeatureFilletAttachEdges+swFeatureFilletKeepFeatures*七七.倒圆角语句倒圆角语句特征造型 SW 二次开发VB讲座1.倒普通圆角Part.Extension.SelectByID2(“”,“EDGE”,0.06419868,
21、0.0501735,0.0248264,False,0,Nothing,0)Part.FeatureManager.FeatureFillet(195,0.004,0,0,0,0,0)2.等半径圆角Part.Extension.SelectByID2(,EDGE,0.047591,0.04992,0.025079,False,1,Nothing,0)Part.Extension.SelectByID2(,EDGE,0.081901,0.07102,0.024996,True,1,Nothing,0)Part.FeatureManager.FeatureFillet(195,0.004,0,0,
22、0,0,0)*七七.倒圆角语句倒圆角语句特征造型 SW 二次开发VB讲座3.圆角的切线延伸Part.FeatureManager.FeatureFillet(195,0.004,0,0,0,0,0)有切线延伸选择Part.FeatureManager.FeatureFillet(194,0.004,0,0,0,0,0)无切线延伸选择*七七.倒圆角语句倒圆角语句特征造型 SW 二次开发VB讲座4.多半径圆角Part.Extension.SelectByID2(“”,“EDGE”,0.0475907,0.0499208,0.0250791,False,1,Nothing,0)Part.Extens
23、ion.SelectByID2(“”,“EDGE”,0.0819011,0.0710028,0.0249961,True,1,Nothing,0)Dim radiiArray33 As VariantDim radiis33()As DoubleReDim radiis33(0 To 1)As Doubleradiis33(0)=0.004radiis33(1)=0.007radiiArray33=radiis33 Part.FeatureManager.FeatureFillet(193,0,0,0,(radiiArray33),0,0)*七七.倒圆角语句倒圆角语句特征造型 SW 二次开发V
24、B讲座5.变化圆角Part.Extension.SelectByID2(,EDGE,0.08,0.05,0.025,False,0,Nothing,0)Dim radiiArray6 As VariantDim radiis6()As DoubleReDim radiis6(0 To 1)As Doubleradiis6(0)=0.009radiis6(1)=0.004radiiArray6=radiis6Part.FeatureManager.FeatureFillet(193,0,1,0,(radiiArray6),0,0)*七七.倒圆角语句倒圆角语句特征造型 SW 二次开发VB讲座6.面
25、圆角Part.Extension.SelectByID2(,FACE,0.0892421419,0.0579958129,0.0249999999,True,2,Nothing,0)Part.Extension.SelectByID2(,FACE,0.0939673798,0.0499999999,0.0384381350,True,4,Nothing,0)Part.FeatureManager.FeatureFillet(195,0.009,2,0,0,0,0)*八八.倒斜角语句倒斜角语句特征造型 SW 二次开发VB讲座1.语句说明InsertFeatureChamfer(options,T
26、ype,width,angle,otherDist,vertexChamDist1,vertexChamDist2,vertexChamDist3)Options 01反转方向2保持特征 3反转方向与保持特征4切线延伸5反转方向与切线延伸 6保持特征与切线延伸7反转方向、保持特征与切线延伸与Type 1为角度与距离类型 2为距离与距离类型 3为顶点法倒角类型 18为等距离倒角类型*八八.倒斜角语句倒斜角语句特征造型 SW 二次开发VB讲座2.角度距离倒角Part.FeatureManager.InsertFeatureChamfer(0,1,0.005,0.7853981633975,0,0,
27、0,0)3.距离与距离倒角Part.FeatureManager.InsertFeatureChamfer(0,2,0.005,0,0.007,0,0,0)*八八.倒斜角语句倒斜角语句特征造型 SW 二次开发VB讲座4.等距离倒角Part.FeatureManager.InsertFeatureChamfer(0,18,0.008,0,0,0,0,0)5.顶点倒角Part.FeatureManager.InsertFeatureChamfer(0,3,0,0,0,0.01,0.013,0.02)*九九.阵列语句阵列语句特征造型 SW 二次开发VB讲座1.线性阵列Part.Extension.S
28、electByID2 特征选择(“拉伸3”,“BODYFEATURE”,0.075,0.021,0.042,False,4,Nothing,0)Part.Extension.SelectByID2(“”,“EDGE”,0.043,0,0.05,True,1,Nothing,0)1为第一方向的选择Part.Extension.SelectByID2(“”,“EDGE”,0,0.025,0.05,True,2,Nothing,0)2为第二方向的选择Part.FeatureManager.FeatureLinearPattern2(2,0.03,3,0.02,True,False,NULL,NULL
29、,False)*九九.阵列语句阵列语句特征造型 SW 二次开发VB讲座2.圆周阵列Part.Extension.SelectByID2 特征选择(“拉伸3”,“BODYFEATURE”,0.157,0.09,0.05,False,4,Nothing,0)Part.Extension.SelectByID2(“基准轴2”,“AXIS”,0.05,0.05,0.1,True,1,Nothing,0)1为旋转轴的选择Part.FeatureManager.FeatureCircularPattern2(4,0.7853981633974,False,NULL,False)*十十.镜像复制语句镜像复制语句特征造型 SW 二次开发VB讲座1.镜像复制Part.Extension.SelectByID2(“”,“FACE”,0.009,0.045,0.039,False,2,Nothing,0)2为基面或特面Part.Extension.SelectByID2(“”,“FACE”,0.072,0.024,0.042,True,1,Nothing,0)1为特征Part.FeatureManager.InsertMirrorFeature(False,True,False,False)*谢谢!*特征造型 SW 二次开发VB讲座