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 |
|
 | |
|
|
site moderator|||
Joined: Tue, May 16, 2006
19889 Posts
 |
There are no text formulas in Revit .
|
This user is offline |
|
 |
|
active

Joined: Wed, Sep 26, 2007
162 Posts
 |
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
|
 |
|
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 |
|
 |
|
active

Joined: Wed, Sep 26, 2007
162 Posts
 |
I am saying, it is possible, as in my example, above.
-----------------------------------
Planta1 Revit Online Consulting | info@planta1.com |
This user is offline |
View Website
|
 |
|
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 |
|
 |
|
active

Joined: Wed, Sep 26, 2007
162 Posts
 |
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
|
 |
|
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 |
|
 |
 |
Similar Threads |
|
Create.NewFamilyInstance isn't displaying a new family on sheet |
Community >> Newbies
|
Mon, May 9, 2011 at 1:06:22 PM
|
0
|
|
RevDev Studios - RevEx and RevXL - Spreadsheet plugins for Revit |
Workflow & Implementation >> API & Third Party Apps
|
Tue, Feb 28, 2017 at 7:32:28 AM
|
0
|
|
Modelling terrain Revit imported from AutoCad |
General Discussion >> Revit Project Management
|
Thu, Oct 20, 2011 at 9:29:49 AM
|
0
|
|
Door hardware Schedule |
Revit Building >> Tips & Tricks
|
Fri, Dec 2, 2011 at 11:01:22 AM
|
1
|
|
Revit 2016 Annotative Demo Tag Formula |
Revit Building >> Technical Support
|
Mon, Apr 25, 2016 at 2:30:59 PM
|
4
|
 |
|
Site Stats
Members: | 2174246 | Objects: | 23399 | Forum Posts: | 152397 | Job Listings: | 0 |
|