Grasshopper

generative 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?

Reply to This

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:

Reply to This

i have a version i use that works well
Attachments:

Reply to This

6.48 is the magic number... Should be 6' 5-3/4"

Reply to This

that what it is 6/8 is 3/4 just set tol to 4

Reply to This

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

Reply to This

how picky!

here you go.

Reply to This

oops try this
Attachments:

Reply to This

Reply to This

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

Reply to This

You're right.

I downloaded the new one but opened the old one.

Nice work and lovely little GCD function.

Reply to This

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:
Thanks, I had figured out, but in a more cumbersome way, this makes things a lot easier

RSS

Translate

Search Grasshopper

Members

  • Giulio Piacentino
  • Shawn Fernandez
  • Daniel Hernandez Canut
  • Jason Kelly Johnson
  • edrina dandini
  • David Rutten

© 2010   Created by Scott Davidson.   Powered by .

Badges  |  Report an Issue  |  Terms of Service