<?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 selecting element type parameter with none element type parameters in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8092947#M49103</link>
    <description>Is there any way to select element type parameters with none element type parameters i want to get keynote parameter with volume and area parameter of a element . I want to place if condition when my keynote parameter was specific number i put volume or area parameter of that element in specific database. Is there any way i can do this work?</description>
    <pubDate>Tue, 26 Jun 2018 18:41:48 GMT</pubDate>
    <dc:creator>wahedfazeli</dc:creator>
    <dc:date>2018-06-26T18:41:48Z</dc:date>
    <item>
      <title>selecting element type parameter with none element type parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8092947#M49103</link>
      <description>Is there any way to select element type parameters with none element type parameters i want to get keynote parameter with volume and area parameter of a element . I want to place if condition when my keynote parameter was specific number i put volume or area parameter of that element in specific database. Is there any way i can do this work?</description>
      <pubDate>Tue, 26 Jun 2018 18:41:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8092947#M49103</guid>
      <dc:creator>wahedfazeli</dc:creator>
      <dc:date>2018-06-26T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: selecting element type parameter with none element type parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8094545#M49104</link>
      <description>&lt;P&gt;If you are searching for elements with a parameter taking an ElementId data type, you might be able to search for all that have the value&amp;nbsp;&lt;SPAN&gt;ElementId.InvalidElementId assigned to them:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://www.revitapidocs.com/2018/08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm" target="_blank"&gt;http://www.revitapidocs.com/2018/08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 11:14:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8094545#M49104</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-06-27T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: selecting element type parameter with none element type parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8096836#M49105</link>
      <description>&lt;P&gt;tnx dear jeremy&lt;/P&gt;&lt;P&gt;my problem dont solve&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i write this code&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach(Element elem in &lt;SPAN&gt;new FilteredElementCollector( doc )&lt;/SPAN&gt;.WhereElementIsNotElementType())&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code show parameters of area and volume but no keynote or uniformat parameter.&lt;/P&gt;&lt;P&gt;and when i write this code .&lt;/P&gt;&lt;P&gt;foreach(Element elem in new FilteredElementCollector( doc ).WhereElementIsElementType())&amp;nbsp;&lt;/P&gt;&lt;P&gt;this code show parameters of keynote or uniformat but no area or volume parameter.&lt;/P&gt;&lt;P&gt;is there any way to select all of this parameters together?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 07:38:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8096836#M49105</guid>
      <dc:creator>wahedfazeli</dc:creator>
      <dc:date>2018-06-28T07:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: selecting element type parameter with none element type parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8103219#M49106</link>
      <description>&lt;P&gt;Area is a instance parameter of an element, but KeyNote is a type parameter . So you need to find the type of the element to get the keynote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To find the type of an element:&lt;/P&gt;&lt;PRE&gt;Element type_of_element = doc.GetElement( elem.GetTypeId());&lt;/PRE&gt;&lt;P&gt;the basic loop is something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;foreach(Element elem in new FilteredElementCollector( doc )
        .WhereElementIsNotElementType()
        .WhereElementIsViewIndependent()
      )
{
	Parameter p_area = elem.get_Parameter(BuiltInParameter.HOST_AREA_COMPUTED);
//				string area_value = p_area==null? string.Empty : p_area.AsDouble().ToString();
	string area_value = p_area==null? string.Empty : p_area.AsValueString();
	string keynote_value = string.Empty;
	Element type_of_element = doc.GetElement( elem.GetTypeId());
	if (type_of_element!=null)
	{
		Parameter p_keynote = type_of_element.get_Parameter(BuiltInParameter.KEYNOTE_PARAM);
		keynote_value = p_keynote==null? string.Empty : p_keynote.AsString();
		TaskDialog.Show("debug", string.Format("{0}  area: {1}, keynote: {2}",elem.Name,area_value,keynote_value));
		break;
	}
}&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Jul 2018 19:47:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8103219#M49106</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2018-07-01T19:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: selecting element type parameter with none element type parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8103998#M49107</link>
      <description>&lt;P&gt;thanks a lot. my problem is solved&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 09:06:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/selecting-element-type-parameter-with-none-element-type/m-p/8103998#M49107</guid>
      <dc:creator>wahedfazeli</dc:creator>
      <dc:date>2018-07-02T09:06:34Z</dc:date>
    </item>
  </channel>
</rss>

