Hallo,
I have a problem after the creation of a feature extrusion, the model view is changed after the extrusion.
I do not understand why it happens .
Have you any ideas for not changed the model view?
Precondition: (see the image)
- Part open with a sketch edited
- Run the macro
Postconditions: (see the image)
- the extrusion is created but the view of the model is rotated, see the triad of axes
This is the macro code (is only a little exsample)
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Sub main()
Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Dim myFeature As Object
Set myFeature = Part.FeatureManager.FeatureExtrusion2(False, False, False, 0, 0, 0.06, 0.01, False, False, False, False, 1.74532925199433E-02, 1.74532925199433E-02, False, False, False, False, True, True, True, 0, 0, False)
Part.SelectionManager.EnableContourSelection = False
End Sub