CalcTree Help Pages
  • What is CalcTree?
  • Getting started
    • CalcTree Pages
    • Create a CalcTree Page
    • Add a calculation
    • Collaborate with a colleague
  • Calculations
    • Parameters
      • Math formulas
        • Parameter Data Types
        • Native Functions
          • Arithmetic Functions
          • Trigonometric Functions
          • Logical & Comparison Functions
          • Matrix & Vector Functions
          • Probability & Combinatorics Functions
          • Statistical Functions
          • String Functions
          • Utility Functions
          • Other Native Functions
        • Valid Expression Syntax
      • Supported Units
      • Dropdown List Parameters
        • Linking CSV Data to Dependent Dropdowns in CalcTree
      • Parameter Settings
    • Integrations
      • Python in CalcTree
        • Adding a Python Source
        • Defining Parameters in Python
        • Referencing Other Parameters in Python
        • Working with Units in Python
        • Creating Tables and Visuals in Python
        • Consuming Files in Python
        • Using Pre-installed Python Libraries
      • Spreadsheets [Coming Soon!]
      • File Upload
        • CSV files
      • 3rd Party Software Plugins
        • Excel
        • Grasshopper
        • ETABS [v20 & v21]
        • ETABS [v22]
        • SAP 2000
        • CSI Bridge [v26]
    • Templates [Coming Soon!]
    • Optimising your calculations
  • Pages & Reports
    • CalcTree Documents
    • Static content
    • Parametric content
      • Parametric equation
      • Inputs
      • Outputs
  • Export to PDF
  • API
    • GraphQL API
      • Generating an API key
      • Queries
        • GetCalculation
        • Calculate
      • Examples
        • Bulk calculations with Python
  • Collaborate
    • Add members
    • Review and approval
    • Add stakeholders
  • Administrate
    • CalcTree Workspace
    • Versioning and Audit trail
  • CalcTree for System Administrators
Powered by GitBook
On this page
  1. Calculations

Integrations

Integrate external data and tools into your CalcTree pages using Python scripts, file uploads, and third-party plugins.

PreviousParameter SettingsNextPython in CalcTree

Last updated 18 hours ago

CalcTree supports integrations that allow calculation pages to interface with external data sources and software tools. These integrations are used to import data, run complex logic (e.g. Python scripts), or connect to third-party applications via plugins.

All integrations are managed through the “Integrations” panel in the CalcTree platform.

Integration Types

1.

You can add one or more Python scripts to any CalcTree page. The script runs in the cloud environment and can interact with parameters on the CalcTree page, as well as other integrations. Use this to perform calculations, call APIs, transform data, or execute logic that’s not supported by .

Here's some notes on how to use

  • When referencing page parameters, make sure the name used in Python match the name of your parameter.

  • Output values can be used in the page, add the variable or figure back to the page from under the Python source in the integrations panel.

  • Utilise a braod range of that come pre-installed in CalcTree python, simply import them to your script to use them.

  • Scripts should be optimized for small to medium computations (avoid heavy number crunching).

2. Spreadsheet integration (coming soon)

This integration will allow users to upload an existing spreadsheet file (e.g. .xlsx) directly to a page, and utilise the logic within the spreadsheet in CalcTree pages. The integration will allow users to:

  • Map and interact with ranges and figures from their spreadsheet in CalcTree pages and calculations.

  • View the spreadsheet integrations connected to a page in the CalcTree source viewer.

  • Give old trusted spreadsheets new life by integrating them with other CalcTree features, like page editor, version history and automatic backup

This integration is in development, and we can't wait to share it with you when it's ready.

If you're interested in learning more about this feature, or would like to be an early test user, get in touch at contact@calctree.com

3. File Upload

You can upload CSV or plain text files and reference them inside your page logic. Uploaded files are treated as static data and can be parsed using Python scripts. This is useful for:

  • Table-based property lookups (e.g., steel section data).

  • Mapping rows to input values in batch calculations.

  • Storing configuration data used by logic.

Currently, file contents are accessible using ct.page_files["filename.csv"] in Python.

4. Plugins

Plugins also allow users to push data (e.g. from structural design software), populate parameters, and keep pages in sync with external changes.

Current supported plugins include:

See the relevant documentation under each plugin’s page for installation and usage instructions.

CalcTree offers dedicated plugins for using your CalcTree calculations in other tools, or exporting data from third-party engineering tools to CalcTree pages. This users to setup and verify calculations once in CalcTree, and let them be reused by others without them leaving their existing tools like and .

CSI Plugins: Interface with , , and via the CSiAPI. Used to push data from CSI programs into CalcTree pages and templates.

: Connects to Grasshopper to send parameter values and retrieve computed results.

: Links CalcTree pages to spreadsheet cells for sending/receiving data (currently in private beta).

Python Code integration
native parameters
CalcTree Python
libraries
Excel
Grasshopper
ETABS
SAP2000
CSiBridge
Grasshopper Plugin
Excel Add-in