Am Facing a problem in understanding a statement in API programming in macros
This is the following program
Dim swApp As Object
Dim Part As Object
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.NewDocument("C:\ProgramData\SolidWorks\SolidWorks 2011\templates\Part.prtdot", 0, 0, 0)
Set Part = swApp.ActiveDoc
Part.SketchManager.InsertSketch True
Dim sksegment As Object
Set sksegment = Part.SketchManager.CreateCircle(0#, 0#, 0#, 0.06, 0, 0#)
Dim myfeature As Object
Set myfeature = Part.FeatureManager.FeatureExtrusion2(True, False, False, 0, 0, 0.05, 0.01, False, False, False, False, 0.098743763, 0.9879874373, False, False, False, False, True, True, True, 0, 0, False)
boolstatus = Part.Extension.SelectByID2("", "FACE", -0.01, 0.0006, 0.01, False, 0, Nothing, 0)
Part.SketchManager.InsertSketch True
Set sksegment = Part.SketchManager.CreateCircle(0#, 0#, 0#, 0.03, 0, 0#)
Set myfeature = Part.FeatureManager.FeatureExtrusion2(True, False, False, 0, 0, 0.02, 0.01, False, False, False, False, 0.0498734, 0.98783762, False, False, False, False, True, True, True, 0, 0, False)
The Line in Red mark is the Confusion when i change the values inside the statement the part does't create.
What are those values?
how does they affect the part creation?
Help me..
End Sub
SolidworksParts And Features