buttonaction in macro

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
lumi
Posts: 2
Joined: Fri Nov 03, 2017 1:55 am

buttonaction in macro

Post by lumi »

Hi all,

I work with autodesk inventor 2018.

I would like to execute a command from Buttonaction (open component). (this command is available in 3dconnnection binding but not in shortcut of inventor).

this code doesn't work

Code: Select all

<MacroEntry><ID>iprop + tab tab</ID><Sequence>
<ButtonAction Type="AppCommand"><ID>AppCommand_PresentationSelectLeafPartPriorityCmd</ID><Name>Priorité à la pièce</Name><AppCmdID>PresentationSelectLeafPartPriorityCmd</AppCmdID></ButtonAction></ButtonActions> (this line make problems)
<Pause>300</Pause>
<KeyPress>22</KeyPress>
<KeyRelease>22</KeyRelease>
<Pause>300</Pause>
<KeyPress>E0</KeyPress>
<KeyPress>2B</KeyPress>
<KeyRelease>2B</KeyRelease>
<KeyRelease>E0</KeyRelease>
<Pause>100</Pause>
<KeyPress>E0</KeyPress>
<KeyPress>2B</KeyPress>
<KeyRelease>2B</KeyRelease>
<KeyRelease>E0</KeyRelease>
</Sequence></MacroEntry>

Thank you for your help.

Lumi
jwick
Moderator
Moderator
Posts: 3331
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: buttonaction in macro

Post by jwick »

That XML syntax isn't right.
It sounds like you want to assign a keyboard macro to a button. That can be recorded in the GUI.
If you find you need the pauses, those can be inserted as you've done, or recorded by the GUI with a little beforehand magic.
The XML says this is an AppCommand, which is different than a keyboard macro.
Post Reply