<?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: Select same properties in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3761914#M7893</link>
    <description>&lt;P&gt;I see this is an older thread but was wondering the exact same thing, does anybody have an answer for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2013 18:13:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-25T18:13:33Z</dc:date>
    <item>
      <title>Select same properties</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3190306#M7892</link>
      <description>&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;DIV&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;In the Select and Search panel, you have the option to select the object with the same &amp;lt;property&amp;gt;. Inside my model, there is like 20 properties for example: equip #, iso #, line # etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I select which property I want the model to look at when I click on Select same -&amp;gt; properties&lt;/P&gt;&lt;P&gt;When I select a pipe for example, I would like to select all the pipe that as the same line #. When I click on select same - properties, nothing happend. Why? Is it because all the properties need to be the same to be selected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can get all pipes with same line # if I select that line #&amp;nbsp;inside the selection tree--&amp;gt;properties tab--&amp;gt; line # but I need something quicker than that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to changed the selection resolution but no one is made for my need. In a perfect world, I would like to add another tab to the selection resolution for line #!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a solution&amp;nbsp;to do it through the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Oct 2011 12:11:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3190306#M7892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-13T12:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select same properties</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3761914#M7893</link>
      <description>&lt;P&gt;I see this is an older thread but was wondering the exact same thing, does anybody have an answer for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2013 18:13:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3761914#M7893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-25T18:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select same properties</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3763764#M7894</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not fully understand what the question is, but I'd recommend with the two blogs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/aec/2012/05/navisworks-net-api-find-item.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2012/05/navisworks-net-api-find-item.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/aec/2012/07/use-search-api.html" target="_blank"&gt;http://adndevblog.typepad.com/aec/2012/07/use-search-api.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API has much flexible methods to do search. Hope you could find some clues. If you still need help, please elaborate the question and share some neccessary samples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 03:26:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3763764#M7894</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-29T03:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select same properties</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3766561#M7895</link>
      <description>&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a plugin to do something very similar to what you are looking for, the core code is dead simple:&lt;/P&gt;&lt;PRE&gt;    Private Sub SelectAllWithPropertyValue(ByVal CategoryName As String, ByVal PropertyName As String, ByVal Value As VariantData)
        Try
        Dim S As Search = New Search With {.PruneBelowMatch = False, .Locations = SearchLocations.DescendantsAndSelf}
            S.Selection.SelectAll()
            Dim ADoc As Document = Autodesk.Navisworks.Api.Application.ActiveDocument
            S.SearchConditions.Add(SearchCondition.HasPropertyByDisplayName(CategoryName, PropertyName).CompareWith(SearchConditionComparison.Equal, Value))
            ADoc.CurrentSelection.CopyFrom(S.FindAll(ADoc, False))
        Catch ex As Exception
            MessageBox.Show(Autodesk.Navisworks.Api.Application.Gui.MainWindow, ex.Message)
        End Try
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;where categoryname, propertyname and value help you find all the objects you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I spent a lot of time trying to get this automatically triggered on user selection of either the tree or the 3D, so that it looks exactly like a selection resolution, unfortunately I ran into some limitation of the API where an event handler of the "selection change" event is not allowed to modify the selection itself (even if remove the handler, modify the selection, add the handler back)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nic&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 04:38:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3766561#M7895</guid>
      <dc:creator>ngombault</dc:creator>
      <dc:date>2013-02-01T04:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select same properties</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3770277#M7896</link>
      <description>&lt;P&gt;Thanks for the respones, I may have posted in the wrong section I guess as I only have the Navis Viewer. As per your responses it appears that there is no way to accomplish this in the viewer at this time, and I dont have access to insert API code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 21:34:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/select-same-properties/m-p/3770277#M7896</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-05T21:34:34Z</dc:date>
    </item>
  </channel>
</rss>

