<?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 If PartDocumentObject is Structural Profiles in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522468#M163022</link>
    <description>&lt;P&gt;Content Center Parts contain unique iProperties that can be parsed to evaluate which family they are a part of.&lt;BR /&gt;&lt;BR /&gt;Here is a post from Mod The Machine that covers digging into the Content Center properties. It might get you on the right track to pulling out the Family and determining if they are Structural or not?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2012/02/getting-data-from-content-center.html" target="_blank" rel="noopener"&gt;https://modthemachine.typepad.com/my_weblog/2012/02/getting-data-from-content-center.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 17:50:34 GMT</pubDate>
    <dc:creator>NSBowser</dc:creator>
    <dc:date>2024-01-26T17:50:34Z</dc:date>
    <item>
      <title>Check If PartDocumentObject is Structural Profiles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522410#M163017</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I am trying to find a way to retrieve parts that use only structural profiles, which are located in the Content Center under the Structural Profile category. With the approach I've taken, I can ignore Plates, but for example, if a part is a Screw, it still enters the list.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub Main()
    Dim oAsmDoc As AssemblyDocument = ThisApplication.ActiveDocument
    Dim fileTXT = System.IO.File.CreateText(ThisDoc.Path &amp;amp; "\SaveFOlder\materialProfiles.txt")

    For Each oDoc In oAsmDoc.AllReferencedDocuments
        ' Se for arquivo de Montagem Ignora
        If oDoc.DocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kPartDocumentObject Then
            Continue For
        End If

        ' Se for arquivo de chapa ignora
        If oDoc.ComponentDefinition.Type = ObjectTypeEnum.kSheetMetalComponentDefinitionObject Then
            Continue for
        End If

        Dim oDef As PartComponentDefinition = oDoc.ComponentDefinition

        Dim materialProfile As String
        materialProfile = oDef.Material.Name

        If materialProfile = "Genérico" Then Continue For
        If materialProfile = "GRATING" Then Continue For

        Dim codeProfile As String
        codeProfile = System.IO.Path.GetFileNameWithoutExtension(oDoc.FullFileName)

        Dim stockNumber As String
        stockNumber = iProperties.Value(System.IO.Path.GetFileName(oDoc.FullFileName), "Project", "Stock Number")

        Dim quantityProfile As Integer
        quantityProfile = oAsmDoc.ComponentDefinition.Occurrences.AllReferencedOccurrences(oDoc).Count

        
        fileTXT.WriteLine(codeProfile &amp;amp; " - " &amp;amp; stockNumber &amp;amp; quantityProfile)

    Next
    fileTXT.Close()

End sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:17:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522410#M163017</guid>
      <dc:creator>Leonardo_Czuy</dc:creator>
      <dc:date>2024-01-26T17:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Check If PartDocumentObject is Structural Profiles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522468#M163022</link>
      <description>&lt;P&gt;Content Center Parts contain unique iProperties that can be parsed to evaluate which family they are a part of.&lt;BR /&gt;&lt;BR /&gt;Here is a post from Mod The Machine that covers digging into the Content Center properties. It might get you on the right track to pulling out the Family and determining if they are Structural or not?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2012/02/getting-data-from-content-center.html" target="_blank" rel="noopener"&gt;https://modthemachine.typepad.com/my_weblog/2012/02/getting-data-from-content-center.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:50:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522468#M163022</guid>
      <dc:creator>NSBowser</dc:creator>
      <dc:date>2024-01-26T17:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Check If PartDocumentObject is Structural Profiles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522473#M163023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11986375"&gt;@Leonardo_Czuy&lt;/a&gt;.&amp;nbsp; The quickest way to tell if a part is associated with the Content Center is by checking its &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=PartComponentDefinition_IsContentMember" target="_blank" rel="noopener"&gt;PartComponentDefinition.IsContentMember&lt;/A&gt;&amp;nbsp;property value (ReadOnly Boolean).&amp;nbsp; If True, you can proceed to check within the extra PropertySet(s) (&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=PartDocument_PropertySets" target="_blank" rel="noopener"&gt;PartDocument.PropertySets&lt;/A&gt;) for additional Content Center related information about it.&amp;nbsp; There is a PropertySet named "Content Library Component Properties" with around 10 properties in it you can look into.&amp;nbsp; There is also sometimes one called "ContentCenter", but that one may only contain one Property named "IsCustomPart" with an Integer type value (most likely 1 for true, or zero for false).&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:55:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522473#M163023</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-01-26T17:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Check If PartDocumentObject is Structural Profiles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522616#M163028</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i create a Structure Shape i am using&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-FAF2FFB2-8965-482C-9691-530954AF59E1" target="_blank" rel="noopener"&gt;Structural Frames&lt;/A&gt;&amp;nbsp;with&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-953F560A-C2D3-4031-8348-762054C7C779" target="_blank" rel="noopener"&gt;Frame Generator, &lt;/A&gt;&amp;nbsp;i wanna this profiles for export to txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 19:32:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12522616#M163028</guid>
      <dc:creator>Leonardo_Czuy</dc:creator>
      <dc:date>2024-01-26T19:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Check If PartDocumentObject is Structural Profiles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12523054#M163035</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11986375"&gt;@Leonardo_Czuy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From you last post you want to filter frame generator parts from this post &lt;A href="https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Cannot-change-frame-generator-skeleton-part-with-iLogic-in-Inventor.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&amp;nbsp;there is a function where you can query if a part is used in frame generator.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 01:08:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12523054#M163035</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-01-27T01:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check If PartDocumentObject is Structural Profiles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12525521#M163064</link>
      <description>&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As alluded to earlier, you can use the fact that content center parts contain property information to quickly determine whether a component occurrence came from somewhere in the structural shapes content folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned, use the&amp;nbsp;ComponentDefinition.IsContentMember property to determine if the part is from the content center, and if required, check the only property in the PropertySets.Item(6) property set to determine if the part is a custom or standard content center part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although not visible through the user interface, the design tracking property set contains a few properties that only hold information if the part comes from the content center. The "Categories" property&amp;nbsp; [ PropertySets.Item(3).ItemByPropId(56) ] has a complete xml description of the specific content center part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This xml information is stored as a text string, accessible through the Value property of this Inventor property. Since you are only looking to find if this came from the structural shapes folder in the content center, you just need to check to see if this text string contains the unique identifier for the Structural Shapes folder. The attached text file is a portion of this text string and you can see the information on the CC folder is right at the top. The "Structural Shapes" display name is likely to be localized for the current language but the Internal Name of this folder will always be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check if the part is from the Structural Shapes CC folder, use something like the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;PropertySets.Item(3).ItemByPropId(56).Value.Contains("089c4875-fa83-4c05-b084-43b9cc11f5ed") Then&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;' this part is from the&amp;nbsp; structural shapes CC folder&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Apply appropriate error handling with all code.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 01:50:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12525521#M163064</guid>
      <dc:creator>nmunro</dc:creator>
      <dc:date>2024-01-29T01:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Check If PartDocumentObject is Structural Profiles</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12526315#M163080</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/35568"&gt;@nmunro&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1659862"&gt;@NSBowser&lt;/a&gt;&amp;nbsp;for Helping.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 11:56:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/check-if-partdocumentobject-is-structural-profiles/m-p/12526315#M163080</guid>
      <dc:creator>Leonardo_Czuy</dc:creator>
      <dc:date>2024-01-29T11:56:22Z</dc:date>
    </item>
  </channel>
</rss>

