Grasshopper API link - Cost estimation (05)

This article is also available in:
In this tutorial, you'll discover how to effectively parameterize a joint to generate a range of costs for various settings using Grasshopper.

If you work with IDEA StatiCa version up to 24.1.3, see this tutorial.

Grasshopper - Plugin Installation

You can get a trial version of Rhino3d and Grasshopper from the Rhino3d website. Run Rhinoceros and select the template with Meters:

inline image in article

In the Command line, please enter "Package Manager":

inline image in article

A new window appears; select IDEAStatiCa and click Install. The plugin will be downloaded and installed. To become active, a restart of Rhinoceros is necessary.

inline image in article

 To start Grasshopper with the IDEA StatiCa plugin, select Tools / Grasshopper in the Rhihoceros tab.

inline image in article

As you can see, the plugin is already incorporated.

inline image in article

Learn about the components and commands in the IDEA StatiCa plugin for Grasshopper in the article Description of Grasshopper plugin components.

Colibri plugin

As Grasshopper can not work with loops, you have to install another plugin - COLIBRI, which you will utilize in this tutorial.

inline image in article

IDEA StatiCa Connection – Design of a joint and set parameters

You can use this ideaCon file or create one from scratch according to the following steps.

inline image in article

Change both the cross-sections to the CHS400,10.

inline image in article

Now apply the Plate to Plate Operation according to the following picture:

inline image in article

Add operation Rib with actual settings:

inline image in article
inline image in article

Copy this Operation and set up these values:

inline image in article

To be able to work with parameters, it is necessary to enable the Developer tab in Preferences / Advance Settings

inline image in article

Now, you have to set up three parameters for this connection. Click in the Developer tab on the + button and set the values. The first one will be the diameter of bolts, the second one the length of the rib and the third one the position of the rib. Both parameters a and b set to Visible.

inline image in article

Connect all three parameters with the appropriate values of the corresponding operations.

inline image in article

Finally, you can save this connection under the name Model_costs_template.ideaCon.

Grasshopper - Import of the *ideaCon file and adding components

Create a new document, select the tab Params in the upper ribbon, and place the component File Path on the Canvas. 

inline image in article

Right-click on the component and select the file Model_costs_template.ideaCon you saved before. 

Note: If you open the attached file, you must change this path accordingly. 

Since version 24.1.4, IDEA StatiCa came with a new API, described here.

To run grasshopper scripts, it is necessary to add to every file a component Connection Service Runner,  which can be found in  IDEA StatiCa / App Common.

inline image in article

  When running this component, you should see the following window appear.

inline image in article

Check the attached file for all the components, enabling cost estimation.

You can also watch the video, where the workflow is seen. 

Here is the final video with running the script.


Attached Downloads

Related articles

Parametric design in IDEA StatiCa Connection - Basics (01)

Parametric design for steel connections

Grasshopper API link - bulk calculation of steel joints (06)