Insert: Blocks, References, Images and Geolocation (1 of 5)
- -ATTEXT
- -BLOCK
- -WBLOCK
- -BEDIT
- -REFEDIT
- -DATAEXTRACTION
- -IMAGE
- -INSERT
- -MAPCLEAN
- -PDFATTACH
- -XREF
- MAPREFRESH
- ATTEDIT
- EATTEXT
- ATTDISP
- BCLOSE
- BSAVE
-ATTEXT — Extract Attributes with Template
Writes the attributes to a CDF, SDF or DXF file, like AutoCAD -ATTEXT.
- Command:
-ATTEXT· Global name:_-ATTEXT
Writes the block attributes to a file with a field template, like AutoCAD 2027 -ATTEXT.
Usage
- Enter -ATTEXT and the format. With Objects you select the blocks first; otherwise every block with attributes in model space is extracted.
Enter extraction type or enable object selection [Cdf/Sdf/Dxf/Objects] <C>:
- In CDF and SDF, enter the template path (Enter: the previous one).
Enter template file name:
- Enter the extract file (without extension:
.txt, or.dxxin DXF).
Enter extract file name:
Template
One line per field: the name and its format, C (text) or N (number), with 3 digits of width and 3 of decimals. The names are the attribute tags or the block ones: BL:NAME, BL:LAYER, BL:HANDLE, BL:X, BL:Y, BL:Z, BL:ORIENT, BL:XSCALE, BL:YSCALE, BL:ZSCALE, BL:XEXTRUDE, BL:YEXTRUDE, BL:ZEXTRUDE, BL:LEVEL and BL:NUMBER.
BL:NAME C010000 BL:X N010003 DOOR C008000
Options
- Cdf: fields separated by commas; texts in single quotes and numbers with a leading space, like AutoCAD.
- Sdf: fixed-width columns (texts left-aligned and numbers right-aligned).
- Dxf: a DXF with the references and their blocks (the AutoCAD DXX only carries the references and their attributes).
Notes
- Every block that has some attribute of the template is a record;
BL:LEVELandBL:NUMBERare 1 (nested blocks are not walked).
See also
-BLOCK — Create Block (command line)
Creates a block on the command line, like AutoCAD -BLOCK.
- Command:
-BLOCK· Global name:_-BLOCK· Alias:-B
Creates a block on the command line, with the same prompts as AutoCAD 2027 -BLOCK. This is what BLOCK does in scripts, SCRIPT and AutoLISP.
Usage
- Enter -BLOCK (or -B) and the block name. Enter
?to list the blocks in the drawing.
Enter block name or [?]:
- If a block with that name already exists, confirm whether to redefine it.
Block "…" already exists. Redefine it? [Yes/No] <N>:
- Specify the base point (or an option).
Specify insertion base point or [Annotative/MOde]:
- Select the objects and press Enter: the block is created and the objects are left according to the mode.
Select objects:
Options
- MOde: what to do with the selected objects. It is kept for the next blocks (when LinceCAD starts it is Convert to block).
Choose mode for converting selected objects [Convert to block/Retain/Delete] <…>:
- Convert to block: replaces the objects with an insert of the block at the base point.
- Retain: leaves the objects as they were.
- Delete: deletes the objects from the drawing.
- Annotative: its prompts are accepted so AutoCAD scripts keep working, but the block is not annotative yet.
Create annotative block [Yes/No] <Y>:
See also
-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] <…>:
See also
-BEDIT — Block Editor (command line)
Opens the Block Editor asking for the block name at the command line.
- Command:
-BEDIT· Global name:_-BEDIT· Alias:-BE
Opens the Block Editor asking for the block name on the command line, without a dialog box. This is the BEDIT used in scripts.
Usage
- Enter -BEDIT (or -BE).
- Enter the block name (it may contain spaces), or
?to see the list of blocks that can be edited.
Enter block name or [?]:
Notes
- The same limitations as BEDIT: external references, layouts and anonymous blocks cannot be edited.
- In a script, BCLOSE saves pending changes without asking.
See also
BEDIT · BSAVE · BCLOSE · SCRIPT · Blocks and attributes
-REFEDIT — Edit Reference In-Place (command line)
Edits a block in place, like AutoCAD -REFEDIT.
- Command:
-REFEDIT· Global name:_-REFEDIT
Edits a block in place from the command line, like AutoCAD 2027 -REFEDIT: the same prompts as REFEDIT.
Usage
- Enter -REFEDIT and select a block reference.
Select reference:
- Accept the nesting level, the method (All) and whether attribute definitions are shown.
Enter object selection method [All/Nested] <All>:
- Edit and finish with REFCLOSE.
See also
-DATAEXTRACTION — Data extraction (command line)
Extracts object data to a table or CSV from the command line.
- Command:
-DATAEXTRACTION· Global name:_-DATAEXTRACTION
Extracts object data from the command line, like DATAEXTRACTION without the dialog.
Usage
- Select the objects (Enter: the whole model space), choose the output (Table or File) and give the CSV file or the table point.
Select blocks or [ALL] <ALL>: Output [Table/File] <Table>:
Notes
- The prompts are LinceCAD's own: -DATAEXTRACTION is unknown in the AutoCAD console and could not be compared. No .dxe/.dxex templates.
See also
-IMAGE — Image (command line)
Lists, detaches, reloads, unloads or changes the path of the images of the drawing.
- Command:
-IMAGE· Global name:_-IMAGE· Alias:-IM
Manages on the command line the images attached to the drawing: lists, detaches, changes the path of, reloads or unloads them. Images are given by the name of their definition (usually the file name).
Usage
- Enter -IMAGE.
- Choose the option.
Enter image option [?/Detach/Path/Reload/Unload/Attach/Show] <Attach>:
- Enter the image names separated by commas, or
*(or Enter) for all of them.
Enter list of images to detach:
- With Path, enter the new path or
~to choose it in a dialog box.
Enter new path:
Options
- ?: lists the images with their status (Found, Not found or Unloaded), size in pixels and saved path.
- Detach (D): erases the images and their definition from the drawing.
- Path (P): changes the file path, for example when it has been moved.
- Reload (R): reads the file again (if it has changed) and reloads unloaded images.
- Unload (U): stops showing the image without removing it from the drawing; only its frame is shown.
- Attach (A): attaches a new image, like IMAGEATTACH. This is the default.
Notes
See also
-INSERT — Insert (command line)
Inserts a block or a drawing asking at the command line.
- Command:
-INSERT· Global name:_-INSERT· Alias:-I - Ribbon: Insert › Block
- Menu: Insert
Inserts a block or a drawing asking everything on the command line, without opening the Blocks palette. This is the INSERT used in scripts. It asks the same questions, in the same order, as -INSERT in AutoCAD 2027.
Usage
- Enter -INSERT (or -I).
- Enter the block name; Enter uses the last one inserted. A DWG or DXF path also works (
C:\plans\door.dwg),name=pathto give it another name,~to pick the file in a dialog box or?to list the blocks.
Enter block name or [?]:
- Specify the insertion point. The block follows the cursor.
Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate/Explode/REpeat]:
- Enter the X scale factor or specify the opposite corner: with a point, X and Y are the sides of the rectangle from the insertion point.
Enter X scale factor, specify opposite corner, or [Corner/XYZ] <1>:
- Enter the Y scale factor; Enter uses the X one.
Enter Y scale factor <use X scale factor>:
- Enter the rotation angle in degrees or specify a point in the desired direction.
Specify rotation angle <0>:
- If the block has attributes, enter the value of each one; Enter keeps the default value.
Options
Before specifying the point (the block already moves with that size or rotation, and it is not asked again later):
- Scale: the same factor for X, Y and Z.
Specify scale factor for XYZ axes <1>:
- X, Y, Z: the factor of one axis (the others, 1).
- Rotate: the rotation angle.
- Explode: asks whether the block is inserted exploded into its objects.
Explode block [Yes/No] <Yes>:
- ?: lists the blocks of the drawing that match the name (wildcards allowed) and ends.
Enter block(s) to list <*>:
- With ATTREQ = 0 the attributes are not asked: they take their default value.
- REpeat: after each block it asks for the point again, until Enter or Esc.
When asking for the X scale:
- Corner: the scale is given with the opposite corner.
- XYZ: asks for X, Y and Z separately.
Notes
- The scale cannot be 0.
- The Basepoint option is not available yet: insert with the block base point and move it afterwards.
- An inserted drawing is copied as a block named after the file, with its layers, linetypes, styles and blocks. If a block with that name already exists, the existing one is used.
- The preview shows at most 2000 objects of the block.
See also
INSERT · BLOCK · WBLOCK · SCRIPT · Blocks and attributes
-MAPCLEAN — Drawing Cleanup (command line)
Cleans map data with the options on the command line.
- Command:
-MAPCLEAN· Global name:_-MAPCLEAN
Command-line version of MAPCLEAN: cleans map data with the actions and tolerances typed in, without a dialog box. Use it in scripts and in AutoLISP.
Usage
- Enter -MAPCLEAN.
- Select the objects and press Enter, or choose laYers (Y) and enter the layers.
Select objects or [laYers]:
- The prompt shows the active actions with their tolerance. Enter the option you want to change and press Enter to clean.
Actions: …. Enter one to change it [Duplicates/sHort/Extend/Break/sNap/Pseudo-nodes/sImplify/Close/Zero length/Mark/eXit] <eXit>:
Options
- Duplicates (D), sHort (H), Extend (E), sNap (N), sImplify (I) and Close (C): enter the tolerance to turn the action on with that value, or No to skip it.
…: tolerance or [No] <…>:
- Break (B), Pseudo-nodes (P) and Zero length (Z): Yes or No.
- Mark (M): mark the errors only, on layer
LIMPIEZA_ERRORES, without changing anything. - eXit (X) or Enter: cleans.
Notes
- The actions, their order and their defaults are those of MAPCLEAN. They start with those values every time.
- In a script,
-MAPCLEAN·Y·PARCELS·E·0.1·I·0.02· Enter cleans layer PARCELS extending up to 10 cm and simplifying to 2 cm.
See also
-PDFATTACH — Attach PDF (command line)
Attaches a page of a PDF file as an underlay, without dialog boxes.
- Command:
-PDFATTACH· Global name:_-PDFATTACH
Attaches a page of a PDF as an underlay answering everything on the command line, for scripts and AutoLISP. It does the same as PDFATTACH with the same prompts.
Usage
- Enter -PDFATTACH.
- Enter the PDF path (in quotes if it has spaces). Enter or
~open the file dialog.
Enter path to PDF file to attach or [Browse] <Browse>:
- Enter the page number;
?lists them.
Enter page number or [?] <1>:
- Specify the insertion point (the lower-left corner of the page).
Specify insertion point:
- Enter the scale.
Specify scale factor <1>:
- Enter the rotation angle.
Specify rotation <0>:
Example
In a script, -PDFATTACH followed by C:\plans\floor.pdf, 2, 0,0, 1 and 0 attaches page 2 at the origin, at scale 1 and without rotation.
Notes
- A page that does not exist, or a file that is not a readable PDF, is rejected and the prompt is repeated.
See also
-XREF — External References (command line)
Lists, binds, detaches, unloads, reloads or changes the path of the external references.
- Command:
-XREF· Global name:_-XREF· Alias:-XR
Manages external references from the command line: lists them, binds them to the drawing, detaches, unloads or reloads them, changes their path or attaches another one. It does the same as the buttons of the XREF window, and it can be used in scripts and AutoLISP.
Usage
- Enter -XREF (or -XR).
- Choose an option; Enter attaches another reference, like XATTACH.
Enter an option [?/Bind/Detach/Path/pathType/Unload/Reload/Overlay/Attach/Show] <Attach>:
- Enter the names of the references (each option asks with its own prompt, with no default). Wildcards are accepted:
*all of them,?one character, and several names separated by commas. If none has that name: "No matching Xref names found.".
Options
- ?: lists the references that match the name, with their type (attached or overlay) and path, in columns as AutoCAD does.
Enter xref(s) to list <*>:
- Bind (B): turns the reference into a normal block of the drawing, with all its content and that of its nested references. With BINDTYPE = 0 its layers, styles and blocks are renamed
ref$0$name; with 1 they keep their names (if one already exists, the drawing's own is used).
Enter xref name(s) to bind:
- Detach (D): removes the reference and all its inserts. It also removes PDF underlays.
Enter xref(s) to detach:
- Unload (U) and Reload (R): stop showing the reference without removing it, or read it again from disk. They also work with PDF underlays.
Enter xref name(s) to unload:
- Path (P): changes the saved path of each reference; it shows the old path and, if it changes, reloads it.
~opens the dialog to choose the file.
Edit path for which xref(s): Enter new path:
- pathType (T): saves the path of the loaded references as full, relative or just the file name and says how many were changed (a relative path is not possible in an unsaved drawing).
Enter xref name(s) to edit path type: Enter new path type [Full/Relative/None]:
- Show (S): in AutoCAD it shows hidden references again; LinceCAD does not hide them, so it only checks the name.
- Attach (A) and Overlay (O): attach or overlay another drawing (see XATTACH).
Notes
- Nested references are not bound, detached or unloaded on their own: they are managed from the one that contains them.
- The bound result matches what AutoCAD does: the drawing can be opened there without the reference.
- Everything can be undone with UNDO.
See also
XREF · XATTACH · XCLIP · PDFATTACH · External references
MAPREFRESH — Refresh map
Requests the map layers again for the visible area.
- Command:
MAPREFRESH· Global name:_MAPREFRESH - Ribbon: Mapping › Map services
- Menu: Mapping
Requests the map layers again for the visible area, at screen resolution. It is the Refresh in this area of the ONLINEMAPS manager.
Use
- Type MAPREFRESH. Enter refreshes the layer chosen in the manager (or the only one); All refreshes all of them.
Notes
- The download runs in the background: the previous image stays visible meanwhile.
- Layers with Automatic checked refresh by themselves after panning or zooming.
See also
ATTEDIT — Edit Attributes
Changes the attribute values of a block.
- Command:
ATTEDIT· Global name:_ATTEDIT· Alias:ATE,DDATTE - Ribbon: Insert › Attributes
Changes on the command line the values of the attributes of an inserted block.
Usage
- Enter ATTEDIT (or ATE). Double-clicking a block with attributes also starts it.
- Select the block. If it was already selected, that one is used.
Select block reference:
- For each attribute, in order, enter the new value or press Enter to keep the current one.
Enter new value for … <…>:
The changes are applied when the last attribute is answered.
Notes
- If several objects are selected, the first block with attributes is edited.
- Only the value changes; position, height and modes stay as they were. To change the attribute definitions, use BATTMAN.
- To edit the values in a window, use EATTEDIT.
- It opens its dialog box; in scripts, AutoLISP and the API it is used from the command line.
See also
EATTEXT — Attribute Extraction
Opens the Data Extraction wizard to extract block attributes to a table or a file.
- Command:
EATTEXT· Global name:_EATTEXT - Ribbon: Insert › Attributes
Extracts block attributes to a table in the drawing or to a file with the Data Extraction wizard, like AutoCAD EATTEXT.
Usage
- Enter EATTEXT. The DATAEXTRACTION wizard opens with the selection (or with the current drawing).
- In Select Objects, choose Blocks only and Only blocks with attributes to keep the blocks with attributes; in Select Properties, tick the attributes and the other columns.
- Choose the output (table in the drawing or CSV or TXT file) and click Finish.
In scripts, SCRIPT and AutoLISP there is no wizard: it is ATTEXT.
Notes
- The pages and options are those of DATAEXTRACTION, including the
.lxetemplate. For ATTEXT template formats (CDF, SDF, DXX), use ATTEXT or -ATTEXT.
See also
DATAEXTRACTION · ATTEXT · -ATTEXT · BATTMAN
ATTDISP — Attribute Display
Shows or hides block attributes.
- Command:
ATTDISP· Global name:_ATTDISP - Ribbon: Insert › Attributes
Shows or hides block attributes in the whole drawing, like AutoCAD ATTDISP. It changes the ATTMODE variable and redraws the blocks.
Usage
- Enter ATTDISP.
- Choose the visibility.
Enter attribute visibility setting [Normal/ON/OFF] <…>:
Options
- Normal (ATTMODE 1): each attribute is shown according to its Invisible mode.
- ON (ATTMODE 2): all are shown, also the invisible ones.
- OFF (ATTMODE 0): none is shown.
See also
BCLOSE — Close Block Editor
Closes the Block Editor and returns to the drawing.
- Command:
BCLOSE· Global name:_BCLOSE· Alias:BC
Closes the Block Editor and returns to the drawing. It can also be closed with the button on the editor's bottom bar.
Usage
- In the Block Editor (BEDIT), enter BCLOSE or click the button.
- If there are unsaved changes, choose whether to save them:
Save changes to "…"?
- Yes: saves the block, like BSAVE, and closes.
- No: closes without saving what changed since the last BSAVE.
- Cancel: stays in the editor.
Notes
- The whole editor session (every BSAVE) is undone at once with UNDO.
- Without dialog boxes (scripts, SCRIPT, LISP, the API or FILEDIA set to 0) and with unsaved changes, it asks on the command line:
Enter an option [Save/Discard changes] <Save>:
Save (or Enter) saves the block and closes; Discard closes without saving. A script that closed this way must add the answer on the next line.
- Outside the Block Editor, the command only shows a message.
See also
BSAVE — Save Block
Saves the definition of the block being edited.
- Command:
BSAVE· Global name:_BSAVE· Alias:BS
Saves the definition of the block being edited in the Block Editor. Every insert of the block is redrawn with the new contents, including those nested in other blocks and those of a dynamic block.
Usage
- In the Block Editor (BEDIT), enter BSAVE or click the button on the Block Editor tab.
- If the block's attributes have changed and it has inserts, you are asked whether to synchronize them:
The attributes of "…" changed. Synchronize its … references (ATTSYNC)?
The editor stays open; you can keep editing and save again.
Notes
- If the attributes are not synchronized now, it can be done later with ATTSYNC.
- The block cannot contain itself, either directly or through another block: in that case it is not saved.
- New objects in a dynamic block with visibility states are visible in every state.
- Saving the block does not save the file: do that afterwards with QSAVE or SAVEAS.
- Outside the Block Editor, the command only shows a message.
See also
BSAVEAS · BCLOSE · BEDIT · ATTSYNC · Blocks and attributes
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 · CAD with a perpetual license