This tutorial is using Rhino 8. If you work with IDEA StatiCa version up to 24.1.3, see this tutorial.
Widget #NaN: support_center_article
Name: Grasshopper - Plugin Installation
ID: 6d5f0dc8-ee5a-4c50-aced-df94e3586763
Show Raw Data
{
"title": {
"name": "Main headline (H1)",
"type": "text",
"value": "Grasshopper - Instalace pluginu"
},
"preview_image": {
"name": "Preview image",
"type": "asset",
"value": [
{
"name": "E1-1.png",
"description": null,
"type": "image/png",
"size": 68369,
"url": "https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/fe255e56-8a4e-4dd5-8264-4c71f1dcb040/E1-1.png",
"width": 782,
"height": 692,
"renditions": {}
}
]
},
"post_date": {
"name": "Post date",
"type": "date_time",
"value": null,
"displayTimeZone": "Europe/Prague"
},
"perex_content": {
"name": "Lead paragraph",
"type": "text",
"value": ""
},
"content": {
"images": [
{
"description": null,
"imageId": "210c0a21-6b2e-4cf8-96ca-37e82d4862fa",
"url": "https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/79496c31-039f-4837-b79c-cb4138788fee/g-1.png",
"height": 602,
"width": 822
},
{
"description": null,
"imageId": "17b9256a-6aa1-42b7-8631-d3e7d4e045fa",
"url": "https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/af466a09-7c9d-43da-aa86-ae8cf2e05680/g-2.png",
"height": 265,
"width": 492
},
{
"description": null,
"imageId": "2a7f156a-11b3-4615-bfa5-c5e91e966443",
"url": "https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/992a6362-f26a-4ba4-9082-0da7868c65c5/E1-1.png",
"height": 692,
"width": 782
},
{
"description": null,
"imageId": "b957b01f-e69c-482c-841e-87a2cab6aca6",
"url": "https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/71249ebe-9e05-4c66-bf72-1b3714c9decf/g-4.png",
"height": 599,
"width": 1077
},
{
"description": null,
"imageId": "8e7e6c80-c3e3-4d20-8aab-7481515ddf8d",
"url": "https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/f0c189a8-203f-40ea-9248-7aaf4be667ec/grasshopper-idea.png",
"height": 161,
"width": 814
}
],
"linkedItemCodenames": [],
"linkedItems": [],
"links": [
{
"codename": "grasshopper___introduction_to_the_plugin_component",
"linkId": "f2f373ad-9a22-499b-aced-f9520c80a37a",
"urlSlug": "description-of-grasshopper-plugin-components",
"type": "support_center_article"
}
],
"name": "Content",
"type": "rich_text",
"value": "<p>Zkušební verzi programů Rhino3d a Grasshopper můžete získat na webových stránkách <a href=\"https://www.rhino3d.com/download/\" data-new-window=\"true\" target=\"_blank\" rel=\"noopener noreferrer\">Rhino3d</a>. Spusťte program RhinoCeros a vyberte šablonu s velikostí měřítka v <strong>Metrech</strong>:</p>\n<figure data-asset-id=\"210c0a21-6b2e-4cf8-96ca-37e82d4862fa\" data-image-id=\"210c0a21-6b2e-4cf8-96ca-37e82d4862fa\"><img src=\"https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/79496c31-039f-4837-b79c-cb4138788fee/g-1.png\" data-asset-id=\"210c0a21-6b2e-4cf8-96ca-37e82d4862fa\" data-image-id=\"210c0a21-6b2e-4cf8-96ca-37e82d4862fa\" alt=\"\"></figure>\n<p>Do příkazového řádku zadejte \"<strong>Package Manager</strong>\":</p>\n<figure data-asset-id=\"17b9256a-6aa1-42b7-8631-d3e7d4e045fa\" data-image-id=\"17b9256a-6aa1-42b7-8631-d3e7d4e045fa\"><img src=\"https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/af466a09-7c9d-43da-aa86-ae8cf2e05680/g-2.png\" data-asset-id=\"17b9256a-6aa1-42b7-8631-d3e7d4e045fa\" data-image-id=\"17b9256a-6aa1-42b7-8631-d3e7d4e045fa\" alt=\"\"></figure>\n<p>Zobrazí se nové okno; vyberte IDEAStatiCa a klikněte na tlačítko <strong>Install</strong>. Zásuvný modul se stáhne a nainstaluje. Aby se stal aktivním, je nutné restartovat systém Rhinoceros.</p>\n<figure data-asset-id=\"2a7f156a-11b3-4615-bfa5-c5e91e966443\" data-image-id=\"2a7f156a-11b3-4615-bfa5-c5e91e966443\"><img src=\"https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/992a6362-f26a-4ba4-9082-0da7868c65c5/E1-1.png\" data-asset-id=\"2a7f156a-11b3-4615-bfa5-c5e91e966443\" data-image-id=\"2a7f156a-11b3-4615-bfa5-c5e91e966443\" alt=\"\"></figure>\n<p>Chcete-li spustit program Grasshopper se zásuvným modulem IDEA StatiCa, vyberte na kartě Rhihoceros položku <strong>Tools / Grasshopper</strong>.</p>\n<figure data-asset-id=\"b957b01f-e69c-482c-841e-87a2cab6aca6\" data-image-id=\"b957b01f-e69c-482c-841e-87a2cab6aca6\"><img src=\"https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/71249ebe-9e05-4c66-bf72-1b3714c9decf/g-4.png\" data-asset-id=\"b957b01f-e69c-482c-841e-87a2cab6aca6\" data-image-id=\"b957b01f-e69c-482c-841e-87a2cab6aca6\" alt=\"\"></figure>\n<p>Jak vidíte, zásuvný modul je již začleněn.</p>\n<figure data-asset-id=\"8e7e6c80-c3e3-4d20-8aab-7481515ddf8d\" data-image-id=\"8e7e6c80-c3e3-4d20-8aab-7481515ddf8d\"><img src=\"https://assets-us-01.kc-usercontent.com:443/28eac049-c8ed-00e2-220c-12142a968dff/f0c189a8-203f-40ea-9248-7aaf4be667ec/grasshopper-idea.png\" data-asset-id=\"8e7e6c80-c3e3-4d20-8aab-7481515ddf8d\" data-image-id=\"8e7e6c80-c3e3-4d20-8aab-7481515ddf8d\" alt=\"\"></figure>\n<p>Informace o komponentách a příkazech modulu IDEA StatiCa pro Grasshopper najdete v článku <a data-item-id=\"f2f373ad-9a22-499b-aced-f9520c80a37a\" href=\"\">Popis komponent modulu Grasshopper</a>.</p>"
},
"regions": {
"name": "Region",
"type": "taxonomy",
"value": [
{
"name": "CZ/SK",
"codename": "cz_sk"
}
],
"taxonomyGroup": "region"
},
"product_groups": {
"name": "Product group",
"type": "taxonomy",
"value": [
{
"name": "Steel",
"codename": "steel"
},
{
"name": "Connection design",
"codename": "connection_design"
}
],
"taxonomyGroup": "product_group"
},
"support_center_article_types": {
"name": "Support center article",
"type": "taxonomy",
"value": [
{
"name": "Tutorials",
"codename": "tutorial"
}
],
"taxonomyGroup": "support_center_article"
},
"expertise_levels": {
"name": "Expertise level",
"type": "taxonomy",
"value": [
{
"name": "Intermediate",
"codename": "intermediate"
},
{
"name": "Expert",
"codename": "expert"
}
],
"taxonomyGroup": "expertise_level"
},
"labels": {
"name": "Labels",
"type": "taxonomy",
"value": [
{
"name": "IDEA Open Model (API)",
"codename": "idea_open_model__api_"
},
{
"name": "Connection",
"codename": "connection"
}
],
"taxonomyGroup": "labels"
},
"linked_items": {
"name": "Linked items",
"type": "modular_content",
"value": [],
"linkedItems": []
},
"attachments__files": {
"name": "Attachments",
"type": "asset",
"value": []
},
"content_priority__value": {
"name": "Content priority value",
"type": "number",
"value": null
},
"options": {
"name": "Options",
"type": "multiple_choice",
"value": []
},
"url_slug": {
"name": "Url slug",
"type": "url_slug",
"value": "grasshopper-instalace-pluginu"
},
"unique_url_slug": {
"name": "Unique URL slug",
"type": "custom",
"value": "[\"grasshopper-plugin-installation\",\"[autogenerated]\"]"
},
"content_settings__sitemap": {
"name": "Show in sitemap",
"type": "multiple_choice",
"value": []
},
"content_settings__robots": {
"name": "Search engine indexing",
"type": "multiple_choice",
"value": []
},
"content_settings__is_hidden": {
"name": "Hidden nested content",
"type": "multiple_choice",
"value": []
},
"metadata__page_title": {
"name": "Page title",
"type": "text",
"value": ""
},
"metadata__page_description": {
"name": "Page description",
"type": "text",
"value": ""
},
"metadata__page_keywords": {
"name": "Page keywords",
"type": "text",
"value": ""
},
"metadata__canonical_url": {
"name": "Canonical URL",
"type": "text",
"value": ""
},
"metadata__og_title": {
"name": "OG:title",
"type": "text",
"value": ""
},
"metadata__og_description": {
"name": "OG:description",
"type": "text",
"value": ""
},
"metadata__og_image": {
"name": "OG:image",
"type": "asset",
"value": []
},
"translation__translation_connector": {
"name": "Translation Connector",
"type": "taxonomy",
"value": [],
"taxonomyGroup": "languages"
},
"translation__force_translation": {
"name": "Force translation",
"type": "multiple_choice",
"value": []
},
"translation__last_translation": {
"images": [],
"linkedItemCodenames": [],
"linkedItems": [],
"links": [],
"name": "Last translation",
"type": "rich_text",
"value": "<p><br></p>"
},
"translation__ai_translated": {
"name": "AI translated",
"type": "multiple_choice",
"value": []
},
"page_tree_settings__page_label": {
"name": "Page label",
"type": "text",
"value": ""
},
"page_tree_settings__path_segment": {
"name": "Path segment",
"type": "text",
"value": ""
},
"page_tree_settings__breadcrumb_style": {
"name": "Breadcrumb style",
"type": "multiple_choice",
"value": []
},
"page_tree_settings__hide_in_breadcrumbs": {
"name": "Hide in breadcrumbs",
"type": "multiple_choice",
"value": []
}
}Colibri plugin
As Grasshopper can not work with loops, you have to install another plugin - COLIBRI, which you will utilize in this tutorial.

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.

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

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

Add operation Rib with actual settings:


Copy this Operation and set up these values:

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

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.

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

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.

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.

To connect the Grasshopper plugin to the correct IDEA Connection version, add the component File Path and link it to the actual IDEA folder (C:\Program Files\IDEA StatiCa\StatiCa 25.1)
When running this component, you should see the following window appear.

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.
