<?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: Collecting GroupTypeId Members in Dynamo in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12265157#M9512</link>
    <description>&lt;P&gt;please share your entire code.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 17:03:11 GMT</pubDate>
    <dc:creator>Yien_Chao</dc:creator>
    <dc:date>2023-09-25T17:03:11Z</dc:date>
    <item>
      <title>Collecting GroupTypeId Members in Dynamo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12260434#M9507</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with Dynamo, and I have a specific task that I need assistance with. I would like to access and list all the members of the GroupTypeId class in Revit using Dynamo and Python scripting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My main goal is to automatically convert strings that are the members (group type id members) into Autodesk elements so I can work with them in Dynamo and generate an automated process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attempted to access these properties directly, but it seems that they might not be readily available in Dynamo's Python environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this? Any guidance or code snippets would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 01:32:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12260434#M9507</guid>
      <dc:creator>palo9878</dc:creator>
      <dc:date>2023-09-23T01:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting GroupTypeId Members in Dynamo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12260463#M9508</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;groupTypeId does exist in the API, buy only since 2022 version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i don't understant what you are trying to achieve, but if share your code i might take a look.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 02:05:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12260463#M9508</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2023-09-23T02:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting GroupTypeId Members in Dynamo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12260477#M9509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am working with the Revit API 2023. Previously, I worked with BuiltInParameter groups, which I could easily access. My ultimate goal is to create new shared parameters in the Revit model. I want to be able to enter the GroupTypeId members of my parameters as strings and then generate code that automatically converts these strings into &lt;/SPAN&gt;Autodesk.Revit.DB.GroupTypeId&lt;SPAN&gt; members, allowing me to create an automated process. I have successfully created this code manually to add new parameters, but I am currently unable to automate it since I cannot access the members directly:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;for&lt;/SPAN&gt; d, g, i &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;zip&lt;/SPAN&gt;(definitions, groups, isInstance): &lt;SPAN class=""&gt;try&lt;/SPAN&gt;: new = doc.FamilyManager.AddParameter(d, GroupTypeId.Structural, i) outcome.append(new) &lt;SPAN class=""&gt;except&lt;/SPAN&gt;: outcome.append(&lt;SPAN class=""&gt;"Parameter not added."&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps and thank you for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 02:17:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12260477#M9509</guid>
      <dc:creator>palo9878</dc:creator>
      <dc:date>2023-09-23T02:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting GroupTypeId Members in Dynamo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12261419#M9510</link>
      <description>&lt;P&gt;so to make it clear, you want to set your groupTypeId with different ids?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i might be wrong, but i think it's a read only parameter.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 16:27:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12261419#M9510</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2023-09-23T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting GroupTypeId Members in Dynamo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12265095#M9511</link>
      <description>&lt;P&gt;&lt;SPAN&gt;GroupTypeId has different members, such as structural and mechanical. I want to import these members as strings from an Excel file into Dynamo. In Dynamo, I want to add these members as shared parameters in the Revit model (which I have already done), but I also want to create an automated process where my code can access these members directly. However, in my code, I am manually writing them down:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;for&lt;/SPAN&gt; d, g, i &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;zip&lt;/SPAN&gt;(definitions, groups, isInstance): &lt;SPAN class=""&gt;try&lt;/SPAN&gt;: new = doc.FamilyManager.AddParameter(d, GroupTypeId.Structural, i) outcome.append(new) &lt;SPAN class=""&gt;except&lt;/SPAN&gt;: outcome.append(&lt;SPAN class=""&gt;"Parameter not added."&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 16:44:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12265095#M9511</guid>
      <dc:creator>palo9878</dc:creator>
      <dc:date>2023-09-25T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting GroupTypeId Members in Dynamo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12265157#M9512</link>
      <description>&lt;P&gt;please share your entire code.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 17:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/12265157#M9512</guid>
      <dc:creator>Yien_Chao</dc:creator>
      <dc:date>2023-09-25T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting GroupTypeId Members in Dynamo</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/13771342#M84463</link>
      <description>&lt;P&gt;I seen the topic was here for long time, let's me share all the thing relate to. In Dynamo you can do with script like this&amp;nbsp; :&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="python"&gt;import clr

# Import Revit API
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import GroupTypeId, ForgeTypeId

# Import Reflection
from System import Type
from System.Reflection import PropertyInfo

# Get the .NET type of GroupTypeId
group_type_id_type = clr.GetClrType(GroupTypeId)

# Get all properties
properties_info = group_type_id_type.GetProperties()

# Dictionary: ForgeTypeId -&amp;gt; property name
built_in_parameter_names = {}

for prop in properties_info:
    if isinstance(prop, PropertyInfo):
        value = prop.GetValue(None)  # static property → None
        if isinstance(value, ForgeTypeId):
            built_in_parameter_names[prop.Name] = value

# Output to Dynamo
OUT = built_in_parameter_names
&lt;/LI-CODE&gt;
&lt;P&gt;The code will be return a dictionary of collection&amp;nbsp;GroupTypeId&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChuongHo_0-1755493489321.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1561996iEAA5F38173CF0238/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChuongHo_0-1755493489321.png" alt="ChuongHo_0-1755493489321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 05:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/collecting-grouptypeid-members-in-dynamo/m-p/13771342#M84463</guid>
      <dc:creator>Chuong.Ho</dc:creator>
      <dc:date>2025-08-18T05:05:11Z</dc:date>
    </item>
  </channel>
</rss>

