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.
System requirements
Section titled “System requirements”- Rhino 6, 7 or 8 with Grasshopper 1
- Windows
Install the components
Section titled “Install the components”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.
The components
Section titled “The components”| Component | What it does |
|---|---|
| LCAbyg: log in | Logs in through the browser, or shows who is logged in. Press a Button on logInd. With logUd you log out |
| LCAbyg: projects | Shows the projects you can send to, with id and name |
| LCAbyg: create project | Creates a new project, so you have somewhere to send the model the first time. Finish the project in LCAbyg |
| LCAbyg: collect model | Reads the whole active Rhino document and builds the submission |
| LCAbyg: collect selection | Like collect model, but only for the Rhino objects you point at in the input udvalg |
| LCAbyg: element | Gives geometry that only exists in Grasshopper a type, so it can be sent |
| LCAbyg: send to LCAbyg | Sends the submission to a project |
| LCAbyg: save as file | Saves the submission as .json, exactly as it would have been sent |
| LCAbyg: status | Shows the project’s default version, a waiting submission from the model and the climate impact |
| LCAbyg: open project | Opens the project in LCAbyg in your browser |
| LCAbyg: colour model | Colours the model’s objects by LCAbyg’s CO₂ figures |
| LCAbyg: show in model | Listens 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.
Send a model
Section titled “Send a model”- Log in: Press a Button on
logIndin 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. - Choose a project: Get the project’s id (
projektId) from LCAbyg: projects, or create a new one with LCAbyg: create project: give it anavn, optionally askabelonId, and press a Button onopret. - 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.
- Send: Give the submission to
afsendelseand the project’s id toprojektIdon LCAbyg: send to LCAbyg, and press a Button onsend. The outputgennemganggives the address of the review. IfåbnGennemgangis 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.
What is sent
Section titled “What is sent”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.
Choose layers and holes
Section titled “Choose layers and holes”LCAbyg: collect model has three optional inputs that limit what is sent.
| Input | What it does |
|---|---|
lag | Only these layers and their sublayers are sent. Without lag, the whole document is sent |
hul-lag | The 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 |
elementer | Elements 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.
laglimits 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-lagmust also be included inlag, if you uselag. - 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 that only exists in Grasshopper
Section titled “Geometry that only exists in Grasshopper”Geometry from Grasshopper has neither a layer nor a block. Give it a type with LCAbyg: element:
- Give the geometry to
geometriand a type name totype. You can give a category. Without one, the category isGrasshopper. - Give
elementerfrom the component toelementeron 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.
Status
Section titled “Status”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.
CO₂ in the model
Section titled “CO₂ in the model”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.
Show in Rhino
Section titled “Show in Rhino”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.
Not included yet
Section titled “Not included yet”- 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.
See also
Section titled “See also”- Rhino plugin: installation, panel, toolbar and measuring rules
- Models: review and approval of submissions