I am trying to pass in a value to a family paramter which is passed in as 2000mm, however after i pass it in the value comes back as 609.
I know this is an issue with the conversion between revit units and the revit api, but is there an easy way to convert all my mm units before I pass them in?
@eirannejad I know you wrote a script for curtain wall grid creator which factored this in, but I cant figure out how to just apply this scale factor to a number.
@ssw1 Hello
Are your Revit and Rhino models follow the same unit settings? Are you using the RIR components or this is a scripted component you are working on?
Find attached screenshot- yes I am doing it exactly that way.
The parmater is just a shared instance parameter that I have made- its not actually referenced to any geometry (so its not breaking the family or anything).
You can see that the value going in and value going out is scaled up… it also seems it doesnt like negative values- as they get culled out (which is also another issue)
Ok. I’d appreciate if you can share files so I can replicate the issue on my side. I tried different unit settings and GH always follows Rhino’s units as it should be. This might be an obscure bug.
There were a bug casting Integer inputs to parameters that take a Number like a Length parameter in this case.
If you like to test before updating, please change the integer parameter you have before the Set Element Parameter by a Number parameter or just nothing.
It’s fixed on the release from today, please update and tell us.
Amazing, silly question but how do I push the most recent update.
I assume that I can also put negative values into this aswell? ie. from what @eirannejad is doing in his script, that could be say -25 and it inputs the parameter value as a negative?