- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a code that open all Drawing run an ilogic on the now open drawing that save the idw as an PDF and close the drawing.
and it was find as it is now.
The problem that I have is that I wanted to update the code so it send an copy of all the files to an network drev. So project leaders can review it
the folder need to be somthing like this H:\Review\<Partnumber of the Iam>\*.pdf
the files name will be somthing like this = <Partnumber> R<Revnummer>.pdf.
My program does create the files local but it seens just not to work then I try to copy it
I try using this code for copy files as the where made
oRevNum = iProperties.Value(oRefDoc.DisplayName, "Project", "Revision Number")
source = "C:\BDX Manager BC\TempReviewPDF\" & iProperties.Value("Project", "Part Number") & " R" & oRevNum & ".pdf"
oPath = "H:\2e. Tegnestue\10. Drawing Review" & "\" & iProperties.Value("Project", "Part Number") & "\"
destfile = oPath & iProperties.Value(oRefDoc.DisplayName, "Project", "Part Number") & " R" & oRevNum & ".pdf"
System.IO.File.Copy(source, destfile, True)
the code runs , without error but no folder or files is created
Solved! Go to Solution.