Skip to content
BadBit Documentation
Sign in Download the beta

Blocks, associative arrays and regions

A block is a named group of objects, stored in the drawing, that you can insert as many times as you like: doors, tables, symbols. Each reference is a single object (selecting, moving, rotating and scaling take all of it), and they all change together when the block is redefined. The buttons are in the Block panel of the Home tab (Insert, Create, Edit, Edit Attributes and Define Attributes; expanded, Write Block, Manage Attributes and Synchronize Attributes) and on the Insert tab (Block, Block Definition and Reference panels).

Inserted block
The MESA block inserted three times, one of them rotated and larger.

BLOCK (alias B)

Creates a block from the chosen objects:

  1. The block name (? lists the blocks in the drawing). If the name already exists, you are asked whether to redefine it (Y/N).
  2. The base point: the point of the block that sits on the insertion point.
  3. The objects (if objects are already selected, they are used).

The objects become a reference of the block in the same place (the Convert to block option of the AutoCAD dialog box). When you redefine a block, all its references start showing the new objects. Everything is a single undo step.

The block's items keep their own layer and properties, and follow the AutoCAD rule for color, lineweight and linetype: ByBlock takes the reference's value; ByLayer follows the item's layer, and items on layer 0 take the reference's layer (its color, lineweight and linetype); an explicit value stays as it is. In a block nested inside another block the rule repeats: the inner reference plays the role of the reference for its own items. Items on other layers disappear when their layer is turned off or frozen. The screen and plotting follow the same rule.

-BLOCK (alias -B)

Like BLOCK, but the objects are removed from the drawing without leaving a reference, like AutoCAD's -BLOCK. OOPS brings them back.

INSERT (aliases I, -I, -INSERT)

Inserts a block from the drawing:

  1. The name (Enter repeats the last inserted block; ? lists). A file also works: see INSERT from a file.
  2. The insertion point, with a preview of the block at the cursor. Before the point, Scale (S) and Rotate (R) apply to both axes right away and are not asked again later.
  3. The X scale factor (Enter: 1), the Y scale factor (Enter: the same as X; a negative value mirrors) and the rotation angle (Enter: 0; the preview rotates with the cursor).

With different X and Y scales, the block's circles and arcs appear as ellipses, as in AutoCAD.

The Insertion object snap (INS) snaps to the insertion point. The Properties palette shows the block name and lets you change the point, the scales and the rotation; LIST shows the same. A reference read from a DXF or DWG with a Z scale, an elevation (the Z of the insertion point) or a tilted normal keeps that data: LIST shows the Z scale and the elevation of the base point (and the normal, when it is not the top one), and saving writes it all back to the file, also after moving, rotating, scaling or mirroring the reference. On a tilted reference, changing the X and Y scales or the rotation in the Properties palette applies in the reference's coordinate system, as in AutoCAD: the normal (the tilt), the Z scale and the Z stay; the rotation is that of the block's X axis seen in plan. Changing the point moves the reference along the drawing's X and Y, without changing Z. The same applies to a reference that contains another one with a solid: the Z, the Z scale and the normal of the outer one apply to the inner one's solid.

In plan view, a tilted reference looks as it does in AutoCAD: the block's lines, arcs, circles, texts and hatches are the projection of the block onto the plane of the reference, foreshortened by the tilt (a circle becomes an ellipse, an arc becomes an elliptical arc, text is distorted). Selection, object snaps (Endpoint, Center, Insertion...) and measurements use this projection; the extents (ZOOM Extents and the saved EXTMIN/EXTMAX) are AutoCAD's: the box of each object in the block, carried by the reference.

Exploding a reference

EXPLODE breaks the reference into the block's objects, in place, each on its own layer and with ByBlock replaced by the reference's properties. In a reference with different scales, circles and arcs become ellipses and the curved segments of polylines become fine straight segments.

The solid, region and surface of a block do not come out of a reference with different scales (also when only the Z scale is different): the 3D body does not follow the distortion. As in AutoCAD, a reference that contains only these objects stays as it is, with the message Cannot explode that block.; in one that has other objects, the others come out and these stay together in a reference of a new anonymous block (*E1, *E2...), in the same place and with the same transformation, with the message 1 was not able to be exploded. (or N were not able to be exploded.). A nested reference with a solid that is rotated inside the non-uniform scale also stays in the anonymous block (rotation and non-uniform scale together do not fit in one reference); without the rotation, or with the non-uniform scale only in Z, it comes out as a reference. With the same scale on all three axes, mirrored or with a tilted normal, the solid comes out on its own, with the reference's dimensions. BURST does the same.

BURST (Express Tools)

BURST (from the old Express Tools, as in AutoCAD) explodes the chosen references like EXPLODE, but the attributes become texts with their values (EXPLODE gives back the definitions, with the tag). Choose the references and confirm with Enter (or choose them first and type BURST); the other objects in the selection stay as they are.

  • Each inner object keeps its own layer, color and linetype. What is on layer 0 goes to the reference's layer, and ByBlock color and linetype take the reference's.
  • Invisible attributes disappear; visible constant attributes become text with the definition's value; multiline ones become MTEXT.
  • Nested references (nested blocks) remain references, in place.
  • External references are not exploded. Everything is undone with a single U.

BURST is in the expanded Block panel of the Home tab.

Associative array

ARRAY creates, by default, an associative array, like AutoCAD (ARRAYASSOCIATIVITY 1): a single object, with the items computed from the parameters. At the command's first prompt, ASsociative (AS) switches it to N, and the array is once again made of separate copies. The variable applies to the next ones.

ARRAYEDIT

Changes an associative array after it has been created. Click the array and choose:

TypeOptions
RectangularRows (R) and COLumns (COL): the count and then the distance (Enter keeps it).
PolarItems (I), Fill angle (F) and ROTate items (ROT, Y/N).
PathItems (I) and Align items (A, Y/N).

Each change appears immediately; eXit (X) or Enter finishes, and the whole ARRAYEDIT is a single undo step. EXPLODE breaks the array into its copies.

ARRAYEDIT
A 2 by 3 associative array that ARRAYEDIT changed to 4 columns.

REGION (alias REG)

Turns closed objects into regions: circles, closed polylines, full ellipses, closed splines and the chains of lines, arcs and open polylines that close a boundary. The source objects are removed (with DELOBJ 1, the default). The command line says how many regions were created.

A region is displayed by its boundary and counts as an area: LIST and AREA (Object option) give its area and perimeter, and the Properties palette shows both. BOUNDARY also creates regions (advanced options, Object type O, Region R): the one of the outer boundary, with the islands as holes. EXPLODE gives back the boundaries as lines and arcs. In regions, ellipses and splines are displayed as fine straight segments, but the area, the perimeter and MASSPROP come from the curve itself, without the chord error (the same applies to the hatch of an ellipse or spline, to hatches and regions made by picking a point inside an area bounded by ellipses or splines, and to HATCH read from DXF and DWG). Also free of rounding error are the boundaries made of lines, arcs and circles whose corners are intersections (a rectangle of four crossing lines, the lens of two circles, a circle cut by a line): in UTM coordinates the intersection point stored in a polyline would be rounded to half a billionth of a meter, and the measurement comes from the lines and arcs themselves, which makes a difference in a figure measured in centimeters. Very shallow polyline arcs (bulge of 0.00001 or less) also measure correctly in AREA, LIST, the palette and FIELD. Saved to DXF or DWG, the hatch carries its boundary with the ellipse and spline edges as they are, and AutoCAD measures the same area.

UNION, SUBTRACT and INTERSECT

The operations between regions, as in AutoCAD. The boundaries remain exact: lines are lines and arcs are arcs (the lens of two circles comes out with two arcs), and ellipses and splines are still measured along the curve, cut at the true intersection points. Pieces that end up separate become separate regions, and a region lying entirely inside another in a subtraction becomes a hole. Each operation is a single undo step; the chosen regions are removed and the result takes the layer and properties of the first one. When the result would run between two nearly coincident curves (closer than the drawing's tolerance along a stretch, such as two equal circles offset by a billionth of their size), the operation is not performed: the boundary there is not defined and the measurement would be wrong. The message says so, and the chosen regions stay as they were.

CommandAliasWhat it does
UNIONUNIJoins the chosen regions (two or more): the area of one or the other.
SUBTRACTSUFirst the regions to subtract from (Enter), then the ones that are removed (Enter).
INTERSECTINKeeps only the area common to all of them. With no common area, the regions are removed and nothing is left (AutoCAD's "null region").

Objects that are not regions are left out, with a message. The buttons are in the expanded Draw panel, next to Region.

Booleans
On the left, the UNION of two overlapping rectangles; on the right, the SUBTRACT of a rectangle from inside a circle.

MASSPROP

Shows the mass properties of each chosen region, like AutoCAD's MASSPROP in 2D: area, perimeter, bounding box, centroid, moments of inertia about the X and Y axes, product of inertia, radii of gyration and the principal moments about the centroid (with their directions). The calculations use the exact boundaries (arcs are taken as arcs). It is in the expanded Utilities panel.

Attributes

An attribute is a text that each reference of the block fills in: the room number and name, the part code, the drafter in the title block. The attribute definition lives in the block, with the tag (no spaces; converted to uppercase), the prompt that INSERT asks, the default value and the modes:

ModeWhat it does
Invisible (I)Not displayed with ATTDISP Normal.
Constant (C)The value is the definition's, the same in every reference; it is neither asked nor edited.
Verify (V)INSERT asks for the value twice.
Preset (P)INSERT uses the default without asking.
Lock position (L)The attribute does not move separately from the reference (the default).
Multiple lines (M)The value has several lines; on the command line, \P breaks the line.
Attributes
The SALA block inserted three times: each room's number and name are attributes.

ATTDEF (alias ATT) and -ATTDEF (alias -ATT)

ATTDEF opens the Attribute Definition dialog box: the modes, the tag, the prompt, the default, the text settings (justification, style, height, rotation and the width for multiple lines) and the insertion point (on screen, after OK, or typed in). Align below previous attribute definition places the new one right below the last one, with the same text settings.

-ATTDEF asks everything on the command line, as in AutoCAD: the current modes and the option to change (Enter finishes), the tag, the prompt, the default, the start point (with Justify J and Style S; Enter places it below the previous one), the height and the rotation.

ATTDEF
The Attribute Definition dialog box.

On its own in the drawing, the definition shows its tag. Choose the definitions along with the objects in BLOCK: INSERT then asks for the values, in the order in which the definitions were created (BATTMAN changes the order). A BLOCK that converts the objects leaves the reference with the default values.

The values in INSERT (ATTREQ and ATTDIA)

After the rotation, INSERT says "Enter attribute values" and asks each definition's prompt, with the default between < > (Enter accepts it). With ATTDIA 1, the values come in a dialog box, as in AutoCAD; with ATTREQ 0, references get the defaults without asking.

Editing attributes

  • EATTEDIT (or double-clicking the reference) opens the Enhanced Attribute Editor: the list of attributes and the Attribute (the value), Text Options (style, height, rotation, width factor and oblique angle) and Properties (layer and color) tabs, with Apply.
  • ATTEDIT (aliases ATE, DDATTE) opens the Edit Attributes dialog box, with only the prompts and the values.
  • -ATTEDIT (aliases -ATE, ATTE) works from the command line: one at a time (the block name, tag and value specifications with * and ?, the chosen attributes and, for each one, Value, Position, Height, Angle, Style, Layer, Color or Next, with the current one marked by an X) or global (only those visible on screen or all of them, and the text to replace with the new one in all values). The whole command is one undo step.
  • The Properties palette of a reference has the Attributes section with the editable values; for an attribute definition, the tag, the prompt and the default.
EATTEDIT
The Enhanced Attribute Editor for room 103.

LIST shows the reference's attributes, FIND also searches and replaces in attribute values, and Quick select has the Attribute Definition type. EXPLODE on a reference gives back the definitions (with the tag), and the values are lost, as in AutoCAD.

ATTDISP, ATTSYNC and BATTMAN

  • ATTDISP: Normal (N, honors the Invisible mode), ON (ON, shows all) or OFF (OFF, hides all). It is the ATTMODE variable (0, 1 or 2).
  • ATTSYNC: brings the current definitions to a block's references (by Name N or by Selecting S a reference; ? lists the blocks with attributes). New tags come in with the default, removed ones disappear, the values stay.
  • BATTMAN: the Block Attribute Manager. Choose the block; the list shows the tag, the prompt, the default and the modes of each definition. Change the fields and the modes, Move Up/Move Down (the order of the prompts), Remove, Sync; with Apply changes to existing references, Apply and OK already synchronize.
BATTMAN
The Block Attribute Manager with the SALA block.

Block Editor (BEDIT, alias BE)

BEDIT opens the block in a view of its own, with only the definition, in the block's coordinates (the base point sits at the block's origin). With a reference selected, it opens that reference's block; otherwise, the Edit Block Definition dialog box lists the blocks. Double-clicking a reference without attributes also opens the editor.

The Block Editor contextual tab appears on the ribbon, with Save Block (BSAVE, BS), Define Attributes, Base Point, Manage Attributes and Close Block Editor (BCLOSE, BC). All drawing and editing commands work inside the editor. BASE changes the block's base point.

Saving replaces the block's objects and regenerates all references at once, including those inside other blocks (and the blocks that contain it), in a single undo step of the drawing. Closing with changes asks whether to save or discard. While the editor is open, opening and saving files and switching tabs wait for BCLOSE. An external reference does not open in the editor (it is read-only). Changed the attribute definitions? Use ATTSYNC to bring them to the references.

BEDIT
The SALA block in the Block Editor, with the contextual tab.

WBLOCK (alias W) and -WBLOCK (alias -W)

WBLOCK writes a block from the drawing, the chosen objects or the entire drawing to a new .bbd file, with the base point (which becomes the file's insertion base point, INSBASE). For objects: Retain, Convert to block (the objects become a reference of the block with the file's name) or Delete from drawing. The layers, linetypes, styles and blocks that the objects use go along.

-WBLOCK asks for the file name and then a block, = (the block with the file's name), * (the entire drawing) or Enter (the base point and the objects, which are removed from the drawing; OOPS brings them back).

WBLOCK
The Write Block dialog box.

BASE

BASE sets the drawing's insertion base point (INSBASE, saved in the file): the point that sits at the cursor when this file is inserted as a block. In the Block Editor, it is the block's base point.

INSERT from a file

At INSERT's block name, type the path of a .bbd (blocos/porta.bbd): the file becomes the block with its name and INSERT goes on to the insertion point. Missing layers, styles and blocks come in along with it. If the block already exists, the existing one is kept; name=path redefines it (the references change together), and ~ opens the system dialog box. On the ribbon, the Insert button has From a file….

External references

An external reference shows another drawing inside this one, like a read-only reference: the file stays separate, and whatever changes in it shows up here. The reference's layers come in with its name as a prefix (planta-terreo|PAREDE, as in AutoCAD) and can be turned on, turned off and colored in the layer manager. BLOCK, BEDIT and EXPLODE refuse an external reference; to change its drawing without leaving this one, use REFEDIT (below), which saves the reference's file.

  • XATTACH (XA): choose the file; in the Attach External Reference dialog box, the name, the type (Attachment, or Overlay: not displayed when this drawing is a reference in another one) and the path type (full, relative to the drawing's folder, or no path, searched for in the drawing's folder). After OK, the insertion point, the scales and the rotation on the command line.
  • XREF (XR, ER): the External References manager, with each reference's name, status (loaded, unloaded, not found), type, references and saved path; Attach…, Reload, Unload (disappears without detaching), Detach (removed along with its references and layers), Bind (becomes an ordinary block: the layers become name$0$layer, or, with Bind as Insert, merge with the drawing's; this is BINDTYPE) and Open (the file in a tab).
  • -XREF (-XR): the same options from the command line: ?, Bind (B), Detach (D), Path (P), Unload (U), Reload (R), Overlay (O) and Attach (A); the names accept commas and *.

BadBit CAD checks the reference files every second and reloads automatically the one that changed (AutoCAD only notifies); when the drawing is opened, the references come from the files. Reloading is recorded in undo. The reference can be a .bbd, a DXF or a DWG.

External references
The ground floor plan attached as a reference and the External References manager.

Clipping references (XCLIP, alias XC)

XCLIP clips block references and external references: only what is inside a boundary is displayed (or, inverted, what is outside). The clip belongs to the reference (each one has its own), moves with it (move, rotate, scale) and applies on screen, in selection and object snaps (what is hidden cannot be selected or snapped to) and in plotting (PDF, SVG and PNG come out clipped). The block's drawing does not change: EXPLODE gives everything back.

Choose the references and answer Enter clipping option:

  • New boundary (N, or Enter): if there is already a clip, it asks whether to delete the old one (Yes Y / No N). Then the boundary: Rectangular (R, or Enter: the two corners), Polygonal (P: the points, with Undo U, and Enter to close) or Select polyline (S: a polyline; arcs come in as fine straight segments). Invert clip (I) switches between hiding what is outside (the outside mode, the default) and what is inside.
  • ON (ON) and OFF (OFF): turn the clip on and off without losing the boundary.
  • Delete (D): removes the clip.
  • generate Polyline (P): draws the boundary as a polyline, on the current layer.
  • Clipdepth (C): the front and back planes in 3D; does not apply to 2D drawings.

XCLIPFRAME controls whether the boundary is displayed: 0 not displayed and not plotted, 1 displayed and plotted, 2 (the default) displayed only on screen. It is stored in the drawing, as in AutoCAD. The clip goes to the .bbd, the DXF and the DWG the way AutoCAD stores it (the spatial filter in the reference's extension dictionary). On the ribbon: Insert tab, Reference panel, Clip.

XCLIP
The floor plan inserted as a block, clipped at the room on the left, with the boundary (XCLIPFRAME 2).

Editing a reference in place (REFEDIT)

REFEDIT edits a block or an external reference in place, without leaving the drawing and without opening the Block Editor. Choose the reference (or double-click an external reference, or right-click a selected reference, Edit Reference In-Place); the Reference Edit dialog box shows the tree with the chosen reference and the ones nested in it. Choose which one to edit and click OK.

The reference's objects become editable in its place (with the reference's scale and rotation); the rest of the drawing is faded (XFADECTL, from 0 to 90%, default 50) and cannot be selected. The Edit Reference contextual tab appears with:

  • Add to Working Set and Remove from Working Set (REFSET, options Add A and Remove R): put objects from the drawing into the working set (they go to the block when saving and leave the drawing) or take objects out of it (they stay in the drawing). Objects drawn during the editing session join the set automatically.
  • Save Changes and Discard Changes (REFCLOSE, options Save S and Discard D).

Saving regenerates all references of the block (and the blocks that use it), in a single undo step. For an external reference, saving writes its file in the original format (.bbd, DXF or DWG, in the same version) and reloads it; a reference in a read-only file or one open in another tab cannot be opened for editing (a message appears). The block's attribute definitions stay as they are (use BEDIT or BATTMAN to change them). While the editing session is open, opening and saving files and switching tabs wait for REFCLOSE.

Reference Edit
The Reference Edit dialog box: the floor plan and the table nested in it.
REFEDIT
The floor plan being edited in place: the rest of the drawing faded, a new partition and the Edit Reference tab.

Purging unused blocks

PURGE (Manage tab, Cleanup panel) now has Blocks (B): it removes block definitions that no reference uses. Layers used by the blocks' items are not purged.

Dynamic blocks

A dynamic block carries parameters and actions (defined in the Block Editor or read from an AutoCAD DWG or DXF): the same door, for example, changes width, opens to the other side and appears open or closed, without needing one block for each case. Each reference stores its own values.

Dynamic grips

Select the reference: besides the insertion point grip (the blue square), the dynamic grips appear, in cyan, with the icon of each parameter type, as in AutoCAD:

  • square: point, polar and XY;
  • arrow in the parameter's direction: linear;
  • circle: rotation;
  • flip arrow, perpendicular to the reflection line: flip;
  • notched arrow: alignment;
  • down arrow (inverted triangle): the visibility, lookup and block properties table list.

They follow GRIPS and GRIPOBJLIMIT like the other grips. Click a dynamic grip (or press and drag): it turns red and the reference follows the cursor, with the actions already applied (the door scales, stretches, rotates…). The value is bound to the parameter's value set: free, in increments or only the values in the list. Object snaps work as with other grips. When you release (or on the second click) the change goes in as a single undo step.

Dynamic grips
The dynamic door selected: the insertion point grip, the width arrow, the flip arrow and the visibility down arrow.
Dragging the linear grip
The width grip hot: the door follows the cursor, bound to the values in the list.

The flip grip is not dragged: a click toggles it. The list grip opens a menu with the visibility states (or the rows of the lookup or of the table), with the current one checked; choosing one saves it.

A linear parameter with two grips also shows the base grip, with the base at the start or in the middle: with the base at the start, dragging it moves only the base (the end stays put and the actions tied to the start point move); with the base in the middle, both sides move by half. When the dynamic grip falls on the same spot as the insertion point (the base of the linear, the alignment), the click picks the dynamic one, as in AutoCAD.

The alignment grip carries the reference along with the cursor; resting over an object (line, arc, polyline, circle...), the grip falls on its nearest point and the reference rotates to align: the parameter's direction becomes tangent to the object (or perpendicular, depending on the type chosen in BPARAMETER), on the side closest to the current one. Away from any object, it only moves.

An attribute hidden in a visibility state keeps its value: when you return to a state that shows it, it appears with the value it had. The hidden value also goes to the DXF and DWG (the attribute is saved as invisible in the reference) and comes back when the file is opened.

Visibility list
The visibility grip menu, with the current state checked.

The Custom section

In the Properties palette (Ctrl+1), one or more dynamic references of the same block get the Custom section, with the parameters that the block displays:

  • editable distances and angles, in the drawing's units like the other fields; when the parameter only accepts the values of a list, the row becomes a drop-down list;
  • distances (and the positions of the point parameter) already including the reference's scale, as in AutoCAD: a door of 10 inserted at scale 2 shows 20, and typing 30 leaves the door at 15 in the block (the scale in the parameter's direction: for XY, the X and Y scales);
  • flip, visibility, lookup and block properties table through the list; a Read only lookup shows only the row's text (no list).

With several references, values that differ appear blank ("mixed"), and the chosen value applies to all of them, in one undo step. The section also appears in Quick Properties.

Custom section
The door's Custom section: the width in the list, the flip and the visibility.

Reset Block (RESETBLOCK)

RESETBLOCK (AutoCAD's name in all three languages) returns the chosen dynamic references to the values in the block definition, in one undo step. Select first or answer "Select objects:". Right-clicking a selected dynamic reference also offers Reset Block.

When you insert a dynamic block (INSERT), the preview already shows the block's visibility state, and the command line says which one it is ("Visibility state: Open").

Creating dynamic blocks in the editor

Inside the Block Editor (BEDIT), the block gets parameters (what changes: a distance, an angle, a state) and actions (what each parameter does to the objects: stretch, move, rotate...), as in AutoCAD. At the end, the Block Editor tab shows the Parameters, Actions, Visibility, Table and Test panels. Parameters and actions are displayed over the drawing: the parameter with its label and grips, and the yellow alert while it has no action. Actions are displayed in action bars (BACTIONBARMODE 1, the AutoCAD default): one bar per parameter, at the location of its first action, with the icon of each action and a dashed line to the parameter; with BACTIONBARMODE 0, each action has its icon and name at its own location, the old way. With the cursor over an action's icon, its name, the stretch frame and the objects it carries are displayed.

Parameters and actions are erased on screen, like objects: click a parameter (or an action's icon) and it is highlighted in yellow (Shift+click removes it from the selection, Esc clears); Delete or ERASE erases it, in one undo step. Erasing a parameter takes its actions and the references to it (in selection sets and tables). ERASE also accepts clicking a parameter or an action at the "Select objects" prompt.

BSAVE saves the dynamic part along with the objects: the references in the drawing then have dynamic grips and the Custom section in the Properties palette, storing the values by parameter name. Undo inside the editor also undoes parameters, actions and states.

Block Editor with parameters and actions
The door in the editor: the linear Distance1 with the action bar of Stretch1 (the cursor over the icon shows the name, the frame and the objects), the flip and the visibility, with the handle hidden in the Plain state (BVMODE 0).
Dynamic Block Editor panels
The Parameters, Actions, Visibility, Table and Test panels at the end of the Block Editor tab.

Parameters (BPARAMETER, alias PARAM)

BPARAMETER asks for the type: Alignment (A), Base (B), pOint (O), Linear (L), Polar (P), XY (X), Rotation (R), Flip (F), Visibility (V) and looKup (K); the prompt shows the last type as the default (<Linear> the first time) and Enter repeats it. The buttons in the Parameters panel choose the type already. Then come AutoCAD's prompts:

  • the first point (the start point, the base point or the parameter location), with the options Name (N, the name of the parameter object, such as Linear1), Label (L, the name of the property in the palette, such as Distância1), Chain (C, chain the actions), Description (D), Base (B, linear only: the base at the Startpoint S or the Midpoint M, both sides moving by half), Palette (P, whether to show it in the Properties palette) and Value set (V);
  • the endpoint (for flip, the end of the reflection line; for rotation, the radius and the default angle, with the Base angle B option, the reference line that the editor draws dashed and that is stored; for alignment, the direction or Type T, Perpendicular or Tangent);
  • the label location: it is stored; the editor draws the label there and, for linear and polar, moves the dimension line out to it, as in AutoCAD;
  • the number of grips (0, 1 or 2 for linear and polar; 0, 1, 2 or 4 for XY; 0 or 1 for the others).

With Chain on (AutoCAD's Chain Actions), a parameter that is in the selection set of an action of another parameter triggers its own actions when it is carried along: a point with a move, carried by the stretch of a linear, takes the move's objects along. Without Chain, the parameter moves with the action but its own actions do nothing. A chain that comes back to a parameter that has already fired stops there.

The value set limits what the reference accepts: None (N), List (L, values separated by commas, or by semicolons if you use the decimal comma; angles in degrees) or Increment (I, the step, the minimum and the maximum; Enter leaves it unset). Polar asks for the distance one and the angle one; XY, the horizontal and the vertical. A block has at most one visibility parameter and one base point parameter.

Actions (BACTION, alias AC, and BACTIONTOOL)

BACTION asks for the parameter (click near it, or type its name) and the action type it accepts, as in AutoCAD: point accepts Move and Stretch; linear and XY, Array (A), Move (M), Scale (S) and sTretch (T); polar also Polar stretch (P); rotation, Rotate; flip, Flip; lookup, Lookup. BACTIONTOOL (the buttons in the Actions panel) chooses the type first and then the parameter.

Depending on the type, these come next:

  • the parameter point that drives the action (sTart point T or Second point S, or a click near one of them);
  • the stretch frame (two corners, or CPolygon CP): what is entirely inside moves; of what crosses it, only the points inside; other parameters with a point inside the frame go along;
  • the action's objects (the usual selection); for polar stretch, afterwards, the objects that only rotate;
  • for array, the distance between rows (for XY) and between columns: typed or by two points (picked or typed as x,y); for XY, the two corners of the unit cell give both distances at once;
  • the action location (where the icon goes), with the options Multiplier (M) and angle Offset (O) for move and stretch, Base type (B: Dependent, the parameter's base point, or Independent, a point of its own) for scale and rotate, and XY type (X: X, Y or XY) for the actions of an XY parameter.

The lookup action opens the Property Lookup Table dialog box (BLOOKUPTABLE opens it again): the input properties (the parameters chosen with Add properties...) and the lookup property, one row per combination, with the text shown in the reference's list. The last row of the lookup column chooses, as in AutoCAD, Read only (the default: the reference shows only the row that matches the inputs, with no list or grip) or Allow reverse lookup (the grip and the palette choose the row, and it sets the inputs to its values).

Visibility (BVSTATE, alias BVS; -BVSTATE; BVHIDE; BVSHOW)

With a visibility parameter, BVSTATE opens the Visibility States dialog box: Set current, New... (with the options Hide all existing objects in new state, Show all existing objects in new state or Leave visibility of existing objects unchanged in new state), Rename, Delete and Move up/Move down. The state that is current when saving is the one for new references. On the command line, -BVSTATE has New (N), Set (S) and Delete (D).

BVHIDE and BVSHOW hide and show the chosen objects in the Current (C) state or in All (A). BVMODE sets how the objects hidden in the current state appear in the editor, as in AutoCAD: 0 (the default) they disappear and cannot be selected; 1 they are faded, so they can still be selected (for BVSHOW, for example). Type BVMODE and the value, or use SETVAR.

Visibility states
The Visibility States dialog box with the new Plain state, without the handle.

Block properties table (BTABLE)

BTABLE asks for the table parameter's location and the number of grips (0 or 1) and opens the Block Properties Table dialog box: the columns are the parameters (Add properties...), each row is a combination of values (numbers as AutoCAD displays them, angles in degrees, states by name), and Block properties must match a row in the table rejects values outside it. On the reference, the table grip chooses the row.

Parameter and action properties (Ctrl+1)

As in AutoCAD, clicking a parameter (or an action's icon) in the Block Editor and opening the Properties palette (Ctrl+1 or PROPERTIES) shows its fields, all editable; each change is an undo step of the editor:

  • Property labels: the Name of the parameter object (blank: the type name), the property label (the name in the references' Custom section; for polar and XY, both labels), the Description and, for flip, the names of the Not flipped and Flipped states;
  • Geometry: Base X/Y and End X/Y (for rotation, the Center, the Radius, the Angle and the Base angle; for single-point parameters, the Position), the Distance and Angle of linear and polar (changing the distance moves the end along the parameter; the angle rotates it around the base) and the horizontal and vertical distances of XY;
  • Value set: the type (None, Increment or List) and, depending on it, the increment, the minimum and the maximum (blank: no limit) or the value list (separated by semicolons); for polar, the distance one and the angle one; for XY, the horizontal and the vertical;
  • Misc: the linear's Base location (startpoint or midpoint), the Number of grips, Show properties, Chain actions, the alignment type and, for the block table, whether the properties must match a row.

For an action: the Action name, its type and parameter (read-only), the Distance multiplier and the Angle offset (move, stretch and polar stretch), the XY type (for the actions of an XY parameter), the Base type (Dependent or Independent, with its own point) for scale and rotate, and the column and row offsets of the array. With several chosen, only the fields they all have appear; differing values are shown as mixed and the typed value applies to all.

The Properties palette with the linear parameter chosen
The linear parameter Distância1 chosen in the editor: the Properties palette with the labels, the geometry, the value set and the Misc fields.

Testing the block (BTESTBLOCK)

BTESTBLOCK (Test panel) opens the test block window, as in AutoCAD: it takes the editor's place (the drawing tab then reads Test block: NAME) with a drawing containing only one reference of the block as it is in the editor, and the ribbon gets the Test Block Window tab. Everything that works in a drawing works there: select the reference to drag the dynamic grips (the list ones open the list of states or rows), change the values in the Custom section of the Properties palette, use the commands (MOVE, COPY, INSERT...). BSAVE waits for the test to close.

  • Close Test Block (the contextual tab button) or the drawing tab's ×: goes back to the editor as it was, without asking anything, as in AutoCAD (what was done in the test window does not go to the block).
  • BCLOSE typed in the test window: closes the window and goes on to close the Block Editor; if the block was changed in the editor and not yet saved, the prompt Save the changes to NAME? appears, with Save the changes (saves the block, and the references in the drawing change together), Discard the changes and Cancel (stays in the editor). Without changes, it goes straight back to the drawing.
Save the changes when closing with BCLOSE
BCLOSE in the test window, with the door changed in the editor: the Save the changes prompt.
  • BTESTBLOCK again in the test window: closes the window and opens another with the block as it is in the editor (what was changed in the test is lost), as in AutoCAD.
  • Closing the program with the test window open closes the test first and saves the block, like closing with the Block Editor open.
  • SAVE, QSAVE (Ctrl+S) or SAVEAS in the test window: as in AutoCAD, it stops being a test window and becomes an ordinary drawing, in a new untitled tab (with everything done in the test), and saving asks for the file name. The Block Editor stays open in the drawing's tab, with what was not saved: click the tab (or Ctrl+Tab, or BEDIT in it) and it comes back as it was. (AutoCAD's help mentions SAVE and QSAVE; SAVEAS doing the same is assumed.)

Switching tabs with the Block Editor open also leaves it parked in its tab (the tab reads Block Editor: NAME): the other tabs work normally and, back in that tab, the editor comes back. Only one Block Editor is parked at a time; closing the drawing's tab also closes the editor parked in it, without saving the block.

Test block
The test block window: the door stretched by the linear grip and the Test Block Window tab.
The test window saved as a drawing
After SAVE in the test window: the test became the drawing in the new tab, and the Block Editor waits in the drawing's tab.

Parametric constraints inside the block (BCPARAMETER, BCONSTRUCTION) are not yet supported in the editor; blocks that bring them from AutoCAD keep them as they came.

Exporting and importing attributes: ATTOUT and ATTIN

ATTOUT writes the attribute values of the chosen blocks to a tab-delimited text file (the one from the old Express Tools), for editing in a spreadsheet: the first line has HANDLE, BLOCKNAME and the tags of all the blocks; each following line is a reference, with its handle (starting with ', so that the spreadsheet leaves it alone) and <> where the block does not have that tag. ATTIN reads the edited file and replaces the values by each reference's handle, in a single undo step (references on locked layers are left out, with a message; lines whose handle is not in the drawing are counted). Reading and writing the file run in the background. Both are in the Block panel of the Insert tab (in the expanded panel).

Search the documentation