MachineSMMC
Industrial
- May 7, 2004
- 70
Is there anyway to link the save as pdf option in the file --> Save As Pulldown to a button or something to make it a little faster to do?
Thanks
Chris Tellers
Thanks
Chris Tellers
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ModName = Left(Model.GetTitle, InStrRev(Model.GetTitle, "Sheet") - 3)
Set swView = swDrawing.GetFirstView
out = 0
While swView.GetReferencedModelName = ""
Set swView = swView.GetNextView
out = out + 1
If out = 10 Then Exit Sub
If swView Is Nothing Then Exit Sub
Wend
sRefModelName = swView.GetReferencedModelName 'get name of referenced part
If swView.IsModelLoaded = False Then
swView.LoadModel 'load the model if it ain't
End If
Set TargetPart = swApp.OpenDoc6(sRefModelName, swDocASSEMBLY, swOpenDocOptions_Silent, "", IDontCare, IDontCare) 'activate the part
sPartNum = TargetPart.CustomInfo2("", "Part_Number")
If swDocType = swDocDRAWING Then
Set swDrawing = Model
Set swView = swDrawing.GetFirstView
out = 0
While swView.GetReferencedModelName = ""
Set swView = swView.GetNextView
out = out + 1
If out = 10 Then Exit Sub
If swView Is Nothing Then Exit Sub
Wend
sRefModelName = swView.GetReferencedModelName 'get name of referenced part
If Not swView.IsModelLoaded Then
swView.LoadModel 'load the model if it ain't
End If
Set TargetPart = swApp.OpenDoc6(sRefModelName, swDocASSEMBLY, swOpenDocOptions_Silent, "", IDontCare, IDontCare) 'activate the part
sPartNum = TargetPart.CustomInfo2("", "Part_Number")
End If