Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parameter group creation

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
kirthigag
2216 Views, 6 Replies

Parameter group creation

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😊

6 REPLIES 6
Message 2 of 7
studio-a-int
in reply to: kirthigag

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

Message 3 of 7
RPTHOMAS108
in reply to: kirthigag

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.

Message 4 of 7
kirthigag
in reply to: studio-a-int

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.

Message 5 of 7
kirthigag
in reply to: RPTHOMAS108

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?

Message 6 of 7
RPTHOMAS108
in reply to: kirthigag

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.

Message 7 of 7
daniel_duma
in reply to: kirthigag

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

daniel_duma_0-1707401072605.png

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community