How to "Group Parameter Under" in properties dialog?

How to "Group Parameter Under" in properties dialog?

Anonymous
Not applicable
1,716 Views
3 Replies
Message 1 of 4

How to "Group Parameter Under" in properties dialog?

Anonymous
Not applicable

I have successfully bound a shared parameter to a document. That part works out fine.

Now I want to programatically set the "Group Parameter Under" value.

 

I have searched a lot of places but I cannot find any hint on how to do this. Does the Revit API not support this task?

 

Any ideas?

 

Regards

Jan Grenov

 

0 Likes
Accepted solutions (1)
1,717 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Jan,

 

Thank you for your query.

 

Do you mean one of the groups defined by the BuiltInParameterGroup enumeration?

 

It defines loads of values with a PG prefix, presumably meaning 'parameter group', such as

 

  ...
  PG_MATERIALS = -5000105,
  PG_GRAPHICS = -5000104,
  PG_CONSTRUCTION = -5000103,
  PG_GEOMETRY = -5000101,
  PG_IDENTITY_DATA = -5000100,
  ...

 

You can specify the parameter group when you insert the parameter binding:

 

 

  doc.ParameterBindings.Insert( def, binding,
    BuiltInParameterGroup.PG_GEOMETRY );

 

Have you looked that up in the Revit API help file RevitAPI.chm?

 

That should really always be your first port of call, you know, before you post a question here.

 

Here is an example:

 

https://github.com/jeremytammik/FireRatingCloud/blob/master/FireRatingCloud/Cmd_1_CreateAndBindShare...

 

I hope this helps.

 

Best regards,

 

Jeremy



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

Message 3 of 4

Anonymous
Not applicable
Yep ... I have looked several places before posting my question here, and the API help was the first place I looked!
I really try not to place stupid question in this forum. Therefore my question may be a result of some language confusion or misunderstanding on my side, but it is certainly not a result of lazyness or lack of effort.

Anyway thanks for the answer Jeremy. I always have a big advantage of your examples.

Best regards
Jan
0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Dear Jan,

 

Thank you very much for your confirmation and appreciiation!

 

Very commendable  🙂

 

Cheers,

 

Jeremy



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

0 Likes