<?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: Find all parts excluded from nesting via model browser, un-exclude programatically? in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12887185#M16860</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7589082"&gt;@ccec_ireland&lt;/a&gt;&amp;nbsp;, there is an Attribute that you can read to get the exclude status of a part. It is on the Document object. The AttributeSet name is&amp;nbsp;TruNEST_Attribute and the Attribute name is&amp;nbsp;ExcludeFromNesting. It is an Integer. If the value of this Attribute is 1, then the part will be excluded from nesting. If the value is zero, it will be included.&lt;BR /&gt;&lt;BR /&gt;You can use that to answer your first question: "Does anyone know of a way to identify the parts which have been excluded from nesting?"&lt;BR /&gt;Do you also want to implement this: "iterate the model and clear that flag from every part" ?&lt;BR /&gt;If so, I'll try to find out if it's safe to do that using only the Attributes API. That would be simpler than trying to run the command on individual parts.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 17:04:24 GMT</pubDate>
    <dc:creator>MjDeck</dc:creator>
    <dc:date>2024-07-09T17:04:24Z</dc:date>
    <item>
      <title>Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12880538#M16843</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several models which at one point in time or another have had certain parts excluded from nesting for various reasons. This was done by right click in model browser and select "exclude from nesting." Now, through part and assembly re-use in newer projects, I find myself constantly missing parts because the "exclude from nesting" property followed the part through the copy design operation into the new assembly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really don't want to have to manually look at every part to see if that property is set. I was hoping I could just use "Find Component" and search for those with that property set (this is how I find all invisible parts in an assembly) but I do not see that property available in the search parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to identify the parts which have been excluded from nesting? Or perhaps a bit of iLogic to iterate the model and clear that flag from every part?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other ideas of ways to fix/work through this besides the obvious policy fix of "quit using the exclude from nesting flag"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 16:15:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12880538#M16843</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-05T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12882224#M16844</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7589082"&gt;@ccec_ireland&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you send a screenshot of the command you need to use. I assume your using an addin? Can you share the name of that? I doubt there is API access to this exclude command but you might be able to fire the UI command when the correct browser node is selected effectively like pressing the UI Button.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 05:19:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12882224#M16844</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-07-07T05:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884151#M16845</link>
      <description>&lt;P&gt;I do have a few plug ins, but I believe this is a standard feature. We are currently on 2022.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccec_ireland_0-1720442750859.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1384196i33C3BD3B829BDB22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ccec_ireland_0-1720442750859.png" alt="ccec_ireland_0-1720442750859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 12:49:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884151#M16845</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-08T12:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884469#M16846</link>
      <description>&lt;P&gt;I believe this command button comes into use when the nesting add-in is used. I haven’t seen this before. You can check if the command button exists by checking the control definitions. From this post &lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/list-of-command-included-in-commandmanager-ilogic/m-p/12118182/highlight/true#M155526" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Run the code and then search the text file for keywords such as “Nesting”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should see a line which has exclude from nesting as a note. If you do then the control definition exists and you can execute it to mimic you pressing the button. The next step would be to highlight the part and press the button.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 14:41:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884469#M16846</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-07-08T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884698#M16847</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;thanks for the ideas. I found these two sets of commands. Anyone familiar with these?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;InventorComposites.MAGInvLaunchCmd.ExcludeFromNestingCmd +++ Exclude from Nesting.&lt;/P&gt;&lt;P&gt;InventorComposites.MAGInvLaunchCmd.UseForNestingCmd +++ Use for Nesting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRUNEST_COMMAND_EXCLUDEFROMNESTINGCMD_0 +++ Exclude from Nesting&lt;/P&gt;&lt;P&gt;TRUNEST_COMMAND_USEFORNESTINGCMD_0 +++ Use for Nesting&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:23:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884698#M16847</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-08T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884802#M16848</link>
      <description>&lt;P&gt;Good you found something. To run this when the part or browsernode is selected use the below. Type in the control definition you found into the brackets below .Item(".....')&lt;/P&gt;&lt;P&gt;If it switches it on/off then you have found the correct one. Selecting the occurrence/browser node is the next step after that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;    Dim controlDefs As ControlDefinitions = ThisApplication.CommandManager.ControlDefinitions

    Dim controlDef As ControlDefinition = controlDefs.Item(".....Enter Control Def......"

    controlDef.Execute&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 17:05:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12884802#M16848</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-07-08T17:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885255#M16849</link>
      <description>&lt;P&gt;These both compile and run, but so far I have not observed the state change when running these. I am selecting the part and then running the rule. Do I need to explicitly call the rule on the part from within the code? Thanks for the help, I'm brand new to iLogic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:52:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885255#M16849</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-08T22:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885266#M16850</link>
      <description>&lt;P&gt;So you can only change the setting by opening the part exclusively? If you can indicate what manual steps you take to change the setting then I can help you build around this information to automate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 21:41:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885266#M16850</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-07-08T21:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885282#M16851</link>
      <description>&lt;P&gt;Correct. If I right click in the assembly tree, there is no "exclude" in the context menu. Even if I step into the part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccec_ireland_0-1720475133816.png" style="width: 221px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1384427i87A5A0B9559BDEED/image-dimensions/221x641?v=v2" width="221" height="641" role="button" title="ccec_ireland_0-1720475133816.png" alt="ccec_ireland_0-1720475133816.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccec_ireland_1-1720475191549.png" style="width: 238px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1384429iA243E2C798F260BB/image-dimensions/238x397?v=v2" width="238" height="397" role="button" title="ccec_ireland_1-1720475191549.png" alt="ccec_ireland_1-1720475191549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But if I open the part directly, I have the "exclude" option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccec_ireland_2-1720475315789.png" style="width: 304px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1384432iC77967EC751DD5A3/image-dimensions/304x375?v=v2" width="304" height="375" role="button" title="ccec_ireland_2-1720475315789.png" alt="ccec_ireland_2-1720475315789.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see in my context menu that "use for nesting" was the last command run. However, this doesn't clear the exclude check mark. If that's what it's supposed to do, and if this is how it is supposed to be used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there no documentation from Autodesk on these commands and their use/syntax?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 21:55:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885282#M16851</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-08T21:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885298#M16852</link>
      <description>&lt;P&gt;Ok then you need to be inside the part to run the rule. Alot of this is trial an error, narrowing down the correct definition to use. There is no help page other than to get to the definition list and how to execute. Can you attach the code your using?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885298#M16852</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-07-08T22:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885324#M16853</link>
      <description>&lt;LI-CODE lang="general"&gt;Dim controlDefs As ControlDefinitions = ThisApplication.CommandManager.ControlDefinitions

    Dim controlDef As ControlDefinition = controlDefs.Item("TRUNEST_COMMAND_USEFORNESTINGCMD_0")

    controlDef.Execute&lt;/LI-CODE&gt;&lt;P&gt;I added this as a rule within the part, then selected the part and ran the rule. I tried it with all four commands, the exclude feature never toggled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885324#M16853</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-08T22:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885339#M16854</link>
      <description>&lt;P&gt;Ok, I do have something working now. I thought these were both working, but in further testing only&lt;/P&gt;&lt;P&gt;TRUNEST_COMMAND_EXCLUDEFROMNESTINGCMD_0&lt;/P&gt;&lt;P&gt;is actually doing anything. This command will toggle that value regardless of where its currently set. In order to use this command, we will need to first check to see if the part is excluded or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to get a list of the attributes/variables tied to a part? This bit must be stored somewhere and have a name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:50:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885339#M16854</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-08T22:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885528#M16855</link>
      <description>&lt;P&gt;Ah yes this is where having no API makes things very difficult.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From this article &lt;A href="https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can access the properties(iproperties) of the document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;  ' Get the active document.
    Dim doc As Document = ThisApplication.ActiveDocument

    ' Get the PropertySets object.
    Dim propSets As PropertySets= doc.PropertySets

    ' Get the design tracking property set.
    For each propSet As PropertySet = propSets
        For each prop As [Property] In propSet
        Logger.Info(prop.DisplayName)
        Logger.Info(prop.Value)

        Next
     Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:17:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12885528#M16855</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-07-09T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886544#M16856</link>
      <description>&lt;P&gt;I used this code to extract all of the property values from the file. I added some error handling because the images couldn't convert to strings, and output it to a file because I wasn't sure how to retrieve the logger info.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  'catch and skip errors
  On Error Resume Next
  
    ' Create empty list.
	Dim oList As New ArrayList
	oList.Add( "Property Name " &amp;amp; "Value" )
	
	' Get the active document.
    Dim doc As Document = ThisApplication.ActiveDocument

    ' Get the PropertySets object.
    Dim propSets As PropertySets= doc.PropertySets

    ' Get the design tracking property set.
    For Each propSet As PropertySet In propSets
        For Each prop As [Property] In propSet
        oList.Add(prop.DisplayName &amp;amp; " = " &amp;amp; prop.Value)
        'Logger.Info(prop.DisplayName)
		'Logger.Info(prop.Value)

        Next
     Next
	
	'Create file.
	oWrite = System.IO.File.CreateText("C:\Temp\DocProperties.txt")
	'Write Array out to String.
	For Each Item As String In oList
		oWrite.WriteLine(Item)
	Next

	oWrite.Close()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't see anything in there that appears to be related to the nesting status. Are there other property sets?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:52:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886544#M16856</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-09T12:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886561#M16857</link>
      <description>&lt;LI-CODE lang="general"&gt;C:\temp&amp;gt; fc DocPropertiesExcluded.txt DocPropertiesIncluded.txt
Comparing files DocPropertiesExcluded.txt and DOCPROPERTIESINCLUDED.TXT
FC: no differences encountered&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to be sure I ran the rule with nesting enabled and disabled. Identical outputs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:58:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886561#M16857</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-09T12:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886835#M16858</link>
      <description>&lt;P&gt;One more thing you could try is to see if the Enabled status displays any difference if ticked or unticked. I suspect it will be the same because that usually just indicates if the button exists in the button dialogue.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim controlDefs As ControlDefinitions = ThisApplication.CommandManager.ControlDefinitions

Dim controlDef As ControlDefinition = controlDefs.Item("TRUNEST_COMMAND_USEFORNESTINGCMD_0")

Dim Ans As Boolean 'Check status of this command
Ans = controlDef.Enabled
MessageBox.Show(Ans)
	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;do you think there is away forward in detecting if the exclude from nesting is checked or unchecked? The command above simply Toggles it off and on with no way to detect the status.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:40:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886835#M16858</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-07-09T14:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886969#M16859</link>
      <description>&lt;P&gt;Yep, I get a TRUE either way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 15:23:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12886969#M16859</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-09T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12887185#M16860</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7589082"&gt;@ccec_ireland&lt;/a&gt;&amp;nbsp;, there is an Attribute that you can read to get the exclude status of a part. It is on the Document object. The AttributeSet name is&amp;nbsp;TruNEST_Attribute and the Attribute name is&amp;nbsp;ExcludeFromNesting. It is an Integer. If the value of this Attribute is 1, then the part will be excluded from nesting. If the value is zero, it will be included.&lt;BR /&gt;&lt;BR /&gt;You can use that to answer your first question: "Does anyone know of a way to identify the parts which have been excluded from nesting?"&lt;BR /&gt;Do you also want to implement this: "iterate the model and clear that flag from every part" ?&lt;BR /&gt;If so, I'll try to find out if it's safe to do that using only the Attributes API. That would be simpler than trying to run the command on individual parts.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 17:04:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12887185#M16860</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2024-07-09T17:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12887576#M16861</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;.&amp;nbsp;I'll work on identifying the parts using that attribute. Even if I just end up with a list of parts to go in and manually switch, that's way better than having to manually search for them!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to implement something to find and clear these flags through an entire model if I can. Please let me know what you find.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 20:23:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12887576#M16861</guid>
      <dc:creator>ccec_ireland</dc:creator>
      <dc:date>2024-07-09T20:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find all parts excluded from nesting via model browser, un-exclude programatically?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12892276#M16862</link>
      <description>&lt;P&gt;I confirmed that it's safe to use the Attributes API to set the flag, rather than using the command. So if you want to clear the flags for all parts in an assembly:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;iterate over all the parts&lt;/LI&gt;
&lt;LI&gt;in any part where that Attribute is set to 1 (one), set it to 0 (zero)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 11 Jul 2024 18:45:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/find-all-parts-excluded-from-nesting-via-model-browser-un/m-p/12892276#M16862</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2024-07-11T18:45:53Z</dc:date>
    </item>
  </channel>
</rss>

