Forums
Forums >> Revit Building >> Technical Support >> Help with Parameter in Family
|
|
active
Joined: Wed, Jul 11, 2012
28 Posts No Rating |
Hello all,
I need help getting a parameter working. I have a family that has a mfr model number in it that depends on the overall width of the family. However that width is flexible. Is there a way I can get the manufactur model type to reflect the width as text with additional text?
I.E. When width = 30" the model number should be: 689-30 If the width changes to 40" then the model number should be 689-40.
Is there a way to do that?
Thanks,
LJ
|
This user is offline |
|
![](images/spacer.gif) |
|
site moderator|||
Joined: Tue, May 16, 2006
13079 Posts
![3.5 Stars: 391 Votes](/images/stars_3.5.gif) |
There are no text formulas in Revit .
|
This user is offline |
|
![](images/spacer.gif) |
active
![alfmedina Avatar](user_avatar/41302.jpg)
Joined: Wed, Sep 26, 2007
162 Posts
![4 Stars: 8 Votes](/images/stars_4.gif) |
Yes, it is possible.
model (text parameter)
width = length parameter
model = if(width = 30", "689-30", if(width = 40", "689-40", "none"))
But, it is more appropriate to handle this by types, otherwise, you end up with random lengths that do not generate a model number.
-----------------------------------
Planta1 Revit Online Consulting | info@planta1.com |
This user is offline |
View Website
|
![](images/spacer.gif) |
active
Joined: Wed, Jul 11, 2012
28 Posts No Rating |
If the width is flexible I can easily add a parameter to reflect certain text dependant on the width. '
I.E: if(Width = 29", if(Rear Access Panel, if(Right Hand, "689R29", "689L29"), if(Right Hand, "689R29FB", "689L29FB")), if(Width = 35", if(Rear Access Panel, if(Right Hand, "689R35", "689L35"), if(Right Hand, "689R35FB", "689L35FB")), if(Width = 41", if(Rear Access Panel, if(Right Hand, "689R41", "689L41"), if(Right Hand, "689R41FB", "689L41FB")), if(Width = 47", if(Rear Access Panel, if(Right Hand, "689R47", "689L47"), if(Right Hand, "689R47FB", "689L47FB")), "INVALID WIDTH"))))
That is actually dependant on three parameters (Width, Rear Access Panel, and Right Hand) in the family. I just want to add the width number into the outcome of a similar formula.
That's not possible then?
|
This user is offline |
|
![](images/spacer.gif) |
active
![alfmedina Avatar](user_avatar/41302.jpg)
Joined: Wed, Sep 26, 2007
162 Posts
![4 Stars: 8 Votes](/images/stars_4.gif) |
I am saying, it is possible, as in my example, above.
-----------------------------------
Planta1 Revit Online Consulting | info@planta1.com |
This user is offline |
View Website
|
![](images/spacer.gif) |
active
Joined: Wed, Jul 11, 2012
28 Posts No Rating |
"
Yes, it is possible.
model (text parameter)
width = length parameter
model = if(width = 30", "689-30", if(width = 40", "689-40", "none"))
But, it is more appropriate to handle this by types, otherwise, you end up with random lengths that do not generate a model number.
"
Hey ALfmedina,
We were responding at the same time. I have a similar equation that you suggested. But you're right, it's tough when the width can be changed to anything. The equation I just gave is actually from another model. this current model will have a variable width that will not be consistant based on types. But there's no way to reflect the width directly?
Thanks,
LJ
|
This user is offline |
|
![](images/spacer.gif) |
active
![alfmedina Avatar](user_avatar/41302.jpg)
Joined: Wed, Sep 26, 2007
162 Posts
![4 Stars: 8 Votes](/images/stars_4.gif) |
If you are referring to concatenating any width value into the model text number, no. Only as shown in the example: if this length is this, this text is that. That is possible, concatenating, no.
-----------------------------------
Planta1 Revit Online Consulting | info@planta1.com |
This user is offline |
View Website
|
![](images/spacer.gif) |
active
Joined: Wed, Jul 11, 2012
28 Posts No Rating |
That's what I was afraid of.
Ok thanks anyways guys,
LJ
|
This user is offline |
|
![](images/spacer.gif) |
![](images/spacer.gif) |
Similar Threads |
Add Family name to a shared parameter |
Revit Building >> Technical Support
|
Tue, Jun 23, 2015 at 8:50:48 AM
|
2
|
<Family Type> parameter can't be controlled by formula. What else can we do? [ 1 2 ] |
Revit Systems >> Technical Support
|
Tue, Aug 27, 2013 at 3:53:53 AM
|
29
|
Family with coordinate parameter? - Revit 2010 |
Revit Building >> Technical Support
|
Wed, May 12, 2010 at 3:45:58 AM
|
11
|
One family parameter has formula one has none |
General Discussion >> Revit Project Management
|
Wed, Jun 25, 2014 at 1:05:54 PM
|
7
|
top/base constraint as a parameter in family types |
Revit Building >> Technical Support
|
Wed, Sep 9, 2009 at 4:49:38 PM
|
7
|
![](images/spacer.gif) |
|
Site Stats
Members: | 2022340 | Objects: | 22974 | Forum Posts: | 152200 | Job Listings: | 3 |
|