<?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: Selecting 2D point from active sketch in inventor? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5412831#M121639</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at this post. The mouse events part might work inside the Sketch environment as well:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2013/02/pick-a-point.html" target="_self"&gt;http://adndevblog.typepad.com/manufacturing/2013/02/pick-a-point.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Wed, 19 Nov 2014 00:40:58 GMT</pubDate>
    <dc:creator>adam.nagy</dc:creator>
    <dc:date>2014-11-19T00:40:58Z</dc:date>
    <item>
      <title>Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5404077#M121638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using Inventor 2013 and VB-Express. I have form to do something. When I press the button on this form, I want to select two point from the active sketch and draw rectangle between these points. Every time user need to select by mouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make user to select 2Dpoint intereactively from the active sketch?...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mucip:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2014 13:57:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5404077#M121638</guid>
      <dc:creator>mucip</dc:creator>
      <dc:date>2014-11-14T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5412831#M121639</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a look at this post. The mouse events part might work inside the Sketch environment as well:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2013/02/pick-a-point.html" target="_self"&gt;http://adndevblog.typepad.com/manufacturing/2013/02/pick-a-point.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 00:40:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5412831#M121639</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2014-11-19T00:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5413399#M121640</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;Thanks for your kind interest. Infact, I have seen this blog in Google search but I couldn't understand how can I do this in VB-Express API?... Especially the mouse event?!...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there guidence sample for VB-Express API to pick point?...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mucip:)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 08:10:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5413399#M121640</guid>
      <dc:creator>mucip</dc:creator>
      <dc:date>2014-11-19T08:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5418359#M121641</link>
      <description>&lt;P&gt;Hi Mucip,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to clarify, the Inventor API is not specific to VB Express, it's the same everywhere. &lt;BR /&gt;Event handling is not specific to VB Express either, but to the programming language: in your case VB / VB.NET&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a VB.NET sample in the SDK that should help you get started with implementing what you want:&lt;/P&gt;
&lt;P&gt;"C:\Users\Public\Documents\Autodesk\Inventor 2015\SDK\DeveloperTools\Samples\VB.NET\Standalone Applications\Inventor\UserInteraction"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 17:07:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5418359#M121641</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2014-11-20T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5418729#M121642</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;it would be perfect if I have Inventor 2015 but I use still 2013 unfortunately... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other alternative in case of check this code which you explain to me?...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mucip:)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 19:26:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5418729#M121642</guid>
      <dc:creator>mucip</dc:creator>
      <dc:date>2014-11-20T19:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5421560#M121643</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;I saw many post in this forums that the VBA code doesn't work with API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/inventor-customization/addin-doevents-doesn-t-work/m-p/4329286/highlight/true#M45026"&gt;http://forums.autodesk.com/t5/inventor-customization/addin-doevents-doesn-t-work/m-p/4329286/highlight/true#M45026&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/inventor-customization/doevents-and-vb-net-selection/m-p/2006589/highlight/true#M21434"&gt;http://forums.autodesk.com/t5/inventor-customization/doevents-and-vb-net-selection/m-p/2006589/highlight/true#M21434&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/inventor-customization/mouse-event-does-not-work-in-2011-2009-no-problems/m-p/2763164/highlight/true#M33063"&gt;http://forums.autodesk.com/t5/inventor-customization/mouse-event-does-not-work-in-2011-2009-no-problems/m-p/2763164/highlight/true#M33063&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to find API version of this code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you may publish the API version of the code which you target me above...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mucip:)&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 13:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5421560#M121643</guid>
      <dc:creator>mucip</dc:creator>
      <dc:date>2014-11-23T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5421774#M121644</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found below code from İnventor Programing help section but not work?!...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim Nokta As Inventor.Point2d&lt;/P&gt;&lt;P&gt;'&lt;SPAN&gt;Dim Nokta As object&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Nokta = Form1.inv_App.CommandManager.Pick(SelectionFilterEnum.kSketchPointFilter, "Select the point...")&lt;/P&gt;&lt;P&gt;MsgBox("Seçilen: " &amp;amp; Nokta.X)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I set is as object then it works... How can I convert object to point?...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mucip:)&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 21:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5421774#M121644</guid>
      <dc:creator>mucip</dc:creator>
      <dc:date>2014-11-23T21:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5421967#M121645</link>
      <description>&lt;P&gt;The type of object being returned is a SketchPoint not a Point2D object.&amp;nbsp; This should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim Nokta As Inventor.SketchPoint

Nokta = Form1.inv_App.CommandManager.Pick(SelectionFilterE​num.kSketchPointFilter, "Select the point...")
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need the position of the sketch point you can use its Geometry property which returns a Point2D object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 05:24:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5421967#M121645</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2014-11-24T05:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5422030#M121646</link>
      <description>&lt;P&gt;Dear Brian,&lt;/P&gt;&lt;P&gt;This the code which I need exactly... Thanks... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mucip:)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 07:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/5422030#M121646</guid>
      <dc:creator>mucip</dc:creator>
      <dc:date>2014-11-24T07:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/12587658#M121647</link>
      <description>&lt;P&gt;Hi, sorry for digging up the topic.&lt;BR /&gt;Do you perhaps remember how you wrote this code? Is the snippet suggested by @ekinsby the whole code or just part of the larger code? Was it written in ilogic editor or in VBA? Thanks in advance for your reply.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 11:38:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/12587658#M121647</guid>
      <dc:creator>kagum93</dc:creator>
      <dc:date>2024-02-28T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting 2D point from active sketch in inventor?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/12588561#M121648</link>
      <description>&lt;P&gt;Dear kagum94,&lt;/P&gt;&lt;P&gt;It's been 10 years and I don't remember sharp sorry.&lt;/P&gt;&lt;P&gt;But I was using Visual Basic and Inventor API.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mucip:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 17:11:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/selecting-2d-point-from-active-sketch-in-inventor/m-p/12588561#M121648</guid>
      <dc:creator>mucip</dc:creator>
      <dc:date>2024-02-28T17:11:38Z</dc:date>
    </item>
  </channel>
</rss>

