' ******************************************************************************
' swxJRNL.swj - journal recorded on 05/03/06 by Prof
' *****************************************************************************
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 ("C:\Documents and Settings\Prof\Mes documents\LABORATOIRE\Colles d'info\PCSI\Maxpid Meca3D\Modele_maxpid_en_vrac\EcrouBille.SLDPRT", 1, 0, "", longstatus, longwarnings)
Set Part = swApp.ActivateDoc ("EcrouBille")
swApp.ActiveDoc.ActiveView.FrameWidth = 1205
swApp.ActiveDoc.ActiveView.FrameHeight = 750
boolstatus = Part.Extension.SelectByID("", "FACE", -0.007384159844273, -0.01069926088059, -0.003805990717808, False, 0, Nothing)
boolstatus = Part.Extension.SelectByID("", "FACE", -0.002164098218291, -0.01281860674561, -0.003314184355645, False, 0, Nothing)
boolstatus = Part.Extension.SelectByID("", "FACE", -0.003133072166339, -0.0126168085821, -0.006346439536173, False, 0, Nothing)
boolstatus = Part.Extension.SelectByID("EcrouBille.SLDPRT", "COMPONENT", 0, 0, 0, False, 0, Nothing)
Part.DimPreferences
boolstatus = Part.Extension.SelectByID("EcrouBille.SLDPRT", "COMPONENT", 0, 0, 0, False, 0, Nothing)
Part.ClearSelection2 True
boolstatus = Part.Extension.SelectByID("EcrouBille.SLDPRT", "COMPONENT", 0, 0, 0, False, 0, Nothing)
Part.ToolsMassProps
' MSGBOX
' Enregistrer les modifications apportées à EcrouBille?

Part.ClearSelection2 True
Set Part = Nothing
swApp.CloseDoc "EcrouBille"
swApp.ExitApp
End Sub
