LuaCAD Help

Designing and outputting lists

Every plug-in with lists works with the same three building blocks – what you learn here applies in Piping 3D just as in Floor Heating or the Block Library:

Building blockWhat it definesWhere
List templateWhat the list contains: columns, sort order, totals, filter, an Excel template. Every plug-in comes with default templates; your own ones are made in the list layout dialog box.List options › Design list …
List optionsWhere the list goes: table in the drawing, CSV or Excel file, file name, text height."…" next to the button of the list
Button of the listWhich parts are read: the whole drawing, one network, the project or the xrefs.Output page of the plug-in

Each button (for example Parts list and Bill of materials) has its own options and its own template; both apply to all drawings.

The default lists of the plug-ins

Which parts a plug-in counts and what goes into a row is explained on the page of the plug-in. Here is the overview: the button on the palette and the name of the default template as it appears in the list layout dialog box.

Plug-inButtonDefault templateOne row is …
Piping 3DParts listparts list of the pipesone part, with item number, sorted by network
Piping 3DBill of materialsbill of materials of the pipesone article; pipes with their total length in m, without a count
Piping 2DBill of materialsbill of materials of Piping 2Done description per size: pipe lengths, counted elbows, tees, symbols
Ventilation 3DParts listparts list of the ductworkone part, with surface area and weight
Ventilation 3DBill of materialsbill of materials of the ductwork, also selectable: order list for the duct fabricatorequal parts with count, surface area and weight
Drainage 3DParts list, bill of materialsparts list and bill of materials of the drainage, also selectable: "… with welds, cuts and protective caps"one part or equal parts; pipes in meters
OpeningsLegend, Opening schedulelegend of the openings, opening scheduleequal openings with a number range, or one opening
Floor HeatingLoop schedule, Bill of materialsloop schedule, bill of materials of the floor heatingone loop (grouped per manifold) or one material
Block LibraryBlock extractblock extractequal blocks with count and property fields

The default templates are named after the plug-in (for example the parts list and the bill of materials of Piping 3D and of Drainage 3D). If your own versions still carry an earlier name, LuaCAD renames them once to the current name when it first reads them (they keep replacing the default template), and so does a button that was assigned one of them.

Outputting a list

Goal: write a list as a file for ordering – here the bill of materials of Piping 3D as an Excel file.

  1. Output page › "…" next to Bill of materials – the list options open.
  2. Output: "As a file (CSV or Excel)". File › Format: "Excel workbook (.xlsx)". The file name stays "From the drawing name, with suffix", suffix _ml, folder empty. OK.
  3. Click Bill of materials (or Per network and click a pipe).
  4. If a required field is empty on a part, LuaCAD asks first: Output anyway or Show parts.
  5. LuaCAD writes the file next to the drawing and opens it in Excel.

What else can happen

SituationWhat LuaCAD does
Output "Ask every time" (default)The window "<list>: n row(s) – where to?" with Into the drawing (Enter), Into a file, Cancel (Esc).
Output "As a table in the drawing"The table hangs at the cursor – see The table in the drawing.
The drawing has not been saved yetInstead of the name from the drawing, "Save list as" opens.
The file already existsWith the check box "Ask before overwriting a file" (default on) a question.
No partsThe command line says so; no file is written.
Video coming soon: Outputting a list as an Excel file

The list options

Goal: set once where a list goes and under which name – after that one click on the button is enough.

The "Piping 3D - Options bill of materials" dialog box: Design list with the name of the template (1), Combine with the check box Separate per system (2), quantities across several plans (3), output (4), table in the drawing with text height (5), file with format, file name, suffix, folder, delimiter (6), the two check boxes for the file (7)
The "Piping 3D - Options bill of materials" dialog box: Design list with the name of the template (1), Combine with the check box Separate per system (2), quantities across several plans (3), output (4), table in the drawing with text height (5), file with format, file name, suffix, folder, delimiter (6), the two check boxes for the file (7)
  1. Click "…" next to the button of the list (in Piping 3D, Ventilation 3D and Drainage 3D also via gear menu › Options).
  2. Set the areas from top to bottom.
  3. OK – the values apply to this button in all drawings.
AreaWhat you setDefault
ListDesign list … opens the list layout dialog box; next to it "Template: …".the default template of the button
CombineOnly if the template has switches: for example Separate per system (System column).off
Quantities across several plansAcross the project, across xrefs: combined · per plan · per level (the same choice as in the Select plans dialog box). Not in Openings.combined
OutputAs a table in the drawing · As a file (CSV or Excel) · Ask every time.Ask every time
Table in the drawingText height in the units of the drawing.100 mm
FileFormat, file name (from the drawing name with suffix and folder · fixed file name · ask every time), delimiter (CSV only), two check boxes.CSV, from the drawing name, suffix _sl (parts list) or _ml (bill of materials), folder empty = next to the drawing, semicolon, both check boxes on

Every field in detail: Reference › List options.

Video coming soon: Setting the list options

The table in the drawing

Goal: place the list as a GstarCAD table in the plan – it stays linked to the parts.

A bill of materials as a table in the plan (here across the sanitary plans of the project): the title row (1), the header row (2), identical fittings in one row with quantity (3), pipes with length in m, without quantity (4)
A bill of materials as a table in the plan (here across the sanitary plans of the project): the title row (1), the header row (2), identical fittings in one row with quantity (3), pipes with length in m, without quantity (4)
  1. In the list options set Output to "As a table in the drawing" (or with "Ask every time" choose Into the drawing).
  2. The table hangs at the cursor – grid, title, header and the first 40 rows at their real size.
  3. Click the upper left corner. Esc places nothing.
What the table looks like
LayoutTitle row across the full width, header row, the rows; numbers right-aligned.
Column widthAccording to the longest text of the column.
SizeThe text height of the list options; the title 1.2 times as large. In a drawing in cm or m LuaCAD converts.
Layer"LuaCAD_BES_Listen" (color 7). If it already exists, it stays as you set it up.

A large table shows a progress window while it is placed; Esc cancels without leaving anything in the drawing.

Out of date and updating lists

Every table remembers which plug-in, which button and which scope it comes from (whole drawing, one network, plans).

Video coming soon: Out of date table – updating lists

Quantities across several plans

Goal: one list across several drawings – the plans of the project or the xrefs of the open drawing – without opening the plans.

The dialog box "Bill of materials across the project" of the sample project: header check box Entire project (1), discipline and search (2), the plans per level with their state (3), quantities (4), "5 of 25 plans selected" (5), Next … and Cancel (6)
The dialog box "Bill of materials across the project" of the sample project: header check box Entire project (1), discipline and search (2), the plans per level with their state (3), quantities (4), "5 of 25 plans selected" (5), Next … and Cancel (6)
  1. Output page › Bill of materials across the project … (in a project drawing only) or Bill of materials across xrefs … (Block Library: Extract across …).
  2. Check the plans in the dialog box. Checked by default: across the project the plans of your own discipline, across xrefs the loaded and hidden xrefs; LuaCAD remembers the selection per drawing.
  3. Choose the quantities and click Next … (Enter).
  4. LuaCAD reads the plans (with a progress window, Esc cancels) and outputs the list according to the list options.
QuantitiesResult
combinedOne row per article across all plans.
per planIn addition the column Plan, one block per plan with a subtotal, the total at the end.
per levelIn addition the column Level, one block per level with a subtotal, the total at the end.

How the plans are read

How a project with levels and disciplines is created: Creating a project.

Video coming soon: Bill of materials across the project

Designing your own list

Goal: set the columns, the order and the totals of a list the way your office needs them – with a preview from the parts of the open drawing.

The "Piping 3D - Design list" dialog box with the factory bill of materials template of Piping 3D: at the top the choice of the list with New, Copy, Rename, Delete, Import, Export (1), on the left the properties with search and "Add column →" (2), on the right the columns (3), below the tabs General, Sort, Filter, Excel (4), at the bottom the preview (5), Preview in Excel, OK and Cancel (6)
The "Piping 3D - Design list" dialog box with the factory bill of materials template of Piping 3D: at the top the choice of the list with New, Copy, Rename, Delete, Import, Export (1), on the left the properties with search and "Add column →" (2), on the right the columns (3), below the tabs General, Sort, Filter, Excel (4), at the bottom the preview (5), Preview in Excel, OK and Cancel (6)
  1. List options › Design list ….
  2. Choose the list at the top. For your own: Copy a default template (or New) and give it a name.
  3. Search for a property on the left and add it with Add column → (or a double-click); on the right set heading, format and combine, order with the arrows, remove with the trash can.
  4. In the tabs set groups, totals, sort order, filter and an Excel template. The preview at the bottom recalculates after every change.
  5. OK – LuaCAD checks and saves; from now on the button uses this list.

Choosing and managing the list

At the top the list box for the button shows all lists of this plug-in; "(default)" marks the ones supplied.

Columns

On the left are all properties that the parts of this plug-in have, in groups: parts of all plug-ins (DN, system, length, level, network … – the same in every plug-in), the properties of the plug-in, the property fields, GstarCAD (layer, color …), further fields of the drawing (foreign attributes and data, collected from the open drawing) and Count (sequence number, count). Gray = already in the list. Calculated column … builds a column that calculates (for example Laenge/1000).

Column of the tableEffect
Property, headingWhat the column shows and what it is called.
FormatFor numbers, separated by a colon: a unit (mm, m, m2, kg …), a digit = exactly this many decimals, ~2 = at most two, ohne0 = a zero stays empty. Empty = at most two decimals in the unit of the property. Example m:2: 24350 mm → 24.35.
CombineOnly in a combined list: group (equal value = same row), sum, count, first value, minimum, maximum, all values, all values with sequences as ranges ("1-4, 7").
Sum, total textThe sum of this column in the total row, or a fixed text there ({Anzahl} = number of parts).
VisibleOff = the column only serves to combine and is not output.
Only with valuesThe column appears only if at least one part has a value.
Only when checkedThe column applies only with a switch of the list options (see below); "(always)" = always.

Rows, groups and totals

Tab General:

Sorting and filtering

Switches in the list options

A switch of a template is a check box in the list options that turns on columns and sort rows with the same name under Only when checked. That way it stays ONE template: without the check box the list is exactly the one without these columns. The default bills of materials of Piping 3D, Piping 2D and Ventilation 3D have the switch Separate per system (System column): when checked, the system is a column, part of the combination and sorted first.

Excel template

Tab Excel: an Excel file of your own (.xlsx or .xltx) with company header, logo and formulas. LuaCAD copies it; it is never overwritten.

The Excel template takes effect when the list is written as an Excel file; Preview in Excel opens the preview that way right away.

Preview and saving

Video coming soon: Designing your own list