LuaCAD Help

Custom blocks

Creating a custom block (block wizard)

Goal: turn drawn objects into a block or a fixture for the library – with insertion point, default values and the connectors for drainage and water.

Picture coming soonThe steps in the drawing: the objects of the new lavatory selected (1), the insertion point at the wall (2), the drain (3) and cold and hot water (4) clicked
  1. Draw the objects (3D solids and/or a 2D floor plan) – in a DWG of their own or in the current drawing.
  2. Gear menu › New block / fixture from the drawing (wizard) …. The first time, the help with a picture explains the four clicks.
  3. Select the objects of the block and confirm with Enter (1). A selection made beforehand applies; Enter without a selection takes the whole drawing.
  4. Click the insertion point (2) – for fixtures at the wall, in the middle, on the floor.
  5. In the Block wizard dialog box enter name, storage folder, type, default values and the connectors you want. OK.
  6. Now click the connectors you checked: the drain (3) – only the position in plan counts, the routing sets the elevation –, then cold water and hot water (4) with their elevation (object snap helps). Enter leaves a connector out, Esc cancels.
  7. A DWG with a preview image is saved in the chosen folder. The palette reads again; at the bottom it says "New in the library: <name>".

Options

Video coming soon: Creating a custom block

Connectors of a fixture

Goal: understand which connectors a fixture carries and how they arrive in Piping and Drainage.

ConnectorWhat it isWhere the values come from
DrainONE drainage connector with two templates: one for horizontal routing ("Template horizontal", for example PE – Waschtisch / Wandbecken) and a code for the in-wall carrier (WT)the routing (in-wall carrier or below ceiling / in the floor) chooses the default; switchable in the Properties palette; DN and DU follow in Drainage 3D from the fixture type
Cold water (CW), hot water (HW)pipe connectors for Piping 3D and Piping 2D, with nominal size (DN, default 15)position and elevation from the click; the system per the settings (standard fixtures) or as defined in the block

A standard fixture can carry further roles (recirculation, heating supply and return, gas). The color of a connector is always that of its system. How Piping 3D and Drainage 3D connect: Connecting pipes.

Video coming soon: Connectors of a fixture

Preparing a DWG as a block

Goal: use an existing DWG – from a manufacturer, from the office – as a block without the wizard.

  1. Put the DWG in a folder of your own library (see Adding your own folders). Every DWG and DXF there is a block right away; the base point of the DWG is the insertion point (BASE command in GstarCAD).
  2. LuaCAD recognizes by itself what is 2D and what is 3D: solids = 3D, flat objects = 2D. A block without solids is a 2D block.
  3. If the DWG lies in a folder named Apparate, it also appears on the Fixtures page. It gets connectors if you place the connector objects of the plug-ins in the DWG – or you make it a fixture with the block wizard.
  4. Values for the property fields (manufacturer, article number …) are written into the DWG by the block wizard; attributes of a third-party DWG stay attributes of the block.
Video coming soon: Preparing a DWG as a block

Editing and reloading the DWG

Goal: change a block of the library and bring the new state into the drawings.

  1. Right-click the tile › Open DWG (edit, define connectors) – the DWG opens in GstarCAD. Do not change a standard block itself: copy its DWG into a folder of your own and change the copy (it then counts as a custom block).
  2. Change and save.
  3. Back in the drawing: Current Drawing page › Reload block and click an inserted block – all insertions show the new state, including the 2D version and the connector sets. Their values (property fields, dimensions) stay.
  4. Whoever inserts the block again afterwards already gets the note while inserting that the DWG is newer.

See Reloading a block.

Video coming soon: Editing and reloading the DWG