Clicking macros / VBA editor makes file dirty !?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok, so i have no idea where to go with this so i'm just posting it here.
Maybe others can confirm this behavior but here is what i'm seeing:
If i open a part i can see by the Vault status that it is "clean" (no asterisk to show that there are changes)
I then go to the "Tools" tab and hit "Macros"
I don't do anything else, just hit Cancel in the dialog box.
Then i refresh my Vault status and see an asterisk appearing...
I have an idea as to why this would happen, but i find it absolutely ridiculous that it does! ![]()
To elaborate on my example:
I have a macro to create a dxf from a flat pattern.
The macro is defined in the application project (default.ivb), so not in the document itself...
(If anyone wants to recreate, just copy the code example from the programming help)
When i have the VBA editor open, start with a "clean" file and run that macro from the VBA editor the file stays "clean" !
If i start with the same "clean" file but open the VBA editor by clicking the button and then running the same macro the file gets "dirty"...
If i start with the same "clean" file and hit the "macros" button, navigate to the macro and run it the file gets "dirty"...
I have also added the macro to the ribbon as a user command for easy access.
Running the macro with that button also makes the file get "dirty"...
This is still in IV2016, but i don't expect it to be different in IV2017.
I suspect the dirtying happens because Inventor loads the vba project into the active document, but if i run a macro from the application project through a user button on the ribbon i would expect to circumvent that...
Sadly it doesn't and all this is leaving me rather frustrated.... ![]()
Anyone have any suggestions?
Niels van der Veer
Inventor professional user & 3DS Max enthusiast
Vault professional user/manager
The Netherlands