' ******************************************************************************
' swxJRNL.swj - journal recorded on 07/22/00 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.OpenDoc2 ("D:\Projects\altex\drawings\ductprop\altex-duct-1.0.SLDPRT", 1, 0, 0, 0, longstatus)
Set Part = swApp.ActivateDoc ("altex-duct-1.0.SLDPRT")
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.ActiveDoc.ActiveView.FrameState = 1
Part.ToolsMassProps
Part.AndSelectByID "altex-duct-1.0.SLDPRT", "COMPONENT", 0, 0, 0
Part.ClearSelection
Set Part = swApp.OpenDoc2 ("D:\Projects\altex\drawings\ductprop\altex-prop-1.0.SLDPRT", 1, 0, 0, 0, longstatus)
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
Set Part = swApp.ActivateDoc ("altex-prop-1.0.SLDPRT")
Part.ToolsMassProps
Part.AndSelectByID "altex-prop-1.0.SLDPRT", "COMPONENT", 0, 0, 0
Part.ClearSelection
Part.ActiveView().RotateAboutCenter 0.00325094, 0
Part.ActiveView().RotateAboutCenter 0.0487641, -0.0923773
Part.ActiveView().RotateAboutCenter 0.0682698, -0.125969
Part.ActiveView().RotateAboutCenter 0.0845245, -0.193153
Part.ActiveView().RotateAboutCenter 0.0227566, -0.0419897
Part.ActiveView().RotateAboutCenter 0.0325094, -0.0587856
Part.ActiveView().RotateAboutCenter 0.0357604, -0.0839794
Part.ActiveView().RotateAboutCenter 0.0357604, -0.0881784
Part.ActiveView().RotateAboutCenter 0.0812736, -0.0503876
Part.ActiveView().RotateAboutCenter 0.0195057, -0.0209948
Part.ActiveView().RotateAboutCenter 0.0130038, -0.0167959
Part.ActiveView().RotateAboutCenter 0.00325094, 0
Part.ActiveView().RotateAboutCenter 0.00650189, -0.00839794
Part.ActiveView().RotateAboutCenter 0.0260075, -0.0419897
Part.ActiveView().RotateAboutCenter 0.0227566, -0.0335918
Part.ActiveView().RotateAboutCenter 0.0292585, -0.0461887
Part.ActiveView().RotateAboutCenter 0.0195057, -0.0209948
Part.ActiveView().RotateAboutCenter 0, 0.00419897
Part.ActiveView().RotateAboutCenter -0.0682698, 0.0881784
Part.ActiveView().RotateAboutCenter -0.169049, 0.218346
Part.ActiveView().RotateAboutCenter -0.403117, 0.646641
Part.ActiveView().RotateAboutCenter -0.266577, 0.436693
Part.ActiveView().RotateAboutCenter -0.0812736, 0.197352
Part.ActiveView().RotateAboutCenter -0.00325094, 0.00419897
Part.ActiveView().RotateAboutCenter -0.00325094, 0.00419897
Part.ActiveView().RotateAboutCenter -0.00325094, 0.00839794
Part.ActiveView().RotateAboutCenter -0.00325094, 0
swApp.ExitApp
End Sub
