<?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 Selection set creation from outside Navisworks.... in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/selection-set-creation-from-outside-navisworks/m-p/12227487#M1037</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create selection sets from outside Navisworks.... I have list of Components OIDs, using that needs to create selectionsets, I already having program for creating Searchset, this request is for "Selectionsets"&lt;/P&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;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Murali. K&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 13:56:36 GMT</pubDate>
    <dc:creator>Murali_Kandasamy</dc:creator>
    <dc:date>2023-09-08T13:56:36Z</dc:date>
    <item>
      <title>Selection set creation from outside Navisworks....</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/selection-set-creation-from-outside-navisworks/m-p/12227487#M1037</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create selection sets from outside Navisworks.... I have list of Components OIDs, using that needs to create selectionsets, I already having program for creating Searchset, this request is for "Selectionsets"&lt;/P&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;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Murali. K&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 13:56:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/selection-set-creation-from-outside-navisworks/m-p/12227487#M1037</guid>
      <dc:creator>Murali_Kandasamy</dc:creator>
      <dc:date>2023-09-08T13:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selection set creation from outside Navisworks....</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/selection-set-creation-from-outside-navisworks/m-p/12231126#M1038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14420564"&gt;@Murali_Kandasamy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using this below sample code&lt;/P&gt;
&lt;LI-CODE lang="general"&gt; Document doc = Autodesk.Navisworks.Api.Application.ActiveDocument;
            DocumentSelectionSets oSets = doc.SelectionSets;

            Search s = new Search();
            SearchCondition sc = SearchCondition.HasPropertyByDisplayName("Item", "Name");
            s.SearchConditions.Add(sc.EqualValue(VariantData.FromDisplayString("ROOF_3")));
            s.Selection.SelectAll();
            s.Locations = SearchLocations.DescendantsAndSelf;

            ModelItemCollection from = s.FindAll(doc, false);
            doc.CurrentSelection.Clear();
            doc.CurrentSelection.CopyFrom(from);

            SavedItem newItem = new SelectionSet(doc.CurrentSelection.SelectedItems);
            newItem.DisplayName ="SelectionSetName";
            Autodesk.Navisworks.Api.Application.ActiveDocument.SelectionSets.InsertCopy(0, newItem);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 11 Sep 2023 05:33:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/selection-set-creation-from-outside-navisworks/m-p/12231126#M1038</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2023-09-11T05:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Selection set creation from outside Navisworks....</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/selection-set-creation-from-outside-navisworks/m-p/12231315#M1039</link>
      <description>&lt;P&gt;Thanks Mr. Naveen, let me check and update you...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 07:41:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/selection-set-creation-from-outside-navisworks/m-p/12231315#M1039</guid>
      <dc:creator>Murali_Kandasamy</dc:creator>
      <dc:date>2023-09-11T07:41:12Z</dc:date>
    </item>
  </channel>
</rss>

