整个VB流程简介.doc_第1页
整个VB流程简介.doc_第2页
整个VB流程简介.doc_第3页
整个VB流程简介.doc_第4页
整个VB流程简介.doc_第5页
已阅读5页,还剩23页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

整个VB中各窗口的定义Form1 首页,进入系统 Form2 齿轮设计参数的初步选择 Form3 渐开线斜齿硬齿面的参数化设计 Form4 斜齿轮的三维造型判断 Form5 接触疲劳强度极限 Form6 弯曲疲劳强度极限 Form7 动载荷系数 Form8 使用系数 Form32 重合度系数Form9 齿间载荷分配系数 Form33 重合度系数Form10 齿宽系数 Form34 友情提醒Form11 复合齿形系数 Form12 应力修正系数 Form13 标准模数m Form14 材料弹性影响系数Form15 材料性质Form16 精度选择Form17 安全系数Form18 齿间载荷分配系数Form19 螺旋角系数Form20 铸造副轮式斜齿圆柱齿轮Form21 圆柱实体式斜齿轮Form22 实心斜齿轮Form23 腹板式斜齿圆柱齿轮Form24 圆柱实体式直齿轮Form25 渐开线直齿硬齿面的参数化设计Form26 渐开线斜齿软齿面的参数化设计Form27 实心直齿轮Form28 渐开线直齿软齿面的参数化设计Form29 腹板式直齿圆柱齿轮Form30 铸造副轮式直齿圆柱齿轮Form31 直齿轮的三维造型判断三维造型主要VB编程即Form4(以斜齿轮为例)Dim swApp As ObjectDim Part As ObjectDim boolstatus As BooleanDim longstatus As LongDim featuredata As ObjectDim feature As Object展角度数(弧度)Dim u As Double基圆直径Dim Db As Double齿顶圆直径Dim Da As Double法面模数Dim m As Double齿数Dim Z As Double分度圆直径Dim D As Double齿根圆直径Dim Df As Double压力角Dim As Double螺旋角Dim 1 As Double齿顶高系数Dim ha As Double顶隙系数Dim c As Double键槽宽及计算所用参数Dim b As DoubleDim bb As DoubleDim t1 As DoubleDim dd As DoubleDim L As DoubleDim b1 As DoubleDim hh As Double齿根圆角Dim r0 As DoubleDim pi As DoublePrivate Sub Command1_Click()pi = 3.14159265358979Z = Val(Text3.Text)m = Val(Text4.Text) = Val(Combo1.Text) * pi / 1801 = Val(Text2.Text) * pi / 180ha = Val(Combo2.Text)c = Val(Combo3.Text)D = Z * m / Cos(1)Da = (Z / Cos(1) + 2 * ha) * mDf = (Z / Cos(1) - 2 * ha - 2 * c) * mDb = Z * m * Cos() / Cos(1)Text8.Text = Str$(D)Text9.Text = Str$(Da)Text10.Text = Str$(Df)Text11.Text = Str$(Db)End SubPrivate Sub Command2_Click()On Error Resume Nextdd = Text6.TextIf dd = 12 Thenb = 4t1 = 1.8ElseIf dd = 17 Thenb = 5t1 = 2.3ElseIf dd = 22 Thenb = 6t1 = 2.8ElseIf dd = 30 Thenb = 8t1 = 3.3ElseIf dd = 38 Thenb = 10t1 = 3.3ElseIf dd = 44 Thenb = 12t1 = 3.3ElseIf dd = 50 Thenb = 14t1 = 3.8ElseIf dd = 58 Thenb = 16t1 = 4.3ElseIf dd = 65 Thenb = 18t1 = 4.4ElseIf dd = 75 Thenb = 20t1 = 4.9ElseIf dd = 85 Thenb = 22t1 = 5.4ElseIf dd = 95 Thenb = 25t1 = 5.4ElseIf dd = 110 Thenb = 28t1 = 6.4ElseEnd IfText12.Text = Str(b)Text13.Text = Str(t1)End SubPrivate Sub Command3_Click()pi = 3.14159265358979坐标函数点值:x,yDim x00() As DoubleDim y00() As DoubleDim x0() As DoubleDim y0() As Double坐标函数点值:p,qDim p00() As DoubleDim q00() As DoubleDim p0() As DoubleDim q0() As Double模数选择Dim ff As DoubleDim t0 As DoubleDim q As DoubleDim n As DoubleDim o As DoubleDim t As Double反向渐开线起始角度计算Dim s As DoubleDim inv As DoubleDim sb As DoubleDim j As DoubleDim nz As IntegerDim d1 As DoubleDim d2 As DoubleDim d0 As DoubleDim aa As DoubleDim i As IntegerReDim x0(10)ReDim y0(10)Dim k0 As IntegerReDim p0(10)ReDim q0(10)Dim l0 As IntegerReDim p00(10)ReDim q00(10)ReDim x00(10)ReDim y00(10)*创建齿轮全部参数计算*bb = Sqr(dd / 2) * (dd / 2) - (b / 2) * (b / 2)L = Val(Text1.Text) / (0.9)b1 = 1.6 * ddr = Df / 2 - (Sqr(dd / 2) * (dd / 2) - (b / 2) * (b / 2) + t1)nz = Val(Text7.Text)d1 = Da - 10 * md2 = 0.25 * (Df - 4 * m - b1)d3 = 0.5 * (Df - 4 * m + b1)d4 = 0.5 * (Da - 10 * m + b1)nz = Val(Text7.Text)齿轮的拉伸厚度hh = Val(Text1.Text)展角度数(弧度)u = Sqr(Val(Da) / Val(Db) 2 - 1)s = pi * m / 2inv = Tan() - sb = Cos() * (s + m * Z * inv)j = 2 * sb / Db等分步长g = u / 7齿根圆角r0 = 0.38 * mSet swApp = CreateObject(SldWorks.Application)Set Part = swApp.ActiveDocSet Part = swApp.NewpartIf (Part Is Nothing) ThenSet Part = swApp.Newpart()ElseIf (Part.gettype = 3) ThenSet Part = swApp.Newpart()End Ifboolstatus = Part.Extension.SelectByID2(前视, PLANE, 0, 0, 0, False, 0, Nothing, 0)Part.InsertSketch2 TrueIf Z = 41 ThenFor i = 1 To 8If t = u Then渐开线方程x0(i) = 0.5 * Db * Sin(t) - 0.5 * Db * t * Cos(t)y0(i) = 0.5 * Db * Cos(t) + 0.5 * Db * t * Sin(t)p00(i) = -0.5 * Db * Sin(t) + 0.5 * Db * t * Cos(t)q00(i) = 0.5 * Db * Cos(t) + 0.5 * Db * t * Sin(t)t = t + gp0(i) = p00(i) * Cos(j) + q00(i) * Sin(j)q0(i) = -p00(i) * Sin(j) + q00(i) * Cos(j)End IfNext iPart.ClearSelection2 TruePart.SetPickModexx = 0yy = 0.5 * Dfxx1 = xx * Cos(j) + yy * Sin(j)yy1 = xx * Sin(j) + yy * Cos(j)*样条曲线拟和*Part.SketchSpline 8, 0.001 * xx, 0.001 * yy, 0Part.SketchSpline 7, 0.001 * x0(1), 0.001 * y0(1), 0Part.SketchSpline 6, 0.001 * x0(2), 0.001 * y0(2), 0Part.SketchSpline 5, 0.001 * x0(3), 0.001 * y0(3), 0Part.SketchSpline 4, 0.001 * x0(4), 0.001 * y0(4), 0Part.SketchSpline 3, 0.001 * x0(5), 0.001 * y0(5), 0Part.SketchSpline 2, 0.001 * x0(6), 0.001 * y0(6), 0Part.SketchSpline 1, 0.001 * x0(7), 0.001 * y0(7), 0Part.SketchSpline 0, 0.001 * x0(8), 0.001 * y0(8), 0Part.SketchSpline 8, 0.001 * xx1, 0.001 * yy1, 0Part.SketchSpline 7, 0.001 * p0(1), 0.001 * q0(1), 0Part.SketchSpline 6, 0.001 * p0(2), 0.001 * q0(2), 0Part.SketchSpline 5, 0.001 * p0(3), 0.001 * q0(3), 0Part.SketchSpline 4, 0.001 * p0(4), 0.001 * q0(4), 0Part.SketchSpline 3, 0.001 * p0(5), 0.001 * q0(5), 0Part.SketchSpline 2, 0.001 * p0(6), 0.001 * q0(6), 0Part.SketchSpline 1, 0.001 * p0(7), 0.001 * q0(7), 0Part.SketchSpline 0, 0.001 * p0(8), 0.001 * q0(8), 0If m = 2 Thenff = -1Elseff = 1End IfPart.CreateArc2 0, 0, 0, 0.001 * x0(8), 0.001 * y0(8), 0, 0.001 * p0(8), 0.001 * q0(8), 0, 0Part.CreateArc2 0, 0, 0, 0.001 * xx, 0.001 * yy, 0, 0.001 * xx1, 0.001 * yy1, 0, ffboolstatus = Part.Extension.SelectByID2(Spline1, SKETCHSEGMENT, -1.927276746157E-05, 0.02090750823958, 0.02438438798193, True, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc2, SKETCHSEGMENT, -1.887677221489E-04, 0.02045552169375, 0.02438438798193, True, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Spline1, SKETCHSEGMENT, -1.927276746157E-05, 0.02090750823958, 0.02438438798193, False, 1, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc2, SKETCHSEGMENT, -1.887677221489E-04, 0.02045552169375, 0.02438438798193, True, 1, Nothing, 0)Part.SketchFillet2 0.001 * r0, 2Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Spline2, SKETCHSEGMENT, 0.0033988754854, 0.02073801328489, 0.02438438798193, True, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc2, SKETCHSEGMENT, 0.003907360349462, 0.0201730301026, 0.02438438798193, True, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Spline2, SKETCHSEGMENT, 0.0033988754854, 0.02073801328489, 0.02438438798193, False, 1, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc2, SKETCHSEGMENT, 0.003907360349462, 0.0201730301026, 0.02438438798193, True, 1, Nothing, 0)Part.SketchFillet2 0.001 * r0, 2Elsen = Sqr(Val(Df) / Val(Db) 2 - 1)o = (u - n) / 8For i = 1 To 9If t = u Then渐开线方程x0(i) = 0.5 * Db * Sin(n) - 0.5 * Db * n * Cos(n)y0(i) = 0.5 * Db * Cos(n) + 0.5 * Db * n * Sin(n)p00(i) = -0.5 * Db * Sin(n) + 0.5 * Db * n * Cos(n)q00(i) = 0.5 * Db * Cos(n) + 0.5 * Db * n * Sin(n)n = n + op0(i) = p00(i) * Cos(j) + q00(i) * Sin(j)q0(i) = -p00(i) * Sin(j) + q00(i) * Cos(j)End IfNext iPart.ClearSelection2 TruePart.SetPickModePart.SketchSpline 8, 0.001 * x0(1), 0.001 * y0(1), 0Part.SketchSpline 7, 0.001 * x0(2), 0.001 * y0(2), 0Part.SketchSpline 6, 0.001 * x0(3), 0.001 * y0(3), 0Part.SketchSpline 5, 0.001 * x0(4), 0.001 * y0(4), 0Part.SketchSpline 4, 0.001 * x0(5), 0.001 * y0(5), 0Part.SketchSpline 3, 0.001 * x0(6), 0.001 * y0(6), 0Part.SketchSpline 2, 0.001 * x0(7), 0.001 * y0(7), 0Part.SketchSpline 1, 0.001 * x0(8), 0.001 * y0(8), 0Part.SketchSpline 0, 0.001 * x0(9), 0.001 * y0(9), 0Part.SketchSpline 8, 0.001 * p0(1), 0.001 * q0(1), 0Part.SketchSpline 7, 0.001 * p0(2), 0.001 * q0(2), 0Part.SketchSpline 6, 0.001 * p0(3), 0.001 * q0(3), 0Part.SketchSpline 5, 0.001 * p0(4), 0.001 * q0(4), 0Part.SketchSpline 4, 0.001 * p0(5), 0.001 * q0(5), 0Part.SketchSpline 3, 0.001 * p0(6), 0.001 * q0(6), 0Part.SketchSpline 2, 0.001 * p0(7), 0.001 * q0(7), 0Part.SketchSpline 1, 0.001 * p0(8), 0.001 * q0(8), 0Part.SketchSpline 0, 0.001 * p0(9), 0.001 * q0(9), 0If m = 2 Thenff = -1Elseff = 1End IfSet SkLine = Part.SketchManager.CreateLine(0.001 * x0(9), 0.001 * y0(9), 0, 0.001 * p0(9), 0.001 * q0(9), 0)Part.CreateArc2 0, 0, 0, 0.001 * x0(1), 0.001 * y0(1), 0, 0.001 * p0(1), 0.001 * q0(1), 0, ffboolstatus = Part.Extension.SelectByID2(Arc1, SKETCHSEGMENT, -0.03098008010098, 0.06323865803604, -0.01282886907248, True, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Spline1, SKETCHSEGMENT, -0.004404306318567, 0.06694877271314, -0.02006958068209, True, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Arc1, SKETCHSEGMENT, -0.03098008010098, 0.06323865803604, -0.01282886907248, False, 1, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Spline1, SKETCHSEGMENT, -0.004404306318567, 0.06694877271314, -0.02006958068209, True, 1, Nothing, 0)Set SkArc = Part.SketchManager.CreateFillet(0.001 * r0, 2)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Spline2, SKETCHSEGMENT, 0.00189022329444, 0.06757223040967, -0.02170419132729, True, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc1, SKETCHSEGMENT, 0.003111891229199, 0.06536422521272, -0.02128825328338, True, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Spline2, SKETCHSEGMENT, 0.00189022329444, 0.06757223040967, -0.02170419132729, False, 1, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc1, SKETCHSEGMENT, 0.003111891229199, 0.06536422521272, -0.02128825328338, True, 1, Nothing, 0)Set SkArc = Part.SketchManager.CreateFillet(0.001 * r0, 2)Part.ClearSelection2 TrueEnd IfIf Da = 200 ThenCall stp2ElseCall stp3End IfEnd SubPrivate Sub stp1()d4 = 0.5 * (Val(Text9.Text) - 10 * Val(Text4.Text) + b1)b1 = 1.6 * Val(Text6.Text)If b1 = (d4 - 15) ThenCall chengxu1Call chengxu2Call chengxu3ElseCall chengxu1Call chengxu2End IfEnd SubPrivate Sub stp2()b1 = 1.6 * Val(Text6.Text)If b1 = Val(Text10.Text) ThenCall stp1ElseCall chengxu1End IfEnd SubPrivate Sub stp3()d3 = 0.5 * (Val(Text10.Text) - 4 * Val(Text4.Text) + b1)d2 = 0.25 * (Val(Text10.Text) - 4 * Val(Text4.Text) - b1)b1 = 1.6 * Val(Text6.Text)If b1 = (d3 - d2) ThenCall chengxu1Call chengxu2Call chengxu4ElseCall chengxu1Call chengxu2End IfEnd SubPrivate Sub chengxu1()*单齿扫描*If Z = 41 ThenPart.SetPickModeboolstatus = Part.Extension.SelectByID2(圆弧2, SKETCHSEGMENT, 0#, 0#, 0#, False, 0, Nothing, 0)Part.SketchManager.SketchTrim 0, -0.02597198274638, 0.0121451458585, 0boolstatus = Part.Extension.SelectByID2(前视基准面, PLANE, 0, 0, 0, False, 0, Nothing, 0)Part.ClearSelection2 TrueDim SkCircle As ObjectSet SkCircle = Part.SketchManager.CreateCircle(0, 0, 0, -0.01, 0.008, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Arc5, SKETCHSEGMENT, 0.001391762939043, 0.02684638327745, 0, False, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc3, SKETCHSEGMENT, -4.075297314084E-04, 0.0286456759479, 0, True, 0, Nothing, 0)Part.SketchAddConstraints sgTANGENTPart.SketchAddConstraints sgTANGENTPart.ClearSelection2 TruePart.SetPickModeboolstatus = Part.Extension.SelectByID2(圆弧5, SKETCHSEGMENT, 0#, 0#, 0#, False, 0, Nothing, 0)Part.SketchManager.SketchTrim 0, -0.007547580010976, 0.02758894850653, 0Part.SketchManager.InsertSketch Trueboolstatus = Part.Extension.SelectByID2(前视基准面, PLANE, 0, 0, 0, False, 0, Nothing, 0)Part.SketchManager.InsertSketch TruePart.ClearSelection2 TrueDim SkCircle1 As ObjectSet SkCircle1 = Part.SketchManager.CreateCircle(0, 0, 0, -0.007789225484427, 0.005142449265819, 0)ElsePart.SetPickModeboolstatus = Part.Extension.SelectByID2(圆弧1, SKETCHSEGMENT, 0#, 0#, 0#, False, 0, Nothing, 0)Part.SketchManager.SketchTrim 0, -0.032385, -0.08832272727273, 0boolstatus = Part.Extension.SelectByID2(前视基准面, PLANE, 0, 0, 0, False, 0, Nothing, 0)Part.ClearSelection2 TrueDim SkCircle5 As ObjectSet SkCircle5 = Part.SketchManager.CreateCircle(0, 0, 0, -0.04847936363636, 0.012954, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Arc4, SKETCHSEGMENT, -0.01472045454545, 0.04867563636364, 0, False, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc2, SKETCHSEGMENT, -8.179588484394E-04, 0.0946834671035, 0, True, 0, Nothing, 0)Part.SketchAddConstraints sgTANGENTPart.SketchAddConstraints sgTANGENTPart.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Arc4, SKETCHSEGMENT, 0.01239193860238, 0.0936428624903, 0, False, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc3, SKETCHSEGMENT, 0.009530275916094, 0.0946545614198, 0, True, 0, Nothing, 0)Part.SketchAddConstraints sgTANGENTPart.SketchAddConstraints sgTANGENTPart.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Point23, SKETCHPOINT, -0.001254970156208, 0.09446700218862, 0, False, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc4, SKETCHSEGMENT, -0.00388196132062, 0.0943655045828, 0, True, 0, Nothing, 0)Part.SketchAddConstraints sgCOINCIDENTPart.SketchAddConstraints sgCOINCIDENTPart.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Point25, SKETCHPOINT, 0.01064417474779, 0.09387380356913, 0, False, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc4, SKETCHSEGMENT, 0.01192944766318, 0.0937873909088, 0, True, 0, Nothing, 0)Part.SketchAddConstraints sgCOINCIDENTPart.SketchAddConstraints sgCOINCIDENTPart.ClearSelection2 TruePart.SetPickModeboolstatus = Part.Extension.SelectByID2(圆弧4, SKETCHSEGMENT, 0#, 0#, 0#, False, 0, Nothing, 0)Part.SketchManager.SketchTrim 0, -0.05802051461336, -0.07573403761701, 0Part.SketchManager.InsertSketch Trueboolstatus = Part.Extension.SelectByID2(前视基准面, PLANE, 0, 0, 0, False, 0, Nothing, 0)Part.SketchManager.InsertSketch TruePart.ClearSelection2 TrueDim SkCircle6 As ObjectSet SkCircle6 = Part.SketchManager.CreateCircle(0, 0, 0, -0.007789225484427, 0.005142449265819, 0)End IfIf Option1.Value = True Then*右旋*Option2.Value = FalsePart.InsertHelix False, False, False, True, 1, 0.001 * hh, 0.36 * hh / Val(Text2.Text), Val(Text2.Text) / 360, 0, 2.356194490192Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(草图1, SKETCH, 0, 0, 0, True, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(螺旋线/涡状线1, REFERENCECURVES, 0, 0, 0, True, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(草图1, SKETCH, 0, 0, 0, False, 1, Nothing, 0)boolstatus = Part.Extension.SelectByID2(螺旋线/涡状线1, REFERENCECURVES, 0, 0, 0, True, 4, Nothing, 0)Dim SweepFeature As ObjectSet SweepFeature = Part.FeatureManager.InsertProtrusionSwept3(False, False, 0, False, False, 0, 0, False, 0, 0, 0, 0, 1, 1, 1, 0, 1)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(Arc1草图2, EXTSKETCHSEGMENT, -0.004498801998925, 0.008177872502872, 0, False, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(Arc1草图2, EXTSKETCHSEGMENT, -0.004498801998925, 0.008177872502872, 0, False, 0, Nothing, 0)Part.BlankSketch*圆柱拉伸*Set SkCircle = Part.SketchManager.CreateCircle(0, 0, 0, 0.0005 * Df, 0, 0)Part.ClearSelection2 TruePart.SketchManager.InsertSketch Trueboolstatus = Part.Extension.SelectByID2(草图3, SKETCH, 0, 0, 0, False, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(草图3, SKETCH, 0, 0, 0, False, 0, Nothing, 0)Part.FeatureManager.FeatureExtrusion True, False, False, 0, 0, 0.001 * hh, 0.01, False, False, False, False, 0.01745329251994, 0.01745329251994, False, False, False, False, 1, 1, 1Part.SelectionManager.EnableContourSelection = 0boolstatus = Part.SetUserPreferenceToggle(7, True)Part.ActivateSelectedFeatureboolstatus = Part.Extension.SelectByID2(, AXIS, 7.337258463252E-04, -0.007662106334418, 0.006967274298294, True, 0, Nothing, 0)Part.DeSelectByID 拉伸1, BODYFEATURE, 0, 0, 0*全齿阵列*Part.ActivateSelectedFeatureboolstatus = Part.Extension.SelectByID2(, AXIS, -0.001624440257418, -0.00201428154743, 0.00628685830641, True, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(扫描1, BODYFEATURE, 0, 0, 0, False, 4, Nothing, 0)boolstatus = Part.Extension.SelectByID2(, AXIS, 0, 0, 0, True, 1, Nothing, 0)Set feature = Part.FeatureManager.FeatureCircularPattern2(Z, 2 * pi / Z, False, NULL, True)ElseIf Option2.Value = True Then*左旋*Option1.Value = FalsePart.InsertHelix False, True, False, True, 1, 0.001 * hh, 0.36 * hh / Val(Text2.Text), Val(Text2.Text) / 360, 0, 2.356194490192Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(草图1, SKETCH, 0, 0, 0, True, 0, Nothing, 0)boolstatus = Part.Extension.SelectByID2(螺旋线/涡状线1, REFERENCECURVES, 0, 0, 0, True, 0, Nothing, 0)Part.ClearSelection2 Trueboolstatus = Part.Extension.SelectByID2(草图1, SKETCH, 0, 0, 0, False, 1, Nothing, 0)

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论