Automatically export parts list

Automatically export parts list

Anonymous
Not applicable
367 Views
1 Reply
Message 1 of 2

Automatically export parts list

Anonymous
Not applicable

Hi

 


Could someone perhaps help me  out with some VB code to auto export a parts list in .idw to some excel file when saving the idw.  Also code to export the BOM automatically from a .iam file.  Currently I am doing it with an iLogic rule and event trigger, but copying the rules all over the place or using external rules is not really the ideal.....especially because you have to create the iTrigger for every new project.

 

Thanks in advance.

Reginald

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

adam.nagy
Autodesk Support
Autodesk Support

Hi Reginald,

 

Some info on creating an AddIn:

http://adndevblog.typepad.com/manufacturing/2012/05/creating-or-migrating-your-inventor-add-ins-to-t...

 

Then you just have to subscribe to the OnSave event:

http://modthemachine.typepad.com/my_weblog/2008/10/converting-vba-auto-macros-to-an-add-in.html

 

In the event handler you can export the PartsList to Excel using PartsList.Export()

 

Cheers, 



Adam Nagy
Autodesk Platform Services
0 Likes