algorithmic modeling for Rhino
I have posted a download for a series of beta grasshopper functions which allow for live interaction with excel.
You can find the file at: http://neoarchaic.net/2011/01/gh-excel-suite/
I hope you enjoy, find it useful, and look forward to any feedback, suggestions
The toolset contained below allows the user to stream formatted data to and from open microsoft excel spreadsheet. There are three basic tool types, write to excel tools, which stream lists and tables to an open excel sheet live, read excel tools, which read specified regions of an open excel sheet, and a chart function, which produces and excel chart with customizable grasshopper driven formatting.
The attempt is to create an option to very simply stream data and at the same time provide wide access to a series of embedded formatting parameters to make the link between the two platforms more productive… and prettier.
THE READ AND WRITE TOOLS HAVE BEEN ALPHA TESTED FOR ARE COMPATIBLE WITH EXCEL 2003+
THE CHART TOOL HAS BEEN ALPHA TESTED FOR AND IS COMPATIBLE WITH EXCEL 2007+
Write to Excel Tools:
The excel output tools allow you to live stream any text based data out to an active excel spreadsheet. There are two primary output types, "List to XL", which will output a either a single column or row of information to excel, and "Table to XL" which will output a two dimensional array (Datatree in GH, Table/ Database in Excel).
Each tool has two versions. An advanced option allows the user to stream various formatting parameters, to better visualize the data being output. This includes options like cell color, which could be coordinated to a model/ rendering, for easy reference. Each of these formatting inputs are optional, and if left empty, will simply use the excel sheets default. The second component is the light version, which only outputs the data. There is no difference between the light version and the advanced version with non of the optional formatting used, it just takes up less space in Grasshopper.
Additionally there are 4 optional components, compatible with both the table and list tools, which allow the used to create varied formatting per cell/ per sheet. These require coordinated data tree structures with the data being streamed, (same as any other Grasshopper component).
Read from Excel Tools:
These two excel input function has user defined ranges of information from excel and returns the values as strings into Grasshopper. There are two types, the "List From XL" which returns a Grasshopper List of information, and the second "Table From XL" which returns a Datatree (2d array) of information. Both have similar structures that have an origin cell from which the function begins reading, for the list component there is an option to choose whether a column of information is read (from origin down) or a row (from origin right). Both allow the user to specify a limit or bound to how much data will be read, if not used, the function will read till it hits its first null entry for the list, and first null column entry for the table. Use of the "Count" and "Bound" inputs allow the user to bring null information into grasshopper.
Chart from Excel/ Grasshopper:
The excel output chart tool takes either a user defined pair of two dimensional points or an grasshopper excel tool output, which defines the 2d range for a set of data to be measured, then converts this data into a standard excel chart. This is a relatively new function, and may be a little buggy. Like the preceding output functions the inputs formatting are optional.
Be sure to uncheck the "_stream" function once a satisfactory chart has been produced or a new chart will be made for every change made in grasshopper which precedes the function.
THIS COMPONENT CURRENTLY ONLY WORKS IN EXCEL 2007+
Further Revisions to this component will be made, and functionality relative to actively changing an existing table, rather than constructing a new table each time will be added soon.
All suggestion for different versions, alterations, etc welcome.