Grasshopper

algorithmic modeling for Rhino

I have noticed that Lyrebird does not know how to process/interpret properly the value of Pi coming into it. Let's say i want to set a rotation parameter to 180 degrees. Grasshopper will give me "Pi" when converting to Radians and Revit really wants "Pi()" to be able to execute it. Is there a fix for that? 

Thanks!

-K

Views: 1581

Replies to This Discussion

I'll have to add an understanding of Pi next time I update.  Until then you can push the angle values through the Format component before feeding them into Lyrebird.

-Tim

Attachments:

My guess is Lyrebird sends a long string into Revit, so you decided to read the number parameters directly as strings. That's why it also breaks down when local culture settings use comma rather than dot for decimals.

Maybe converting the GH_Numbers to doubles and using .ToString() on the double type might fix those problems.

(Or more likely, I don't know what I'm talking about, see number 4 here.)

Yeah i did that. Thank you! 

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