Revit 2024 'Other' Parameter Group

Revit 2024 'Other' Parameter Group

kevin_fielding
Advocate Advocate
1,430 Views
3 Replies
Message 1 of 4

Revit 2024 'Other' Parameter Group

kevin_fielding
Advocate
Advocate

Hi, 

With the change over to ForgeTypeId and GroupTypeId in Revit 2024 instead of BuiltInParameterGroup enumerations, I just wanted to share how to define the 'Other' group for parameters as it doesn't appear to be documented. 

Whereas previously you would use 

 

BuiltInParameterGroup.INVALID

 

In 2024 and beyond you need to use

 

new ForgeTypeId(string.Empty)

 

Other groups can be found using the GroupTypeId class like GroupTypeId.Data

 

Hope this helps others searching for this.

 

Kevin

 

1,431 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

Thank you for the very useful hint!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

jeremy_tammik
Alumni
Alumni
0 Likes
Message 4 of 4

andrea.tassera
Contributor
Contributor

Sorry for reviving an old post.

 

Apparently using new ForgeTypeId(string.Empty) only works for Revit 2024 and above. I was just testing what's on this post in my code and it was working with Revit 2025, but not in Revit 2023.
The ForgeTypeId change seems to be applied from Revit 2021 onwards so I thought it was strange that it wasn't working in 2023. I did some experimentation and if you use null instead of new ForgeTypeId(string.Empty) then it works in all versions of Revit.

 

Thought you guys might be interested 😉

0 Likes