' ******************************************************************************
' swxJRNL.swj - journal recorded on 01/14/06 by MARC
' ******************************************************************************

Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long
Dim Annotation As Object
Dim Gtol As Object
Dim DatumTag As Object
Dim FeatureData As Object
Dim Feature As Object
Dim Component As Object
Sub main()
Set swApp = CreateObject ("SldWorks.Application")
Set Part = swApp.OpenDoc4 ("C:\Mes documents\Mécanique\examens\BEP CCF SolidWorks\Boîte Prise de force\BOITE PRISE DE FORCE boitier coupé.SLDASM", 2, 0, "", longstatus)
Set Part = swApp.ActivateDoc ("BOITE PRISE DE FORCE boitier coupé")
Part.SelectByID "AXE 5-1@BOITE PRISE DE FORCE boitier coupé", "COMPONENT", 0, 0, 0
Part.SelectByID "AXE 5-1@BOITE PRISE DE FORCE boitier coupé", "COMPONENT", 0, 0, 0
Part.EditPart
Part.ClearSelection
Part.SelectByID "AXE 5-1@BOITE PRISE DE FORCE boitier coupé", "COMPONENT", 0, 0, 0
Part.SetPickMode
Part.ClearSelection
Part.SetPickMode
Part.SelectByID "AXE 5-1@BOITE PRISE DE FORCE boitier coupé", "COMPONENT", 0, 0, 0
Part.SelectByID "AXE 5-1@BOITE PRISE DE FORCE boitier coupé", "COMPONENT", 0, 0, 0
Part.ClearSelection
Set Part = Nothing
swApp.CloseDoc "BOITE PRISE DE FORCE boitier coupé"
Set Part = swApp.OpenDoc4 ("C:\Mes documents\Mécanique\examens\BEP CCF SolidWorks\Boîte Prise de force\BOITE PRISE DE FORCE boitier coupé.SLDASM", 2, 0, "", longstatus)
Set Part = swApp.ActivateDoc ("BOITE PRISE DE FORCE boitier coupé")
Part.SelectByID "Ass 1-1@BOITE PRISE DE FORCE boitier coupé/axe 1-1@Ass 1", "COMPONENT", 0, 0, 0
Part.SelectByID "Ass 1-1@BOITE PRISE DE FORCE boitier coupé/axe 1-1@Ass 1", "COMPONENT", 0, 0, 0
Part.OpenCompFile
swApp.LoadFile2 "C:\Mes documents\Mécanique\examens\BEP CCF SolidWorks\Boîte Prise de force\axe 1.SLDPRT", ""
Set Part = swApp.ActiveDoc
Set Part = swApp.OpenDoc4 ("C:\Mes documents\Mécanique\examens\BEP CCF SolidWorks\Boîte Prise de force\axe 1.SLDPRT", 1, 0, "", longstatus)
Set Part = swApp.ActivateDoc ("axe 1")
Part.ClearSelection
Set Part = Nothing
swApp.CloseDoc "axe 1"
Set Part = swApp.ActivateDoc ("BOITE PRISE DE FORCE boitier coupé")
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
Part.SelectByID "AXE 5-1@BOITE PRISE DE FORCE boitier coupé", "COMPONENT", 0, 0, 0
Part.SelectByID "AXE 5-1@BOITE PRISE DE FORCE boitier coupé", "COMPONENT", 0, 0, 0
Part.OpenCompFile
swApp.LoadFile2 "C:\Mes documents\Mécanique\examens\BEP CCF SolidWorks\Boîte Prise de force\AXE 5.SLDPRT", ""
Set Part = swApp.ActiveDoc
Set Part = swApp.OpenDoc4 ("C:\Mes documents\Mécanique\examens\BEP CCF SolidWorks\Boîte Prise de force\AXE 5.SLDPRT", 1, 0, "", longstatus)
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
Set Part = swApp.ActivateDoc ("AXE 5")
Part.ClearSelection
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ExitApp
End Sub
