Grasshopper

algorithmic modeling for Rhino

I am trying to convert a number measured in grasshopper into architectural units, (for example converting (6.34375 to 6' 4-7/8"). Does anyone have a good strategy on how to accomplish this?

Views: 7545

Replies to This Discussion

This attempt can only be described as cumbersome. This ideally wants to be more scripted...

I *think* it rounds everything correctly but it's not yet reducing all fractions for a given precision.

If anyone else can think of a clever way to deal with the issue shown below, feel free to improve the definition. Will only work with GH 0.7.

Attachments:

This isn`t correct. If your arch value is negative, the decimal value goes to hell. 

i have a version i use that works well
Attachments:
6.48 is the magic number... Should be 6' 5-3/4"

that what it is 6/8 is 3/4 just set tol to 4
For an architectural dim rounded to an eighth of an inch tolerance the fraction displayed should still be irreducible.

The greatest common divisor needs to be found.

http://en.wikipedia.org/wiki/Greatest_common_divisor
how picky!

here you go.
oops try this
Attachments:

are you sure you have the right file. it does not do that for me

You're right.

I downloaded the new one but opened the old one.

Nice work and lovely little GCD function.
thanks, i figure if i am letting people use this i would clean it up one more time. i thought the name you had ArchDim was way better (hope you dont mind) and i added 2 outs that let you use the feet and inch values ad doubles.
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service