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
- Draw the objects (3D solids and/or a 2D floor plan) – in a DWG of their own or in the current drawing.
- Gear menu › New block / fixture from the drawing (wizard) …. The first time, the help with a picture explains the four clicks.
- Select the objects of the block and confirm with Enter (1). A selection made beforehand applies; Enter without a selection takes the whole drawing.
- Click the insertion point (2) – for fixtures at the wall, in the middle, on the floor.
- In the Block wizard dialog box enter name, storage folder, type, default values and the connectors you want. OK.
- 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.
- 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
- Connectors you have already placed with the tools of the plug-ins (a pipe connector of Piping 3D, a drainage connector of Drainage 3D) simply belong to the selection – they are taken over. The line at the top of the dialog box counts them.
- If only one point is clicked for the drain, it applies to both routings.
- If the DWG already exists, the wizard asks whether to overwrite it.
- A drain needs Drainage 3D to be loaded, otherwise the command line says the drainage connector could not be created.
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.
| Connector | What it is | Where the values come from |
|---|---|---|
| Drain | ONE 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.
- 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).
- LuaCAD recognizes by itself what is 2D and what is 3D: solids = 3D, flat objects = 2D. A block without solids is a 2D block.
- 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. - 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.
- 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).
- Change and save.
- 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.
- 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