- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings,
After the success of my initial coding endeavor, I would like to present my employer with another idea for a coding side project. Before I present the idea or dig into research on it, I'd thought I'd ask here to see if this is a possibility, or if I am mistaken in assuming it can be done...
I'd like to create an iLogic rule that resides in our assembly template (so it is always there when creating a new assy file) that will accomplish the following:
1) export the BOM to an Excel file that resides in the folder with the assy (creating it if it doesn't already exist)
2) rename the Excel file to include a current time/date stamp (We would only want to keep the one "latest & Greatest" file)
3) create a pdf from the Excel file (with the same date stamped filename) and open it.
I am fairly certain I can accomplish this with iLogic, but here's the caveat:
I want to use VBA to create an application for this that a non-Inventor user can run from their desktop. Essentially, this would give admin the ability to pull a BOM report without requesting it from a designer. My thought process is that as long as the iLogic rule resides inside of the assemblies on the network, I could use VBA to launch the rule from any PC connected to the network...
I'm thinking there could be logistical/permission issues if someone happens to be in the assembly when Admin runs the app. Even if the app can only pull the last saved version of the BOM, that would be acceptable for the purposes at hand.
If anyone can save me considerable time and frustration by informing me if this is just wishful thinking, I'd be both humbled and grateful.
If this can be accomplished, I'd like to try to piece it all together myself before I return for advice/help from the forum if I hit a wall...
FYI - I have thought about just creating a trigger event that creates/updates the spreadsheet & pdf every time the assembly is saved, but that is kind of overkill, and may lead to the assumption (by Admin) that the assy is completed and released. If they use a desktop app to pull the report, the assumption would always be that it is a preliminary report (and if this all seems doable, I may add a watermark to the pdf output that indicates the design is not released).
As always, thank you to all!
Solved! Go to Solution.