<?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 Getting parameter information from a schedule in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6802850#M60956</link>
    <description>&lt;P&gt;The "ScheduleField" class has a property "ParameterId", which is good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to know more about the this parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The name of the parameter,&lt;/P&gt;&lt;P&gt;2. If it is an instance or type parameter,&lt;/P&gt;&lt;P&gt;3. If it is a shared or built-in parameter,&lt;/P&gt;&lt;P&gt;4. The parameter Unit,&lt;/P&gt;&lt;P&gt;5. GUID of the parameter if it is shared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I can get 1 and 2 working, but pretty much clueless about 3, 4 and 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any lights for help, thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2017 03:50:19 GMT</pubDate>
    <dc:creator>qianr</dc:creator>
    <dc:date>2017-01-13T03:50:19Z</dc:date>
    <item>
      <title>Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6802850#M60956</link>
      <description>&lt;P&gt;The "ScheduleField" class has a property "ParameterId", which is good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I would like to know more about the this parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The name of the parameter,&lt;/P&gt;&lt;P&gt;2. If it is an instance or type parameter,&lt;/P&gt;&lt;P&gt;3. If it is a shared or built-in parameter,&lt;/P&gt;&lt;P&gt;4. The parameter Unit,&lt;/P&gt;&lt;P&gt;5. GUID of the parameter if it is shared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I can get 1 and 2 working, but pretty much clueless about 3, 4 and 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any lights for help, thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 03:50:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6802850#M60956</guid>
      <dc:creator>qianr</dc:creator>
      <dc:date>2017-01-13T03:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6803072#M60957</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Roy,&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;Thank you for your query.&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;Before anything else, I must ask you:&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;Have you installed RevitLookup and are you using it on a regular basis in your Revit database exploration?&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;If the answer is 'no', I suggest we terminate this discussion right here and now until you have installed it and tested using it for your situation:&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="https://github.com/jeremytammik/RevitLookup" target="_blank"&gt;https://github.com/jeremytammik/RevitLookup&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;With that tool, you can interactively snoop the database.&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;In this case, you could grab one of those ParameterId values, use the Revit API Manage tab to select the corresponding database element, regardless of whether it has a graphical representation or not, and interactively explore its nature, contents, parameters, relationships with other elements, etc.&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;That will probably answer your question right then and there.&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;It is statically compiled, however, so it mainly displays properties. It does not dynamically evaluate all methods available on all classes.&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;For that, you can use other, even more powerful and interactive database exploration tools:&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://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html&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;Also, my blog post yesterday on How to Research to Find a Revit API Solution might come in handy for you at this point:&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://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-ontology.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-ontology.html#3&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;I hope this helps.&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;</description>
      <pubDate>Fri, 13 Jan 2017 07:35:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6803072#M60957</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-01-13T07:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6805102#M60958</link>
      <description>&lt;P&gt;Dear Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have installed the "Revit Lookup" tool for Revit 2015 (the version I'm developing as our development needs to be backward compatible with our current projects).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Revit Lookup"&amp;nbsp;is a great tool that can save hundreds hours of time on browsing the "watch" in the debug mode, which I have been using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I still can't find the field parameter definitions (shared or builtin) for the "schedulefield" class. I understand the "viewschedule" and "schedulefield" are different classes. I suspect this may have to do with Revit API's limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way it seems the "Revit Look Up" is a ribbon panel in the "Add-ins" tab, I can't see&amp;nbsp;"API Manage Tab", am I missing something here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roy Qian&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 22:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6805102#M60958</guid>
      <dc:creator>qianr</dc:creator>
      <dc:date>2017-01-13T22:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6812103#M60959</link>
      <description>&lt;P&gt;1&amp;nbsp;&amp;nbsp;Name = &amp;nbsp;Field.GetName()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2&amp;nbsp; Type or Instance?&amp;nbsp; Probably only a definitive answer for a schedule of 1 System Family Category. Shared Parameters in User Created Families can be both Type and Instance ( in different families)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp; Shared or BuiltIn?&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Field.ParameterId &amp;lt; -1 : BuiltInParameter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field.ParameterId == BuiltInParameter value&lt;/LI&gt;&lt;LI&gt;Field.ParameterId &amp;gt;0:&amp;nbsp;&amp;nbsp;&amp;nbsp; SharedParameter&lt;/LI&gt;&lt;LI&gt;Field.ParameterId = -1: miscellaneous ( calculated value, percentage)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Shared Parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SharedParameterElement shElem = doc.GetElement(Field.ParameterId) as SharedParameterElement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;You can find the&amp;nbsp;answer to 4 and 5 in shElem.Definition&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BuiltParameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You need a element (Elem)&amp;nbsp;to get access to a BuiltInParameter, so you need to have a non empty schedule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter par = Elem.get_Parameter((BuiltInParameter) Field.ParameterId.IntegerValue);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can find the answer to 4 in par.Definition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 23:42:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6812103#M60959</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2017-01-17T23:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6812293#M60960</link>
      <description>&lt;P&gt;Very nice answers, thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards 2, I guess I have to use the FamilyManager to open the families to find out if the shared parameter is a "Type" or "Instance".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 02:19:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6812293#M60960</guid>
      <dc:creator>qianr</dc:creator>
      <dc:date>2017-01-18T02:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6812678#M60961</link>
      <description>&lt;P&gt;Dear Roy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your appreciation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select element by id is part of the standard end user interface:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Revit-Troubleshooting/files/GUID-2B1CC22C-CB1F-45DA-B57B-62C36013D9E0-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Revit-Troubleshooting/files/GUID-2B1CC22C-CB1F-45DA-B57B-62C36013D9E0-htm.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As said, it comes in handy for using RevitLookup to snoop element data and properties, since it can be used on invisible elements that cannot be selected in any other way as well.&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;</description>
      <pubDate>Wed, 18 Jan 2017 08:22:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6812678#M60961</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-01-18T08:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6815073#M60962</link>
      <description>&lt;P&gt;Yes indeed Jeremy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found the post you mentioned and tried, it works well that I can find the the shared parameter visually on the Revit property panel even it is a "hidden" element, that's quite cool. &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;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 00:35:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6815073#M60962</guid>
      <dc:creator>qianr</dc:creator>
      <dc:date>2017-01-19T00:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting parameter information from a schedule</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6825443#M60963</link>
      <description>&lt;P&gt;Thank you, Roy and Fair59, for the fruitful discussion and succinct solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I summarised and published it on the Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/01/schedule-parameter-and-shared-parameter-guid.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/01/schedule-parameter-and-shared-parameter-guid.html#3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The post also includes a new solution for&amp;nbsp;retrieving the GUID of a&lt;SPAN&gt;&amp;nbsp;shared parameter:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2017/01/schedule-parameter-and-shared-parameter-guid.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2017/01/schedule-parameter-and-shared-parameter-guid.html#2&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope you find this useful as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 20:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-parameter-information-from-a-schedule/m-p/6825443#M60963</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-01-23T20:33:40Z</dc:date>
    </item>
  </channel>
</rss>

