Message 1 of 5
DWF Export iLogic help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I am trying to run this DWF Creator ilogic.
How do I add to get it to either export with settings as complete or all sheets and first 3d model?
oPath = ThisDoc.Path
oName = "DWF"
oRevNum = iProperties.Value("Project", "Revision Number")
'get target folder path from the file's path + DWF
oFolder = "C:\_Vault\WS\TO BE REVIEWED"
'Check for the DWF folder and create it if it does not exist
If Not System.IO.Directory.Exists(oFolder) Then
System.IO.Directory.CreateDirectory(oFolder)
End If
'query user
question = MessageBox.Show("Is this an Initial Release Revision", "iLogic Question",MessageBoxButtons.YesNo,MessageBoxIcon.Question)
'set condition based on answer
If question = vbNo Then
'Publish document
ThisDoc.Document.SaveAs( oFolder & "\" & iProperties.Value("Project", "Part Number") & " - Rev " & iProperties.Value("Project", "Revision Number") & " " & iProperties.Value("Project", "Description") & (".dwf") , True)
End If
If question = vbYes Then
'Publish document
ThisDoc.Document.SaveAs( oFolder & "\" & iProperties.Value("Project", "Part Number") & " " & iProperties.Value("Project", "Description") & (".dwf") , True)
End If
MessageBox.Show("DWF saved to " & oFolder)