Change name and tooltip text of macro button

Change name and tooltip text of macro button

miechh
Collaborator Collaborator
998 Views
1 Reply
Message 1 of 2

Change name and tooltip text of macro button

miechh
Collaborator
Collaborator

First of all: Happy new year for everyone!

 

For several years I've been programming in Inventor and AutoCAD, with VBA. Making macros and creating a button for them in the toolbar of Inventor is no problem. What disturbs me slightly is that the name of the button is the same as the name of the macro. In VBA you can't create functions with spaces in the name. So the name of the toolbar button often looks quite silly.

 

Is there a way to change the name and the tooltip-text of the toolbar button without loosing the link to the original macro? In AutoCAD this is no problem, but Inventor...


Product Design Suite 2024
Inventor 2024 (v 28.20.27200.0000), Vault Basic 2024
Fusion 360
HP Workstation Z4
Intel Xeon 3.4GHz
32GB RAM
Windows 11 Professional (64bit)
0 Likes
999 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

As I know, the answer is no. The properties of the maro such as DisplayName, ToolTip, DescriptionText are readonly. And no space is allowed in the displayname. Sorry for this.

 

I would suggest you create the common buttons. In their OnExecute events, invoke the relevant marco command.

 

Regards,

Xiaodong Liang

Developer Technical Services

 

0 Likes