Skip to content

Report ​

Writes a report as a PDF, or as a Word document: its page from Report Page, and what goes in it, in order β€” the parts Report Text, Report Table, Report Result Table, Report View, Report Revisions and Report Page Break hand out, or a template written in JSON. The pictures are drawn by Model View without a Model View on the canvas.

πŸ”§ Grasshopper component ​

ReportAlpaca4d β–Έ 13_Report
Report component
Inputs
AlpacaModelGenericlist(empty)The models the report is of: from Assemble, Run Analysis, Natural Vibration, Linear Buckling, Pushover Analysis and Footfall Analysis.
Report View and Report Result Table hold none: each is drawn or made of the model here of its topic β€” the model as built, the static analysis, the natural vibration, the stability, the pushover, the footfall. A template written in JSON names them so too β€” model, static, vibration, buckling, pushover, footfall β€” or by their place here, from 0.
PageGenericA4The paper, the margins and the title block, from Report Page.
Left empty, A4 with a plain header and footer.
ContentGenericlist(empty)What goes in the report, in order: the outputs of the report components β€” wire them through a Merge to keep their order β€” or a template in JSON, or the path of a .json file, from the Grasshopper file's folder unless it is a full one.
A panel's lines are joined into one text. Flattened. Left empty, a report of each model given to AlpacaModel.
FileText(beside the .gh)Where to write the report: a .pdf, or a .docx for Word.
Left empty, a PDF beside the Grasshopper file, named after it: <file> report.pdf. A folder, in it. The pictures go in a folder beside the report.
RunBooleanFalseTrue writes the report. Wire a Toggle, which writes it again whenever the models change, or a Button.
Then click Open report to read it.
Outputs
FileTextThe PDF or Word document written.
Open report opens it.
LogTextlistWhat could not be made, and why.
It is marked in the report too, where it would have gone.
TemplateTextThe report as a template in JSON: to read what goes in it, or to copy and change.

Templates ​

The upper bar under the component: click it for ready-made reports, and choose one to put it on the canvas as components, left of the Report and wired into Content. They are ordinary components, yours to change: each text is a panel to type over, wired into a Report Text in its style, and each picture a Report View with its tables ticked. Each chapter is a group of its own, its parts through a Merge. Nothing holds a model, so a template works with whatever models are wired into AlpacaModel.

TemplateWhat it puts on the canvas
For the models givenTitle page, the model, the loads, then a chapter for each analysis wired into AlpacaModel β€” the static one with the forces of the elements the model has, and the steel check when it has steel beams β€” conclusions, and what the calculation was made with. Offered once the models are wired.
StaticTitle page, the model, the loads, the displacement and the reactions, the member forces, conclusions, and what it was made with.
Static and dynamicAs Static, with natural vibration and stability before the conclusions.
A chapterOne at a time: Title page, The model, Loads, Static analysis, Member forces, Shell forces, Solid stresses, Design checks, Natural vibration, Stability, Footfall, Pushover, Conclusions, About this calculation. Member forces, Shell forces, Solid stresses and Design checks are sections of Static analysis.

The chapters:

  • Title page: the title and subtitle, what the report is for, the revisions with the first issue filled in, then the table of contents on a page of its own.
  • The model ticks the table of beam sections only when the models given have beams.
  • Loads: the table of load patterns, each with the force it adds up to, and the table of load combinations when combinations are given.
  • Static analysis starts with the results of each combination when there are more than one.
  • Design checks: the steel members checked to EN 1993-1-1 over the ultimate combinations, each section's worst member with its governing check. See the steel check.
  • About this calculation: the Alpaca4d and OpenSees versions, the units, when it was written, and each model with how OpenSees solved it.

What is wired into Content already keeps its place: the template comes after it β€” into the last input of the Merge that feeds Content, when one does. On the canvas it goes left of the Report, or below what is there already, components and groups, when that is taken. One Undo takes a template away. The right-click menu of the Report holds the same list, under Add a template.

The texts take placeholders, as any Report Text does: the template's paragraphs say {static.maxDisplacement:F1} or {vibration.frequency[1]:F2}, and the report writes the numbers. Write over the panels with your own words, add a part by wiring it into the chapter's Merge where it goes, or leave a chapter out by taking its wire off.

Open report ​

The lower bar under the component, drawn as a menu's header is: click it to open the report in the program your computer opens PDFs, or Word documents, with. It is faded until there is a report to open β€” the one just written, or one written before where File points β€” and the pointer resting on it shows where the PDF is.

Word ​

With File ending in .docx, the Report writes a Word document instead of a PDF: the same content, to paste into a report of your own or change.

  • The headings are in Word's own Heading styles, numbered as the report numbers them, so Word's navigation pane and table of contents find them.
  • The tables are Word tables, with the header row repeated on each page.
  • The pictures are the ones drawn for the PDF, with their colour scales and captions.
  • The header and footer are plain: the title, the date and the page number. A title block is drawn on the PDF's pages only.
  • A table of contents is Word's own field. Word asks to update the fields as it opens the file: say yes, and it fills in the page numbers.

Word lays out the pages itself, so the Report says how many pictures it wrote, not how many pages.

A picture of results the model does not have ​

A picture of shell forces on a frame, or of beam forces on a solid, has nothing to draw. The Report leaves such a picture out, with its table, and says so in Log. A picture that draws other results besides draws those alone. A template's chapter on shell forces or solid stresses can stay in a template used for all kinds of models.

πŸ“ˆ When to use it ​

Use it when

  • You hand in calculations and want the tables and pictures of every analysis in one document.
  • You change the model and want the report to follow, without taking the pictures again.
  • You write the same kind of report for many models: write the template once.

It is free on models up to 50 elements, like Model View.

🧩 A report from components ​

The quickest start is a template: click Templates under the Report and choose one. To build one yourself:

  1. Report Page: the paper and the margins, and a Report Title Block drawn on every page.
  2. The content, a part after another: a Report Text for the title and for each heading and paragraph, a Report Result Table for each table Alpaca4d makes, a Report Table for each table of your own, a Report View for each picture, a Report Page Break where a chapter starts on a new page.
  3. The models into AlpacaModel: the one from Assemble and the ones the analyses hand on.
  4. A Merge with an input per part, in order, into Content; Report Page into Page; a Toggle into Run.
  5. Set the Toggle to True to write the report, then click Open report to read it.

Each part hands out what a template would hold for it, in JSON: put a panel on one to read it. None holds a model, so the same parts write the report of other models. The Template output of the Report holds them all, a template to keep or to change.

πŸ’‘ How the pictures are drawn ​

For each figure, the component makes a Model View in memory, sets its menus as the figure says, gives it the model and draws it in the active Rhino view. While it does, it moves that view's camera, hides its grid and axes, switches off Grasshopper's own previews and leaves Rhino's objects out of the picture. It puts all of them back when it is done. Each picture is cut down to what was drawn, so the structure fills its figure.

The report is written once the Grasshopper solution is over, and the component then solves again to hand out what it wrote. The PDF is written with Rhino's own PDF writer, on Windows and on a Mac.

πŸ“ The template ​

json
{
  "title": "Two-storey steel frame",
  "subtitle": "Static, natural vibration and linear buckling analysis",
  "project": "Office extension",
  "author": "A. Engineer",
  "content": [
    { "heading": "Natural vibration" },
    { "text": "The first mode sways at {vibration.frequency[1]:F2} Hz." },
    { "table": "vibration.modes" },
    { "repeat": "mode", "of": "vibration", "modes": "1-6", "columns": 2, "content": [
        { "figure": { "result": "Displacement", "view": "iso", "legend": false,
                      "caption": "Mode {mode}: f = {vibration.frequency[mode]:F2} Hz" } }
    ] }
  ]
}

This writes the table of natural frequencies, and under it the first six mode shapes, two to a row.

At the top ​

KeyDefaultWhat it is
title, subtitleAnalysis reportOn the first page, and the title in the header of the others.
project, author, datetoday for the dateUnder the title. The date also goes in the footer.
covertrueWhether the first page opens with the title, the subtitle and the details. A report from components puts them where its { "title": ... } entry is instead.
pageA4A4, A3, A2, A1, A0, Letter or Legal.
width, heightβ€”A paper of your own, in mm, in place of page.
orientationportraitportrait or landscape.
margins{ "top": 24, "bottom": 22, "left": 20, "right": 20 }In mm. The content stays inside them; the title block, or the plain header and footer, goes in them.
titleBlockβ€”Drawn on every page in place of the plain header and footer: frame, the page's [width, height] as drawn, and items placed on it from its bottom left corner β€” { "line": [[x, y], ...] }, { "fill": [[x, y], ...] }, { "text": "...", "at": [x, y], "size": 3.5, "align": "right" }, { "image": "logo.png", "at": [x, y], "size": [w, h] }. What Report Title Block hands out.
numberedtrueWhether the headings are numbered as they come β€” 1, 1.1, 1.1.1 β€” before their text. What Numbered on Report Page sets.
contentβ€”What goes in the report, in order: a list of the entries below.

Entries ​

EntryWhat it makes
{ "title": "...", "subtitle": "..." }The title and subtitle set large, with the project, the author and the date under them.
{ "heading": "..." }A chapter heading. { "subheading": "..." } for a section in it, { "subsubheading": "..." } for a part of that, or "level": 2 or 3. Numbered as they come β€” 1, 1.1, 1.1.1 β€” unless it says "numbered": false.
{ "text": "..." }A paragraph. A list of texts makes a paragraph of each. Placeholders are filled in.
{ "note": "..." }A note in small grey type.
{ "table": { "caption": "...", "header": [...], "units": [...], "rows": [[...], ...] } }A table of your own: a unit is written after its header in brackets, and a column of numbers is lined up on the right unless "align" says otherwise. "numbered": false leaves it out of the tables' count and sets it under its caption alone, as the revisions are.
{ "table": "vibration.modes" }A table from the list below. "caption" and "note" replace its own; "modes" picks the modes of a table of modes; "of" picks the model; "columns" lists what it shows, out of what Report Result Table's Columns menu offers β€” everything when it is left out; "by" sorts footfall.response by one of the quantities quantity names below, that column first.
{ "figure": { ... } }A picture of a model, drawn by Model View with the settings below.
{ "figures": [ { ... }, { ... } ], "columns": 2 }Pictures side by side.
{ "image": "sketch.png", "caption": "..." }A picture file, its path from the Grasshopper file's folder or a full one. "width" as a figure's.
{ "repeat": "step", "of": "pushover", "steps": { "spread": 4 }, "columns": 2, "content": [ ... ] }Its content once for each of the steps steps picks of a static or pushover model: last, a list of steps from 0, or { "spread": n } for n steps spread over the analysis, the last at its end. {step} is the step it is on.
{ "repeat": "mode", "of": "vibration", "modes": "all", "columns": 2, "content": [ ... ] }Its content once for each mode of the model of names, {mode} the mode it is on. modes is all, a range 1-4, a list 1,3,5 or [1, 3, 5], or a number n for the first n. With columns, the pictures it makes go that many to a row.
{ "group": [ ... ] }The entries in it, in their order: what Report View hands on for a picture with its tables.
{ "pagebreak": true }What follows starts on a new page.
{ "contents": "Contents", "depth": 2 }The table of contents: the headings down to depth (1 the chapters, 2 their sections too, 3 every heading), each with its number and page, under its title. "contents": true titles it Contents.

Figure settings ​

A figure takes Model View's settings by the names below. Those left out are as a new Model View has them.

SettingWhat it is
modelWhich model: model (as it was built), static, vibration, buckling, pushover, footfall, or its place in the list from 0. Inside a repeat, the repeat's model.
footfalltrue draws the footfall model coloured by its response factors.
quantityWhat a footfall model is coloured by: Response factor R (to start with), Steady-state R, Transient R, Steady-state acceleration or Transient acceleration, the accelerations in mm/sΒ² rms.
modeThe mode to draw, from 1. Inside a repeat over modes, the mode it is on.
stepThe recorded step to draw, from 0. A static model is drawn at its last step otherwise.
resultDisplacement, Beam forces, Beam stresses, Shell forces, Shell stresses, Brick stresses or Reactions, as Model View's Results menu names them. Left out, the model alone.
resultsSeveral results drawn at once, as Report View's Results menu writes them: a list, each with its own result, component or forces, unit, units and table.
componentThe component of the result, by its name in Model View's menu (Magnitude, Uz, VonMises, ...) or its place from 0.
forcesBeam forces only: the diagrams to draw, any of N, Vy, Vz, T, My, Mz.
unitThe unit to draw the result in, as Model View's Unit menu writes it: mm, MPa, kN.
unitsThe unit of each quantity, when a result draws more than one: { "Force": "kN", "Moment": "kNΒ·m" }.
tabletrue writes the table of what is drawn of the result after the picture: a row per support for the reactions, the largest and smallest value of each component for the rest. In results, on each result that wants one.
deformed, scaleThe deformed shape, and its scale. A mode or a displacement is drawn deformed unless deformed is false.
colourByWith no result: Element, Section or Material.
extruded, edges, releasesAs in Model View's Elements menu, all on to start with.
supports, loads, loadValues, values, isoSurfaces, hingesOff to start with.
extremesOff to start with; on in what Report View hands out. true writes the largest and the smallest value of each result where they are, with a dot: max 26.59, min -28.67.
nodeIds, elementIds, sectionNames, localAxesOff to start with.
textSize, loadScale, supportScale, diagramScale, arrowScale, axesSize, releaseSize, hingeSizeModel View's sliders.
layer, axes, reactionShape, reactionStyleModel View's menus for shell stresses, brick stresses and reactions: reactionShape is Dots, to start with, or Arrows, and reactionStyle what the arrows show.
elementsOnly these elements, the rest greyed: what Model View's ElementId takes.
colours, rangeThe gradient, as #RRGGBB colours from the low end to the high, and the [min, max] it spans.
loadPatternOnly this load pattern's loads: its name as text ("Dead") or its Id as a number (2).
viewWhere from: iso (south-east), southwest, northeast, northwest, top, bottom, front, back, left, right, or a view saved in Rhino as named:Name.
eye, projection, zoomA direction to look from, [x, y, z]; perspective or parallel (top, front and the other flat views are parallel); a zoom factor.
cameraA camera given whole β€” location, target, up, lens, parallel β€” as Report View takes it from the Rhino view.
legendThe colour scale under the picture: on to start with.
captionWritten under the picture. Placeholders are filled in.
widthHow much of the width the picture takes, 0 to 1.
aspect, pixels, trimThe shape of the capture (height over width, 0.62), its width in pixels (2000), and whether it is cut down to what was drawn (true).

A setting the component does not know of is left out, and said so in Log: a spelling mistake does not go unnoticed.

Tables ​

TableHolds
model.summaryNodes, elements by type, supports, load patterns, mass, extent and the analyses given.
model.sectionsEach beam section: material, how many elements, their length, A, Iy, Iz and J.
model.materialsEach beam material: E, G, Poisson's ratio and density.
model.supportsEach support: where it is, and which of Tx, Ty, Tz, Rx, Ry, Rz it holds.
static.displacementsThe largest and smallest displacement along X, Y and Z, and the largest overall, with their nodes.
static.reactionsThe reactions at each support, and their sum, in the global axes.
vibration.modesEach mode's eigenvalue, angular frequency, frequency and period.
vibration.massRatiosEach mode's participating mass along X, Y and Z, as a percentage, and the running total.
buckling.factorsEach buckling mode's load factor.
footfall.responseThe nodes that respond most to footfall, worst first: their response factor R, its steady-state and transient parts, their accelerations and the pace that gives R.
loads.patternsEach load pattern: its factor, its loads, and the force they add up to along X, Y and Z, with the total.
loads.combinationsEach load combination of the models given: its type, and its patterns with their factors.
static.combinationsEach combination analysed, or each static model given: its largest displacement and node, and the sum of its reactions.
design.utilisationThe steel members checked to EN 1993-1-1 over the ultimate combinations: each section's worst member. "gammaM0", "gammaM1" and "fabrication" set the check.
design.membersThe same, every steel member, worst first.
report.aboutThe Alpaca4d and OpenSees versions, the units, how many models, when it was written.
report.analysesEach model given and how OpenSees solved it.

The static tables read the last step the analysis recorded. The tables of combinations, steel checks and the calculation read all the models given at once, so "of" does not apply to them. A model from Run Analysis that holds load combinations counts as the results of each: give the Report that one model, and every table finds the combinations in it.

Placeholders ​

Text, captions and the title take placeholders: {name}, {name[index]}, and either with a format after a colon, {vibration.frequency[1]:F2}. The index is a number, or a repeat's variable such as mode. The format is a .NET one: F2 for two decimals, N0 for a whole number with thousands separated.

PlaceholderStands for
{title}, {subtitle}, {project}, {author}, {date}The template's own.
{mode}Inside a repeat, the mode it is on.
{frequency}, {period}, {omega}, {eigenvalue}, {factor}Inside a repeat, that mode's f [Hz], T [s], Ο‰, Ο‰2, or its buckling load factor.
{step}, {steps}Inside a repeat over steps, the step it is on, from 0, and how many the analysis recorded.
{page}, {pages}In a title block, the page's number and how many there are.
{model.nodes}, {model.elements}, {model.beams}, {model.shells}, {model.solids}How many the model has.
{model.supports}, {model.loadPatterns}How many the model has.
{model.mass}The model's mass, in kg.
{static.maxDisplacement}, {static.maxNode}The largest displacement of the static model, in mm, and its node.
{vibration.modes}How many modes Natural Vibration found.
{vibration.frequency[i]}, {vibration.period[i]}, {vibration.omega[i]}, {vibration.eigenvalue[i]}Mode i's f [Hz], T [s], Ο‰ [rad/s] and Ο‰2 [radΒ²/sΒ²].
{buckling.modes}, {buckling.factor[i]}How many buckling modes, and mode i's load factor.
{footfall.maxFactor}, {footfall.maxNode}The largest footfall response factor, and its node.
{footfall.maxSteadyFactor}, {footfall.maxTransientFactor}, {footfall.maxSteadyAcceleration}, {footfall.maxTransientAcceleration}The largest of each part of the footfall response, the accelerations in mm/sΒ²; with Node after it, its node: {footfall.maxSteadyFactorNode}.

A placeholder with no value is left as it is, and said so in Log.

⚠️ When something cannot be made ​

A table or a figure that cannot be made β€” no model of its kind among the inputs, a mode the model does not have, a result the recorder did not keep β€” is written into the report as a line in brackets where it would have gone, and listed in Log. The rest of the report is written. A template that is not JSON at all writes nothing, and the component says where the mistake is: the line and the position.