Skip to content

-WBLOCK — Write Block (command line)

Saves a block, the drawing or some objects as a DWG, like AutoCAD -WBLOCK.

Saves a block, the whole drawing or some objects as a new drawing on the command line, with the AutoCAD 2027 -WBLOCK prompts. This is what WBLOCK does in scripts, SCRIPT and AutoLISP.

Usage

  1. Enter -WBLOCK (or -W) and the path of the new file (without .dwg or .dxf, .dwg is added).
Enter name of output file:
  1. If the file already exists, confirm whether to replace it.
A file named … already exists. Do you want to replace it? [Yes/No] <N>:
  1. Enter the name of a block, = (the block named like the file), * (the whole drawing) or press Enter to define a new drawing from objects.
Enter name of existing block or [= (block=output file)/* (whole drawing)] <define new drawing>:
  1. With Enter, specify the base point (or MOde) and select the objects.
Specify insertion base point or [MOde]:

Options

Choose mode for converting selected objects [Convert to block/Retain/Delete] <…>:

See also

WBLOCK · -BLOCK · -INSERT

Download LinceCAD Manual contents