-WBLOCK — Write Block (command line)
Saves a block, the drawing or some objects as a DWG, like AutoCAD -WBLOCK.
- Command:
-WBLOCK· Global name:_-WBLOCK· Alias:-W
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
- Enter -WBLOCK (or -W) and the path of the new file (without
.dwgor.dxf,.dwgis added).
Enter name of output file:
- If the file already exists, confirm whether to replace it.
A file named … already exists. Do you want to replace it? [Yes/No] <N>:
- 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>:
- With Enter, specify the base point (or MOde) and select the objects.
Specify insertion base point or [MOde]:
Options
- MOde: what to do with the objects. It is kept for the next time and is separate from the -BLOCK one (when LinceCAD starts it is Retain).
Choose mode for converting selected objects [Convert to block/Retain/Delete] <…>: