<?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 a list of ParameterGroups in R2025 API in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733260#M5697</link>
    <description>&lt;P&gt;Привет &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1127414"&gt;@Extraneous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp; told, We use &lt;STRONG&gt;typeof&lt;/STRONG&gt; keyword from Reflection to extract the property information. Kindly check the below sample code snippet for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; ///Get all Parameter Group Value in List
            List&amp;lt;PropertyInfo&amp;gt; propertiesInfo = typeof(GroupTypeId).GetProperties().ToList();

            Dictionary&amp;lt;ForgeTypeId, string&amp;gt; builtInParameterNames = new Dictionary&amp;lt;ForgeTypeId, string&amp;gt;();

            ///To Get all BuiltInParameter Group Names
            foreach (PropertyInfo property in propertiesInfo)
            {
                builtInParameterNames.Add(property.GetValue(property)as ForgeTypeId, property.Name);
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Спасибо &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Hope this Helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 13:37:35 GMT</pubDate>
    <dc:creator>Mohamed_Arshad</dc:creator>
    <dc:date>2024-04-25T13:37:35Z</dc:date>
    <item>
      <title>Get a list of ParameterGroups in R2025 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733116#M5695</link>
      <description>&lt;P&gt;I need to get a list BuiltInParameterGroups to show these in a dialog window.&lt;/P&gt;&lt;P&gt;In the previous Revit API versions I used this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;List&amp;lt;BuiltInParameterGroup&amp;gt; groups = 
  Enum.GetValues(typeof(BuiltInParameterGroup)).Cast&amp;lt;BuiltInParameterGroup&amp;gt;().ToList();&lt;/LI-CODE&gt;&lt;P&gt;How to do the same in Revit API 2025?&amp;nbsp;GroupTypeId isn't Enum and I don't see how to get all possible values.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:59:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733116#M5695</guid>
      <dc:creator>Extraneous</dc:creator>
      <dc:date>2024-04-25T12:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of ParameterGroups in R2025 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733241#M5696</link>
      <description>&lt;P&gt;You can use .NET Reflection to iterate over all the members of the GroupTypeId class:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.revitapidocs.com/2024/cf6883b8-349d-bdc3-3099-b9e7d380ba84.htm" target="_blank"&gt;https://www.revitapidocs.com/2024/cf6883b8-349d-bdc3-3099-b9e7d380ba84.htm&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://duckduckgo.com/?q=c%23+iterate+class+properties" target="_blank"&gt;https://duckduckgo.com/?q=c%23+iterate+class+properties&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:31:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733241#M5696</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-04-25T13:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of ParameterGroups in R2025 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733260#M5697</link>
      <description>&lt;P&gt;Привет &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1127414"&gt;@Extraneous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp; told, We use &lt;STRONG&gt;typeof&lt;/STRONG&gt; keyword from Reflection to extract the property information. Kindly check the below sample code snippet for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; ///Get all Parameter Group Value in List
            List&amp;lt;PropertyInfo&amp;gt; propertiesInfo = typeof(GroupTypeId).GetProperties().ToList();

            Dictionary&amp;lt;ForgeTypeId, string&amp;gt; builtInParameterNames = new Dictionary&amp;lt;ForgeTypeId, string&amp;gt;();

            ///To Get all BuiltInParameter Group Names
            foreach (PropertyInfo property in propertiesInfo)
            {
                builtInParameterNames.Add(property.GetValue(property)as ForgeTypeId, property.Name);
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Спасибо &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Hope this Helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:37:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733260#M5697</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2024-04-25T13:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of ParameterGroups in R2025 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733286#M5698</link>
      <description>&lt;P&gt;Привет&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1127414"&gt;@Extraneous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp; told we can use the&amp;nbsp;&lt;STRONG&gt;typeof from Reflection&amp;nbsp;&lt;/STRONG&gt;namespace. Kindly check the below code snippet for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; ///Get all Parameter Group Value in List
            List&amp;lt;PropertyInfo&amp;gt; propertiesInfo = typeof(GroupTypeId).GetProperties().ToList();

            Dictionary&amp;lt;ForgeTypeId, string&amp;gt; builtInParameterNames = new Dictionary&amp;lt;ForgeTypeId, string&amp;gt;();

            ///To Get all BuiltInParameter Group Names
            foreach (PropertyInfo property in propertiesInfo)
            {
                builtInParameterNames.Add(property.GetValue(property)as ForgeTypeId, property.Name);
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this Helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:41:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733286#M5698</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2024-04-25T13:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of ParameterGroups in R2025 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733896#M5699</link>
      <description>&lt;P&gt;Reflection is not needed, since Revit 2022 there is a static method that returns all available GroupTypeId Members :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.revitapidocs.com/2024/884d14d3-02e5-5631-adb3-79c612d04b5a.htm" target="_blank" rel="noopener"&gt;IList&amp;lt;ForgeTypeId&amp;gt; ParameterUtils.GetAllBuiltInGroups()&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There is a lot of static methods in the API that facilitate working with ForgeTypeId and the best way to discover them is through RDBE:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum.gif" style="width: 962px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1354774i12AC05FFF999BF3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum.gif" alt="forum.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 17:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733896#M5699</guid>
      <dc:creator>eN27</dc:creator>
      <dc:date>2024-04-25T17:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of ParameterGroups in R2025 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733958#M5700</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1127414"&gt;@Extraneous&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3073102"&gt;@eN27&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3073102"&gt;@eN27&lt;/a&gt;&amp;nbsp;Thank you for the Suggestion, I make a summary of complete Query Thread. To extract the List of &lt;A href="https://www.revitapidocs.com/2024/d9fcf276-9566-de83-2b0b-d89b65ccc8af.htm" target="_blank" rel="noopener"&gt;ForgeTypeId Class&lt;/A&gt;&amp;nbsp;from &lt;A href="https://www.revitapidocs.com/2024/3339c438-5b0e-83e7-568a-6fe536e68d57.htm" target="_blank" rel="noopener"&gt;GroupTypeId Class&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Suggestion-01&amp;nbsp;&lt;BR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;and me&amp;nbsp;&lt;/STRONG&gt;suggested to use&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.reflection?view=net-8.0" target="_blank" rel="noopener"&gt;System.Reflection Namespace | Microsoft Learn&lt;/A&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;from .NET. Kindly refer the below code snippet for additional reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Suggestion-01 Sample Code Snippet&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;///Get all Parameter Group Value in List
            List&amp;lt;PropertyInfo&amp;gt; propertiesInfo = typeof(GroupTypeId).GetProperties().ToList();

            Dictionary&amp;lt;ForgeTypeId, string&amp;gt; builtInParameterNames = new Dictionary&amp;lt;ForgeTypeId, string&amp;gt;();

            ///To Get all BuiltInParameter Group Names
            foreach (PropertyInfo property in propertiesInfo)
            {
                builtInParameterNames.Add(property.GetValue(property)as ForgeTypeId, property.Name);
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Suggestion-02&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3073102"&gt;@eN27&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;suggested to use Revit API's In-Built &lt;A href="https://www.revitapidocs.com/2024/884d14d3-02e5-5631-adb3-79c612d04b5a.htm" target="_blank" rel="noopener"&gt;GetAllBuiltInGroups Method&lt;/A&gt;. Kindly refer the below code snippet for additional reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Suggestion-02 Sample Code Snippet&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;///Get all Parameter Group Value in List
            var groupIds= ParameterUtils.GetAllBuiltInGroups();

            Dictionary&amp;lt;ForgeTypeId, string&amp;gt; builtInParameterNames = new Dictionary&amp;lt;ForgeTypeId, string&amp;gt;();

            ///To Get all BuiltInParameter Group Names
            foreach (ForgeTypeId groupId in groupIds)
            {
                builtInParameterNames.Add(groupId, LabelUtils.GetLabelForGroup(groupId));
            }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this Helps &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;</description>
      <pubDate>Thu, 25 Apr 2024 17:53:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12733958#M5700</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2024-04-25T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of ParameterGroups in R2025 API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12734376#M5701</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3073102"&gt;@eN27&lt;/a&gt;&amp;nbsp;, it's exactly what I need.&lt;/P&gt;&lt;P&gt;Unfortunately Static methods aren't so usable because you won't find it if you didn't know about it already. I think API&amp;nbsp;is heading somewhere in the wrong direction with this "forge id" idea. It seem even Jeremy forgot about this ParameterUtils and recommended to use Reflection. Bruh...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 20:36:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/get-a-list-of-parametergroups-in-r2025-api/m-p/12734376#M5701</guid>
      <dc:creator>Extraneous</dc:creator>
      <dc:date>2024-04-25T20:36:32Z</dc:date>
    </item>
  </channel>
</rss>

