Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
pball
in reply to: Anonymous

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.

 

 

Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style