A block is a named group of objects with a base point, stored once in the drawing and placed as many times as you need. Changing the block changes every reference. This article covers defining, inserting and sharing blocks.
Before you start
- Any paid licence.
- A drawing open. Commands are on the Insert tab, Block group (
-INSERT,-BLOCK,-WBLOCK), and the Blocks panel is under Insert > Blocks.
Steps: define a block
- Draw the objects, for example a door symbol. Put objects on layer 0 if they should take the layer of each reference.
- Click Insert > Block > -BLOCK (or type
-BLOCK, alias-B). - At "Enter block name [? lists blocks]" type a name, for example
DOOR-900. If it exists you are asked "Block "DOOR-900" already exists. Redefine it? [Yes/No] <No>". - At "Specify insertion base point" click the point the block is placed by, for example the hinge.
- At "Select objects" select the objects, then press Enter. Objects selected before you start are used directly.
- At "Objects after defining the block [Retain/Convert/Delete] <Convert>" choose what happens to the originals: Convert turns them into one reference, Retain leaves them as they are, Delete erases them.
The block takes the drawing's units as its insertion units. 3D solids and sketches cannot be put in blocks yet.
Steps: insert a block
- Double-click the block in the Blocks panel, or select it and click Insert, or type
-INSERT(-I). - At "Enter block name or the path of a .stcad drawing" type the name (if you started from the panel this is done for you).
- At "Specify insertion point" click the point. Type
SorRfirst to set the scale or rotation before placing. - Answer "Enter X scale factor <1>", "Enter Y scale factor <use X scale factor>" and "Specify rotation angle <0>".
- If the block has attributes, type a value for each one; Enter keeps the default.
A block drawn in other units is converted: a block in metres inserted into a millimetre drawing is scaled 1000 times.
Inserting a drawing as a block
- Type the path of a
.stcaddrawing at the name prompt. It is inserted as a block named after the file, and its missing layers, linetypes and blocks are added. - In the Blocks panel, Library folder… lists the drawings in a folder of your choice; double-click one to insert it as a block.
-WBLOCK(-W) writes a block to a.stcaddrawing of its own, with the base point at the origin, so it can go in your library folder.
Taking content from another drawing
Open the Content Browser (Insert > the Blocks panel button's menu, or type ADCENTER or ADC; -ADCENTER is the typed form for scripts). Choose a drawing of the library folder or Open Drawing…, choose what to show (blocks, layers, linetypes, text styles, dimension styles or layouts), select items and click Add to Drawing: they come with what they need, as one undo step. Items this drawing already has keep the drawing's own. Insert Block adds a block and asks where it goes. -ADCENTER does the same on the command line.
The Blocks panel
| Control | What it does |
|---|---|
| Insert | Inserts the selected block; the command line asks for its placement. |
| Edit… | Opens the block in a block editor tab. |
| Rename… | Renames the block; its references follow. |
| Delete | Deletes the block when nothing uses it. |
| Block Properties… | Description and named properties (see Block attributes). |
| Extract… | Writes the attributes of every reference to a CSV file or a workbook (.xlsx), as ATTEXTRACT does. |
| Library folder… | Lists the .stcad drawings of a folder to insert as blocks. |
Below the list the panel shows the selected block's insertion units, attributes and number of references in model space.
Example
Draw a 900 mm door leaf and swing on layer 0. Run -BLOCK, name DOOR-900, base point at the hinge, Convert. Insert it at each opening with -INSERT, rotation 90 for doors in vertical walls, and an X scale of -1 to hinge on the other side.
Tips and common mistakes
- References can be moved, copied, rotated, scaled (also differently in X and Y) and mirrored like other objects.
- Blocks can contain references to other blocks, but never to themselves.
- Names
*Ufollowed by a number are kept for anonymous blocks. - Object snaps work on the contents of references; the insertion point is an Insertion snap.
- DXF import and export keep blocks, references and attributes.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "No objects selected; the block was not defined." | Select at least one object at "Select objects". |
| "Names *U<number> are kept for anonymous blocks; choose another name." | Choose another name. |
| "The drawing has no block "NAME" (a drawing file needs the .stcad extension)." | Check the name, or type the full path of a .stcad file. |
| "Block "NAME" already exists; it is inserted instead of the file." | A block of the file's name exists already; rename one of them to insert the file. |
| "The scale must not be zero." | Type a non-zero scale. A negative scale mirrors. |
| "... 3D solids cannot be put in blocks yet" | Leave solids and sketches out of the selection. |
Related
Related
- Fitting an object into a space
- Grid, snap, ortho and polar tracking
- Object snaps and object snap tracking
- Entering exact points, distances and angles
- Constraint hints while drawing
- Drawing lines
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.