Dim swApp As SldWorks.SldWorks
Dim Part As SldWorks.ModelDoc2
Dim boolstatus As Boolean
Dim sketchSpl() As SketchSpline
Dim Px(10) As Double
Dim Py(10) As Double
Dim i As Long
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
boolstatus = Part.Extension.SelectByID("前视基准面", "LANE", 0, 0, 0, False, 0, Nothing)
Part.ClearSelection2 True