<?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: Get definition of built-in parameter with-out having an element in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9183736#M38172</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3671855"&gt;@SamBerk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;try using the below link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2011/08/built-in-parameter-name-and-labelutils.html" target="_blank" rel="noopener"&gt;built-in-parameter-name-and-labelutils.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/8cdbbb5c-a21e-ad1d-e9a3-6535f5d27894.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2020/8cdbbb5c-a21e-ad1d-e9a3-6535f5d27894.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 05:06:59 GMT</pubDate>
    <dc:creator>naveen.kumar.t</dc:creator>
    <dc:date>2019-12-05T05:06:59Z</dc:date>
    <item>
      <title>Get definition of built-in parameter with-out having an element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9183393#M38171</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the StorageType UnitType and Parameter Type from built-in parameters when I don't have elements in my model that are using this parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to get the parameter definition of a built-in parameter with-out having an element in the model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 23:00:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9183393#M38171</guid>
      <dc:creator>SamBerk</dc:creator>
      <dc:date>2019-12-04T23:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get definition of built-in parameter with-out having an element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9183736#M38172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3671855"&gt;@SamBerk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;try using the below link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2011/08/built-in-parameter-name-and-labelutils.html" target="_blank" rel="noopener"&gt;built-in-parameter-name-and-labelutils.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.revitapidocs.com/2020/8cdbbb5c-a21e-ad1d-e9a3-6535f5d27894.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2020/8cdbbb5c-a21e-ad1d-e9a3-6535f5d27894.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 05:06:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9183736#M38172</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2019-12-05T05:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get definition of built-in parameter with-out having an element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9183904#M38173</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is simple to get a storage type of the parameter. Just use document.get_TypeOfStorage(BuiltInParameter...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting built-in parameter unit type is a bit more complicated. If you know the category parameter belongs to, you can create a view schedule in temporary transaction. You can find your parameter in schedule.Definition.GetSchedulableFields list:&lt;/P&gt;&lt;PRE&gt;var schedulableField = schedule
	.Definition
	.GetSchedulableFields()
	.Where(x =&amp;gt; x.FieldType == ScheduleFieldType.Instance || x.FieldType == ScheduleFieldType.ElementType)
	.First(x =&amp;gt; x.ParameterId == new ElementId(BuiltInParameter....));&lt;/PRE&gt;&lt;P&gt;Then add this schedulable field to the schedule, and get a schedule filed unit type:&lt;/P&gt;&lt;PRE&gt;schedule.Definition.AddField(schedulableField);
var unitType = schedule.Definition.GetField(0).UnitType;&lt;/PRE&gt;&lt;P&gt;This method works both for shared and built-in parameter.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 07:12:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9183904#M38173</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2019-12-05T07:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get definition of built-in parameter with-out having an element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9185085#M38174</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1257478"&gt;@aignatovich&lt;/a&gt;&amp;nbsp;for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But how can I know the ParamaterType for example Length, Number, Integer, Text, Area, Yes/No, etc?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 16:13:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/9185085#M38174</guid>
      <dc:creator>SamBerk</dc:creator>
      <dc:date>2019-12-05T16:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get definition of built-in parameter with-out having an element</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/12857091#M38175</link>
      <description>&lt;P&gt;I know this is an oldish post but I've been trying to get a built in parameter (elements' Phase Created) without having any elements in my project so I can setup some view filters and I managed to get at least their Ids via the below, which is a bit simpler. Note this currently works for 2024 and it may stop working in the future with API changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ForgeTypeId phaseCreatedTypeId = ParameterUtils.GetParameterTypeId(BuiltInParameter.PHASE_CREATED);
BuiltInParameter phaseCreatedBuiltInParam = ParameterUtils.GetBuiltInParameter(phaseCreatedTypeId);
ElementId phaseCreatedParamId = new ElementId(phaseCreatedBuiltInParam);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 03:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-definition-of-built-in-parameter-with-out-having-an-element/m-p/12857091#M38175</guid>
      <dc:creator>floretti</dc:creator>
      <dc:date>2024-06-24T03:14:31Z</dc:date>
    </item>
  </channel>
</rss>

