08-19-2015
10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-19-2015
10:28 AM
The code for setting the file path is the second to last line in the main sub. I modified the line below to save the file in a subfolder named "DXF".
An example of how the code for the file name works.
original ipt file: c:\inventor\part1.ipt
full_path(oDoc.FullFileName) returns c:\inventor\
filename_noext(oDoc.FullFileName) returns part1
So adding those with other parts yields
dxf file: c:\inventor\DXF\part1-6.dxf
'This line saves the dxf.
oDataIO.WriteDataToFile sOut, full_path(oDoc.FullFileName) & "DXF\" & filename_noext(oDoc.FullFileName) & "-" & TotQty & ".dxf"
Hope that explains it well.