View Full Version : Family parameter formulas
I'm trying to remember the formulas for family parameters and i figure this is the best place for it.
I've got a sliding pocket door, that i've been asked to make parametric in terms of how much it's slid open in graphics. I have one parameter called "panel width" and i'd like the "open distance" to error or be set to the "panel width" as a maximum. So if the panels are 3' wide and someone puts the "open distance" at 3'6" it would reset to the panel width or just give them an error. i'm fine with either outcome, i just don't want it to accept something bigger then whatever they set as the "panel width"
thanks ahead of time.
twiceroadsfool
2009-09-14, 05:06 PM
If (open distance>panel width, panel width, open distance)
That will tell it "If they put in something greater than Panel Width, just use panel width instead. Otherwise use the value they gave you."
But, i would make the panel symbol in plan USE Panel Width, and then CONSTRAIN it with another dimension. That way when the doors change size, the panels and the panel symbology are the same. (Maybe thats what youre doing?) I suppose in either case you would want the formula for the opening amount...
Munkholm
2009-09-15, 07:00 PM
I´ve done something similar once, and used an "Opening Percentage" parameter to control it...
Opening Width = User Input
Opening Percentage = User Input (1-100%)
Opening Drive = (Opening Width / 100) * Opening Percentage
Hmm... on a second thought... I might need to check that none og the dumba**´es have entered more than 100% :shock:
If (open distance>panel width, panel width, open distance)
That will tell it "If they put in something greater than Panel Width, just use panel width instead. Otherwise use the value they gave you."
But, i would make the panel symbol in plan USE Panel Width, and then CONSTRAIN it with another dimension. That way when the doors change size, the panels and the panel symbology are the same. (Maybe thats what youre doing?) I suppose in either case you would want the formula for the opening amount...
I just tried this method myself and it's giving me an error of "there is a circular chain of references among the formulas"
twiceroadsfool
2009-09-16, 12:17 PM
Which parameter did you put the formula in?
There will be:
Panel Width (user input)
Opening Width Input (user input)
Opening Width Actual (if(Opening Width Input>Panel Width, Panel Width, Opening Width Input)
Ten OWA has to be put as the constraint for the door opening.
Circ. chain sounds like you used one of the parameters, in the parameter, lol....
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.