Toggle on/off VDS in Inventor

Toggle on/off VDS in Inventor

johan.degreef
Advisor Advisor
816 Views
7 Replies
Message 1 of 8

Toggle on/off VDS in Inventor

johan.degreef
Advisor
Advisor

Can anyone help to make a toggle button (as there was in the past) to toggle on/off the Vault Data standards in Inventor Add-in?

 

Many Thanks, Johan

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
Accepted solutions (2)
817 Views
7 Replies
Replies (7)
Message 2 of 8

basautomationservices
Advocate
Advocate

I would say you just find the application add-ins ID, but when I print all app add-ins, the Vault Data Standard does not show up. 

 

Sub test()

Dim addin As ApplicationAddIn
For Each addin In ThisApplication.ApplicationAddIns
    Debug.Print (addin.DisplayName)
    Debug.Print (addin.ClientId)
    Debug.Print ("-----")
Next

End Sub

 

So I looked in here for the .addin file to find the GUID:

 

basautomationservices_0-1649839604658.png

 

basautomationservices_1-1649839630926.png

 

And found it is "{3ad251e3-02dd-4b8c-8882-86c97c80e00c}"

 

Here's the toggle script. You can create a button either by creating a button for a VBA macro or creating a iLogic rule, (and creating a button for this).

 

Sub Toggle()

Dim addin As ApplicationAddIn
Set addin = ThisApplication.ApplicationAddIns.ItemById("{3ad251e3-02dd-4b8c-8882-86c97c80e00c}")

If addin.Activated Then
    Call addin.Deactivate
Else
    Call addin.Activate
End If

End Sub
Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Smart Leader | Part Visibility Utility | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro


Message 3 of 8

johan.degreef
Advisor
Advisor
Accepted solution

Thank you, but this seems not to fit in an external iLogic rule, should it?

 


@basautomationservices wrote:

Here's the toggle script. You can create a button either by creating a button for a VBA macro or creating a iLogic rule, (and creating a button for this).

 

 

Sub Toggle()

Dim addin As ApplicationAddIn
Set addin = ThisApplication.ApplicationAddIns.ItemById("{3ad251e3-02dd-4b8c-8882-86c97c80e00c}")

If addin.Activated Then
    Call addin.Deactivate
Else
    Call addin.Activate
End If

End Sub

 


 

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
0 Likes
Message 4 of 8

basautomationservices
Advocate
Advocate
Accepted solution

What I wrote was VBA.

 

For an iLogic rule it should be:

Dim addin As ApplicationAddIn
addin = ThisApplication.ApplicationAddIns.ItemById("{3ad251e3-02dd-4b8c-8882-86c97c80e00c}")

If addin.Activated Then
    Call addin.Deactivate
Else
    Call addin.Activate
End If
Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.

Free apps: Smart Leader | Part Visibility Utility | Mate Origins

Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro


Message 5 of 8

johan.degreef
Advisor
Advisor

Thank you!

Inventor 2025, Vault Professional 2025, Autocad Plant 3D 2025
Message 6 of 8

bradeneuropeArthur
Mentor
Mentor

Klein add-in tje schrijven voor je, Johan!

 

Write a small add-in!

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

Message 7 of 8

bradeneuropeArthur
Mentor
Mentor

If you are interested in this Add-in, please send me a private message.

 

bradeneuropeArthur_0-1649878733450.png

 

 

Regards,

 

Arthur

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

Message 8 of 8

bradeneuropeArthur
Mentor
Mentor

Does something like this add-in make sense?

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