Grasshopper

algorithmic modeling for Rhino

Have a pretty a pretty standard write to excel attempt giving me a weird error. Some context, I am writing 11 lists of 96 numerical strings one after another until I have an very long 11 column excel sheet. But as soon as I get a to a certain point, I start getting an error. It goes for literally thousands of lines and then all of a sudden BOOM nothing. 

Find attached the questionable piece of script as well as the script from which it comes. 

Here is the text of the error 

Error - Write Options String is not valid. Please adjust inputs or use the default options.Internal error message: System.OverflowException: Value was either too large or too small for an Int16. at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt16(String value) at CORE.Grasshopper.Toolbox.WriteOptionsWrapper.decomposeStr() at CORE.Grasshopper.Toolbox.WriteOptionsWrapper..ctor(String WriteOptionsString) at CORE.Grasshopper.Toolbox.writeToExcel.SolveInstance(IGH_DataAccess DA)

Is this because my RS input is ~33000? Does the writer break after a certain number of cells?

Views: 539

Attachments:

Replies to This Discussion

Hi

Int16 can handle integer numbers up to 32767. In older excels that was max number of rows on sheet.

Markku, 

Thanks for the swift reply! Good to know about the maximums on integers. Any ideas of a work around? I was thinking to just taking what didn't fit and making it into its own document. Its not elegant but it seems like it would work.

You can try other grasshopper plugins. Lunchbox and Ghowl has also Excel write ability. Maybe those are written to bigger integers (UInt16 max integer 65535, Int32 max = 2147483647) Excel 2003 can already handle 65536 rows and later versions 1048576 rows so that is not problem.

Useful topic.

Greetings!

I've been deep in the grind of writing literature reviews myself, and I know how tough it can get. Sometimes, even after days of researching, it feels like there’s still so much left to cover, and structuring everything coherently is another level of challenge. Especially when you have multiple assignments piling up, finding a way to keep things organized and thorough can feel almost impossible. If you’re in a similar bind, one approach that worked for me was to buy a literature review paper from a resource I came across. They provide well-researched, well-structured work that saved me tons of time while keeping the quality up.


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