Insert: Blocks, References, Images and Geolocation (2 of 5)
- BSAVEAS
- BLOCKREPLACE
- BREPLACE
- BLOCK
- WBLOCK
- BCLOSEPALETTE
- BCYCLEORDER
- BACTIONSET
- GISQUERY
- COUNT
- GEOCOORD
- EATTEDIT
- BEDIT
- ATTIPEDIT
- XATTACH
BSAVEAS — Save Block As
Saves the edits as a new block and leaves the original unchanged.
- Command:
BSAVEAS· Global name:_BSAVEAS
Saves what was edited in the Block Editor as a new block, with another name and the same base point. The original block stays as it was before editing.
Usage
- In the Block Editor (BEDIT), enter BSAVEAS or click the button.
- Enter the name of the new block; it must not already exist in the drawing.
Enter new block name:
The editor stays open, now with the new block.
Notes
- The editor's undo history starts again with the new block.
- The copy of a dynamic block is a regular block: it does not carry its parameters or actions.
- The name follows the same rules as in BLOCK.
- Outside the Block Editor, the command only shows a message.
See also
BSAVE · BCLOSE · BEDIT · BLOCK · Blocks and attributes
BLOCKREPLACE — Replace Block with Another
Changes every reference of a block to another one (Express Tools).
- Command:
BLOCKREPLACE· Global name:_BLOCKREPLACE - Ribbon: Insert › Block
Changes every reference of a block to another one, like BLOCKREPLACE from the AutoCAD Express Tools.
Usage
- Enter BLOCKREPLACE and the name of the block to replace (
?lists those in the drawing;=lets you select a reference).
Select the block to be replaced or [?/= (select object)]:
- Enter the name of the block that replaces it; Enter accepts the previous one.
Select a block to replace … or [?/= (select object)]:
- Choose whether to purge the old block, which nothing uses any more.
Purge unreferenced items when finished? <Y>:
Notes
- Every reference of the block changes, also those inside other blocks; each one keeps its point, scales, rotation, layer and the values of the attributes with the same tag.
- A block cannot be replaced with one that contains it. The Express Tools do not load in the AutoCAD console: it has a unit test, checked against their documentation.
See also
BREPLACE — Replace Blocks
Replaces the selected block references with another block.
- Command:
BREPLACE· Global name:_BREPLACE - Ribbon: Insert › Block
Replaces the selected block references with another block of the drawing, like AutoCAD BREPLACE.
Usage
- Enter BREPLACE (or select the references first) and select the references to replace; press Enter.
Select block references to replace:
- Enter the name of the block that replaces them (
?lists those in the drawing).
Enter name of replacement block or [?]:
Notes
- Each reference keeps its insertion point, scales, rotation and layer. Its attributes are rebuilt from the definitions of the new block: those with the same tag keep their value and the rest take the default one.
- A reference of a dynamic block becomes a plain reference of the new block.
- In AutoCAD 2027, BREPLACE opens the Blocks palette (and asks to sign in to Autodesk): it cannot be checked in its console and has a unit test. To change every reference of a block, use BLOCKREPLACE.
- When selecting, "n found" counts only block references; anything else is not found, as in AutoCAD.
See also
BLOCKREPLACE · INSERT · COUNT
BLOCK — Create Block
Groups objects into a reusable block.
- Command:
BLOCK· Global name:_BLOCK· Alias:B,ACADBLOCKDIALOG,BMAKE,BMOD - Ribbon: Home › Block
- Ribbon: Insert › Block
- Menu: Insert
- Menu: Draw
Creates a block definition from the selected objects: a named group of objects with a base point that can be inserted as many times as needed with INSERT. If the objects include attribute definitions (ATTDEF), the block asks for their values when it is inserted.
Usage
- Enter BLOCK (or B) or click the button. Objects already selected are used as a starting point.
- In the Block Definition dialog box, enter the name (or pick it from the list to redefine one) and choose: - Base point: its X, Y and Z coordinates, Pick point < to hide the dialog and pick it, or Specify On-screen to pick it after OK. - Objects: Select objects < or Quick Select…, or Specify On-screen to select them after OK. Choose whether they are retained, converted to a block (an insert at the base point) or deleted. - Behavior: Annotative, Match block orientation to layout, Scale uniformly and Allow exploding. - Settings: block units (CLASSICINSERT uses them to convert the scale when inserting into a drawing with other units), Hyperlink: and description.
- If the block exists, its Preview is shown and Open in Block Editor opens it instead of redefining it.
- Click OK and, if you left them on-screen, specify the base point and select the objects.
In scripts, SCRIPT and AutoLISP there is no dialog box: everything is asked on the command line, as in -BLOCK.
Notes
- The name can be up to 255 characters long and contain spaces, but not
< > / \ " : ; ? * | , =or the backquote. - Redefining a block changes its contents and base point, and every insert of it is redrawn, including those nested in other blocks. A block cannot contain itself.
- Attributes are prompted in the order their definitions were created.
- External references, layouts and anonymous blocks cannot be redefined with BLOCK.
- Annotativity, orientation and hyperlink are preserved in the BLOCK_RECORD, in both DWG 2018 and DWG 2000. To change a block without creating it again, use BEDIT. The dialog box cannot be scripted in the AutoCAD console: it has a unit test.
See also
-BLOCK · INSERT · ATTDEF · WBLOCK · BEDIT · QSELECT · Blocks and attributes
WBLOCK — Write Block
Writes a block to a DWG or DXF drawing file.
- Command:
WBLOCK· Global name:_WBLOCK· Alias:W,ACADWBLOCKDIALOG - Ribbon: Insert › Block
- Menu: Insert
Saves a block, the whole drawing or some objects as a new DWG or DXF drawing, to use it in other drawings or in a library folder.
Usage
- Enter WBLOCK (or W) or click the button. Objects already selected are used as a starting point.
- In the Write Block dialog box, choose the source: - Block: one of the blocks of the drawing. - Entire drawing: the whole model space. - Objects: the base point (coordinates or Specify On-screen) and the objects (the selected ones or, with Specify On-screen, those you select after OK), and whether they are retained, converted to a block (a block of the drawing named like the file) or deleted.
- Enter the file name and path (or browse with …) and click OK.
In scripts, SCRIPT and AutoLISP there is no dialog box: everything is asked on the command line, as in -WBLOCK.
Notes
- The contents go to the model space of the new drawing, with the layers, linetypes, styles and nested blocks they use. The base point becomes the drawing's base point (INSBASE).
- The file is saved in the version of the current drawing (DWG 2018 if the current one is older than 2000). If it already exists, it is replaced and a
.bakcopy is left. - As in AutoCAD, the file only carries the blocks, layers, linetypes and styles it uses (the rest is purged, as with PURGE).
- To insert the file into another drawing, enter its path in -INSERT or use Browse… in the INSERT palette. The dialog box cannot be scripted in the AutoCAD console: it has a unit test.
See also
-WBLOCK · BLOCK · INSERT · ADCENTER · Blocks and attributes
BCLOSEPALETTE — Close Authoring Palettes
Closes the Block Authoring Palettes window in the Block Editor.
- Command:
BCLOSEPALETTE· Global name:_BCLOSEPALETTE
Closes the Block Authoring Palettes window in the Block Editor, like AutoCAD BCLOSEPALETTE. It only works in the Block Editor (BEDIT).
Usage
- In the Block Editor, enter BCLOSEPALETTE (or click the window X).
- The palette stays closed, also when the editor is opened again, until BAUTHORPALETTE.
See also
BCYCLEORDER — Insertion Cycling Order
Changes the cycling order of grips for a dynamic block reference.
- Command:
BCYCLEORDER· Global name:_BCYCLEORDER
Changes the cycling order of the grips of the dynamic block being edited, like AutoCAD BCYCLEORDER: when it is inserted in AutoCAD, Ctrl moves the insertion point through those grips in that order. It only works in the Block Editor (BEDIT).
Usage
- In the Block Editor, enter BCYCLEORDER.
- In the Insertion Cycling Order dialog box, choose a grip in the list (its parameter and type), move it with Move Up and Move Down, and with Cycling decide whether it is in the cycle (✔).
- Click OK and save the block with BSAVE.
In scripts, SCRIPT and AutoLISP there is no dialog: the command shows the numbered list and the numbers are typed in the new order, separated by commas, with "-" in front of those left out of the cycle; those not named go after, as they were.
Enter the grip numbers in the new order, separated by commas ("-" in front: out of the cycle):Notes
- It is saved as AutoCAD does: each grip with its order (0, 1, 2…) and whether it is in the cycle.
- LinceCAD INSERT does not move the insertion point through the grips yet: the order is for AutoCAD.
See also
BEDIT · BPARAMETER · BATTORDER
BACTIONSET — Action Selection Set
Specifies the selection set of objects associated with an action in a dynamic block definition.
- Command:
BACTIONSET· Global name:_BACTIONSET
Selects again the objects of an action of the dynamic block being edited, like AutoCAD BACTIONSET; for stretch actions, also its frame. It only works in the Block Editor (BEDIT).
Usage
- In the Block Editor, enter BACTIONSET and specify the action (a point next to its name).
Specify action object:
- If the action stretches (Stretch or Polar Stretch), the new frame: two corners or CPolygon.
Specify first corner of stretch frame or [CPolygon]:
- New (Enter) selects the whole set; Modify starts from the current one.
Specify selection set for action object [New/Modify] <New>:
- With Modify, select what is added; Remove switches to removing and Add back to adding. Enter finishes.
Select object to add to action set or [Remove]:
Notes
- It is what an action created from a parameter set of BAUTHORPALETTE needs, since it has no objects.
- As in BACTION, a window also takes the parameters inside it (so the action carries the base point) and the action's own parameter does not go in. The lookup action has no selection set.
- In the polar stretch, the objects that only rotate are kept.
- A base point that leaves the selection stays linked to the action in the graph (links are not removed).
- The order of the prompts (frame before New/Modify) could not be checked against AutoCAD: its Block Editor does not exist in the console.
See also
BACTION · BAUTHORPALETTE · BPARAMETER · BEDIT
GISQUERY — Attribute Query
Selects or isolates the objects whose object data meet a condition.
- Command:
GISQUERY· Global name:_GISQUERY - Ribbon: Mapping › GIS Analysis
- Menu: Mapping
Attribute query: selects or isolates the objects whose object data (the fields of what was imported with MAPIMPORT) meet a condition, such as “USE = Residential AND AREA > 500”. Queries can be saved by name in the drawing and run again.
Usage
- Enter GISQUERY or click the button. The Attribute Query dialog box opens and, at the same time, the command line asks.
Expression (FIELD = value AND FIELD > value…) or [Run/List/Delete]:
- In the dialog box, choose field, operator and value and click Add; for another condition, AND… or OR…. You can also type the expression. The dialog box shows how many features meet it.
- Click Select (they stay selected for the next command) or Isolate (the rest is hidden, as with ISOLATEOBJECTS; UNISOLATEOBJECTS shows it again).
Action [Select/Isolate/Save] <Select>:
Expressions
- Each condition is
FIELD operator value. Operators:=,<>(or≠,!=),<,>andcontains(or~). - If the value stored and the value given are numbers (with decimal comma or point), they are compared as numbers; otherwise as text, ignoring case. If the feature lacks the field, the condition is not met.
- Conditions are joined with
AND(Y) andOR(O);ANDgoes beforeOR. - The value may contain spaces without quotes. Quote it if it contains
AND,ORor an operator.
Saved queries
- In the dialog box: type a Name and click Save; under Queries saved in the drawing, Load puts it in the expression and Delete removes it from the drawing.
- On the command line: the Save action asks for the name; Run, List and Delete work with saved queries.
Name to save the query as:
- They are stored in the DWG (
LINCE_CONSULTAS_SIGdictionary, one record per query) and UNDO undoes them.
Notes
- The whole model space is queried. There are no spatial queries (inside, near) or queries on object properties: for those, use QSELECT and FILTER.
See also
COUNT — Count Blocks
Counts the block references in an area.
- Command:
COUNT· Global name:_COUNT - Ribbon: Insert › Block
Counts the block references in an area, with the AutoCAD 2027 COUNT prompts, and writes how many there are of each block.
Usage
- Enter COUNT and choose the area: specify its two corners or an option.
Specify first corner of count area or [Current area/Entire model space/Object/Polygonal] <Current area>:
- Select references of the blocks to count and press Enter, or press Enter to count them all.
Select target objects or [List all blocks] <List all blocks>:
Options
- Current area and Entire model space: the whole model space.
- Object: what is inside a closed object (polyline, circle...).
- Polygonal: what is inside a polygon; specify its points and press Enter.
Notes
- A reference is counted if its insertion point lies inside the area. Dynamic blocks count as their definition, whatever their state.
- Current area counts the whole model space (in AutoCAD, what is visible in the viewport). AutoCAD shows the result in the Count palette (with table and fields); LinceCAD writes it on the command line. It cannot be scripted in the AutoCAD console (it opens the palette): it has a unit test.
See also
GEOCOORD — Geographic Coordinates
Shows a point in another coordinate system.
- Command:
GEOCOORD· Global name:_GEOCOORD - Ribbon: Insert › Geolocation
- Ribbon: Mapping › Geolocation
- Menu: Insert
- Menu: Mapping
Shows the coordinates of a point of the drawing in another coordinate system: by default, its latitude and longitude in WGS84. It works like ID, but for geographic coordinates.
Usage
- Enter GEOCOORD or click the button.
- Specify the point (with an object snap or by typing its coordinates).
Specify point or [System] <EPSG:…>:
The command line shows the point's coordinates in the drawing's system and in the target system.
Options
- System (S): changes the target system. Enter its EPSG code or its AutoCAD code.
EPSG code of the target system <…>:
Notes
- The drawing needs its coordinate system (GEOGRAPHICLOCATION); if it has none, the command warns.
- In a geographic system, latitude and longitude are shown in degrees; in a projected one, X and Y in meters.
- Any system of the catalog can be used (over 300; see the table in Georeferencing). If the target has another datum, the accuracy is that of the datum shift given there.
- With the drawing's system set, the status bar always shows the cursor's latitude and longitude.
See also
EATTEDIT — Enhanced Attribute Editor
Edits the attributes of the selected block in a window.
- Command:
EATTEDIT· Global name:_EATTEDIT - Ribbon: Insert › Attributes
- Menu: Insert
Edits in a window, Enhanced Attribute Editor, the attribute values of an inserted block: one row per attribute, with its tag and its value.
Usage
- Select a block with attributes.
- Enter EATTEDIT or click the button. The window opens with its attributes.
- Change the values you want and click OK; Cancel closes without changes.
Notes
- If no block with attributes is selected, the command moves to the command line and asks like ATTEDIT.
- The window only changes values. Prompts, default values and modes are changed in the definition with BATTMAN.
- The change is undone with UNDO.
See also
BEDIT — Block Editor
Opens a block definition in the Block Editor.
- Command:
BEDIT· Global name:_BEDIT· Alias:BE - Ribbon: Home › Block
- Ribbon: Insert › Block
- Menu: Insert
Opens a block definition in the Block Editor. Its contents are edited as if they were a drawing, with every command, object snap and grip; when it is saved, every insert of the block is updated.
Usage
- Enter BEDIT (or BE) or click the button. Double-clicking a block without attributes also opens it.
- In the Edit Block Definition dialog box, choose the block in the list (its preview and description are shown) and click OK. If a block was selected, it is already chosen.
- Edit the block. The background changes color, the bottom bar shows "Block Editor: …" and the ribbon switches to the Block Editor tab.
- Save with BSAVE or BSAVEAS and leave with BCLOSE.
Notes
- Point 0,0 in the editor is the block's base point.
- External references, layouts and anonymous blocks cannot be edited.
- On entering, the authoring palette (BAUTHORPALETTE) opens with the parameters, actions and parameter sets of dynamic blocks; they are also created with BPARAMETER and BACTION, and tested with BTESTBLOCK.
- Inside the editor you cannot use BEDIT or PURGE, or switch between model and paper space.
- After closing, the whole editor session is undone with a single UNDO.
- Saving the file while the editor is open saves the drawing without the block's pending changes.
- In scripts, BEDIT asks for the name like -BEDIT.
See also
-BEDIT · BAUTHORPALETTE · BSAVE · BCLOSE · BLOCK · Blocks and attributes
ATTIPEDIT — Edit Attribute In Place
Changes the value of an attribute selected in the drawing.
- Command:
ATTIPEDIT· Global name:_ATTIPEDIT· Alias:ATI - Ribbon: Insert › Attributes
Changes the value of an attribute by selecting it in the drawing, like AutoCAD ATTIPEDIT.
Usage
- Enter ATTIPEDIT (or ATI) and click the text of the attribute.
Select attribute to edit:
- Enter the new value (Enter leaves it as it was).
Enter new value <…>:
Notes
- AutoCAD opens the text editor over the attribute; LinceCAD asks for the value on the command line. The attribute picked is the one nearest to the click, using an approximate text box (without the font metrics).
- To change several attributes at once, use EATTEDIT, ATTEDIT or -ATTEDIT. It cannot be scripted in the AutoCAD console (it opens the in-place editor): it has a unit test.
See also
XATTACH — Attach DWG
Attaches a DWG or DXF drawing as an external reference.
- Command:
XATTACH· Global name:_XATTACH· Alias:XA - Ribbon: Insert › Reference
Attaches another DWG or DXF drawing as an external reference: it is shown in place inside the current drawing, but it is not copied. The drawing only stores the file path and reads the file again each time it is opened.
Usage
- Enter XATTACH (or XA), or click Attach DWG… in the XREF window.
- Enter the file path, or press Enter to choose it in a file dialog.
Enter name of file to attach or [Browse] <Browse>:
- Specify the insertion point (Enter: the origin).
Specify insertion point or [Overlay/pathType]:
- Enter the X scale; Enter keeps 1.
Enter X scale factor <1>:
- Enter the Y scale; Enter uses the same as X.
Enter Y scale factor <use X scale factor>:
- Enter the rotation angle, or specify a point in that direction.
Specify rotation angle <0>:
In the interface (not in scripts, SCRIPT or AutoLISP), after choosing the file the Attach External Reference dialog box opens: the reference type (attachment or overlay), the path type and the insertion point, X, Y and Z scale and rotation; whatever you leave as Specify On-screen is specified afterwards, with the prompts of steps 3 to 6. The dialog box cannot be scripted in the AutoCAD console: it has a unit test.
Options
- Overlay (O): the reference is overlaid instead of attached. An overlay is not shown in the drawings that attach this one. The prompt then offers Attach (A) to switch back.
Specify insertion point or [Attach/pathType]:
- pathType (T): chooses how the file path is saved. Enter keeps the value of REFPATHTYPE.
Path type [Full/Relative/No path] <Relative>:
- Full (F), Relative (R) or No path (N): the full path, a path relative to the drawing's folder, or just the file name (looked for in the drawing's folder). If the drawing has not been saved yet or the file is on another drive, the relative path is saved as a full one.
Notes
- The layers of the attached drawing appear as
reference|layer. Their color or visibility changes are kept when it is reloaded if VISRETAIN is 1. - If the reference is already defined in the drawing, the same one is inserted again. A file that is already a normal block of the drawing is not attached, nor one that attaches (directly or indirectly) the current drawing: that would be a circular reference.
- Its content is drawn somewhat faded, according to XFADECTL, to tell it apart from your own objects.
- For a PDF, use PDFATTACH; for an image, IMAGEATTACH.
See also
XREF · -XREF · XCLIP · INSERT · External references
Download LinceCAD Manual contents
Download the free 30-day trial · Open and edit DWG files · AutoCAD LT alternative
Coming from AutoCAD? Check what is compatible · Linux CAD with native DWG