Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automatically export parts list

1 REPLY 1
Reply
Message 1 of 2
reginaldmb
283 Views, 1 Reply

Automatically export parts list

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

1 REPLY 1
Message 2 of 2
adam.nagy
in reply to: reginaldmb

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report