Inventor Customization

Reply
Mentor
mslosar
Posts: 225
Registered: ‎08-11-2004
Message 1 of 10 (300 Views)

Icons/Display text for macros

300 Views, 9 Replies
10-07-2013 10:23 AM

Short of converting to an add-in is there any way to place macro's into toolbars where you can set the Text of the button to something other than the macro name?

 

I mean, while to those who write them, there's nothing wrong (really) with a command button titled Invoke_This_Fuction or InvokeFunction, it looks quite odd to everyone else.

 

If the only way is via add-in, that's fine (though a friendly display name should be an option).

 

Just trying to find out before I spend a boatload of time only to figure out you can't :smileyhappy:

 

Also, do all add-ins 'have' to be installed? Or is there a way you can just drop a file in the correct path and it'll appear on next running of Inventor?

Distinguished Contributor
CPRob
Posts: 112
Registered: ‎11-11-2004
Message 2 of 10 (277 Views)

Re: Icons/Display text for macros

10-08-2013 01:08 PM in reply to: mslosar

You can set the text of the button to something other than the macro name.  I use icons but you could create an icon with whatever text you wanted.  Here is what mine look like.

 

Macros.png

 

Tools-Customize-Ribbon-Choose Commands from-> then place into whatever panel you want.  You can also place them in the Quick access toolbar at the top of the window by right clicking and selecting "Add to Quick Access Toolbar".

 

Registry free Add-in do not have to be installed.  The AddIn files can be placed in a folder under:

 

C:\Users\User\AppData\Roaming\Autodesk\ApplicationPlugins

 

and Inventor will automatically find/load them.  You must also copy the .AddIn file from your projects folder to that location.

____________________________
Inventor Professional 2014 64 Bit
Windows 7 Professional
NVIDIA Quadro FX 4600
Dual Intel Xeon E5540 CPUs
16GB DDR3 Ram
Mentor
mslosar
Posts: 225
Registered: ‎08-11-2004
Message 3 of 10 (271 Views)

Re: Icons/Display text for macros

10-08-2013 01:43 PM in reply to: CPRob

I'm in 2013, and when I add via Tools-Customize-Ribbon I can check a box to show the text name of the macro, an icon, and that's it. The third column is just the name of the macro for reference so you know what command you've added to the panel.

 

I don't see any place I can change the text display of the macro from something like RN_DWG_FILE to "Rename Drawing File". If i'm missing something that lets me alter the text, please let me know.

 

It's good to knwo that about add-ins. Thanks.

Distinguished Contributor
CPRob
Posts: 112
Registered: ‎11-11-2004
Message 4 of 10 (258 Views)

Re: Icons/Display text for macros

10-10-2013 04:29 AM in reply to: mslosar

The only way to change this is to rename your macro what you want it to say.  Change your macro name from RN_DWG_FILE.ivb to Rename_Drawing_File.ivb  If you are using autorun from the Default.ivb you will need to update the name there too.

 

Another option is to create a 32x32 macro icon with exactly the text you want to display and use the "Large" option under customize.

____________________________
Inventor Professional 2014 64 Bit
Windows 7 Professional
NVIDIA Quadro FX 4600
Dual Intel Xeon E5540 CPUs
16GB DDR3 Ram
Mentor
mslosar
Posts: 225
Registered: ‎08-11-2004
Message 5 of 10 (250 Views)

Re: Icons/Display text for macros

10-10-2013 06:18 AM in reply to: CPRob

The whole point of the question was to get out of having a visible name strung together or using underscores and to use normal text.

 

Clearly, it's still not possible. Very disappointing.

 

As for the icon issue, that'd be great except for large icon display is bugged in 2013 and 2014 and i haven't heard of any fixes yet. A bunch of giant @ symbols isn't going to help anything :smileyhappy:

Valued Mentor
jcneal
Posts: 324
Registered: ‎04-10-2010
Message 6 of 10 (222 Views)

Re: Icons/Display text for macros

10-16-2013 05:23 AM in reply to: mslosar
they fixed it in 2014
Autodesk Inventor Professional 2014
Autodesk Product Design Suite Standard 2013
Microsoft Office 2007 & 2013
Windows 7 64bit
Synergis Adept 2013
Visual Studio Express 2010
ADN Support Specialist
ekinsb
Posts: 300
Registered: ‎07-21-2006
Message 7 of 10 (206 Views)

Re: Icons/Display text for macros

10-16-2013 04:26 PM in reply to: mslosar

As you've found, you can't override the text of the button and for macros this text comes from the name of the Sub.

 

The only workaround that I can think of shy of re-writing your VBA macros as add-ins is to write a single add-in that creates buttons and then runs the associated VBA macro when the corresponding button is clicked.  The advantage of this is that you have full control over the button including where it is positioned within the ribbon.



Brian Ekins
Developer Technical Services
Autodesk Developer Network
Autodesk, Inc.
New Member
stigerik.tec
Posts: 1
Registered: ‎01-17-2012
Message 8 of 10 (193 Views)

Re: Icons/Display text for macros

10-18-2013 12:19 AM in reply to: mslosar

You can use the AutoCustomize add-in which is located in Inventor SDK -> UserTools.

 

Valued Contributor
eljoseppo
Posts: 70
Registered: ‎10-11-2010
Message 9 of 10 (182 Views)

Re: Icons/Display text for macros

10-18-2013 11:26 AM in reply to: mslosar

Oh, come on. There is a way to bypass this issue.

 

Export your settings to xml file, then open with Notepad, find "RN_DWG_FILE" an replace to custom text. Import settings. Done.

 

Hope that's helpful

Mentor
mslosar
Posts: 225
Registered: ‎08-11-2004
Message 10 of 10 (160 Views)

Re: Icons/Display text for macros

10-21-2013 10:41 AM in reply to: eljoseppo

Never would have thought of that. :smileyhappy:

 

It does work. It'd be perfect if it was just for me. However, since i've sort of got to automate the process of getting this out ot a number of people, I don't know that this is the way to go.

 

Apparently i'm going to be gettng visual studio soon so i'll be able to to the add-in route. I didn't know that'd be an option until last friday.

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube