| Commands | CAPCAD_DEVICE_INSERT (the form) · CAPCAD_DEVICE_INSERT_NEW (the same form with a thumbnail grid) · -CAPCAD_DEVICE_INSERT (command line) |
| Shortcuts | BV and II |
| Ribbon | CapCad tab › Roadway panel › Library split button › Blocks Library; the same split button carries Road Library Command Line for the command-line version. CAPCAD_DEVICE_INSERT_NEW has no button: it opens from the New version button of the form, or by typing it |
| Category | Horizontal (CAPCAD_DEVICE_INSERT, CAPCAD_DEVICE_INSERT_NEW) · Command Line Command Versions (-CAPCAD_DEVICE_INSERT) |
| Form | ItemInsertForm "Dwg Library", tabs Main and Options/Utils. Modeless: the drawing stays live while it is open, and it stays up between one insertion and the next. CAPCAD_DEVICE_INSERT_NEW opens ItemInsertFormNew, the same window with a thumbnail grid; only one of the two is open at a time |
| Hosts | CAPCAD_DEVICE_INSERT and -CAPCAD_DEVICE_INSERT: AutoCAD, BricsCAD, GstarCAD, ZWCAD, ARES Commander. CAPCAD_DEVICE_INSERT_NEW: AutoCAD |
| Also | CAPCAD_DEVICE_TRAFFIC_LIGHT opens the same form with the traffic-signal category selected; the + button of the Divider opens it on Only load into dwg; the 3D assistant's overhead supports opens it on the supports category, in Point to alignment with rotation 90; the guardrail form's library buttons open it on the guardrail folders in Line end or Replace block; the tactile paving Insert islands button opens it on the urban folder; the detail-drawings button of the CapSign templates opens it on the vertical detailing folder |
The CapCad library is not a folder of blocks: it is a catalogue that already knows how to measure from the alignment. With the CAD's INSERT you find the file, insert it and then correct the position; here you choose the offset and the rotation before the click, and the item lands in the right place first time.
- A catalogue with search and preview. The library folders become categories, the
.dwgbecomes an item, and the drawing's thumbnail appears before you insert. - Measured from the alignment, not from the screen. The clicked point is projected onto the alignment and the item is offset perpendicular to it, by the value you type: positive to the right, negative to the left.
- Rotation comes from the road. On the alignment the item is turned to the alignment's direction, plus the rotation you choose.
- Adjust after the click. Change the offset, the shift or the rotation and the last item is inserted again in its new place.
- Loading only is an option too. It brings one or several block definitions into the drawing without inserting anything.
- The same tool in five CADs. AutoCAD, BricsCAD, GstarCAD, ZWCAD and ARES Commander.
What it does
The command opens the project's block library and inserts one of its items into the drawing.
The catalogue is built from the project's library folder. Each sub-folder that holds at least one .dwg becomes a Folder (category), and each .dwg file inside it becomes a File (item). There is no list built into the program: what you see is what is in the project's folder. If the folder does not exist, a message asks you to set it up in the project configuration.
Once an item is chosen, the insertion frame decides what the main button does:
- Point to alignment: you click points; each point is projected onto an alignment (the project alignment nearest the click, or one you select), moved along it by the Displacement, offset by the Offset and the item is placed there, turned to the alignment's direction plus the Rotation. The command keeps asking for points until Esc.
- Point: the item is placed at the clicked point, with rotation 0, and with Rotate after ticked you then turn it on screen.
- Midpoint: two clicks define a line, and the item goes at its middle.
- Line end: the item goes at the end of a curve nearer the pick, turned to the curve.
- Open, Only load into dwg and Replace block do not place a new item: they open the file, load definitions, or swap a block already in the drawing.
The block is loaded from the library if it is not already in the drawing. The form hides during the clicks and comes back afterwards. When a clicked point (an object snap, for instance) falls outside the current view, the command warns and offers to navigate to it.
Workflow
- Run
CAPCAD_DEVICE_INSERT(or typeBV). The "Dwg Library" form opens beside the drawing. - Choose the Folder (5) and the File (8). Use the search box (6) to filter by name and the 2D/3D options (9 to 13) to separate the variants. The thumbnail appears under the list.
- Choose the insertion mode in the insertion frame (20 to 30).
- In Point to alignment or Line end, set Offset (33), Displacement (40) and Rotation (44) in the Alignment insert options frame.
- Click the main button (16). Its caption follows the mode, for instance Insert along active alignment. The form hides and the command line asks for the point.
- Adjust: changing the offset, the displacement or the rotation, or clicking Update (18), inserts the last item again with the new values. Accept (19) keeps it as it is; Reset (17) deletes it.
The form
Numbers are the same in every picture on this page. Some numbers are not used: the page keeps the numbering of earlier editions.

Tab "Main", in Point to alignment mode. The lists are empty outside the CAD: they are filled from the folders of the active project's library.

Tab "Options/Utils": related commands, shortcuts, library tools and the action change.
Top (both tabs)
| # | Control | What it does |
|---|---|---|
| 1 | item name | Read-only. Shows the name of the item selected in the list. |
| 2 | ⧉ | Copies the selected item's name to the clipboard. |
Tab 1: Main. Catalogue
| # | Control | What it does |
|---|---|---|
| 3 | Open folder | Opens the selected folder in Explorer. |
| 4 | ↻ | Reads the library folder again and rebuilds the folder list, keeping the selection. |
| 5 | Folder | The sub-folders of the project's library folder that hold a .dwg. Selecting one lists its files. |
| 6 | search box | Filters the file list to the names that contain the typed text, case-insensitively. |
| 7 | X | Clears the search. |
| 8 | File | The .dwg files of the folder, without the extension. Selecting one writes the name into 1 and shows its thumbnail below. Under Only load into dwg the list takes several items (Ctrl or Shift). |
| 9 | 2D | The default: lists the files whose name does not end in -3D or $3D. |
| 10 | 3D | Lists only the files whose name ends in -3D or $3D. |
| 11 | All | Lists every file. |
| 12 | 2D with 3D | Lists the 2D files that have a 3D twin in the same folder. |
| 13 | 2D without 3D | Lists the 2D files that have no 3D twin. |
| 14 | ... | Opens the conversion of inserted 2D blocks to 3D (tooltip "Convert 2D blocks to 3D"). |
| 49 | ? | Note: "Blocks suffixed with "-3D" or "$3D" will be shown." |
| 15 | gerar img. | Shows only when the thumbnail of the selected file cannot be read. It warns that a dynamic block may ask to open in the block editor (answer No), then opens the file, zooms to its extents, saves it and closes it, so the file gets a thumbnail. |
Tab 1: Main. Insert and links
| # | Control | What it does |
|---|---|---|
| 16 | main button | Runs the chosen mode. The caption follows it: Insert along active alignment, Select ref alignment and insert, clicked point (with and rotate after when 23 is ticked), Line mid point, Line extremity, Open, Load or Substitute. With no file selected: "Please select one item". |
| 17 | Reset | Deletes the last inserted item, keeping the reference point and the settings. |
| 18 | Update | Deletes the last inserted item and inserts it again at the same point with the current values. Changing the offset or the displacement (Enter, the spin buttons, ±, X) or the rotation (Enter or the four links) does the same on its own. |
| 19 | Accept | Keeps the last inserted item: a copy stays in place, so the next Reset or Update no longer removes it. |
Tab 1: Main. insertion frame
| # | Control | What it does |
|---|---|---|
| 20 | Point to alignment | Asks for a point (Point:), takes the alignment chosen in 31/32, moves the point along it by Displacement (40), offsets it by Offset (33) and inserts the item turned to the alignment plus Rotation (44). Then asks for the next point, until Esc. Selecting it shows the Alignment insert options frame. |
| 21 | Midpoint | Asks for two points (Line 1st point..., Line 2nd point...) and inserts the item at the middle of that line, as in Point. |
| 22 | Point | The default. Inserts the item at the clicked point, with rotation 0. |
| 23 | Rotate after | Ticked by default. With Point or Midpoint, after the insertion you turn the item on screen about its insertion point. |
| 24 | Open | Does not insert: opens the selected file in the CAD. |
| 25 | Read-only | With Open, opens the file read-only. |
| 26 | Only load into dwg | Brings the definitions of the selected files into the drawing without inserting anything, and confirms "Ok - block(s) Loaded". The file list accepts several items in this mode. |
| 28 | Replace block | Asks for a block in the drawing (Select block...) and puts the selected library file in its place, with the same point, rotation and scale; the old reference is deleted. |
| 29 | Line end | Asks for a curve (Select curve:) and inserts the item at the end nearer the pick, turned to the curve at that end, plus Rotation (44). A non-zero Displacement (40) first lengthens (positive) or shortens (negative) the curve by that value. Shows the Alignment insert options frame. |
| 30 | Recreate | With Line end and a displacement, the curve is redrawn with its new length, keeping its layer, linetype, colour and width. |
| 52 | ? | Note: "Positive value moves off the line, negative back onto it. Recreate redraws the line applying the values." |
The Allows multiple selection text under 26 is a caption, not a control.
Tab 1: Main. Alignment insert options frame
Shown in Point to alignment and Line end.
| # | Control | What it does |
|---|---|---|
| 31 | Active | The alignment is the project alignment nearest the clicked point, within 200 units. Selected, and enabled, whenever the drawing has a project alignment; with none, it is disabled and 32 is selected. A click that finds no alignment: "No alignment was identified through the clicked point (limit = 200)". |
| 32 | Select | The command first asks for a curve (Select curve:) and measures every point of the run from it. |
| 33 | Offset | Perpendicular offset from the alignment: positive to the right, negative to the left of the alignment's direction. Accepts an expression; Enter evaluates it and inserts the last item again. |
| 34 | spin button | Steps the offset by the Step (43) and inserts the last item again. |
| 35 | ℓ | Asks for a point and a distance from it (Distance...) and writes the distance, rounded to two decimals, into 33. |
| 36 | pt | Asks for a point (Point for the offset:) and writes into 33 its distance to the alignment, negative when the point is on the left; then inserts the last item again. |
| 37 | ± | Flips the sign of 33, which moves the item to the other side. |
| 38 | X | Sets 33 to zero. |
| 39 | Detect | The offset is found in the drawing at each click instead of read from 33: from the alignment towards the clicked point, the farthest line, polyline or arc crossed (the road edge, for instance) plus a fixed margin of 4, limited to 50; 9 when nothing is crossed. |
| 40 | Displacement | Moves the point forward (positive) or back (negative) along the alignment before the offset. A point moved past the end of the alignment is refused: "Point not located in alignment". In Line end it is the lengthening of the curve. Not remembered between sessions. |
| 41 | spin button | Steps the displacement by the Step (43) and inserts the last item again. |
| 42 | X | Sets 40 to zero. |
| 43 | Step | 10, 1 (default) or 0.1, or a typed value: the step of the spin buttons 34 and 41. |
| 50 | ? | Note: "Increment for offset and displacement." |
| 44 | Rotation | Degrees added to the alignment's direction. Enter inserts the last item again. |
| 53, 54, 55, 56 | 180, -90, 0, 90 | Write that value into 44 and insert the last item again. Their tooltips read "Opposite orthogonal to the alignment" (180 and −90), "Parallel to the alignment" (0) and "Orthogonal to the alignment" (90). |
| 45 | Detect ±90 on click | At each click, the item goes to the side of the alignment where you clicked, and 44 is set to 90 or −90 accordingly. |
| 51 | ? | Note: "If the side left of the alignment is clicked, it will use a -90 angle, otherwise 90." |
Tab 1: Main. Action and scale
| # | Control | What it does |
|---|---|---|
| 46 | Action | An action typed here, or chosen from the list where the country profile provides one, puts each inserted item on the CapCad item layer of that action (planned, kept, removed, or a layer named after the typed text). Guardrail folders use the guardrail terminal layers. Empty: the item takes the layer of its folder (the horizontal-marking folders, the traffic-signal folder and the supports folder have their own layers) or the current layer. Not remembered between sessions. |
| 47 | Scale | Not used by this version: items are inserted at scale 1. |
Tab 2: Options/Utils
| # | Control | What it does |
|---|---|---|
| 57 | Block batch insert | Runs CAPCAD_BATCH_BLOCK_GRID. |
| 58 | Block batch alignment insert | Runs CAPCAD_BATCH_DEVICE. |
| 59 | Block Divider | Runs CAPCAD_DIVIDER. |
| 60 | Check updates... | Asks "Dwg library will be checked and updated if needed. Proceed?", downloads the library package of the active country profile into the library folder and reloads the lists. |
| 61 | Sync block with library | Asks for a block in the drawing, finds the file of the same name in CapCad's support folder or in the library, and replaces the block's definition in the drawing with it. Not found: "Block not found in dwg library: |
| 62 | Folders configuration... | Opens the project manager on its folders page. |
| 63 | Prepare blocks images... | Warns that the CAD background colour is part of the image and opens the batch script window with the preset that gives each file a thumbnail. |
| 64 | Swap blocks | Opens the block tools on the block-definition swap. |
| 65 | Change action | Asks for an entity and moves it to the CapCad item layer of the action in 48. |
| 48 | action box | The action used by 65, typed or chosen from the list. |
The green notes in the middle of the tab are the form's own text, the rules for building a library: block names must not repeat across the sub-folders; a block must not contain an inner block of the same name; the cfg.xml file inside a folder can add default options for its items.
CAPCAD_DEVICE_INSERT_NEW: the thumbnail grid
The same window, with the file list and the single thumbnail replaced by a grid of thumbnails of the selected folder. Everything else (the modes, the alignment options, the second tab) works as described above, with the same numbers. Opening it closes the list version, and the reverse: only one Dwg Library window is open at a time. On AutoCAD, the list version has a New version button in the tab strip that closes it and opens this one.

The grid version, Main tab. The 2D/3D options sit under the grid.
| # | Control | What it does |
|---|---|---|
| 66 | icon size | Slider for the size of the thumbnails; the size is remembered. |
| 67 | grid | The thumbnails of the folder's files, following the 2D/3D option and the search. A click selects the file (and writes its name into 1); a double-click runs the main button (16). Under Only load into dwg, Ctrl and Shift select several. |
The command-line version
-CAPCAD_DEVICE_INSERT inserts a block on the project alignment without the form:
Block name:: the block name. The last name inserted successfully is offered between<>; Enter accepts it. The block is found by name in the library.- With no project alignment the command stops: "No alignment identified".
Click point OR enter extension value to be run along geometry...: a click, or a station typed as a number, measured along the project alignment.- Only after a typed station:
Lado offset or [Left/Right/Detect]:, the side to offset to. Enter = Detect. After a click the side is always detected from the click. Valor numérico para afastamento do eixo ou [Detectar]:: the offset. Empty, or any answer beginning withD, detects it in the drawing, as box 39 does.
On failure the command line reads Block <name> could not be inserted in eixo <name>.
How the options combine
The figures below show an item measured from an alignment with a curve, with the clicked point always in the same place (the grey dot). Each arrow is the item.
Offset 0, 4 to the right and 4 to the left ("à direita", "à esquerda"): the clicked point drops to the alignment and the item is offset perpendicular to the tangent at that station. In the form, the right is a positive Offset and the left a negative one.
Displacement 0, +8 and −8, with offset 3: the station is moved forward or back along the alignment before the offset is applied, and the direction follows the tangent at the new point.
Remembered between sessions
When the form closes, its options are written to the user preferences and restored the next time it opens: the insertion mode, Rotate after, Read-only, Recreate, the 2D/3D option, the alignment option, Offset, Detect, Step, Rotation and Detect ±90, plus the last folder and the last file selected. Not kept: Displacement, the search text, Action, Scale and the action of the second tab. Active (31) is selected again whenever the drawing has a project alignment.
The command-line version separately keeps the last block name inserted successfully.
Notes
- The sign of the offset is the side. Positive is the right of the alignment's direction, negative the left; ± (37) swaps sides, and pt (36) writes the sign of the side you click.
- Point and Midpoint ignore the alignment. The item goes exactly where you clicked, with rotation 0, and Rotate after lets you turn it.
- Point to alignment repeats. Each click inserts another item with the same settings; Esc ends the run. Update, Reset and Accept act on the last one.
- A block that cannot be inserted. In Point and Midpoint, a file that cannot be inserted shows a message naming it, with a button to open its folder.
- The shortcuts
BVandIIare defined in CapCad'sacad.pgp. If they do not open the form in your installation, type the full command name.