Limit parameter potential values in family

Limit parameter potential values in family

BenoitE&A
Collaborator Collaborator
1,685 Views
5 Replies
Message 1 of 6

Limit parameter potential values in family

BenoitE&A
Collaborator
Collaborator

Hey,

We have a family (Mech Fitting but does not matter).

We want the user to be able to choose only between 4 choices (text only, not int). 

Is this possible?

I did not find out how using a formula.

Thx !


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Accepted solutions (1)
1,686 Views
5 Replies
Replies (5)
Message 2 of 6

L.Maas
Mentor
Mentor
Accepted solution

There are many different ways

 

Here an example.

LMaas_0-1665745549024.png

 

Other method could be to make 4 different family types. Then the user only hs to select the proper type.

 

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 3 of 6

BenoitE&A
Collaborator
Collaborator

Thanks.

It ends with modifying an Int for the user, which is not really great for simple users. But it'll do the job, provided that the 2 parameters are close in the Property pannel (which we'll settle).

I don't want to have multiple families/family types, always messy in code.

Thx anyway, we'll do the first solution.


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Message 4 of 6

BenoitE&A
Collaborator
Collaborator

Though... This is messy in code too : I need to work on the associated parameter (Choice in your example) instead of the one I'm interested in (Options) if I want to modify the value, which is bad.

No solution at all to use only 1 parameter, with Text values ?


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Message 5 of 6

Mike.FORM
Advisor
Advisor

Until Revit adds a "List" parameter type where you then put the items you want in the list into the formula field and they come up as a drop down in project/properties there is really no great way to do this other than what has been shown.

0 Likes
Message 6 of 6

L.Maas
Mentor
Mentor

No, Revit has not something like a predefined list for a parameter (unfortunately) inside a family.

 

Not knowing what and how you are programming. Maybe you can leave the parameter empty, present the user a selection with your code and then push that choice into the parameter?

 

Another option might be to make use of a key schedule (inside a project).

With a key schedule you can present a user limited choices

LMaas_0-1665766118076.png

But I expect this might cause issues too within your program.

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes