Open IDF in VBA

Open IDF in VBA

gdodman
Explorer Explorer
506 Views
1 Reply
Message 1 of 2

Open IDF in VBA

gdodman
Explorer
Explorer

 

 

We were in the prodcess of importing IDF files but this can take 20 to 30 minutes per file in some cases and we have many files. I first tried the Task Scheduler but it would not handle the IDF files ( the IDF file option is available on Routed system or Pro). So I've turned my attention to VBA.

 

I can use the ThisApplication.Documents.Open and pass it the file string but the process stops at the Dialog where you specify the results as a Part or an Assembly.

 

 Is there a method to specify the option in VBA? Would .Net be possible?

 

Thanks

G

0 Likes
507 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni

Ideally the IDF translator should allow you to specify the behavior you want through the API but unfortunately it does not.  A workaround that I believe should work in your case is to use a public domain utility called "Push the Freakin Button".  You can set it up to watch for specific dialogs and what button is should press when the dialog appears.  You'll continue to use your existing code that calls the Open method but this utility will watch for the "Import IDF Options" dialog to appear and press the OK button for you.  You can find the utility with a quick search on Google.

 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes