<?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 family elements by name parameter in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8530160#M44847</link>
    <description>&lt;P&gt;Thanks! It's really good to know how to find those. But I can't seem to find the correct one anyway... It looks like I should use BuiltInParameter.ALL_MODEL_FAMILY_NAME, but it still doesn't give me any results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However. Using the &lt;A href="https://github.com/jeremytammik/BipChecker" target="_blank"&gt;BIP-checker&lt;/A&gt; (excellent tool!) I instead found that I can use the BuiltInParameter.SYMBOL_NAME_PARAM, and when I filter combined with the .OfClass(typeof(FamilySymbol)) I get the correct family symbol, which is what I really needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 15:33:05 GMT</pubDate>
    <dc:creator>ottosson_mathias</dc:creator>
    <dc:date>2019-01-17T15:33:05Z</dc:date>
    <item>
      <title>Find family elements by name parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8529112#M44845</link>
      <description>&lt;P&gt;I'm trying to filter elements by the Name parameter using a FilterStringRule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var elementParameter = new ParameterValueProvider(new ElementId(BuiltInParameter.?????));
var stringContains = new FilterStringContains();
var stringRule = new FilterStringRule(elementParameter, stringContains, "Mullion", false);

var mullionFilterOne = new FilteredElementCollector(doc)
    .OfClass(typeof(Family))
    .WherePasses(new ElementParameterFilter(stringRule));&lt;/PRE&gt;
&lt;P&gt;But this yields no results...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting expected elements using this way instead, but it's potentially a much slower way of getting the elements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var mullionFilterTwo = new FilteredElementCollector(doc)
    .OfClass(typeof(Family))
    .ToElements()
    .Where(x =&amp;gt; x.Name.ToLower().Contains("mullion"));&lt;/PRE&gt;
&lt;P&gt;What am I doing wrong? I've tried many different BuiltInParameters but with no success. What BuiltInParameter do I need to check to get the Name parameter of a Family Element?&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;</description>
      <pubDate>Thu, 17 Jan 2019 09:28:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8529112#M44845</guid>
      <dc:creator>ottosson_mathias</dc:creator>
      <dc:date>2019-01-17T09:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find family elements by name parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8529584#M44846</link>
      <description>&lt;P&gt;Just examine the element properties in RevitLookup:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/RevitLookup" target="_blank"&gt;https://github.com/jeremytammik/RevitLookup&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Navigate to its parameters, look for the `Name`, look at the parameter definition, and the corresponding built-in parameter will be listed there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use that in your filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 12:57:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8529584#M44846</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-01-17T12:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find family elements by name parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8530160#M44847</link>
      <description>&lt;P&gt;Thanks! It's really good to know how to find those. But I can't seem to find the correct one anyway... It looks like I should use BuiltInParameter.ALL_MODEL_FAMILY_NAME, but it still doesn't give me any results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However. Using the &lt;A href="https://github.com/jeremytammik/BipChecker" target="_blank"&gt;BIP-checker&lt;/A&gt; (excellent tool!) I instead found that I can use the BuiltInParameter.SYMBOL_NAME_PARAM, and when I filter combined with the .OfClass(typeof(FamilySymbol)) I get the correct family symbol, which is what I really needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 15:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8530160#M44847</guid>
      <dc:creator>ottosson_mathias</dc:creator>
      <dc:date>2019-01-17T15:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find family elements by name parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8530219#M44848</link>
      <description>&lt;P&gt;Congratulations on solving your problem and thank you for your appreciation and letting us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad to hear that you found BipChecker useful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that the parameter storing the element name may vary between different types of elements, unfortunately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Congratulations even more on discovering what you were really trying to do.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It always helps a lot to know what you want to achieve before starting to implement a solution&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 15:52:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-family-elements-by-name-parameter/m-p/8530219#M44848</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-01-17T15:52:46Z</dc:date>
    </item>
  </channel>
</rss>

