<?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 ilogic project center point into Sketch in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11346887#M34405</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;When I copy sketch from one part to another the center point is not created in the new sketch. Is there a way to project a center point into a sketch using ilogic?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 16:59:04 GMT</pubDate>
    <dc:creator>dimamazutaMMJ32</dc:creator>
    <dc:date>2022-08-08T16:59:04Z</dc:date>
    <item>
      <title>ilogic project center point into Sketch</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11346887#M34405</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;When I copy sketch from one part to another the center point is not created in the new sketch. Is there a way to project a center point into a sketch using ilogic?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 16:59:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11346887#M34405</guid>
      <dc:creator>dimamazutaMMJ32</dc:creator>
      <dc:date>2022-08-08T16:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic project center point into Sketch</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11347070#M34406</link>
      <description>&lt;P&gt;is this what you are looking for&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim sketch As PlanarSketch = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAllPlanarEntities, "")

Dim partDef As PartComponentDefinition = sketch.Parent

Dim cp = partDef.WorkPoints.Item("Center Point")

sketch.AddByProjectingEntity(cp)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Aug 2022 18:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11347070#M34406</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-08-08T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic project center point into Sketch</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11347105#M34407</link>
      <description>&lt;P&gt;It automatically projects the origin point if you manually start a new sketch so im assuming your creating the sketch with ilogic aswell?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oCompDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSketch&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PlanarSketch&lt;/SPAN&gt;
&lt;SPAN&gt;oSketch&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Sketches&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;WorkPlanes&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"XY Plane"&lt;/SPAN&gt;))
&lt;SPAN&gt;'add origin point&lt;/SPAN&gt;
&lt;SPAN&gt;oSketch&lt;/SPAN&gt;.&lt;SPAN&gt;AddByProjectingEntity&lt;/SPAN&gt;(&lt;SPAN&gt;oCompDef&lt;/SPAN&gt;.&lt;SPAN&gt;WorkPoints&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Center Point"&lt;/SPAN&gt;))

&lt;SPAN&gt;oSketch&lt;/SPAN&gt;.&lt;SPAN&gt;Edit&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPasteControlDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oPasteControlDef&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"AppPasteCmd"&lt;/SPAN&gt;)
&lt;SPAN&gt;oPasteControlDef&lt;/SPAN&gt;.&lt;SPAN&gt;Execute&lt;/SPAN&gt;
&lt;SPAN&gt;oSketch&lt;/SPAN&gt;.&lt;SPAN&gt;ExitEdit&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Aug 2022 18:56:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11347105#M34407</guid>
      <dc:creator>dalton98</dc:creator>
      <dc:date>2022-08-08T18:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic project center point into Sketch</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11350416#M34408</link>
      <description>&lt;P&gt;Yes, I create sketch with ilogic.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 05:15:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-project-center-point-into-sketch/m-p/11350416#M34408</guid>
      <dc:creator>dimamazutaMMJ32</dc:creator>
      <dc:date>2022-08-10T05:15:15Z</dc:date>
    </item>
  </channel>
</rss>

