<?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: Existing sketch redefine to another workplane in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/existing-sketch-redefine-to-another-workplane/m-p/12006771#M22919</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13518190"&gt;@Andrii_Humeniuk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the code and it's working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the sketch is redefined, the constraint is deleted, how can I keep up the constrain? example in sketch1 I have drawn a circle positioned at the line's&amp;nbsp; end point which is projected. i want to keep the constrain .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can u help me ipon that&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 10:31:39 GMT</pubDate>
    <dc:creator>ArunS2DHBM</dc:creator>
    <dc:date>2023-06-02T10:31:39Z</dc:date>
    <item>
      <title>Existing sketch redefine to another workplane</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/existing-sketch-redefine-to-another-workplane/m-p/12006634#M22917</link>
      <description>&lt;P&gt;I have Sketch1, which should be redefined to Workplane1 if my parameter1=WP1 and it&amp;nbsp;should be redefined to Workplane2 if my parameter1=WP2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me with the Ilogic code.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/existing-sketch-redefine-to-another-workplane/m-p/12006634#M22917</guid>
      <dc:creator>ArunS2DHBM</dc:creator>
      <dc:date>2023-06-02T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Existing sketch redefine to another workplane</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/existing-sketch-redefine-to-another-workplane/m-p/12006751#M22918</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11096268"&gt;@ArunS2DHBM&lt;/a&gt;&amp;nbsp;.&amp;nbsp;Try this code, and don't forget to check the compatibility of the names of the sketch and the workplanes.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Private Sub Main()
	Dim oDoc As PartDocument = ThisApplication.ActiveDocument
	Dim oDef As PartComponentDefinition = oDoc.ComponentDefinition
	Dim oSketch As PlanarSketch = oDef.Sketches.Item("Sketch1")
	If parameter1 = "WP1" Then
		oSketch.PlanarEntity = oDef.WorkPlanes.Item("Workplane1")
	Else If parameter1 = "WP2" Then
		oSketch.PlanarEntity = oDef.WorkPlanes.Item("Workplane2")
	End If
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 10:18:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/existing-sketch-redefine-to-another-workplane/m-p/12006751#M22918</guid>
      <dc:creator>Andrii_Humeniuk</dc:creator>
      <dc:date>2023-06-02T10:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Existing sketch redefine to another workplane</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/existing-sketch-redefine-to-another-workplane/m-p/12006771#M22919</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13518190"&gt;@Andrii_Humeniuk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the code and it's working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the sketch is redefined, the constraint is deleted, how can I keep up the constrain? example in sketch1 I have drawn a circle positioned at the line's&amp;nbsp; end point which is projected. i want to keep the constrain .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can u help me ipon that&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 10:31:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/existing-sketch-redefine-to-another-workplane/m-p/12006771#M22919</guid>
      <dc:creator>ArunS2DHBM</dc:creator>
      <dc:date>2023-06-02T10:31:39Z</dc:date>
    </item>
  </channel>
</rss>

