Skip to content
Support
Machine-translated from Danish

Grasshopper components

The Grasshopper components send quantities from a Grasshopper definition to a project in LCAbyg. Use them for variants and for geometry that only exists in Grasshopper. For the everyday submission of a Rhino model, the Rhino plugin is simpler.

The components are collectors, like the other plugins: they measure the geometry and send what the model says. They do not link the types to constructions themselves and calculate nothing. That happens in LCAbyg, when you review the submission. Nothing in the project changes until you have approved it.

  • Rhino 6, 7 or 8 with Grasshopper 1
  • Windows

The components are in the same package as the Rhino plugin, so they are installed together with it, see Install the plugin. Restart Rhino afterwards. The components are under the LCAbyg tab in Grasshopper.

If Rhino is set to Danish, the components’ names and messages are in Danish, otherwise in English. If you change the language in Rhino, restart Rhino. The names below are the English ones. The input and output names that are shown in code format (nicknames) are the same in both languages.

ComponentWhat it does
LCAbyg: log inLogs in through the browser, or shows who is logged in. Press a Button on logInd. With logUd you log out
LCAbyg: projectsShows the projects you can send to, with id and name
LCAbyg: create projectCreates a new project, so you have somewhere to send the model the first time. Finish the project in LCAbyg
LCAbyg: collect modelReads the whole active Rhino document and builds the submission
LCAbyg: collect selectionLike collect model, but only for the Rhino objects you point at in the input udvalg
LCAbyg: elementGives geometry that only exists in Grasshopper a type, so it can be sent
LCAbyg: send to LCAbygSends the submission to a project
LCAbyg: save as fileSaves the submission as .json, exactly as it would have been sent
LCAbyg: statusShows the project’s default version, a waiting submission from the model and the climate impact
LCAbyg: open projectOpens the project in LCAbyg in your browser
LCAbyg: colour modelColours the model’s objects by LCAbyg’s CO₂ figures
LCAbyg: show in modelListens for Show requests from LCAbyg and selects the objects in Rhino

Under the tab there are also three components marked (beta): measure shell, number of floors and measure glass. They measure a simple building mass for early design (footprint, facade area, roof area, volume, height, glazing share and number of floors). They calculate no LCA and send nothing.

  1. Log in: Press a Button on logInd in LCAbyg: log in. LCAbyg opens in your browser and shows the account you are connecting. Click Grant access. You are logged in together with the Rhino plugin, because the two share the login.
  2. Choose a project: Get the project’s id (projektId) from LCAbyg: projects, or create a new one with LCAbyg: create project: give it a navn, optionally a skabelonId, and press a Button on opret.
  3. Collect: Put LCAbyg: collect model on the canvas. It gives the submission as JSON in one output and a report in the other. Run it again with F5 in Grasshopper.
  4. Send: Give the submission to afsendelse and the project’s id to projektId on LCAbyg: send to LCAbyg, and press a Button on send. The output gennemgang gives the address of the review. If åbnGennemgang is on (it is by default), the review opens in your browser.

Review and approve the submission under Models. Only your approval creates a new version.

If you only want to see what would be sent, give the submission to LCAbyg: save as file, give a path in udfil, and press a Button on skriv. That needs no login.

The components send the same as the Rhino plugin, and the quantities are measured by the same rules:

  • The layer’s full path, e.g. Facade::Ydervæg, is the category.
  • The block definition, or the layer for loose geometry, is the type.
  • User text on the objects and the layer and the render material are included, as described there.
  • Points, text and the like with no quantity are not sent, but are counted as skipped in the report.

LCAbyg: collect model has three optional inputs that limit what is sent.

InputWhat it does
lagOnly these layers and their sublayers are sent. Without lag, the whole document is sent
hul-lagThe holes in these layers’ faces are sent as a type of their own, <layer> (holes), so windows and doors can be measured as the hole in the wall
elementerElements from LCAbyg: element that are sent in the same submission

A layer is written with its full path (Facade::Ydervæg) or with a name that exists in one place only. Upper and lower case do not matter. If the layer does not exist, or the name exists in several places, no submission is built. The plugin does not guess which layer you meant.

  • lag limits the model itself. LCAbyg compares with everything sent before from the same model, so types from layers you have left out appear in the review as removed from the model. Therefore use the same layers every time.
  • A layer in hul-lag must also be included in lag, if you use lag.
  • The hole type does not inherit the wall’s user text, because a code on the wall is not the window’s.

If both lag and hul-lag are empty, the layer choice you saved in the Rhino file on the Layers tab in the Rhino plugin is used. Excluded layers are not sent, and the hole layers, the pcs layers and the measuring rules (Measure and No curves, e.g. outline for windows) come with it. LCAbyg: collect selection does not limit by layer, so there only the hole layers, the pcs layers and the measuring rules come with it. If anything is written in lag or hul-lag, only the inputs apply, and the file’s choice is not used at all. The two are never mixed, so an empty hul-lag does not mean the file’s hole layers when lag is written. The report says which source was used.

Geometry from Grasshopper has neither a layer nor a block. Give it a type with LCAbyg: element:

  1. Give the geometry to geometri and a type name to type. You can give a category. Without one, the category is Grasshopper.
  2. Give elementer from the component to elementer on LCAbyg: collect model or LCAbyg: collect selection.

The same type name is the same type, also from several components, and a new name is a new type that has to be linked to a construction in the review. Geometry that points to a Rhino object is skipped in LCAbyg: element, because it is already included in collect model and would otherwise be counted twice. Geometry from Grasshopper has no id in the model and cannot be shown in Rhino from the review.

Give the project’s id to LCAbyg: status, and press a Button on hent. You get the project, the default version, the climate impact in kg CO₂e/m²/year, the limit value and whether it is met. LCAbyg calculates the default version when the status is fetched. If there is nothing to judge, overholdt is empty. If the model has a submission waiting for review, it is shown here, and gennemgang points to it.

LCAbyg: colour model colours the model’s objects by LCAbyg’s CO₂ figures for the default version, from green (lowest) to red (highest). Give the project’s id to projektId, and press a Button on hent. Set prEnhed to true to compare CO₂ per unit instead of total CO₂. The colours are shown as a preview from the component, and nothing is changed on the objects. The model must have been sent and approved in LCAbyg before there are figures to show. If you want to use the colours with a panel and a scale, use CO₂ in the model in the Rhino plugin.

Put LCAbyg: show in model on the canvas, and turn on lyt. If you then click Show in Rhino on a line in the review in LCAbyg, the objects are selected in Rhino.

  • One layer can only be linked to one construction. The outside, middle and inside of a wall therefore belong together in one construction in the organisation’s library.
  • Rhino plugin: installation, panel, toolbar and measuring rules
  • Models: review and approval of submissions