Grasshopper API link - how to create an IDEA StatiCa IOM file for imports (01)

Tento článek je dostupný také v dalších jazycích:
In this tutorial, you will learn how to create an IOM file from a template and work with it in Grasshopper 3D.

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

Grasshopper - Instalace pluginu

Zkušební verzi programů Rhino3d a Grasshopper můžete získat na webových stránkách Rhino3d. Spusťte program RhinoCeros a vyberte šablonu s velikostí měřítka v Metrech:

inline image in article

Do příkazového řádku zadejte "Package Manager":

inline image in article

Zobrazí se nové okno; vyberte IDEAStatiCa a klikněte na tlačítko Install. Zásuvný modul se stáhne a nainstaluje. Aby se stal aktivním, je nutné restartovat systém Rhinoceros.

inline image in article

Chcete-li spustit program Grasshopper se zásuvným modulem IDEA StatiCa, vyberte na kartě Rhihoceros položku Tools / Grasshopper.

inline image in article

Jak vidíte, zásuvný modul je již začleněn.

inline image in article

Informace o komponentách a příkazech modulu IDEA StatiCa pro Grasshopper najdete v článku Popis komponent modulu Grasshopper.

IDEA StatiCa Connection - Design of a joint and IOM export

For the example, you will create a simple moment connection using a template:

inline image in article

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

inline image in article

Finally, you can save this connection under the name Example1.ideaCon and also export this connection to the IOM file Example1.xml.

inline image in article

Grasshopper - Import the IOM file, display the joint in Rhino, and see the calculation results

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.  

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 we saved before: 

inline image in article
inline image in article

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

Now add the following components to the canvas and connect them as seen in the picture.

IDEA StatiCa / Open Model / Import IOM File
IDEA StatiCa / Open Model / Deconstruct Open Model
IDEA StatiCa / Connection / Create Connection from IOM
IDEA StatiCa / Connection / Calculate Project
IDEA StatiCa / Connection / Deconstruct Result Item
Params / Input / Boolean Toggle
Params / Input / Boolean Toggle
Params / Input / Panel

inline image in article

To run the calculation and get visible results, double-click on False/True. As you added the component Deconstruct Open Model, you can also see the contours of the joint in the Rhinoceros.

inline image in article

More complex examples can be found on your PC in the directory

“%appdata%\McNeel\Rhinoceros\packages\7.0\IDEAStatiCa\0.1.1\Examples.zip”

Přiložené soubory ke stažení

Související články