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 !
Gelöst! Gehe zur Lösung
Gelöst von L.Maas. Gehe zur Lösung
There are many different ways
Here an example.
Other method could be to make 4 different family types. Then the user only hs to select the proper type.
Louis
Please mention Revit version, especially when uploading Revit files.
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.
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 ?
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.
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
But I expect this might cause issues too within your program.
Louis
Please mention Revit version, especially when uploading Revit files.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.