how to turn off prompt "Save changes to *****.ivb?" from VBA

how to turn off prompt "Save changes to *****.ivb?" from VBA

liminma8458
Collaborator Collaborator
1,651 Views
4 Replies
Message 1 of 5

how to turn off prompt "Save changes to *****.ivb?" from VBA

liminma8458
Collaborator
Collaborator

hi,

 

I have some add-ins from VB.NET and they have NO association with VBA in Inventor. But everytime after I run the add-ins and before I close Inventor, a prompt "Save changes to *****.ivb?" shows up, indicating I may change something in VBA code. A sample prompt is included in attached file.

 

My question is why this prompt shows up and how to silent it or turn it off automatically with API or whatever method?

 

Thanks

 

Limin

 

 

Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily

0 Likes
Accepted solutions (1)
1,652 Views
4 Replies
Replies (4)
Message 2 of 5

NachoShaw
Advisor
Advisor

Hi

 

to confirm if your vb.net is in fact, updating the ivb you could rename or copy / move the ivb to a different location then run the addin again. If the addin looks for the ivb, then you will know that it is changing something because it wont find and it will throw an error

 

Cheers

 

Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 3 of 5

liminma8458
Collaborator
Collaborator
Accepted solution

Thanks Nacho!

 

Although I have not try the way you recommended yet, I believe it will be very practical.

 

I just got a way to work out the problem. In the dialog of choosing Default VBA project in Application Options, as shown below, check the box "Check as read-only", the "Save..." prompt will not show up after I run my VB.NET program.

 

Untitled.jpg

Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily

0 Likes
Message 4 of 5

cadadmin
Advocate
Advocate

Thank you for this message. I have tried this and on some of the machines it works and others it does not. Anyone else know what may be causing this? Or alternative solutions to eliminate the annoying message?

0 Likes
Message 5 of 5

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Could you please make a screenshot of the references in your add in?

and post it.

 

To see what has been referenced.

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes