Grasshopper

algorithmic modeling for Rhino

Hej, I am doing a site investigation with mosquito and i stumbled upon the most simple problem - the results I am getting are in miles where I would love to have them in kilometers - any idea how I could make this conversion?

I have attached the file as well - thanks in advance. 

Views: 492

Attachments:

Replies to This Discussion

Miles -> Kilometres

multiply by 1.60934

I can't get the function to work and/or convert the panel into a number - maybe I should have said that first :) I know how to do it manually but I would like it to stick to my file and automatically convert.

also I got an interesting error after I wrote this message - any ideas? or should I open another post for this one?

Well the "3.5 mi" must be text, since it contains a space and the unit name. You'll have to convert it to the number 3.5 before you can perform any maths on it. I recommend using a Text Replace component to get rid of the " mi" bit, then you should be able to multiply the result by the conversion factor.

Thank you David for such a fast reply I will check it out. The other error disappeared when I internalized the data - weird. 

The "Document Units" component in Human will handle all this for you in one swoop, if your Rhino document is in Kilometers - it can interpret the text and the units and will convert to the units your document is currently in. 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service