- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
try it in a different way:
For VBA:
Public Sub main()
Dim a As Application
set a = ThisApplication
Dim CmdMan As ControlDefinition
set CmdMan = ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckoutTop")
If CmdMan.Enabled = True Then
MsgBox "will be checked out"
CmdMan.Execute 'CmdMan.Execute2 (True)
End If
End SubFor I logic
Public Sub Main()
Dim a As Application
a = ThisApplication
Dim CmdMan As ControlDefinition
CmdMan = ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckoutTop")
If CmdMan.Enabled = True Then
MsgBox ("will be checked out")
CmdMan.Execute 'CmdMan.Execute2 (True)
End If
End SubRegards,
Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
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 !
Regards,
Arthur Knoors
Autodesk Affiliations:
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: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 !