Pelicanflow x data 2.0 release:
Overview
PelicanFlow_Data just got upgraded to its 2.0 version. For those who do not know Pelicanflow before: PelicanFlow is a Grasshopper plugin that enables users to perform basic data analysis and manipulation directly within the Grasshopper interface and also allows data exchange with external data sources more smoothly. This tool simplifies working with structured data, allowing designers and engineers to integrate computational workflows seamlessly.
Version Information
- Plugin Name: PelicanFlow_Data
- Version: 2.1
- Latest update: 2025-3-4
Installation
To install PelicanFlow_Data:
- Download the zip file from Food4Rhino, and upzip the package.
- Copy the whole folder(which should include multiple supporting files along with gha) in the Libraries folder of your Grasshopper installation.
- Restart Rhino and Grasshopper.
- The plugin will now appear under the appropriate Grasshopper tab.
What Components Do We Offer?
Generate Table ID
Description
The Generate Table ID component assigns unique IDs to a given list of geometries based on a user-defined prefix and starting index.
Inputs
- Geometry (Items)
- Data Type: Any (Geometries or data items)
- Description: A list of geometries that need unique IDs.
- Prefix (Prefix)
- Data Type: String
- Description: A shared prefix for all generated IDs.
- Starting Number (Start)
- Data Type: Integer
- Description: The starting index for ID generation.
Outputs
- TreeTable (Table)
- Data Type: Any (Data Tree format)
- Description: A data tree combining geometries with their assigned indices.
- Heading (Heading)
- Data Type: List of Strings
- Description: The heading for the generated data tree.
Excel Reader
Description
The Excel Reader component imports an Excel sheet into Grasshopper as a structured data tree.
Inputs
- File Name (FileName)
- Data Type: String
- Description: The name of the Excel file, including its extension.
- File Path (FilePath)
- Data Type: String
- Description: The full path to the folder where the file is saved.
- Heading Included (Heading?)
- Data Type: Boolean
- Description: Boolean option to indicate whether the first row should be used as headings.
Outputs
- TreeTable (Table)
- Data Type: Any (Data Tree format)
- Description: A data tree containing the structured data from the Excel file.
- Heading (Heading)
- Data Type: List of Strings
- Description: A list of headings extracted from the first row (if applicable).
Add Column
Description
The Add Column component adds a new column to an existing data tree table.
Inputs
- Column Data (ColumnData)
- Data Type: Any (Data matching the column type)
- Description: The list of values to be added as a new column.
- Column Name (ColumnName)
- Data Type: String
- Description: The name of the new column.
- TreeTable (TreeTable)
- Data Type: Any (Data Tree format)
- Description: The existing tree table to which the column will be added.
- Table Heading (Heading)
- Data Type: List of Strings
- Description: The heading of the existing tree table.
- List Mode On? (List?)
- Data Type: Boolean
- Description: Boolean option to determine whether the added column is a list or a shared value.
Outputs
- TreeTable (Table)
- Data Type: Any (Data Tree format)
- Description: A data tree combining the updated table with the new column.
- Heading (Heading)
- Data Type: List of Strings
- Description: The updated heading for the data tree.
Join Tables
Description
The Join Tables component merges two data tables based on a shared column.
Inputs
- BaseTable (Base)
- Data Type: Any (Data Tree format)
- Description: The primary table used for joining.
- Base Heading (BaseHeading)
- Data Type: List of Strings
- Description: The heading of the base table.
- BaseColumnIndex (BaseColumn)
- Data Type: Integer
- Description: The index of the key column in the base table.
- Table to Join (Joiner)
- Data Type: Any (Data Tree format)
- Description: The secondary table that will be merged.
- Heading to Join (HeadingToJoin)
- Data Type: List of Strings
- Description: The heading of the table to be joined.
- Key Joining Index (JoinIndex)
- Data Type: Integer
- Description: The index of the key column in the table to join.
Outputs
- TreeTable (Table)
- Data Type: Any (Data Tree format)
- Description: A data tree that merges the two tables based on the shared column.
- Heading (Heading)
- Data Type: List of Strings
- Description: The updated heading for the merged data tree.
Export As CSV
Description
The Export As CSV component exports a TreeTable as a comma-separated value (CSV) file, which can be opened in Excel.
Inputs
- DataTreeTable (TreeTable)
- Data Type: Any (Data Tree format)
- Description: The DataTree in TableTree format to be exported.
- Table Heading (Heading)
- Data Type: List of Strings
- Description: The heading of the table.
Outputs
- CSV data (CSV data)
- Data Type: String
- Description: The data in CSV format, which can be copied to a text editor or notebook and saved as a CSV file.
Filter Table
Description
The Filter Table component filters a Table Tree based on a target value. It can exclude or include values based on equality or inequality to the target value.
Inputs
- BaseTable (Base)
- Data Type: Any (Data Tree format)
- Description: The Table Tree containing the data to be filtered.
- Base Heading (BaseHeading)
- Data Type: List of Strings
- Description: The heading of the table.
- FilterColumnIndex (FilterColumn)
- Data Type: Integer
- Description: The index of the column to be filtered.
- Target Value (Target Value)
- Data Type: Any (Target value or range)
- Description: The target value or range to filter for.
- ≠ Mode On? (≠ Mode On?)
- Data Type: Boolean
- Description: Boolean option to filter out rows that are NOT equal to the target value.
Outputs
- TreeTable (Table)
- Data Type: Any (Data Tree format)
- Description: The filtered data tree.
- Heading (Heading)
- Data Type: List of Strings
- Description: The updated heading for the filtered data tree.
Sort Table
Description
The Sort Table component sorts a Table Tree based on a target column in either ascending or descending order.
Inputs
- BaseTable (Base)
- Data Type: Any (Data Tree format)
- Description: The Table Tree containing the data to be sorted.
- Base Heading (BaseHeading)
- Data Type: List of Strings
- Description: The heading of the table.
- SortColumnIndex (SortingColumn)
- Data Type: Integer
- Description: The index of the column to sort the table by.
- Descent? (Descent or not)
- Data Type: Boolean
- Description: Boolean option to toggle between descending (True) and ascending (False) order.
Outputs
- TreeTable (Table)
- Data Type: Any (Data Tree format)
- Description: The sorted data tree.
- Heading (Heading)
- Data Type: List of Strings
- Description: The updated heading for the sorted data tree.
Table Previewer
Description
The Table Previewer component allows users to preview a DataTree in a table format directly within the Grasshopper interface.
Inputs
- TreeTable (TreeTable)
- Data Type: Any (Data Tree format)
- Description: The DataTree to be previewed.
- Heading (Heading)
- Data Type: List of Strings
- Description: The heading of the table to preview.
Outputs
- Preview (Preview)
- Data Type: String
- Description: A preview string representation of the TreeTable.
User Guide
- All "Table Tree" can directly work as a DataTree in grasshopper as well!
License
- PelicanFlow_Data is licensed under the MIT License.
Feel free to contact the author for any inquiries or support.