iLogic, save .idw sheet as PDF
Not applicable
06-21-2019
03:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
We have this small code running in Inventor which auto saves a PDF copy of all .idw files when we save them.
But something is wrong and it comes with an Error message
“Argument ”Length” has to be equal or lager then 0”
Code looks like this
WorkspacePath = ThisDoc.WorkspacePath() WorkspacePathLength = Len(WorkspacePath) PathOnly = ThisDoc.Path DirectoryPath = Strings.Right(PathOnly, PathOnly.Length-WorkspacePathLength) PDFPath = "\\sbs 2011\files\Z\Tegninger PDF" If(Not System.IO.Directory.Exists(PDFPath)) Then System.IO.Directory.CreateDirectory(PDFPath) End If ThisDoc.Document.SaveAs(PDFPath & "\" & ThisDoc.FileName(False) & ".pdf" , True)
