Skip to content
LiberoDraft LiberoDraft Help
Deutsch
Start › D Command reference › Load block (.ldblk)

Load block (.ldblk)

Purpose

Reads a block file .ldblk — a definition saved with Export, including its sub-blocks — into the current drawing and attaches the main block to the mouse for placing. Context: Block files.

Access

  • Panel Blocks: button 📂 Load block (.ldblk) (2 in the picture at Blocks).
  • Command search : type Load block.

The command has no button in the ribbon or the classic toolbar; the block commands live in the section Blocks of the panel on the right, in the right-click menu and in the command search.

Procedure

  1. Start the command; the browser's file dialog opens (.ldblk or .json).
  2. Choose the file. The main block hangs at the mouse: Block "Name" loaded — a click places it (hanging at the mouse), ESC finishes. Continue as in Inserting instances.
  3. If a block with the same name already exists, the browser asks: Block "Name" already exists in this drawing. OK = import as a copy · Cancel = cancel the import. OK imports the block as a copy named Name (2), Cancel cancels the import and keeps the existing block; existing blocks are never overwritten.

Rules

  • Only files with the identifier liberodraft-block are accepted (Not a valid LiberoDraft block file (.ldblk)).
  • If inserting fails (for example because of a damaged file), the drawing stays as it was; the status bar reports in red “Name” not inserted — drawing unchanged (reason). Single unreadable values, however, are cleaned up — an unreadable value falls back to the default (a colour to that of the layer), an element without readable geometry is dropped — and the message starts in red with ⚠ n damaged entries cleaned up · ….
  • If the file brings BOM fields the drawing does not know yet, they are added; the message names them (· ℹ n BOM field(s) taken over from blocks: …). If the block contains a live parts list with overrides, these are matched to the parts of the drawing; if a part cannot be found unambiguously, the override is dropped.
  • Ctrl + Z after placing also takes back what the file brought along — block definitions, new layers, BOM fields — as long as they are not used anywhere else; Ctrl + Y brings everything back. This applies in the model and on a sheet.
  • In the block editor a block that contains the edited block is refused.
  • Sub-blocks of the file are loaded too; the name comparison applies to them as well.
  • Counterpart: 💾 Export in the section Blocks or in the Block manager writes Name.ldblk into the download folder (Block "Name" exported: Name.ldblk (incl. n nested)). If writing fails, no file is created and the status bar reports in red Block export failed: reason.
  • For a library of many parts the standard part library on the server is the better way; its files have a different format.

Keys

KeyEffect
Esc / right-clickend placing — the definition stays in the drawing

Related commands

Related topics