Message 1 of 4
.idw Export .PDF with revision
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying the code of ItsaCADworld.
But I cant get the code to work. The code is the same as the one in the video.
And is it possible to automatically put "REV"_"Revision_Number" behind the exported file name?
WorkspacePath = ThisDoc.WorkspacePath() WorkspacePathLength = Len(WorkspacePath) PathOnly = ThisDoc.Path DirectoryPath = Strings.Right(PathOnly, PathOnly.Length - WorkspacePathLength) PDFPath = "C:\PDFs\" & DirectoryPath If (Not System.IO.Directory.Exists(PDFPath)) Then System.IO.Directory.CreateDirectory(PDFPath) End If ThisDoc.Document.SaveAs(PDFPath & "\" & ThisDoc.FileName(False) & ".pdf" , True)