<?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: Check Sketch with Feature in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-sketch-with-feature/m-p/9697372#M114743</link>
    <description>&lt;P&gt;Hello @Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just want to check whether your sketch is owned by feature or not below code will work, if you have open profile sketch and still it is consumed by extrude surface, it will not be shown using below code. it will only show the sketches that are orphan (i.e. not used in any feature).&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;oDef&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;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSketch&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;Sketches&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSketch&lt;/SPAN&gt;.IsOwnedByFeature= &lt;SPAN&gt;True   ' You can use oSketch.Consumed = False as well to check here.&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oSketch&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this has answered your question, please accept this as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dutt Thakar&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 13:26:12 GMT</pubDate>
    <dc:creator>dutt.thakar</dc:creator>
    <dc:date>2020-08-18T13:26:12Z</dc:date>
    <item>
      <title>Check Sketch with Feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-sketch-with-feature/m-p/9502335#M110597</link>
      <description>&lt;P&gt;The following problem occurs in my automation process.&lt;/P&gt;&lt;P&gt;In my case some of the sketch closed entities are not converted as solid while using extrude feature.&lt;/P&gt;&lt;P&gt;So some cuts are missing.&lt;/P&gt;&lt;P&gt;I need to confirm whether all the closed entities are converted as solid. Otherwise i need to show user about the extrude feature conversion error.&lt;/P&gt;&lt;P&gt;Guide me how to identify whether all the closed profiles are converted as Solid?&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 17:07:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-sketch-with-feature/m-p/9502335#M110597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-08T17:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check Sketch with Feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-sketch-with-feature/m-p/9697372#M114743</link>
      <description>&lt;P&gt;Hello @Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you just want to check whether your sketch is owned by feature or not below code will work, if you have open profile sketch and still it is consumed by extrude surface, it will not be shown using below code. it will only show the sketches that are orphan (i.e. not used in any feature).&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;oDef&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;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oSketch&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt;.&lt;SPAN&gt;Sketches&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSketch&lt;/SPAN&gt;.IsOwnedByFeature= &lt;SPAN&gt;True   ' You can use oSketch.Consumed = False as well to check here.&lt;/SPAN&gt;
		&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;oSketch&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this has answered your question, please accept this as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dutt Thakar&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 13:26:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-sketch-with-feature/m-p/9697372#M114743</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2020-08-18T13:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Check Sketch with Feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-sketch-with-feature/m-p/9697475#M114746</link>
      <description>&lt;P&gt;You should study the contents of this link.&amp;nbsp; It describes the Function "AddForSolid()" used to prepare a sketche's profiles for an extrusion feature.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-5A9FA7CB-1EB9-4849-BB9D-11AD01F3DBF6" target="_blank" rel="noopener"&gt;Profiles.AddForSolid Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 14:02:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-sketch-with-feature/m-p/9697475#M114746</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-08-18T14:02:26Z</dc:date>
    </item>
  </channel>
</rss>

