Insert: Blocks, References, Images and Geolocation (3 of 5)
- BVSTATE
- ATTEXT
- BATTMAN
- IMAGEADJUST
- IMAGECLIP
- IMAGEEDIT
- GEOIMAGE
- GEOREFIMAGE
- IMAGEPERSP
- IMAGEPAINT
- IMAGECROP
- DGNIMPORT
- MAPIMPORT
- CLASSICINSERT
BVSTATE — Visibility States
Creates, renames, deletes and orders the visibility states of the block.
- Command:
BVSTATE· Global name:_BVSTATE· Alias:BVS
Manages the visibility states of the dynamic block being edited, like AutoCAD BVSTATE. It only works in the Block Editor of a block with a visibility parameter (BVPARAM).
Usage
- In the Block Editor, enter BVSTATE (or BVS). In the Visibility States dialog box, pick a state and click New…, Rename… (the name is typed on the command line), Delete, Move Up or Move Down; Close finishes.
- Save the block with BSAVE.
In scripts, SCRIPT and AutoLISP there is no dialog box: the option and the state are asked.
Enter an option [New/Set/Delete]:
Notes
- A new state starts with every object of the parameter visible. Choosing what is visible in each state inside the editor (the AutoCAD current state) is not available yet: define them when creating the parameter. The order is the one of the Properties palette list. The dialog box cannot be scripted in the AutoCAD console: it has a unit test.
- Set current shows only the objects of that state in the editor while the command lasts; when it ends, or when it is cancelled with Esc, everything is visible again.
See also
BVPARAM · BPARAMETER · BEDIT
ATTEXT — Extract Attributes
Extracts block attributes to a file (CDF, SDF, DXX or CSV) or a table.
- Command:
ATTEXT· Global name:_ATTEXT· Alias:DDATTEXT - Ribbon: Insert › Attributes
- Menu: Insert
Extracts the attribute values of blocks to an extraction file (CDF, SDF or DXX), to a CSV file that opens in a spreadsheet or to a table in the drawing. It is useful for door, device or luminaire schedules.
Usage
- Enter ATTEXT or click the button. The Attribute Extraction dialog box opens, like AutoCAD ATTEXT. To also output the other objects (count, layer, length and area), use DATAEXTRACTION.
- Choose the File format.
- With Select objects <, the dialog box hides to select the blocks and comes back with Enter. Without selecting, the blocks with attributes in model space are taken (or those selected before starting).
- With CDF or SDF, give the Template file; with everything but the table, the Output file.
- Click OK. With the table, specify its upper-left corner.
Upper-left corner of the table:
Formats
- Comma delimited (CDF) and Fixed-width columns (SDF): one line per block with the fields of the template, as in -ATTEXT. The template has one line per field,
NAME Cwwwddd(text) orNAME Nwwwddd(number), withBL:NAME,BL:X,BL:Y,BL:LAYER… or an attribute tag. - DXF interchange format (DXX): a DXF with the selected blocks (
.dxxextension). - CSV for spreadsheets and Table in the drawing: the block name, the X and Y coordinates of its insertion point and one attribute tag per column, in the order they appear. The table is titled "Block Attributes".
The extension of the output file follows the format (.txt, .dxx or .csv).
Command line
In scripts, SCRIPT and AutoLISP there is no dialog box:
Select blocks or [ALL] <ALL>: Output [Table/File] <Table>:
- ALL (ALL): every block with attributes in model space.
- Table (T): the table; specify its upper-left corner.
- File (F): a comma-separated CSV file (tab-separated if it ends in
.txt).
CSV file:
Notes
- In scripts, SCRIPT or LISP, or with FILEDIA = 0, it asks on the command line like -ATTEXT, as AutoCAD ATTEXT does.
- If the CSV path does not end in
.csvor.txt,.csvis added. The file has a UTF-8 mark so that the spreadsheet reads accented characters correctly. - The table is created with the current text height and is edited like any other table (TABLE).
See also
-ATTEXT · ATTDEF · BATTMAN · TABLE · Blocks and attributes
BATTMAN — Block Attribute Manager
Changes the order, prompt, default value and modes of a block's attributes.
- Command:
BATTMAN· Global name:_BATTMAN - Ribbon: Insert › Attributes
- Menu: Insert
Opens the Block Attribute Manager: it changes the attribute definitions of a block (their order, prompt, default value and modes) and applies the changes to all its inserts.
Usage
- Enter BATTMAN or click the button. If a block with attributes is selected, it opens with that block; otherwise, with the first one in the drawing.
- Choose another block in Block: if needed. Below it you can see how many inserts it has.
- Change in the table the Prompt, the Default and the Modes: I (Invisible), C (Constant), V (Verify) and P (Preset).
- Click a tag to choose its row and use Move Up, Move Down or Remove.
- Click Synchronize to apply the changes without closing, or OK to apply them and close.
Notes
- When applying, every insert of the block rebuilds its attributes from the definition and keeps the values it had (new attributes take the default value). This is what ATTSYNC does.
- The order of the table is the order in which INSERT asks for the values.
- The tag cannot be changed here. A constant attribute has no prompt.
- The change is undone with UNDO.
See also
ATTDEF · ATTSYNC · EATTEDIT · BEDIT · Blocks and attributes
IMAGEADJUST — Image Adjust
Changes the brightness, contrast and fade of images.
- Command:
IMAGEADJUST· Global name:_IMAGEADJUST· Alias:IAD - Ribbon: Insert › Image and tracing
Changes the brightness, contrast and fade of one or more raster images, for example to lighten an orthophoto so that what is drawn on top reads well.
Usage
- Enter IMAGEADJUST (or IAD) or click the button.
- Select the images and press Enter (anything that is not an image is ignored).
Select images:
- Choose what to adjust. The current value is shown.
Enter image option [Contrast/Fade/Brightness] <Brightness>:
- Enter the value, from 0 to 100 (Enter keeps the current one).
Enter … value (0-100) <…>:
Options
- Brightness (B): 50 is the original; lower darkens and higher lightens.
- Contrast (C): 50 is the original; lower flattens the tones and higher spreads them apart.
- Fade (F): 0 is the original; higher blends the image with the background.
Notes
- Each run changes a single setting; repeat the command for the others.
- The setting is saved in each image, as in AutoCAD, and the image file does not change.
- The result is close to AutoCAD's, but the formulas are LinceCAD's own and tones may differ slightly.
See also
IMAGECLIP — Image Clip
Shows only part of an image, inside or outside a boundary.
- Command:
IMAGECLIP· Global name:_IMAGECLIP· Alias:ICL - Ribbon: Insert › Image and tracing
Shows only part of a raster image: what lies inside a rectangular or polygonal boundary or, with the boundary inverted, what lies outside. The image itself does not change: the boundary can be turned off or removed later.
Usage
- Enter IMAGECLIP (or ICL) or click the button.
- Select the image.
Select image to clip:
- Choose the option; Enter creates a new boundary.
Enter image clipping option [ON/OFF/Delete/New boundary] <New>:
- Choose the boundary type.
Outside mode - Objects outside boundary will be hidden. Specify clipping boundary or select invert option: [Select polyline/Polygonal/Rectangular/Invert clip] <Rectangular>:
- For a rectangular one, specify two opposite corners.
Specify first corner point:
- For a polygonal one, specify the vertices and press Enter (or choose Close) once there are at least three.
Specify next point or [Close/Undo]:
Options
- ON / OFF (ON / OFF): turns on or off the boundary the image already has.
- Delete (D): removes the boundary; the whole image is shown again.
- New (N): draws a new boundary, which replaces any existing one. If the image already has a boundary, it first asks whether to delete the old one:
Delete old boundary? [No/Yes] <Yes>:
- Select (S): the boundary is a closed polyline of straight segments that you select.
- Rectangular (R) and Polygonal (P): the boundary type.
- Invert (I): switches between hiding what is outside the boundary and hiding what is inside.
Inside mode - Objects inside boundary will be hidden.
- Undo (U): in a polygonal boundary, removes the last vertex.
Notes
- The boundary is saved in the image as in AutoCAD.
- The change is undone with UNDO.
See also
IMAGEEDIT — Edit image
Edits the pixels of a raster image: invert, threshold, despeckle, rotate, mirror, colour depth and resample.
- Command:
IMAGEEDIT· Global name:_IMAGEEDIT· Alias:IED - Ribbon: Insert › Image and tracing
Edits the pixels of a raster image in the drawing. The edited image is saved to a new PNG file, next to the original (which is not touched), and the drawing image is relinked to that new file.
Usage
- Enter IMAGEEDIT (or IED) or click the button.
- Select the image.
Select the image to edit:
- Choose the operation.
Enter the operation [Invert/Threshold/despecKle/Rotate/Mirror/Depth/reSample] <Invert>:
- Depending on the operation, enter the value (threshold, degrees of rotation, axis, depth or resample factor).
Options
- Invert (I): negative of the image (keeps transparency).
- Threshold (T): black or white by luminance, at the threshold you enter (0-255).
- despecKle (K): cleans speckle noise with a 3×3 median.
- Rotate (R): rotates the image 90, 180 or 270 degrees.
- Mirror (M): horizontal or vertical mirror.
- Depth (D): colour depth (Mono, Grey or Colour).
- reSample (S): changes the resolution by a factor, keeping the size in the drawing.
Notes
- The original file is never changed: the edit goes to a new file
<name>-ed.png. - Rotate and resample change the size in pixels; the drawing frame is adjusted to the new size.
- Vectorization (raster to vector), PDF to DWG and OCR are not done here: they are a later step of the plan.
See also
IMAGECROP · IMAGEPERSP · IMAGEPAINT · IMAGEADJUST · Raster images
GEOIMAGE — Insert Georeferenced Image
Inserts an image at its real coordinates, from its world file or its GeoTIFF tags.
- Command:
GEOIMAGE· Global name:_GEOIMAGE - Ribbon: Insert › Geolocation
- Ribbon: Mapping › Geolocation
Inserts a georeferenced image (an orthophoto, a scanned map) directly at its real coordinates, with its scale and rotation, without specifying any point.
Usage
- Enter GEOIMAGE or click the button.
- Enter the image path, or press Enter to choose it in a dialog box.
Enter image file name to attach or [Browse] <Browse>:
The image is placed and the command shows where the georeference came from and the image's coordinate system.
Notes
- The position comes from the world file next to the image (
.tfw,.jgw,.pgw,.bpw,.tifw,.wld...) or, if there is none, from the GeoTIFF tags of the TIFF itself. Without either, the command warns and inserts nothing. - A rotated or skewed image (world file with rotation terms, or GeoTIFF with the ModelTransformation matrix) is placed with its rotation and its scale on each axis.
- The image's coordinate system is taken from its
.prjfile or from the GeoTIFF tags. - If the image states its system and the drawing has one (GEOGRAPHICLOCATION), the image is reprojected to the drawing's system. If that is not possible, it is inserted without reprojection and a warning is shown.
- The path is saved relative to the drawing's folder, as in IMAGEATTACH.
- For an image without a georeference, place it with GEOREFIMAGE.
See also
GEOREFIMAGE · GEOGRAPHICLOCATION · IMAGEATTACH · Georeferencing
GEOREFIMAGE — Georeference Image
Moves an image into place with 2 or 3 control points.
- Command:
GEOREFIMAGE· Global name:_GEOREFIMAGE - Ribbon: Insert › Geolocation
- Ribbon: Mapping › Geolocation
Moves an image that is already inserted to its place using two or three control points: for each one, a recognizable point on the image (a corner, a crossing) and the real position it corresponds to in the drawing.
Usage
- Enter GEOREFIMAGE or click the button.
- Select the image.
Select the image to georeference:
- Specify a point on the image.
Specify source point … (on the image):
- Specify its real position (with an object snap or by typing its coordinates).
Specify destination point … (real position):
- Repeat for the second point. Then specify a third one or press Enter to finish with two.
Specify source point … (on the image) or <finish>:
The image is moved, rotated and scaled, and the applied scale and rotation are shown.
Notes
- With two points the fit is exact. With three, the best fit for all three is calculated (least squares).
- The image is not distorted: the scale is the same on both axes.
- The preview lines join each image point to its destination.
- The change is undone with UNDO.
See also
IMAGEPERSP — Correct perspective
Corrects the perspective of an image (IFIX style) with 4 points and generates its world file.
- Command:
IMAGEPERSP· Global name:_IMAGEPERSP· Alias:IFIX - Ribbon: Insert › Image and tracing
Corrects the perspective of a raster image (IFIX style): with 4 points it straightens a quadrilateral into a rectangle, for example a façade or a plan photographed at an angle. The result is saved to a new PNG file with its world file (.wld), next to the original (which is not touched), and the drawing image is relinked to it.
Usage
- Enter IMAGEPERSP (or IFIX) or click the button.
- Select the image.
Select the image whose perspective to correct:
- Specify the 4 corners of what should become rectangular, in order: lower left, lower right, upper right and upper left.
Specify corner … of 4 (lower left, lower right, upper right, upper left):
Notes
- The straightened image is placed axis-aligned, with the lower-left corner at the first point.
- The world file (.wld) records the position and scale for GIS programs and for GEOIMAGE.
- The original file is not changed: the result goes to a new file
<name>-ed.png.
See also
IMAGEEDIT · IMAGECROP · GEOIMAGE · GEOREFIMAGE · Raster images
IMAGEPAINT — Draw on image
Draws and erases strokes on a raster image.
- Command:
IMAGEPAINT· Global name:_IMAGEPAINT· Alias:IPIN - Ribbon: Insert › Image and tracing
Draws and erases strokes on a raster image, for example to cover a blemish or mark something on a scanned plan. The stroke is burned into the pixels of a new PNG file, next to the original (which is not touched), and the drawing image is relinked to it.
Usage
- Enter IMAGEPAINT (or IPIN) or click the button.
- Select the image.
Select the image to draw on:
- Trace the polyline point by point. Press Enter to burn the stroke and finish.
Specify next point or [Colour/Width/Erase/Undo] or <finish>:
Options
- Colour (C): stroke colour (black, White or Red).
- Width (W): stroke width in pixels.
- Erase (E): toggles erase mode (leaves the pixels transparent).
Notes
- The points are specified in the drawing; you can snap to the image's own corners and edges.
- Erase leaves transparency; choose a colour again to keep drawing.
- The original file is not changed: the stroke goes to a new file
<name>-ed.png.
See also
IMAGECROP — Crop image
Crops (frames) a raster image to a rectangle.
- Command:
IMAGECROP· Global name:_IMAGECROP· Alias:IREC - Ribbon: Insert › Image and tracing
Crops (frames) a raster image to a rectangle. What is left outside is discarded in a new PNG file, next to the original (which is not touched), and the drawing image is relinked to that file.
Usage
- Enter IMAGECROP (or IREC) or click the button.
- Select the image.
Select the image to crop:
- Specify the first corner.
Specify first corner point:
- Specify the opposite corner.
Specify opposite corner point:
Notes
- The corners are specified in the drawing; you can snap to the image's own corners and edges.
- The insertion point and size of the drawing image are adjusted to the cropped piece; the pixel size is unchanged.
- The original file is not changed: the crop goes to a new file
<name>-ed.png. - It is a permanent crop of the pixels; to hide without cropping the pixels use IMAGECLIP.
See also
DGNIMPORT — Import DGN V7
Adds geometry and text from a MicroStation DGN V7 file to the current drawing.
- Command:
DGNIMPORT· Global name:_DGNIMPORT - Ribbon: Insert › Import
Imports a MicroStation DGN V7 file (Intergraph ISFF format) and adds its contents to the current drawing, like AutoCAD's DGNIMPORT. Reads 2D and 3D files without turning them into underlays or leaving the drawing.
Usage
- Enter IMPORTARDGN or
_DGNIMPORT. - Enter the DGN V7 path or choose it in the file dialog.
Enter the DGN V7 file name:
- The command line reports how many entities were added and which element types could not be imported.
What is imported
- Header, master/sub units, resolution and global origin.
- Levels as
Level nlayers, indexed or RGB colors, line weights and line styles 0–7. - Lines, line strings, shapes, complex chains and shapes, arcs, ellipses, curves and B-splines.
- Text and text nodes; each node becomes an MTEXT.
- Unshared cells as block definitions and inserts.
Other element types are not discarded silently: the summary reports their type and count.
Limitations
- DGN V7 only. DGN V8, DGN export and DGNATTACH underlays are not included.
- Shared cells, external references, rasters, dimensions, surfaces and solids are not imported.
- Level names are generated as
Level n; no external level-name table is read.
See also
MAPIMPORT — GIS Import
Imports SHP, KML, KMZ, GeoJSON, GeoPackage or GML with their attributes.
- Command:
MAPIMPORT· Global name:_MAPIMPORT· Alias:SHP2CAD - Ribbon: Insert › Geolocation
- Ribbon: Mapping › Geolocation
- Menu: Insert
- Menu: Mapping
Imports GIS data (SHP, KML, KMZ, GeoJSON, GeoPackage or GML files) as drawing objects, in the drawing's coordinates and with their attributes.
Usage
- Enter MAPIMPORT (or SHP2CAD) or click the button. The Import SHP, KML or GeoJSON dialog box opens and, at the same time, the command line asks.
- Choose the file with Browse… or enter its path. The number of features and fields is shown.
SHP, KML, KMZ, GeoJSON, GeoPackage or GML file:
- Optionally, choose the field whose value gives the layer name of each feature.
Field for the layer (…) or [None] <None>:
- Optionally, choose a block of the drawing for the points; otherwise each point is a point object.
Block name for the points <point object>:
- In the dialog box, check the File coordinate system and click OK.
Notes
- Points, lines and polygons are reprojected to the drawing's system (GEOGRAPHICLOCATION) according to the SHP's
.prjor the system declared in the GeoPackage or GML; KML, KMZ and GeoJSON are always in WGS84. If the drawing has no system, it takes the file's (or, if it is latitude and longitude, the UTM system of its zone). - Polygons become closed polylines, without hatching; their holes, other closed polylines.
- Attributes are stored in each object as extended data (application
LINCE_SHP), and MAPEXPORT writes them out again; GISTABLE and the Properties palette show and edit them. If the points are a block, its attributes take the value of the field with the same name. - All the feature tables of a GeoPackage are read, one after another; from a GML, the simple features (also WFS and cadastral GML). KML styles and network links are not read. 3D objects in SHP files (multipatch) are skipped.
See also
MAPEXPORT · GISTABLE · GISQUERY · MAPBUFFER · GEOGRAPHICLOCATION · Georeferencing
CLASSICINSERT — Insert (classic dialog)
Inserts a block or a drawing with the classic Insert dialog box.
- Command:
CLASSICINSERT· Global name:_CLASSICINSERT· Alias:DDINSERT - Ribbon: Insert › Block
Inserts a block or a drawing with the classic AutoCAD Insert dialog box (CLASSICINSERT), instead of the Blocks palette of INSERT.
Usage
- Enter CLASSICINSERT (or DDINSERT). Type or pick the block name, or click Browse… to insert a DWG or DXF file. The file Path is shown below it and the block preview on the right.
- Choose the insertion point, the scale (X, Y and Z, or uniform) and the rotation, each one fixed in the dialog box or Specify On-screen, and whether the block is exploded on insertion.
- Click OK and specify on screen what you left for later (and the attribute values).
In scripts, SCRIPT and AutoLISP there is no dialog box: it is -INSERT.
Block unit
Shows the insertion unit of the block (the one given in BLOCK or the file's INSUNITS) and the factor that converts it to drawing units (UNITS), like AutoCAD: a block in millimeters in a drawing in meters gives 0.001. The scale typed in the dialog box is multiplied by that factor. If the block or the drawing has no units, the factor is 1.
Notes
- A scale specified on screen is not multiplied by the factor.
- The dialog box cannot be scripted in the AutoCAD console: it has a unit test.
See also
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 · AutoCAD LT alternative