Creating an Icon For a vba Macro on Inventor 2014

Anonymous

Creating an Icon For a vba Macro on Inventor 2014

Anonymous
Not applicable

 Hello, everybody.

 

How can I create a custumer icon for a determined vba macro on Inventor 2014?

 

Thanks!

0 Likes
Reply
3,840 Views
7 Replies
Replies (7)

ekinsb
Alumni
Alumni

I just created a blog post that I hope will help.

 

http://modthemachine.typepad.com/my_weblog/2016/02/creating-a-button-for-a-vba-macro.html

 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog

Anonymous
Not applicable

Ok! I have created a "bmp" file (size 32x32) in the same path where Default.ivb is, yet I can't see it the way I would load the image in the macro I want to.

Is there something that I'm 

0 Likes

Anonymous
Not applicable

Hi there,

 

the last step is to tie your icon to the macro in the "Customize" dialog box: Right-click on the ribbon, click "Customize user commands" and select "Macros" from the "Choose commands from:" drop-down menu (see attached image - You'll see all of our custom macros. Some are tests and do absolutely nothing). Select in what environment you want your icon to appear in "Choose tab to add custom panel to:" drop-down.

 

Click apply, and you're done. If your ivb project is in the right location, if the icon image is named correctly and in the correct folder, everything should work.

 

Keep us posted!

undefined

 

 

0 Likes

sebastien008
Contributor
Contributor

Hi Ekinsb and all,

 

May I know what software to use to creat icon 32*32 with a goo resolution,

 I feel really bad with my S*** & ungly Icon ^^

 

If anyone as a good icon example resolution please share ^^

 

thanks and have all a good day

0 Likes

ekinsb
Alumni
Alumni

Creating good icons takes a lot of experience.  There are people who are able to specialize just in building icons.  When you look close at a lot of good icons in products you use, you'll see that they are able to fool the eye and mind so that it looks like there is much more detail than there really is.  It's not really the software but the technique of the person using it.

 

I'm certainly not very good at creating icons but I have had some success in cases where I want the icon to display a 3D image where I model the image and then zoom out so it about 2 or 3 times larger than the final size I need.  I screen copy that and then use some image processing software to scale it down. For this I can even get by with Microsoft Paint but depending on if I need to do any other editing, a more advanced image editing product is useful to have.

 

I do recommend screen capturing icons from products you use and then zooming in to see what's packed into those few pixels.  Everybody is limited to 32x32 resolution it's just all a mater of what color you assign to each of the 1024 pixels that determines the result.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes

akAMYTB
Enthusiast
Enthusiast

Hi Everyone

 

I think an important note here, that both the large and the small version of the icon must exist in the Default.ivb folder. I was struggling a lot to make this work with only the large icon, since I thought I was only going to use that one. One last desparate measure was to make also the small icon, which did the trick. 

 

Maybe I missed it , but none of the many posts, tutorials og blogs I read on the matter seems to point out this criteria, so I thought I'd do it. 

 

Cheers - Anders

frederic.vandenplas
Collaborator
Collaborator

Hi, This is a technical paper i wrote some years ago (it's in dutch, but google can help you out)

The paths may be not correct (inventor 2011)

 

http://api.ning.com/files/dPb0ilrV5SaLFax7pxeVmWXS203VswSazRdEQWCR9wOkASglIyIBwZSWFpyn69MOS9qluJgWlM...

If you think this answer fullfilled your needs, improved your knowledge or leads to a solution,
please feel free to "kudos"

Type a product name