' ******************************************************************************
' swxJRNL.swj - journal recorded on 06/02/06 by Nicolas
' *****************************************************************************
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Dim FeatureData As Object
Dim Feature As Object
Dim Component As Object
Sub main()

Set swApp = Application.SldWorks

Set Part = swApp.OpenDoc6 ("F:\SUJET DE CCF\CCF Pompe d'alimentation\Pompe d'alimentation Moteur Diesel\Excentrique.SLDPRT", 1, 0, "", longstatus, longwarnings)
Set Part = swApp.ActivateDoc ("Excentrique")
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
boolstatus = Part.Extension.SelectByID("Boss.-Extru.1", "BODYFEATURE", 0, 0, 0, False, 0, Nothing)
boolstatus = Part.Extension.SelectByID("Boss.-Extru.1", "BODYFEATURE", 0, 0, 0, False, 0, Nothing)
Part.FeatEdit
Part.ClearSelection2 True
Part.ShowNamedView2 "*Face", 1
boolstatus = Part.Extension.SelectByID("", "EDGE", -0.004436507936508, 0.02095396825397, 0, False, 0, Nothing)
Part.ClearSelection2 True
Part.InsertSketch2 True
' MSGBOX
' Enregistrer les modifications apportées à Excentrique?

Set Part = Nothing
swApp.CloseDoc "Excentrique"
swApp.ExitApp
End Sub
