hurley710
Automotive
- Feb 4, 2009
- 59
Currently, we export drawings into an Electronic Data Management System using GRIP. Drawings are released into .hgl format. Is there a way to automate an export of these drawings as .pdf?
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.
dim strRelease as string
dim strECR as string * 5
dim strPartNumber as string
dim intResponse as integer
'retrieve RELEASE STATUS attribute
strRelease = workPart.GetStringAttribute("RELEASE STATUS")
if strRelease = "PROD" then
'PROMPT QUESTION "IS ECR PENDING?"
'PROMPT CHOICES: YES OR NO
if msgbox("Is ECR pending?", vbyesno + vbquestion) = vbyes then
'if YES, then
strECR = InputBox("Enter ECR Number")
printPDFBuilder1.Filename = "N:\ug\hpgl\" & "ECR" & strECR & "_" & strPartNumber & ".pdf"
else
'IF NO,
printPDFBuilder1.Filename = "N:\ug\hpgl\" & strPartNumber & ".pdf"
end if
end if