' ******************************************************************************
' swxJRNL.swj - journal recorded on 01/03/01 by grma
' ******************************************************************************

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.OpenDoc3 ("D:\Projects\altex\drawings\fasteners\lowhead8-32SHCS.PRT", 1, 0, 0, 0, 0, longstatus)
Set Part = swApp.ActivateDoc ("lowhead8-32SHCS.PRT")
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
Set Part = Nothing
swApp.CloseDoc "lowhead8-32SHCS.PRT"
Set Part = swApp.OpenDoc3 ("D:\Projects\altex\drawings\tailcone\tct.SLDASM", 2, 0, 0, 0, 0, longstatus)
' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\motor_mount.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\MOTOR.SLDASM.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\Actuator.Rod.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\lin1.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\lin2.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\actclamp.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\MOTOR_FLANGE.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\actjoint.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\linact_end.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\rodend.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\clevis.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\duct.SLDPRT.  Would you like to find it yourself?

' MSGBOX
' Unable to locate the file D:\Projects\altex\drawings\end_cone.SLDPRT.  Would you like to find it yourself?

Set Part = swApp.ActivateDoc ("tct.SLDASM")
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
Set Part = Nothing
swApp.CloseDoc "tct.SLDASM"
Set Part = swApp.OpenDoc3 ("D:\Projects\altex\drawings\LRS\LRS\ramp_auv.SLDASM", 2, 0, 0, 0, 0, longstatus)
Set Part = swApp.ActivateDoc ("ramp_auv.SLDASM")
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
Part.ViewDispTempRefaxes
Part.SaveAs2 "D:\Projects\altex\drawings\LRS\LRS\ramp_auv.TIF", 0, TRUE, FALSE
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ExitApp
End Sub
