<?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 Way to see if part is iPart in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/9652661#M113675</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to automatically fill the stock number of a part to "SEE CHART" if the part is an iPart and simply fill the part number of it's a regular part. I have this bit of an iLogic rule I got working looking at some other variable for the time being, but I'm not sure how to code in to see if something is an iPart or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreaciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oPN As String
oPN = iProperties.Value("Project", "Part Number")

Dim oSN As String
oSN = iProperties.Value("Project", "Stock Number")

If "Part is an iPart" Then
	
	iProperties.Value("Project", "Stock Number") = "SEE CHART"
	
	Else 
		iProperties.Value("Project", "Stock Number") = oPN

End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 00:13:24 GMT</pubDate>
    <dc:creator>s.mich</dc:creator>
    <dc:date>2020-07-24T00:13:24Z</dc:date>
    <item>
      <title>Way to see if part is iPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/9652661#M113675</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to automatically fill the stock number of a part to "SEE CHART" if the part is an iPart and simply fill the part number of it's a regular part. I have this bit of an iLogic rule I got working looking at some other variable for the time being, but I'm not sure how to code in to see if something is an iPart or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreaciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oPN As String
oPN = iProperties.Value("Project", "Part Number")

Dim oSN As String
oSN = iProperties.Value("Project", "Stock Number")

If "Part is an iPart" Then
	
	iProperties.Value("Project", "Stock Number") = "SEE CHART"
	
	Else 
		iProperties.Value("Project", "Stock Number") = oPN

End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 00:13:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/9652661#M113675</guid>
      <dc:creator>s.mich</dc:creator>
      <dc:date>2020-07-24T00:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Way to see if part is iPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/9652705#M113676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5308989"&gt;@s.mich&lt;/a&gt;, you can check if a part is an iPart by checking the "&lt;A href="https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-1B2F7E41-ABEB-4FF9-9388-360BCA7AB3F1" target="_blank" rel="noopener"&gt;IsiPartFactory&lt;/A&gt;" property of its ComponentDefinition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;If ThisDoc.Document.ComponentDefinition.IsiPartFactory Then
	' Do stuff...
Else
	' Do other stuff...
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 00:43:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/9652705#M113676</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2020-07-24T00:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Way to see if part is iPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/9653688#M113720</link>
      <description>&lt;P&gt;It worked perfectly thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 14:14:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/9653688#M113720</guid>
      <dc:creator>s.mich</dc:creator>
      <dc:date>2020-07-24T14:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Way to see if part is iPart</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/12149978#M156049</link>
      <description>&lt;P&gt;Quick note for anyone else referencing this: If this iLogic might possibly run on an assembly document or drawing document, you will need to first make sure that the document is a part document, otherwise it will throw an exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;If ThisDoc.Document.DocumentType = documenttypeenum.kPartDocumentObject _
AndAlso ThisDoc.Document.ComponentDefinition.IsiPartFactory Then
	' Do stuff...
Else
	' Do other stuff...
End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 17:30:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/way-to-see-if-part-is-ipart/m-p/12149978#M156049</guid>
      <dc:creator>Matthew_Policelli</dc:creator>
      <dc:date>2023-08-04T17:30:26Z</dc:date>
    </item>
  </channel>
</rss>

