1. Home
  2. Docs
  3. LunchBox Documentation
  4. Grasshopper Components
  5. Workflow

Workflow

LunchBox’s Workflow components provide a set of tools that can help users optimize their workflow in Rhino and with accessing and exporting Excel data.


Component Descriptions

Below, each component is described and visual examples are given. We’ve also included special Notes and Tips that can help users with less familiar situations.

Workflow components menu in Grasshopper

Description

Appearance


Create Layers

Create layers in Rhino with a specified name and color

Input:

  • A boolean toggle to run the operation
  • A list of Layer names
  • A list of Layer colors

Results:

  • Creates the layers in Rhino
Create Layers example
The layers have been added to the Rhino model

Layer Information

Get the layer information from the current document

Input:

  • A boolean toggle to run the operation

Results:

  • A list of the layer names in the document
  • A list of the layers’ colors
  • A list of the layers’ IDs

Layer Reference

Explanation

Input:

  • A boolean toggle to start the operation.
  • A list of layer names to reference. These must match the layer names in the document.

Results:

  • A list of the geometries on each layer
  • A list of the names of each geometry.
  • A list of the User Strings assigned to each geometry
  • A list of the geometry IDs
Layer Reference Example
Tip: You can connect the Layer Info output.

Excel Reader

Reads the contents of an Excel document, where each column is the branch of a tree.

Input:

  • A boolean toggle to start the operation
  • A file path to the Excel document
  • The name of the worksheet within the Excel document to reference. The default value is “Sheet1”.

Results:

  • “out” prints any error or success messages.
  • “Data” returns the contents of the excel document
Excel Reader Example
Excel document being read

Excel Write

Creates an Excel document with the specified data

Input:

  • A boolean toggle to run the operation
  • A file path (.xlsx) where the excel document will be created
  • A list of Heading names
  • A structured list of values

Results:

  • Creates an Excel document at the specified location
  • “out” returns any success or failure messages.
Excel Write example
The Excel document created by the script above

Launch Application

Opens a file in its native application. For example, inputting a file path to an Excel document will open the document in Excel.

Input:

  • A boolean toggle to start the operation.
  • A file path to a document.

Results:

  • The document will open. It may take it a minute, depending on the application and file size.
  • “out” will return any error or success messages.
Example Setup
Example Launching an Excel Document

Object Bake

Bakes out objects with the specified properties. Tip: Pass 3D geometry through a Brep component first.

Input:

  • A boolean toggle to start the operation
  • A list of objects to bake
  • A list of layer names to bake the objects onto. These will be nested under a layer called “GH_Bake”
  • A list of object colors
  • A list of layer colors, if you are baking objects to new layers or if you wish to override the current layer colors
  • User strings to assign to the object, as a list
  • User keys to assign to the object, as a list

Results:

  • Baked objects will be created in Rhino
A simple Object Bake example

Object Save

Saves out the specified object as baked geometry into its own file.

Input:

  • A boolean toggle to run the operation
  • A file location where the new file will be written
  • A file name, ending in .3dm
  • A list of objects
  • A list of layer names
  • A list of object names
  • A list of object colors

Results:

  • A new rhino file will be created that contains the objects
Object Save example

Rhino Command

Runs a Rhino command

Input:

  • A Boolean toggle to run the operation
  • A Rhino command

Results:

  • The Rhino command will run
A simple Rhino Command Example

How can we help?