How to retrieve parameters under a certain parameter group?

How to retrieve parameters under a certain parameter group?

Anonymous
Not applicable
1,221 Views
1 Reply
Message 1 of 2

How to retrieve parameters under a certain parameter group?

Anonymous
Not applicable

I use C# to develop REVIT 2016 add-ins.

I want to iterate through all the parameters under BuiltInParameterGroup.PG_IDENTITY_DATA. However, I can only get all the parameters from a single element and  filter every parameter which costs so much time. So I want to know there is some way to iterate through the parameters only under a certain group.

0 Likes
Accepted solutions (1)
1,222 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

As far as I can tell from the Revit API documentation, you have three options to retrieve parameters:

 

  • Get a single specific parameter by `Definition`, built-in parameter enum, or GUI
  • Get all parameters with a specific display name
  • Get all parameters

 

I do not see any possibility to limit the selection to a parameter group.

 

For that, I would get all and eliminate those belonging to the other groups.

 

Why do you say this is slow?

 

It can't be all that slow, from my experience...

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder