View Full Version : Parameter Question
asteele
2011-04-15, 05:51 PM
Say I draw just a simple rectangle in a Ref Level floor plan for a family. If I put a length parameter to it just to control how long it is, is there a way to put in a formula to make it only increase/decrease in 2 inch increments?
Thanks.
DaveP
2011-04-15, 07:48 PM
Sort of.
You'd have to make two parameters. One which had the actual dimension that you could type in, and another one that has an "IF" formula, which would test your Actual and return an even number. It'll be messy, though. You'd have to test for every condition you expect.
Here's a simple example:
if(ActualLength < 0' 4", 0' 2", if(ActualLength < 0' 6", 0' 4", if(ActualLength < 0' 8", 0' 6", 0' 8")))
In 2012, they have added a Round function which makes this much simpler.
BTW, I assume you're simplifying your use case. If so, good for you. I like to eliminate unneccesary complexity, too. If not - if you really are making a family that's just a flat rectangle, you need to start thinking big picture more.
asteele
2011-04-15, 09:52 PM
Yes I'm just simplifying it so its easy to understand for anyone. . . And like I stated the simple explanation is we want this families length to only increase in segments of 2 (2, 4, 6, 8, 10, 12, even numbers only, etc).
I've been working with IF formulas, and have come very close, just not quite.
asteele
2011-04-15, 10:15 PM
Got it figured out. Thanks for the input.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.