Message 1 of 8

Not applicable
05-10-2017
02:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I jhave searched thru the forum but i can not find exactly what i am searching for.
I want to publish some files PDF´s, DXF´s DWFx´s etc.
The root folder is the same for example C:\PDF, then i need the code to create a sub folder based on the files name, and put my files there.
So if i put out a PDF and a DWFx of the file 123abc.dwg they will be saved in C:\PDF\123abc
The code i now use to save fileformats.
SyntaxEditor Code Snippet
strFolder = "C:\Users\lelo\AppData\Local\Autodesk\Autodesk Sync\Cloud\lennart.losjo\Part Drawings\" & ThisDoc.FileName(False) 'without extension ThisDoc.Document.SaveAs(strFolder & (".dwfx") , True) ThisDoc.Document.SaveAs(strFolder & (".pdf") , True) ThisDoc.Document.SaveAs(strFolder & (".dxf") , True)
In this case i want to save the files to my A360 folder "part drawings" and i need the code to create a folder based on filename.
Thanks
Lennart
Solved! Go to Solution.