- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
@eric.frissell26WKQ wrote:
As of now I have a few macros saved into one .ivb file in our vault, so our users have to run a get on the file, then open VBA editor, load the project, create modules under ApplicationProject, copy the code from the .ivb file modules, then paste it into the ApplicationProject module. It's incredibly irritating because I want the application to just point to one file. If I edit the code, the users can run a get on the file and it updates. It should be that simple but I can't find out how to do it
@CadUser46 may have already explained this to you in his PM, but I think you're overcomplicating this. What you're describing that you want is already exactly what it does.
- Make one file with your macros in it (all modules and forms in the same file). Rename that file to whatever you want (I typically use the software version, Ex. "Macros 2020").
- In Inventor's Application Options, set the Default VBA Project to use that file.
- Distribute that file to other users however you choose to do so, and set their Application Options to point to it.
The actual distribution can be done several different ways:
- Manually copying and pasting.
- Batch file
- Vault "Get"
- Shared location on a network drive (everyone points to the same copy).
There is no need to copy modules to each user's ApplicationProject. There is also no need to tell Inventor to load the project each time. Depending on how you do the file naming, there is likely no need for the individual users to do anything when you make a change, other than possibly restarting Inventor.