Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create a toolbar/button with VBA

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
fjr74vp
957 Views, 3 Replies

How to create a toolbar/button with VBA

Hello; in the API help there are a example to do a Addin which creates a toolbar with a button, using VB.Net. But I wonder if there is a way to do the same thing, within Inventor, using VBA.
Tags (1)
3 REPLIES 3
Message 2 of 4
leefsma
in reply to: fjr74vp

Hi,

 

Doing it with VBA should be pretty similar to the VB.Net way, except for the icon, where you should use the LoadPicture method:

 

 ' Create a standard Microsoft Windows IPictureDisp
 Dim idsp1 As IPictureDisp
 Set idsp1 = LoadPicture("C:\temp\a.bmp")

 

Philippe Leefsma
Developer Consultant
Developer Technical Services
Global Subscription & Support
 

Autodesk EMEA

 

www.autodesk.com/joinadn

Message 3 of 4
CadUser46
in reply to: leefsma

FYI, I ran into a problem with this a few weeks back.

 

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Add-browser-pane-tutorial-problem/td-p...

 

 


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

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
Message 4 of 4
fjr74vp
in reply to: fjr74vp

Hello, thanks for the replies. I realized that for my work is better to use a Addin and I moved to this.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report