Automatically Create A Inventor Macro Button Using VBA

Automatically Create A Inventor Macro Button Using VBA

isocam
Collaborator Collaborator
586 Views
7 Replies
Message 1 of 8

Automatically Create A Inventor Macro Button Using VBA

isocam
Collaborator
Collaborator

Can anybody help???

 

Is the following possible?

 

I need to add a button to Inventor so that when the user presses this button it will run (for testing purposes only) notepad.exe.

 

For reference, please see: AutoDesk INVENTOR VBA 36 ( Add Macro Button ) - YouTube

 

Is it possible to automatically create a macro button using a VBA script that will appear if the document is a part, assembly or drawing?

 

I need this so that it is easier for me rather than manually creating a button on every inventor workstation, I just want to run the macro.

 

Many thanks in advance!

 

Darren

0 Likes
587 Views
7 Replies
Replies (7)
Message 2 of 8

bradeneuropeArthur
Mentor
Mentor
This works easier if your are creating an Add-in Via vb.net.
For your example in a drawing to run Notepad I can help you if you want.

Let me know if this is appreciated/needed.

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
Message 3 of 8

SReitberger
Contributor
Contributor

How would the Macro be distributed?

Basically it is possible to insert a button to the GUI via VBA. It is also possible to use iLogic with the event manager to run a VBA macro on your mentioned events. But you would have to set all this up on every workstation. So this is not a real solution imho. 

As Arthur Knoors posted, an Add-in would be better. 

 

I use VBA macros not an Add-in. Here it works something like this:
Macros are stored in a Default.ivb. This file is in Vault. The users insert the button(s) to the GUI by themselves. If there is a update in the macros I check in the new Default.ivb into Vault. The users can retrieve the latest file via Vault, after I sent an email to let them know. 

0 Likes
Message 4 of 8

bradeneuropeArthur
Mentor
Mentor
In the past I used a executable bat file that I have run on every startup of the pc. This executable copies the necessary files from the network to the machine. This way every pc had the latest files always.

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
Message 5 of 8

isocam
Collaborator
Collaborator

Arthur,

 

Please can I ask if you would create a Vb.Net program to do this for me?

 

Can I also ask how much you would charge and I can I pay you "up-front" using PayPal?

 

Many thanks for your help!

 

Kindest Regards

 

Darren

0 Likes
Message 6 of 8

bradeneuropeArthur
Mentor
Mentor
You only need an add in with a button that run notepad.exe after pressing, correct?

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
Message 7 of 8

isocam
Collaborator
Collaborator

Arthur,

 

Yes please.

 

Kindest Regards

 

Daren

0 Likes
Message 8 of 8

bradeneuropeArthur
Mentor
Mentor
Can you send me a private message?

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