Can a distance parameter be controlled by a list of distances?

Can a distance parameter be controlled by a list of distances?

Sahay_R
Mentor Mentor
2,602 Views
12 Replies
Message 1 of 13

Can a distance parameter be controlled by a list of distances?

Sahay_R
Mentor
Mentor

Hello all,

 

I have a family where the geometry needs to have it's distance controlled from a reference plane. This distance needs to be one of four standard values. Short of memorizing the values, how can I set up a formula so that distance A = distance B or C or D or E?

 

I would rather have this baked into the family itself. I don't believe it can be done with Global Parameters in the project. 

 

Much appreciated.... in advance.... 

Rina


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Accepted solutions (3)
2,603 Views
12 Replies
Replies (12)
Message 2 of 13

SteveKStafford
Mentor
Mentor
Accepted solution

How does this relate to the user placing the family? Does it just vary from type to type or can any type have one of these four values?

 

You could create a integer parameter that the user enters 1-4. The length can evaluate that parameter to see what it is and return the correct length (see image).


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

Message 3 of 13

barthbradley
Consultant
Consultant
Accepted solution

I'd need more info about the family, but my initial thought is Lookup Table.  

Message 4 of 13

ToanDN
Consultant
Consultant
Accepted solution
- Create a family with 4 types and a Length type parameter, give each type a set distance. Build the geometry in this family.
- Nest it in another family (no geometry), add a Family Type instance parameter (Label).
- Load it in your project and user can select the family and choose one of the 4 length options from a drop-down.
Message 5 of 13

Sahay_R
Mentor
Mentor

Thank you , gentlemen, @ToanDN  - the attempt is to avoid types, since the distance will vary over instances, possibly more so than the 4 standard distances that I mentioned. @barthbradley I am investigating Lookup Tables as I type. @SteveKStafford  - this is just right! The formula is what I was looking for - thank you!


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 6 of 13

Sahay_R
Mentor
Mentor

@barthbradley How do Lookup Tables work? I've got a CSV imported into the family - what next? Correct me if I am wrong - this table seems to lack required info for Lookup Tables to work....

 

Capture.PNG


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 7 of 13

ToanDN
Consultant
Consultant

@Sahay_R wrote:

Thank you , gentlemen, @ToanDN  - the attempt is to avoid types, since the distance will vary over instances, possibly more so than the 4 standard distances that I mentioned. @barthbradley I am investigating Lookup Tables as I type. @SteveKStafford  - this is just right! The formula is what I was looking for - thank you!


Types in the nested family are only a means for the family creator to create the dropdown.  End users do not see types, they only see the drop down list to choose from.

0 Likes
Message 8 of 13

Sahay_R
Mentor
Mentor

@ToanDN very true. And here is the  rub - I am creating a theater seat family, which needs to have 3 seat width types - which is the easy part. The seat back needs to have a clearance from the floor riser behind it of a certain value. SO - I need to be able to pick the seat type, and then the required clearance (which could be for ANY seat type). So far - I am thinking seat width types, with the clearance driven by the formula earlier suggested by @SteveKStafford - any better suggestions would be appreciated.....


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 9 of 13

barthbradley
Consultant
Consultant

So, if the "ClearDist" Parameter Value is 2 7/8", what parameters are to be populated with what values? These are your next columns.  

 

 

0 Likes
Message 10 of 13

ToanDN
Consultant
Consultant

@Sahay_R wrote:

@ToanDN very true. And here is the  rub - I am creating a theater seat family, which needs to have 3 seat width types - which is the easy part. The seat back needs to have a clearance from the floor riser behind it of a certain value. SO - I need to be able to pick the seat type, and then the required clearance (which could be for ANY seat type). So far - I am thinking seat width types, with the clearance driven by the formula earlier suggested by @SteveKStafford - any better suggestions would be appreciated.....


Both methods will work.  Using a formula has its simplicity of everything in one family, but you need to clarify with users which Integers (1, 2, 3..) are for which dimensions.  Using a Family Type label has more work up front but it is more descriptive to users (Pick clearance: 6", 10" 14" etc...).

 

Example file attached.

 

Annotation 2019-11-26 105039.pngAnnotation 2019-11-26 104338.png

 

 

0 Likes
Message 11 of 13

Sahay_R
Mentor
Mentor

@ToanDN I will look at this with great interest....


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
0 Likes
Message 12 of 13

SteveKStafford
Mentor
Mentor

My blog post describes the technique @ToanDN describes and has a file you can download to reverse engineer.


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

0 Likes
Message 13 of 13

weronika.chrzanowskaRYSEB
Explorer
Explorer

@ToanDN I created my family according to your tip and almost everything works perfectly.

The problem which I have is when I load my family in the revit project in my drop box I get not only types of family which I created but all shared generic model family types present in the project. Any idea how to fix this?

0 Likes