DynamoDS / Dynamo

Open Source Graphical Programming for Design
https://dynamobim.org
Other
1.74k stars 634 forks source link

Metric multiplier I want to work in feet #3070

Closed damionc closed 8 years ago

damionc commented 10 years ago

Dynamo is multiplying all values converting them to meters in my Revit file. Unlike most people I am working in feet and would like dynamo to produce results without the multiplier as shown in the attached image. This result is the opposite of everything I am reading about dynamo so what am I missing?

Please explain how I can get rid of this multiplier.

dynamo multiplying values to metric

andydandy74 commented 10 years ago

Welcome to the wonderful world of units in Dynamo. ;-) I am not going to bore you with details, but you can read up on units by searching for "units" in the issues section - it's an entertaining read. Regarding your particular issue: Level.ByElevation is expecting a double (i.e. a unitless number), but it (secretly) assumes that double to describe a length (in meters - no matter how you set your display units in Dynamo). So you'll have to give it meters - simply convert your numbers from feet to meters. Like so: unbenannt BTW: Package Clockwork contains a couple of unit conversion nodes.

damionc commented 10 years ago

Thanks. I'm just getting started in dynamo did the tutorials and now trying some of my own stuff I'll have to learn these little things that are buried in the program On Nov 13, 2014 11:57 AM, "Andreas Dieckmann" notifications@github.com wrote:

Welcome to the wonderful world of units in Dynamo. ;-) I am not going to bore you with details, but you can read up on units by searching for "units" in the issues section - it's an entertaining read. Regarding your particular issue: Level.ByElevation is expecting a double (i.e. a unitless number), but it (secretly) assumes that double to describe a length (in meters - no matter how you set your display units in Dynamo). So you'll have to give it meters

— Reply to this email directly or view it on GitHub https://github.com/DynamoDS/Dynamo/issues/3070#issuecomment-62925735.

ikeough commented 10 years ago

@damionc we feel your pain. The difficulty is that the Revit API is in feet. We had to pick a unit system, and we chose meters to align with SI standards. There is much development still to come with regards to the units system. So please stick with us.

Thanks @andydandy74 for your input here.

damionc commented 10 years ago

absolutely. I am just getting started and knew about using multipliers to make conversions. I just couldn't understand the result I was getting when my inputs were so raw. And it went against everything I was reading about dynamo working in feet and all output to revit has to be multiplied to get meters so I was confused. I thought maybe I was using a new metric version of dynamo and needed to use the imperial version.

thanks for the quick replies.

On Fri, Nov 14, 2014 at 2:29 PM, Ian Keough notifications@github.com wrote:

@damionc https://github.com/damionc we feel your pain. The difficulty is that the Revit API is in feet. We had to pick a unit system, and we chose meters to align with SI standards. There is much development still to come with regards to the units system. So please stick with us.

Thanks @andydandy74 https://github.com/andydandy74 for your input here.

— Reply to this email directly or view it on GitHub https://github.com/DynamoDS/Dynamo/issues/3070#issuecomment-63116466.

ikeough commented 10 years ago

@damionc If you'd like to do inputs as feet, you can always do this:

image

Just make sure you "unwrap" the length object before passing it into any of the Revit functionality, so you get the numerical value and not the "Length" object itself.

Again, much of this will be reconciled in the future, most likely with one uber-input node where you can specify what the input value represents (a length, a number, a currency, etc.).

ikeough commented 8 years ago

Units have been deprecated. All units are now interpreted as being in the unit system set in Revit.