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: 

Icons for Custom Macros

9 REPLIES 9
Reply
Message 1 of 10
Anonymous
460 Views, 9 Replies

Icons for Custom Macros

I've created several macros and have put them into a custom toolbar. The problem is, they all have the same icon (designated by Inventor) and if you are in expert mode it's tough to remember which icon runs which macro.


Is there a way to select a different icon for each macro?

_________
Thanks,

Mike
9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: Anonymous

------=_NextPart_001_002B_01C34DCB.A8A19F10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

There are three steps to do this.

1. Create 16x15 bmp files for your icons
2. Name the bmp's.
The name of the bmp should be based on the following rule.

Module name + "." + Sub routine + "." + .bmp

So if in your default.ivb file you have the following situation: (See =
image)
=20
You would name the bmp file as such:
Asm_tools.Assembly_Saveas.small.bmp

Got it?

3 Last step. Put your image in the same folder as where your default.ivb =
file is. Normally this is in %/Inventor 7/Bin/Macros/

Tips.
You can make small and large icons for each macro, just change the last =
word in the bmp name to tell which it is. Large icons are 24x24 (I =
think).
Make the background of you bmp files magenta. This will make it =
transparent so that the toolbar shows thru in the right places. I =
developer-speak magenta is the mask color inventor uses. So stay away =
from it in you design and only use it for places you want to be =
transparent.

-Kevin

------=_NextPart_001_002B_01C34DCB.A8A19F10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




There are three steps to do =
this.

 

1. Create 16x15 bmp files for your=20
icons

2. Name the bmp's.

The name of the bmp  face=3DArial=20
size=3D2>should be based on the following rule.

 

Module name + "." =
+ Sub routine=20
+ "." + <icon size "Small/Large">.bmp

 

So if in your default.ivb file you have =
the=20
following situation: (See image)

     3D"" hspace=3D0=20
src=3D"cid:002501c34e06$54fbbc20$0b01a8c0@dellm530" align=3Dbaseline=20
border=3D0>

You would name the bmp file as =
such:

size=3D2>Asm_tools.Assembly_Saveas.small.bmp

 

Got it?

 

3 Last step. Put your image in the same =
folder as=20
where your default.ivb file is. Normally this is in %/Inventor=20
7/Bin/Macros/

 

Tips.

You can make small and large icons for =
each macro,=20
just change the last word in the bmp name to tell which it is. Large =
icons are=20
24x24 (I think).

Make the background of you bmp files =
magenta. This=20
will make it transparent so that the toolbar shows thru in the right =
places. I=20
developer-speak magenta is the mask color inventor uses. So stay away =
from it in=20
you design and only use it for places you want to be =
transparent.

 

-Kevin

 


------=_NextPart_001_002B_01C34DCB.A8A19F10--
Message 3 of 10
Anonymous
in reply to: Anonymous

attaching the image

 
Message 4 of 10
Anonymous
in reply to: Anonymous

I'll try this out.

______
Thanks,

Mike
Message 5 of 10
Anonymous
in reply to: Anonymous

See my Tips & Tricks tutorial for a description as well..

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
----------------------------------------------------------------------------
------
"mficarra" wrote in message
news:f1792be.-1@WebX.maYIadrTaRb...
> I've created several macros and have put them into a custom toolbar. The
problem is, they all have the same icon (designated by Inventor) and if you
are in expert mode it's tough to remember which icon runs which macro.
>
> Is there a way to select a different icon for each macro?
>
> _________
> Thanks,
>
> Mike
>
Message 6 of 10
Anonymous
in reply to: Anonymous

Sean,

I looked at your tips & tricks as well. I was able to get the icons to work fine, but the dimensions you have in you document are incorrect. They should be 16x15 (small) & 24x24 (large). Also, your link to http://www.sdotson.com/tutorials/sendkeys.zip
did not work.

______
Thanks for the help,

Mike
Message 7 of 10
Anonymous
in reply to: Anonymous

You are correct on both accounts (although 16 x 16 icons look fine)

The correct link is:

http://www.sdotson.com/tutparts/sendkeys.zip

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"mficarra" wrote in message
news:f1792be.5@WebX.maYIadrTaRb...
> Sean,
> I looked at your tips & tricks as well. I was able to get the icons to
work fine, but the dimensions you have in you document are incorrect. They
should be 16x15 (small) & 24x24 (large). Also, your link to
http://www.sdotson.com/tutorials/sendkeys.zip
> did not work.
>
> ______
> Thanks for the help,
>
> Mike
>
Message 8 of 10
Anonymous
in reply to: Anonymous

Wait a second.. the link in the document is correct...

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"Sean Dotson" wrote in message
news:CB80EF7053CAE19D3291D5489C9F3927@in.WebX.maYIadrTaRb...
> You are correct on both accounts (although 16 x 16 icons look fine)
>
> The correct link is:
>
> http://www.sdotson.com/tutparts/sendkeys.zip
>
> --
> Sean Dotson, PE
> http://www.sdotson.com
> Check the Inventor FAQ for most common questions
> www.sdotson.com/faq.html
> -----------------------------------------------------------------------
> "mficarra" wrote in message
> news:f1792be.5@WebX.maYIadrTaRb...
> > Sean,
> > I looked at your tips & tricks as well. I was able to get the icons to
> work fine, but the dimensions you have in you document are incorrect. They
> should be 16x15 (small) & 24x24 (large). Also, your link to
> http://www.sdotson.com/tutorials/sendkeys.zip
> > did not work.
> >
> > ______
> > Thanks for the help,
> >
> > Mike
> >
>
>
Message 9 of 10
Anonymous
in reply to: Anonymous

We have been trying to encourage users to place their macros in:

%\Program Files\Autodesk\Macros

So that when upgrades happen, their macros are still in the same place.  This
way, you don't have to worry about inadvertently deleting the "old" directory
structure and discovering (after it is too late) that you deleted your favorite
macros.  [speaking from experience :-[
]



Kevin Schneider (Autodesk, Inc.) wrote:


cite="mid4B11E6C501A845126EB65F9CE1838DC9@in.WebX.maYIadrTaRb">





<snip>



3 Last step. Put your image in the same
folder as where your default.ivb file is. Normally this is in %/Inventor
7/Bin/Macros/



Message 10 of 10
Anonymous
in reply to: Anonymous

Charles,

I actually keep all of our macros on our server so we all have access to the latest and greatest. Now, when I reformat my harddrive and reload the O/S (which occurs more often than I would like...), I don't need to worry about backing up the programs.

I would never consider leaving the macros or default.ivb in the default Inventor directory.

______
Thanks,

Mike

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

Post to forums  

Autodesk Design & Make Report