- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We want to make a signage family that reflects the real-world substrate sheet sizes: 1200x2400mm.
We have worked out how to make a height constraint that is between 0-2400mm, and a width constraint between 0-2400mm, which is half way there.
Height = if(Height Input < 0 mm, 0 mm, (if(Height Input > 2400 mm, 2400 mm, Height Input)))
Width = if(Width Input < 0 mm, 0 mm, (if(Width Input > 2400 mm, 2400 mm, Width Input)))
What we also want to add in, is the restriction that if the height is between 1200-2400mm, then the width must be between 0-1200mm, and if the width is between 1200-2400mm then the height must be between 0-1200mm. (Basically you can have a landscape sign maximum size 2400x1200 or a portrait sign maximum size 1200x2400.)
IE: The height should be between 0-2400mm, unless the width is greater than 1200mm, in which case it can only have a maximum width of 1200mm (and vice versa).
We tried a couple of options but got "if" and "comma" errors.
I feel like this post might have some good formulas but I can't see them all:
https://forums.autodesk.com/t5/revit-mep-forum/parameters-and-scheduling/m-p/6890693
Any tips gratefully received.
Solved! Go to Solution.