Hey.
I have a family, with the parameter:
Diameter = 8
Now i want to use the Diameter parameter in the description, but i get a failure their say's, "Inconsistent Units". Is it in anyway possible to use the number parameters, in a text string??
Nichlas
Gelöst! Gehe zur Lösung
Gelöst von barthbradley. Gehe zur Lösung
Use a neutralizer. Divide by one or multiply by one.
http://autodesk-revit.blogspot.com/2008/01/neutralize-those-units.html
No, you cannot use a number parameter in a text parameter.
...do I win anything, Sport?
"Anything I can smoke, drop, shoot, snort, rub into your belly or whatever?"
George Carlin. 1937-2008. May his humor live on.
If you only have a few standard diameter options, you can use if() to make it work.
Something like: if(Diameter = 8 mm, "8", if(Diameter = 10 mm, "10", if(Diameter = 12 mm, "12", "Non Standard")))
I see that you put a strikethrough on the neutralize unit recommendation.
Is this because it doesn't work anymore or this because it is not recommended. It is odd that you can't do this or that there isn't a function for this. Reason being is that you can get it to work with tags, so somewhere this functionality/formula exists within Revit.
Well I don't really have a specific formula. I was looking for a formula that would convert a length parameter to text. The same way that a Tag can.
For example. Let's say you have various Tile sizes (width x height). You can create a shared parameters for width and height. You can load this family into your project and create a Tag that names each tile instance T(width) x (height). You can also schedule all the tiles and sort them by width and height. However, it would be nice if their Tag name was also in the schedule. I'm unaware of a way to achieve this. One thought would be to make a shared text parameter (or using an existing one, such as description) and somehow converting the width and height dimensions to text and connotate that to the "T".
So if you had a 100mm x 200m tile your Tag and Description would read: T100x200
@RFreund wrote:I see that you put a strikethrough on the neutralize unit recommendation.
Is this because it doesn't work anymore or this because it is not recommended. It is odd that you can't do this or that there isn't a function for this. Reason being is that you can get it to work with tags, so somewhere this functionality/formula exists within Revit.
No, Divide and Multiply are still neutralizers -- they just don't apply in this case. I misread and the OP's post initially.
Wow, thank you. I just didn't see that icon and didn't know that was an option.
I know this is old but for future people this can be done with dynamo pretty easily.
Try this ' My Shared Paramerter is Text, And I wanted to tag my plate if I chose a plate that had 3 or 4 for holes, so
if(Top Plate 3 Holes, "3", "4") My parameter of Number of holes changes from 3 to 4 ![]()
You can do it with a LookupTable. which is basically the same as an if-statement, just simpler to implement if you have many options. if you have 1000 (or more) options for numbers that you want to turn into a text, just list them in the lookup column, and return the same but as a text from the next column.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.