How to suppress the checkout prompt dialog when altering a PropertySet value?

How to suppress the checkout prompt dialog when altering a PropertySet value?

Anonymous
Not applicable
1,481 Views
7 Replies
Message 1 of 8

How to suppress the checkout prompt dialog when altering a PropertySet value?

Anonymous
Not applicable

Hi folks,

 

I have a file open in Inventor that resides in a Vault.  When my Inventor add-in attempts to alter the value of a PropertySet of that document, this prompt dialog immediately pops:
CheckOutPromptDialog.jpgIs there any way to prevent it from popping?  I have considered checking out the file ahead of time - but in actuality, I do not even want it checked out, so that's not an ideal solution here.

At this moment, the codebase is using Inventor 2014 & Vault 2014 although it will also be using Inventor 2018 & Vault 2018.  I have tried using SilentOperation but it does not suppress that prompt dialog.

Best Regards,
--Jeff

0 Likes
1,482 Views
7 Replies
Replies (7)
Message 2 of 8

MechMachineMan
Advisor
Advisor

Not well versed in vault, but I believe you need to access the vault API directly to perform this, and it also may not be possible without checking it out with the recent changes they have implemented to prevent writing to library files via API.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 8

Anonymous
Not applicable

Thank you for your reply.

So, are you saying that even though I do not wish to have the file checked out, I still have to check it out if I have any hope of not being present with that dialog asking if I want it checked out?  (Essentially, I want the "No To All" choice but never want the user to have to see the dialog, because there could be many such files in succession and they would see the dialog many times).

Best Regards,
--Jeff

0 Likes
Message 4 of 8

MechMachineMan
Advisor
Advisor

I'm sure it's possible to suppress the dialog box.

 

I don't think you would be able to modify the file without first checking it out (whether it be through API, with the Check-out dialog suppressed or not).

 

It goes against the purpose of having a check out system if you are just simply able to bypass it at will without following whatever it is enforcing.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 5 of 8

Anonymous
Not applicable

Thanks again for your reply.

The file gets checked out when it needs to be, at a different point in the flow.  Everything works just fine with the add-in, as it has in previous versions, but this dialog started popping when we migrated them up to 2014.  And when we migrated that to 2018, it is also still there.  In our existing flow, it winds up being an unnecessary nuisance to the user so I would very much like to suppress it, if possible.

0 Likes
Message 6 of 8

jake_egley
Advocate
Advocate

Same issue but I want it to hit "No" or "No To All" everytime the dialog box comes up. Does anyone know a solution?? Thanks

Jake Egley
Inventor 2022
0 Likes
Message 7 of 8

g.georgiades
Advocate
Advocate
Message 8 of 8

jake_egley
Advocate
Advocate

Unfortunately none of that code works. When I try to type Public class its red or private is red etc. I feel like im missing something obvious in ilogic or vb.

 

Update: it works fine in ilogic I just hadnt seen the red before and assumed it was an error without trying it.

Jake Egley
Inventor 2022
0 Likes