<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Mouse Events using iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3902927#M131986</link>
    <description>&lt;P&gt;Check the below form to understand my requirement&lt;BR /&gt;&lt;A target="_blank" href="https://forums.autodesk.com/t5/Autodesk-Inventor-Customization/ilogic-to-handle-mouse-event-for-part-selection/td-p/3902918"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/ilogic-to-handle-mouse-event-for-part-selection/td-p/3902918&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2013 09:14:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-05-02T09:14:24Z</dc:date>
    <item>
      <title>Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3795951#M131983</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm trying to get the point location of a mouse click in an Inventor drawing using an iLogic Rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any one have any examples of using mouse events in iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 02:13:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3795951#M131983</guid>
      <dc:creator>nstone</dc:creator>
      <dc:date>2013-03-05T02:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3813469#M131984</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the code below helps. Copy it to iLogic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;

Sub Main()
 Dim oInteraction  As InteractionEvents 
 oInteraction = ThisApplication.CommandManager.CreateInteractionEvents

 Dim oMouse As MouseEvents
 oMouse = oInteraction.MouseEvents
  AddHandler oMouse.OnMouseDown  ,AddressOf oMouse_OnMouseDown 

  oInteraction.Start

 
End Sub

Sub oMouse_OnMouseDown(Button As MouseButtonEnum, ShiftKeys As ShiftStateEnum, ModelPosition As Point, ViewPosition As Point2d, view As View)
  MsgBox (Button)
End Sub


 &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 04:21:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3813469#M131984</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-03-25T04:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3902524#M131985</link>
      <description>Hi,&lt;BR /&gt;I would like use ilogic to select and replace a component in the assembly by using mouse selection. Whether it is possible by using ilogic&lt;BR /&gt;&lt;BR /&gt;I have already posted my assembly file in the below link&lt;BR /&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/Autodesk-Inventor/ilogic-part-insertion/m-p/3667380"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor/ilogic-part-insertion/m-p/3667380&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Need your input regarding this&lt;BR /&gt;Carthik</description>
      <pubDate>Thu, 02 May 2013 06:02:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3902524#M131985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-02T06:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3902927#M131986</link>
      <description>&lt;P&gt;Check the below form to understand my requirement&lt;BR /&gt;&lt;A target="_blank" href="https://forums.autodesk.com/t5/Autodesk-Inventor-Customization/ilogic-to-handle-mouse-event-for-part-selection/td-p/3902918"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/ilogic-to-handle-mouse-event-for-part-selection/td-p/3902918&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 09:14:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3902927#M131986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-02T09:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3905599#M131987</link>
      <description>&lt;P&gt;Did you try the CommandManager.Pick method?&amp;nbsp; If you just need a single item selected, this is much simpler than implementing events.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 16:48:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3905599#M131987</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2013-05-03T16:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3909836#M131988</link>
      <description>Hi, Searched for the whole day to know how to handle commandmanager.pick method.....i found no solution to handle by ilogic...i found codes, that can be run by using VBA Editor. I am not familiar with VBA &amp;amp; Macros.&lt;BR /&gt;Can you please help me in creating the ilogic code to remove the component from the assembly by selection, the assembly file is available in the below link&lt;BR /&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/ilogic-to-handle-mouse-event-for-part-selection/td-p/3902918"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/ilogic-to-handle-mouse-event-for-part-selection/td-p/3902918&lt;/A&gt;&lt;BR /&gt;Need help regarding the same..</description>
      <pubDate>Mon, 06 May 2013 10:18:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3909836#M131988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-06T10:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3914760#M131989</link>
      <description>&lt;P&gt;Question was solved in the following&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/Autodesk-Inventor-Customization/ilogic-to-handle-mouse-event-for-part-selection/td-p/3902918" target="_self"&gt;post&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 07:35:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3914760#M131989</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2013-05-09T07:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3923048#M131990</link>
      <description>&lt;P&gt;Hi, can you post ilogic to get XYZ positon of the mouse, when the mousedownbutton is 1. I would like to place component in an assembly based on mouse position on click.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carthik&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 08:09:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3923048#M131990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-15T08:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3925159#M131991</link>
      <description>&lt;P&gt;You can't do that in iLogic, retrieving mouse coordinates requires the use of InteractionEvents, this is an API functionality that needs events and iLogic doesn't support events.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the API Help Files you can find complete examples on how to use InteractionEvents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Le me know if you have more specific questions about the use of the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 14:59:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/3925159#M131991</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2013-05-16T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Mouse Events using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/4651533#M131992</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the solution to place component based on mouse click, based on the above code by&amp;nbsp;xiaodong.liang&lt;SPAN&gt;&lt;A target="_self" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/823624"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oInteraction&lt;/SPAN&gt;  &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;InteractionEvents&lt;/SPAN&gt; &lt;BR /&gt; &lt;SPAN&gt;oInteraction&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;CreateInteractionEvents&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMouse&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;MouseEvents&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN&gt;oMouse&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oInteraction&lt;/SPAN&gt;.&lt;SPAN&gt;MouseEvents&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN&gt;AddHandler&lt;/SPAN&gt; &lt;SPAN&gt;oMouse&lt;/SPAN&gt;.&lt;SPAN&gt;OnMouseDown&lt;/SPAN&gt;  ,&lt;SPAN&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN&gt;oMouse_OnMouseDown&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;  &lt;SPAN&gt;oInteraction&lt;/SPAN&gt;.&lt;SPAN&gt;Start&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;oMouse_OnMouseDown&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Button&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;MouseButtonEnum&lt;/SPAN&gt;, &lt;SPAN&gt;ShiftKeys&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ShiftStateEnum&lt;/SPAN&gt;, &lt;SPAN&gt;ModelPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point&lt;/SPAN&gt;, &lt;SPAN&gt;ViewPosition&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;, &lt;SPAN&gt;view&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;View&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;MsgBox (Button)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;Posx&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ModelPosition&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN&gt;Posy&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ModelPosition&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt;&lt;BR /&gt;  &lt;SPAN&gt;Posz&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;ModelPosition&lt;/SPAN&gt;.&lt;SPAN&gt;Z&lt;/SPAN&gt;&lt;BR /&gt;  &lt;BR /&gt;  &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Create a matrix.  &lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMatrix&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Matrix&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTG&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;oTG&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;oMatrix&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oTG&lt;/SPAN&gt;.&lt;SPAN&gt;CreateMatrix&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyComponentDefinition&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;oFile&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;X:\Pipe Clamp &amp;amp; Liner Assembly - Manual.iam&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN&gt;oMatrix&lt;/SPAN&gt;.&lt;SPAN&gt;SetTranslation&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oTG&lt;/SPAN&gt;.&lt;SPAN&gt;CreateVector&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Posx&lt;/SPAN&gt;, &lt;SPAN&gt;Posy&lt;/SPAN&gt;, &lt;SPAN&gt;Posz&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt; &lt;BR /&gt;    &lt;SPAN&gt;oOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oAsmCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oFile&lt;/SPAN&gt;, &lt;SPAN&gt;oMatrix&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;BR /&gt;    &lt;BR /&gt;    &lt;BR /&gt;  &lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 04:48:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-mouse-events-using-ilogic/m-p/4651533#M131992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-26T04:48:31Z</dc:date>
    </item>
  </channel>
</rss>

