- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings everyone,
I've got an interesting problem that I couldn't find any useful information on via Google searches, so I figured I'd pose it to you guys. Is it possible to run an Inventor Add-In and have it execute on multiple .IAM files at once?
Here's some more details - I've got a large library of wooden crate assembly models that my company uses for shipping our products to their job sites. I've recently developed an Add-In that, when executed on a single crate assembly model (that's actively open in Inventor, of course), will scan the assembly model for any components that have a custom user parameter named "lumber_cost". It then tallies up all of the lumber_cost values of every lumber component and stores the total in an auto-generated user parameter named "total_lumber_cost". It then takes the value of total_lumber_cost and stores it in the crate assembly model's Estimated Cost iProperty so that it can be referenced from Windows Explorer.
This Add-In works like a charm, but again I've got a large library of these crate assembly models to go through if I want every crate model to have its lumber cost stored in its Estimated Cost iProperty. Opening each crate model and running this Add-In would take quite a long time to do.
Is it possible to perhaps develop a variant of this single crate lumber cost calculator Add-In so that it can be directed to a directory of crate assembly models and go through the following steps:
- Open the first crate model in the directory.
- Scan & tally up its total_lumber_cost value.
- Assign the total_lumber_cost value to its Estimated Cost iProperty.
- Save & close the currently opened crate model.
- Open up the next crate model in the directory and repeat this process from Step 1, etc.
Any pointers on whether or not this kind of automation is even possible would be greatly appreciated! Thanks in advance for your help!
- Sincerely,
Vince
Solved! Go to Solution.