Private Sub Command4_Click()
Set swApp = GetObject(, "SldWorks.Application")
Set Part =
网页链接 boolStatus = Part.Extension.SelectByID2("草图1", "SKETCH", 0, 0, 0, False, 0, Nothing, 0)
boolStatus = Part.Extension.SelectByID2("Line15@草图1", "EXTSKETCHSEGMENT", 5.27867543513025E-02, -0.04, 0, True, 0, Nothing, 0)
Part.ClearSelection2 True
boolStatus = Part.Extension.SelectByID2("草图1", "SKETCH", 0, 0, 0, False, 0, Nothing, 0)
boolStatus = Part.Extension.SelectByID2("Line15@草图1", "EXTSKETCHSEGMENT", 5.27867543513025E-02, -0.04, 0, True, 16, Nothing, 0)
Dim myFeature As Object
Set myFeature = Part.FeatureManager.FeatureRevolve2(True, True, False, False, False, False, 0, 0, 6.2831853071796, 0, False, False, 0.01, 0.01, 0, 0, 0, True, True, True)
网页链接 = False
End Sub