Parameter group creation

Parameter group creation

kirthigag
Participant Participant
4,577 Views
8 Replies
Message 1 of 9

Parameter group creation

kirthigag
Participant
Participant

Hi,

 

Am trying to maintain separate parameter group for the custom created parameter,  can able to create a new group in shared parameter window as well as can able to map any shared parameter in the newly created group. Is there any option to import/use the created shared parameter group inside project parameter "Group parameter under" drop down?

 

Thanks in Advance😊

0 Likes
Accepted solutions (1)
4,578 Views
8 Replies
Replies (8)
Message 2 of 9

studio-a-int
Advocate
Advocate

to Group Parameter Under you need to use:

 

public override BuiltInParameterGroup ParameterGroup { get; }

 

from:

 

ExternalDefinition.ParameterGroup Property

 

then look at the Enums., and chose the Group you want your Parameter under:

 

BuiltInParameterGroup Enumeration

0 Likes
Message 3 of 9

RPTHOMAS108
Mentor
Mentor

Is this an API question I'm not sure?

 

In relation to the API those groups are different things:

 

You have DefinitionGroup items which group parameters in the DefinitionFile (DefinitionFile.Groups)

Then you have BuiltInParameterGroup enumeration which groups the parameters in the UI.

 

This follows UI functionality where also you can't create them.

0 Likes
Message 4 of 9

kirthigag
Participant
Participant

Thanks for the response,

The BuiltInParameterGroup enum only have the default items that listed in the project parameter UI, newly created group is not listed in the collection. Is there any method to include the new group in existing BuiltInParameterGroup collection.

0 Likes
Message 5 of 9

kirthigag
Participant
Participant

Thanks for the response,

Is there any API method available to combine DefinitionFile.Groups with BuiltInParameterGroup, because whenever we add a shared parameter into a project parameter it can only be assigned to the group that listed in project parameter UI, can we customize BuiltInParameterGroup  items?

0 Likes
Message 6 of 9

RPTHOMAS108
Mentor
Mentor
Accepted solution

No the BuiltInParameterGroup is a fixed list, can't be added to.

 

Generally if you can't do it in the UI you will not be able to do it with the API.

0 Likes
Message 7 of 9

daniel_duma
Explorer
Explorer

It can be done, but Honestly I'm not sure how. Here is an Example:

daniel_duma_0-1707401072605.png

 

0 Likes
Message 8 of 9

BDENGF96VQ
Explorer
Explorer

Is there any update on this, can this be altered in the API? Or is it perhaps possible to change one group name to another?

0 Likes
Message 9 of 9

Omar-S
Explorer
Explorer
dear , Releases / member Forces is already defined in Revit
as far as i know, there are no way to add a new Group parameter in Revit.
0 Likes