Active command by short cut with Ilogic , is that possible?

Active command by short cut with Ilogic , is that possible?

Darkforce_the_ilogic_guy
Advisor Advisor
568 Views
7 Replies
Message 1 of 8

Active command by short cut with Ilogic , is that possible?

Darkforce_the_ilogic_guy
Advisor
Advisor

is there a way to active a command by an short cut?

 

I can type SH + Enter. and the command open... is it possible to do that with ilogic ?

0 Likes
569 Views
7 Replies
Replies (7)
Message 2 of 8

Michael.Navara
Advisor
Advisor

You can try to hack it using this code

ThisApplication.CommandManager.ControlDefinitions("AppRepeatCmd").Execute()
0 Likes
Message 3 of 8

Darkforce_the_ilogic_guy
Advisor
Advisor

I don´t understand how I would use that 

0 Likes
Message 4 of 8

Michael.Navara
Advisor
Advisor

Sorry, I need to read questions carefully. I expect you want to repeat last command.

Start command using shortcut is not possible in direct way. You need to find the command internal name and execute them as mentioned above. You can find the command internal name by shortcut, but it can be a performance issue.

https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-610909D9-235D-4C8C-81B1-8D6BBDF8B99A

 

0 Likes
Message 5 of 8

WCrihfield
Mentor
Mentor

Just to clarify...do you mean that you want to run a specific external iLogic rule by using a keyboard shortcut?  If so, it sounds doable if you have created something like a ButtonDefinition for a Button in your Ribbon that runs an iLogic rule, and has an event handler which handles when the button is clicked, which executes the command.  If so, you could set the ButtonDefinition's DefaultShortcut property to the keyboard shortcut you want, similar to what Michael was pointing out above.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 8

Darkforce_the_ilogic_guy
Advisor
Advisor

What I really want to do...is to create an Shareview.. and get  the link and send it to a mail.. Sind It seens no to have an API because it i an addon ...I try to  find a work around. sind I can do almost all of it by keystork.. using a marco. and was trying to program that into a iloigc code. If i get the shareview created and add the the link to the clipboard I believe I know how to do the rest

0 Likes
Message 7 of 8

Darkforce_the_ilogic_guy
Advisor
Advisor

command internal name  does not exists. So I try to find a work around.. I can create a marco that basicly do almost all I need to do ..By record the right key to hit.. but sind I need to use this with an Ilogic code I already have.. and I do not want to the to have to copy paste it into the mail manualt..SO I need a way to create the sharewiev ... get the link   and add it an email 

0 Likes
Message 8 of 8

Maxim-CADman77
Advisor
Advisor

@Darkforce_the_ilogic_guy 

I wonder have you tried this:

 

System.Windows.Forms.SendKeys.SendWait("{s}{h}")

 


PS:
What is the meaning of word "sind" (you've used it three times within the latest two messages)?

Please vote for Inventor-Idea Text Search within Option Names

0 Likes