Custom Icons for Macros (R6)

Custom Icons for Macros (R6)

Anonymous
Not applicable
457 Views
9 Replies
Message 1 of 10

Custom Icons for Macros (R6)

Anonymous
Not applicable
Initially I was able to create serveral icons for existing macros by going
through the routine of:
Tools/Customize/Commands
Select Macros and see all macros that are presently available with associate
icons (.bmp format).
I now have a situation where macros that are loaded and can be seen from the
macro dialog box can't be found in the Tools/Customize/Commands (Select
Macros) dialog box. Some of these macro codes are found in BonusTools
and/or Forms. Does each macro need its own module or need to be referenced
to another location to be available for custom icons? I'm sure I understand
the logic behind this procedure.
Thanks.

Jon Holler
Metro Machine & Engineering Corp.
jholler@metromachine.com
952-259-3615
0 Likes
458 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
Jon, did you ever get it figured out after our email exchange?

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"Jon Holler" wrote in message
news:BC8F70F40092FEC7F04905BBE014B567@in.WebX.maYIadrTaRb...
> Initially I was able to create serveral icons for existing macros by going
> through the routine of:
> Tools/Customize/Commands
> Select Macros and see all macros that are presently available with
associate
> icons (.bmp format).
> I now have a situation where macros that are loaded and can be seen from
the
> macro dialog box can't be found in the Tools/Customize/Commands (Select
> Macros) dialog box. Some of these macro codes are found in BonusTools
> and/or Forms. Does each macro need its own module or need to be
referenced
> to another location to be available for custom icons? I'm sure I
understand
> the logic behind this procedure.
> Thanks.
>
> Jon Holler
> Metro Machine & Engineering Corp.
> jholler@metromachine.com
> 952-259-3615
>
>
0 Likes
Message 3 of 10

Anonymous
Not applicable
Sean, the micros are still not showing up in the Tools/Custom/Commands/Macro
dialog box. I even deleted the ones I had and they wouldn't come back. I'm
probably missing something very simple.
"Sean Dotson" wrote in message
news:62F39B1835E4F705D44193113ADD28AB@in.WebX.maYIadrTaRb...
> Jon, did you ever get it figured out after our email exchange?
>
> --
> Sean Dotson, PE
> http://www.sdotson.com
> Check the Inventor FAQ for most common questions
> www.sdotson.com/faq.html
> -----------------------------------------------------------------------
> "Jon Holler" wrote in message
> news:BC8F70F40092FEC7F04905BBE014B567@in.WebX.maYIadrTaRb...
> > Initially I was able to create serveral icons for existing macros by
going
> > through the routine of:
> > Tools/Customize/Commands
> > Select Macros and see all macros that are presently available with
> associate
> > icons (.bmp format).
> > I now have a situation where macros that are loaded and can be seen from
> the
> > macro dialog box can't be found in the Tools/Customize/Commands (Select
> > Macros) dialog box. Some of these macro codes are found in BonusTools
> > and/or Forms. Does each macro need its own module or need to be
> referenced
> > to another location to be available for custom icons? I'm sure I
> understand
> > the logic behind this procedure.
> > Thanks.
> >
> > Jon Holler
> > Metro Machine & Engineering Corp.
> > jholler@metromachine.com
> > 952-259-3615
> >
> >
>
>
0 Likes
Message 4 of 10

Anonymous
Not applicable
Was the Default.ivb made in R5.3? If so many of us have had problems with that. Best to
start with a new default and add your stuff to it.

--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program



"Jon Holler" wrote in message
news:2D30B2FFE41DB6ACE58BC828172E6905@in.WebX.maYIadrTaRb...
> Sean, the micros are still not showing up in the Tools/Custom/Commands/Macro
> dialog box. I even deleted the ones I had and they wouldn't come back. I'm
> probably missing something very simple.
0 Likes
Message 5 of 10

Anonymous
Not applicable
Yep, forgot about that one...

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"Kent Keller" wrote in message
news:A16289920DC492A5567958ADACA1B93B@in.WebX.maYIadrTaRb...
> Was the Default.ivb made in R5.3? If so many of us have had problems with
that. Best to
> start with a new default and add your stuff to it.
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
>
> "Jon Holler" wrote in message
> news:2D30B2FFE41DB6ACE58BC828172E6905@in.WebX.maYIadrTaRb...
> > Sean, the micros are still not showing up in the
Tools/Custom/Commands/Macro
> > dialog box. I even deleted the ones I had and they wouldn't come back.
I'm
> > probably missing something very simple.
>
>
0 Likes
Message 6 of 10

Anonymous
Not applicable
Fabulous, I'm not going crazy. Now, I have one more question. How do you
copy the code over to a new project when there are dialog boxes (forms)?
I'm assuming you create a new module (or form) in a new project and - then -
cut and paste. Or do you recreate everything from scratch? Thanks.


"Kent Keller" wrote in message
news:A16289920DC492A5567958ADACA1B93B@in.WebX.maYIadrTaRb...
> Was the Default.ivb made in R5.3? If so many of us have had problems with
that. Best to
> start with a new default and add your stuff to it.
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
>
> "Jon Holler" wrote in message
> news:2D30B2FFE41DB6ACE58BC828172E6905@in.WebX.maYIadrTaRb...
> > Sean, the micros are still not showing up in the
Tools/Custom/Commands/Macro
> > dialog box. I even deleted the ones I had and they wouldn't come back.
I'm
> > probably missing something very simple.
>
>
0 Likes
Message 7 of 10

Anonymous
Not applicable
You can drag in drop in the Project Explorer window of the VB editor. Just
have the old and new ones open. Or you can export the form then create a
new one from a file and select the file you exported.

--
Sean Dotson, PE
http://www.sdotson.com
Check the Inventor FAQ for most common questions
www.sdotson.com/faq.html
-----------------------------------------------------------------------
"Jon Holler" wrote in message
news:B109AD6AB73FB7374F05F7AAFA7A61F0@in.WebX.maYIadrTaRb...
> Fabulous, I'm not going crazy. Now, I have one more question. How do you
> copy the code over to a new project when there are dialog boxes (forms)?
> I'm assuming you create a new module (or form) in a new project and -
then -
> cut and paste. Or do you recreate everything from scratch? Thanks.
>
>
> "Kent Keller" wrote in message
> news:A16289920DC492A5567958ADACA1B93B@in.WebX.maYIadrTaRb...
> > Was the Default.ivb made in R5.3? If so many of us have had problems
with
> that. Best to
> > start with a new default and add your stuff to it.
> >
> > --
> > Kent
> > Assistant Moderator
> > Autodesk Discussion Forum Moderator Program
> >
> >
> >
> > "Jon Holler" wrote in message
> > news:2D30B2FFE41DB6ACE58BC828172E6905@in.WebX.maYIadrTaRb...
> > > Sean, the micros are still not showing up in the
> Tools/Custom/Commands/Macro
> > > dialog box. I even deleted the ones I had and they wouldn't come
back.
> I'm
> > > probably missing something very simple.
> >
> >
>
>
0 Likes
Message 8 of 10

Anonymous
Not applicable
I have seen it fail after cut and paste also. As I remember it was as much a matter of
luck as anything in the end. In the default.ivb right click on the forms and choose
export. Save them to a safe place, then start a new IVB and import them. I cut and
paste the code in the modules, rather than exporting.

It has been quite a while since I had to do it, but I remember even then I had to try
different things until it worked.

Here is from a earlier post from Thilak that might help (also be sure you have a c:\Temp
folder)

> 1. Only macros within the ivb file that is set in the 'Application
options'
> dialog will be displayed.
> 2. The ivb file should NOT contain even a single 'Function'.
> 3. Only 'Sub' routines will be displayed.
> 4. Macro names once displayed in the toolbar customization dialog will
> remain even if you remove/rename it from
> VBA IDE. Thats because it writes it to a vxd file in the temp folder. And
> this file cannot be deleted without restarting
> inventor.


--
Kent
Assistant Moderator
Autodesk Discussion Forum Moderator Program



"Jon Holler" wrote in message
news:B109AD6AB73FB7374F05F7AAFA7A61F0@in.WebX.maYIadrTaRb...
> Fabulous, I'm not going crazy. Now, I have one more question. How do you
> copy the code over to a new project when there are dialog boxes (forms)?
> I'm assuming you create a new module (or form) in a new project and - then -
> cut and paste. Or do you recreate everything from scratch? Thanks.
>
>
> "Kent Keller" wrote in message
> news:A16289920DC492A5567958ADACA1B93B@in.WebX.maYIadrTaRb...
> > Was the Default.ivb made in R5.3? If so many of us have had problems with
> that. Best to
> > start with a new default and add your stuff to it.
> >
> > --
> > Kent
> > Assistant Moderator
> > Autodesk Discussion Forum Moderator Program
> >
> >
> >
> > "Jon Holler" wrote in message
> > news:2D30B2FFE41DB6ACE58BC828172E6905@in.WebX.maYIadrTaRb...
> > > Sean, the micros are still not showing up in the
> Tools/Custom/Commands/Macro
> > > dialog box. I even deleted the ones I had and they wouldn't come back.
> I'm
> > > probably missing something very simple.
> >
> >
>
>
0 Likes
Message 9 of 10

Anonymous
Not applicable
Kent and Sean, thanks for the help. As you say it must be a matter of luck.
I still haven't been able to make it work after trying all of your
suggestions. It's really odd that it worked in the beginning, but just like
that it's gone. Perhaps Autodesk needs to do some further development.

"Kent Keller" wrote in message
news:43490129DC18B19D68F6ADACEEA81046@in.WebX.maYIadrTaRb...
> I have seen it fail after cut and paste also. As I remember it was as
much a matter of
> luck as anything in the end. In the default.ivb right click on the forms
and choose
> export. Save them to a safe place, then start a new IVB and import them.
I cut and
> paste the code in the modules, rather than exporting.
>
> It has been quite a while since I had to do it, but I remember even then I
had to try
> different things until it worked.
>
> Here is from a earlier post from Thilak that might help (also be sure you
have a c:\Temp
> folder)
>
> > 1. Only macros within the ivb file that is set in the 'Application
> options'
> > dialog will be displayed.
> > 2. The ivb file should NOT contain even a single 'Function'.
> > 3. Only 'Sub' routines will be displayed.
> > 4. Macro names once displayed in the toolbar customization dialog will
> > remain even if you remove/rename it from
> > VBA IDE. Thats because it writes it to a vxd file in the temp folder.
And
> > this file cannot be deleted without restarting
> > inventor.
>
>
> --
> Kent
> Assistant Moderator
> Autodesk Discussion Forum Moderator Program
>
>
>
> "Jon Holler" wrote in message
> news:B109AD6AB73FB7374F05F7AAFA7A61F0@in.WebX.maYIadrTaRb...
> > Fabulous, I'm not going crazy. Now, I have one more question. How do
you
> > copy the code over to a new project when there are dialog boxes (forms)?
> > I'm assuming you create a new module (or form) in a new project and -
then -
> > cut and paste. Or do you recreate everything from scratch? Thanks.
> >
> >
> > "Kent Keller" wrote in message
> > news:A16289920DC492A5567958ADACA1B93B@in.WebX.maYIadrTaRb...
> > > Was the Default.ivb made in R5.3? If so many of us have had problems
with
> > that. Best to
> > > start with a new default and add your stuff to it.
> > >
> > > --
> > > Kent
> > > Assistant Moderator
> > > Autodesk Discussion Forum Moderator Program
> > >
> > >
> > >
> > > "Jon Holler" wrote in message
> > > news:2D30B2FFE41DB6ACE58BC828172E6905@in.WebX.maYIadrTaRb...
> > > > Sean, the micros are still not showing up in the
> > Tools/Custom/Commands/Macro
> > > > dialog box. I even deleted the ones I had and they wouldn't come
back.
> > I'm
> > > > probably missing something very simple.
> > >
> > >
> >
> >
>
>
0 Likes
Message 10 of 10

Anonymous
Not applicable
Maybe I hade the same type of problem. (Macros didn't show up in
Customize/Commands/Macros)
This is how I did:
Open the VBA file (Ctrl + F11) and place the cursor in the module.
Activate/switch to Inventor and "type" Ctrl + F8.
Then create a new macro.
Now you hopefully can find your "old" macros also.

Lars

"Jon Holler" skrev i meddelandet
news:B941EC9A08DE68040ED77FE8C74B2220@in.WebX.maYIadrTaRb...
> Kent and Sean, thanks for the help. As you say it must be a matter of
luck.
> I still haven't been able to make it work after trying all of your
> suggestions. It's really odd that it worked in the beginning, but just
like
> that it's gone. Perhaps Autodesk needs to do some further development.
>
> "Kent Keller" wrote in message
> news:43490129DC18B19D68F6ADACEEA81046@in.WebX.maYIadrTaRb...
> > I have seen it fail after cut and paste also. As I remember it was as
> much a matter of
> > luck as anything in the end. In the default.ivb right click on the
forms
> and choose
> > export. Save them to a safe place, then start a new IVB and import
them.
> I cut and
> > paste the code in the modules, rather than exporting.
> >
> > It has been quite a while since I had to do it, but I remember even then
I
> had to try
> > different things until it worked.
> >
> > Here is from a earlier post from Thilak that might help (also be sure
you
> have a c:\Temp
> > folder)
> >
> > > 1. Only macros within the ivb file that is set in the 'Application
> > options'
> > > dialog will be displayed.
> > > 2. The ivb file should NOT contain even a single 'Function'.
> > > 3. Only 'Sub' routines will be displayed.
> > > 4. Macro names once displayed in the toolbar customization dialog will
> > > remain even if you remove/rename it from
> > > VBA IDE. Thats because it writes it to a vxd file in the temp folder.
> And
> > > this file cannot be deleted without restarting
> > > inventor.
> >
> >
> > --
> > Kent
> > Assistant Moderator
> > Autodesk Discussion Forum Moderator Program
> >
> >
> >
> > "Jon Holler" wrote in message
> > news:B109AD6AB73FB7374F05F7AAFA7A61F0@in.WebX.maYIadrTaRb...
> > > Fabulous, I'm not going crazy. Now, I have one more question. How do
> you
> > > copy the code over to a new project when there are dialog boxes
(forms)?
> > > I'm assuming you create a new module (or form) in a new project and -
> then -
> > > cut and paste. Or do you recreate everything from scratch? Thanks.
> > >
> > >
> > > "Kent Keller" wrote in message
> > > news:A16289920DC492A5567958ADACA1B93B@in.WebX.maYIadrTaRb...
> > > > Was the Default.ivb made in R5.3? If so many of us have had
problems
> with
> > > that. Best to
> > > > start with a new default and add your stuff to it.
> > > >
> > > > --
> > > > Kent
> > > > Assistant Moderator
> > > > Autodesk Discussion Forum Moderator Program
> > > >
> > > >
> > > >
> > > > "Jon Holler" wrote in message
> > > > news:2D30B2FFE41DB6ACE58BC828172E6905@in.WebX.maYIadrTaRb...
> > > > > Sean, the micros are still not showing up in the
> > > Tools/Custom/Commands/Macro
> > > > > dialog box. I even deleted the ones I had and they wouldn't come
> back.
> > > I'm
> > > > > probably missing something very simple.
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes