How to create a temporary BOM excel file

How to create a temporary BOM excel file

gustavo.cassel
Advocate Advocate
425 Views
3 Replies
Message 1 of 4

How to create a temporary BOM excel file

gustavo.cassel
Advocate
Advocate

Hello

Im searching for a way to export the BOM structured view as a excel file, but i dont want to every time delete this file when im done.

Is there a way to export the bom structured view as a excel temporary file? Then I do my things with the information that was in it and just set the excel object to nothing.

Thanks

0 Likes
Accepted solutions (2)
426 Views
3 Replies
Replies (3)
Message 2 of 4

basautomationservices
Advocate
Advocate
Accepted solution

You can create a temporary file, just delete it after you're done.

 

You could also store the bom information in a list and do with it what you want, then you do not need to use excel at all.

Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Smart Leader | Part Visibility Utility | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro


0 Likes
Message 3 of 4

gustavo.cassel
Advocate
Advocate

I can't store the information in a list because i need more than 1 information of the same .ipt or .iam, it like 5 informations of each.

Using a excel file it was easy to get the right info of a determined part or assembly. But i cant keep creating excel's files in my hard drive. I just want a way to create a "only virtual" excel file and work with the info.

If you know the answer for this i'll be gratefull.

0 Likes
Message 4 of 4

A.Acheson
Mentor
Mentor
Accepted solution

Export BOM via code to a set path and filename say "TempBOMExport" in the temp folder or wherever and use System.IO to check the path exists and if it does delete the path before you export. You end up with only one file on your drive and no manual user deletion simply save and close and it will remain there untill you export a new BOM. Does that fit the workflow you want? 

This post here post 1 uses that approach, change the path as you need.

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes