Execute the Point and dimension command via ilogic

Execute the Point and dimension command via ilogic

murugasubi
Enthusiast Enthusiast
438 Views
2 Replies
Message 1 of 3

Execute the Point and dimension command via ilogic

murugasubi
Enthusiast
Enthusiast

Dear,

Please refer to the attached image, This is a warehouse creation tool. This tool will be used by the non-technical person and he may not have an idea about drafting in inventor.  The user going to use only the points and dimension commands.

 

So my requirement is if the user clicks on the add point ilogic rule, the point command has to be executed instead of going to the toolbar and selecting the point command. He will click anywhere in the sketch and create points. Similarly for dimension as well.

Could you please help me with ilogic code to trigger the point and dimension event?

 

Thanks in advance.

 

0 Likes
Accepted solutions (1)
439 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor
Accepted solution

You will need to work out the  command button you want to activate by name. Here is a list of commands that was kindly created for this purpose.

 

Here is the official documentation on finding the list of commands. It is in vba so you will need to either run it in vba or to convert it for the ilogic/vb.net environment.

This is the snippet required to activate a command. Extracted from here

 

    ' Execute the copy command.
    Dim ControlDef As ControlDefinition
    ControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppCopyCmd")
    ControlDef.Execute
    

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 3

murugasubi
Enthusiast
Enthusiast
Thanks a lot, it's working well.
0 Likes