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

Family Dimensions Formula Based Off of Number and Number Range

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
1344 Views, 10 Replies

Family Dimensions Formula Based Off of Number and Number Range

I'm having trouble with coming up with a formula to create dimensions based on certain numbers.

 

Dimensions (Length Parameter) that need the formula:

  1. Depth
  2. Width
  3. Height

Numbers to put into the formula (Number Parameter):

  1. 15
  2. 30
  3. 45
  4. 75
  5. 112.5
  6. 150
  7. 225
  8. 300
  9. 500
  10. 750

The "Numbers" are options to be entered into a single parameter, which affects the 3 "Dimensions" parameters.

 

An example scenario:

  • "Numbers" = 75
    • "Depth" = 1' 8"
    • "Height" = 2' 6"
    • "Width" = 1'-8"
Labels (3)
10 REPLIES 10
Message 2 of 11
iainsavage
in reply to: Anonymous

You could use a lookup table?

Message 3 of 11
Anonymous
in reply to: iainsavage

Is there a lookup table for Revit Families? Also, I forgot to mention in the original post that this is for a Revit Generic Model Family.

Message 4 of 11
halukuzuner
in reply to: Anonymous

If "Numbers" are not many you can use nested if. But I would prefer lookup table. This link may help you about neted if.

https://forums.autodesk.com/t5/revit-architecture-forum/if-and-conditional-formula-help/td-p/3753452

Message 5 of 11
iainsavage
in reply to: Anonymous

This link might help.

Its for version 2018 but still relevant except that in newer versions, once created the lookup table is imported into the family and resides in the family rather than being kept as a separate file. There are other online resources as well.

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2018/EN...

As @halukuzuner says you could use nested if/then formulas but it becomes quite complicated if there are a lot of options.

Type catalogues are another option but for this I think a lookup table is the best way forward.

Message 6 of 11
Anonymous
in reply to: halukuzuner

I might have to give the formula from the link a try.

Message 7 of 11
Anonymous
in reply to: iainsavage

I checked out the link for the lookup table. I did notice that it mentioned the lookup tables are for conduit and pipe families. Can they be used for other families as well?

Message 8 of 11
halukuzuner
in reply to: Anonymous

Yes you can use in every family. As far as know there is no exception.

Message 9 of 11
Anonymous
in reply to: halukuzuner

That's good to know. I might actually try the lookup table before trying the formula from the other link.

Message 10 of 11
iainsavage
in reply to: Anonymous

Some more links.

Again bear in mind that in older versions the lookup table was a separate file but in newer versions the table file is imported into the family:

http://help.autodesk.com/view/RVT/2014/ENU/?guid=GUID-91270AEF-225A-49D7-BF84-1F44D1E3E216

 

https://revit.com.au/lookup-tables-part-1/

 

 

Message 11 of 11
iainsavage
in reply to: Anonymous

sample family attached

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

Post to forums  

Autodesk Design & Make Report