Insert: Blocks, References, Images and Geolocation (5 of 5)
- PDFCLIP
- MAPCLIP
- REFSET
- XREF
- RESETBLOCK
- GISOVERLAY
- SVGIMPORT
- GISTABLE
- TRANSPARENCY
- XBIND
- VECTORIZE
- BTESTBLOCK
- WMS
- WMTS
- XOPEN
- MAPBUFFER
PDFCLIP — PDF Clip
Shows only part of a PDF underlay, inside or outside a boundary.
- Command:
PDFCLIP· Global name:_PDFCLIP - Ribbon: Insert › Import
Shows only part of a PDF underlay: what lies inside a rectangular or polygonal boundary or, with the boundary inverted, what lies outside it. The PDF does not change: the boundary can be turned off or removed later.
Usage
- Enter PDFCLIP or click the button.
- Select the PDF underlay.
Select PDF to clip:
- Choose the option; Enter creates a new boundary. If the underlay already has one, it asks whether to delete it.
Enter PDF clipping option [ON/OFF/Delete/New boundary] <New boundary>: Delete old boundary? [Yes/No] <Yes>:
- It tells the mode (Outside mode - Objects outside boundary will be hidden.) and asks for the boundary; Enter, rectangular. A point is already the first corner of the rectangle.
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: Specify opposite corner point:
- For a polygonal one, specify the vertices and press Enter (or choose Close) when there are at least three.
Specify first point: Specify next point or [Close/Undo]:
- With Select polyline, the boundary is that of a closed polyline of straight segments.
Select polyline:
Options
- ON / OFF (ON / OFF): turns on or off the boundary the underlay already has.
- Delete (D): removes the boundary; the whole page is shown again.
- New boundary (N): draws a new boundary.
- Rectangular (R) and Polygonal (P): the boundary type.
- Select polyline (S): takes the boundary from a polyline.
- Invert (I): switches between hiding what is outside and hiding what is inside, and says so: 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 underlay as in AutoCAD. The change is undone with UNDO.
- For DWG external references, use XCLIP; for images, IMAGECLIP.
See also
MAPCLIP — Clip map
Clips the map layer to the visible area or to a boundary.
- Command:
MAPCLIP· Global name:_MAPCLIP - Ribbon: Mapping › Map services
- Menu: Mapping
Clips the chosen map layer without losing anything: it is the clipping boundary of its image, like IMAGECLIP.
Use
- Choose the layer in ONLINEMAPS or right-click the map in the drawing.
- Type MAPCLIP and choose: - View (Enter): to the visible area. - Manual: to a rectangle or a polygon you pick. - Remove: removes the clipping.
Notes
- A clipped layer stops refreshing by itself (the clipped part is what you want to keep); Refresh in this area requests it again and keeps the clipping in place.
See also
REFSET — Edit Reference Working Set
Adds or removes objects of the REFEDIT working set.
- Command:
REFSET· Global name:_REFSET
Adds or removes objects of the working set of an in-place edit, like AutoCAD REFSET.
Usage
- Start with REFEDIT.
- Enter REFSET and choose Add or Remove.
- Select the objects and press Enter.
- Finish with REFCLOSE.
Options
- Add: the selected drawing objects go into the edit (they are copied and leave the drawing); saving with REFCLOSE puts them into the block. With Discard they go back to the drawing. It also puts back into the edit those that had been removed.
- Remove: the selected objects of the edit stop belonging to the block: on close they stay in the drawing as ordinary objects.
It is only used during an in-place edit; otherwise the command line says so.
See also
XREF — External References
Lists the external references of the drawing.
- Command:
XREF· Global name:_XREF· Alias:XR - Ribbon: Insert › Reference
- Ribbon: View › Palettes
Opens (or closes) the External References palette: all the external references of the drawing (DWG or DXF drawings, PDF underlays and raster images) with their status, and the buttons to attach, reload, unload, detach, bind or change the path of each one.
Usage
- Enter XREF (or XR) or click the button.
- At the top, Attach DWG… opens XATTACH, Attach PDF… opens PDFATTACH and Reload All References reads all of them again from disk.
- Below, the tree of DWG references: each one with its nested references hanging from it, and the columns Reference Name, Status, Type (Attach or Overlay), Size, Date, Saved Path and Found At (the file that was read).
- The buttons of each row: Reload, Unload, Detach, Bind and Change Path…. Nested references are managed from the one that contains them.
- Further down, PDF Underlays (with their page) and Raster images, with their own buttons.
Reference status
- Loaded: it has been read and is drawn at each insert.
- Unloaded: it is still in the drawing, but it is not read or drawn.
- Not Found: the file is neither at the saved path nor in the drawing's folder.
- Unreferenced: it is defined, but not inserted anywhere.
- Needs reloading: the file has changed since it was read.
- Circular reference: not loaded, Network path: not loaded or Read error: it has not been loaded for that reason.
Notes
- The palette can be docked to the left or right of the drawing and set to auto-hide with the buttons in its header (◂ ▸ ◻ 📌); see The user interface.
- The buttons run -XREF, -IMAGE or the corresponding command, so everything can be undone with UNDO.
- When the file of a loaded reference changes on disk, the status bar warns about it (External references modified: …) with a Reload button.
- The date is shown in UTC.
- The content of references is never saved in this drawing: when it is saved they remain references, except those that are bound.
See also
XATTACH · -XREF · XCLIP · PDFATTACH · IMAGEATTACH · External references
RESETBLOCK — Reset Block
Restores the selected dynamic blocks to the values of their definition.
- Command:
RESETBLOCK· Global name:_RESETBLOCK· Alias:RSB - Ribbon: Insert › Block
Returns the selected dynamic blocks to the values of their definition: they lose the changes made to their custom properties (visibility state, flip, distances, angles, lookup values...).
Usage
- Enter RESETBLOCK (or RSB) or click the button. Objects already selected are used.
- Select the blocks and press Enter.
Select objects:
Notes
- Only dynamic blocks change; if none was selected, a message is shown: Not a dynamic block.
- The blocks end up as if just inserted: with the definition's geometry, at the same place and with the same scale and rotation.
- The custom properties of a dynamic block are changed with its cyan grips or in the Custom section of PROPERTIES.
- The change is undone with UNDO.
See also
GISOVERLAY — Polygon Overlay
Intersection, union, difference or clip of two sets of polygons with their attributes.
- Command:
GISOVERLAY· Global name:_GISOVERLAY - Ribbon: Mapping › GIS Analysis
- Menu: Mapping
Polygon overlay: intersection, union, difference or clip between two sets of polygons (for example, parcels and a buffer zone) that keeps and combines their object data. The result is new closed polylines on the current layer; the original polygons do not change.
Usage
- Enter GISOVERLAY or click the button, select the input polygons and press Enter.
Select the input polygons:
- Select the overlay polygons and press Enter.
Select the overlay polygons:
- Choose the operation (in the Polygon Overlay dialog box or on the command line) and accept.
Operation [Intersect/Union/Difference/Clip] <Intersect>:
Operations
- Intersect: what both inputs share, with the data of both.
- Union: everything, split where they overlap, with the data of both (empty where one is missing).
- Difference: the input without what the overlay covers, with the input data.
- Clip: the input inside the overlay, with the input data.
Attributes
- In intersection and union, each piece has the fields of both inputs. A field present in both appears twice, with the prefixes
A_(input) andB_(overlay). - In difference and clip, only those of the input.
Notes
- Polygons are closed polylines, circles and other closed curves (faceted as shown). The rings of one feature (an imported polygon with holes) are taken as one polygon with holes.
- The polygons of each input should not overlap each other; if they do, each one is processed separately.
- There is no topology (shared nodes and links) and no map cleanup: shared edges are computed twice.
See also
SVGIMPORT — Import SVG
Brings an SVG file in as drawing geometry.
- Command:
SVGIMPORT· Global name:_SVGIMPORT - Ribbon: Insert › Import
Brings an SVG file into the drawing as geometry. Each SVG outline becomes a polyline on the current layer.
Usage
- Type SVGIMPORT or click Import SVG.
- Enter the file path (or press Enter to pick it in the browser).
Enter the path of the SVG file to import:
Notes
- Outlines are imported: lines, polylines and curves (Bézier curves are approximated with straight segments), and text flattened to outlines. Fills and embedded raster images are not imported.
- Each outline's stroke color is copied as the object's true color.
- The SVG Y axis points down; on import it is flipped so the drawing comes out upright. SVG units map 1:1 to drawing units; scale the result if you need to.
See also
GISTABLE — GIS Attribute Table
Shows, sorts and edits the object data of a GIS layer.
- Command:
GISTABLE· Global name:_GISTABLE - Ribbon: Mapping › GIS Analysis
- Menu: Mapping
Shows in a table the object data of the drawing's GIS features (the fields brought by what was imported with MAPIMPORT or created with MAPBUFFER and GISOVERLAY): one row per feature and one column per field. From the table you sort, edit and select in the drawing.
Usage
- Enter GISTABLE or click the button. If objects were selected, the table shows their features; otherwise the GIS Attribute Table dialog box opens with every layer that has data and the command line asks for the layer.
Data layer or [*] <*>:
- In the dialog box, choose the Layer to show.
- Click a column title to sort by it (again: reversed). Numbers are sorted as numbers.
- Change a cell and press Enter (or leave it) to store the value in the drawing.
- Tick rows and click Select in drawing to select their objects in the drawing; Close ends.
Command line and scripts
Without dialog boxes (scripts, SCRIPT, LISP), GISTABLE writes the table on the command line and then asks:
FIELD=value to change it in the … features or Enter to finish:
FIELD=value changes that field in every feature of the table; Enter ends. After GISQUERY, only the features that meet the query are changed.
Notes
- The data is stored in each object as extended data (XDATA of the
LINCE_SHPapplication): onefield=valueper string and the feature number. AutoCAD and progeCAD keep it when they open and save the DWG. - A feature can have several objects (a polygon with holes or a multipart feature are several polylines): one row stands for all of them and changing a value changes them all, also from the PROPERTIES palette, Object Data section.
- MAPEXPORT writes the features back to SHP or GeoJSON with their fields.
See also
GISQUERY · MAPIMPORT · MAPEXPORT · PROPERTIES
TRANSPARENCY — Transparency
Turns the transparent pixels of images on or off.
- Command:
TRANSPARENCY· Global name:_TRANSPARENCY - Ribbon: Insert › Image and tracing
Turns transparency of raster images on or off: with it, the transparent pixels of the file (for example, the background of a PNG) let the objects underneath show through.
Usage
- Enter TRANSPARENCY or click the button.
- Select the images and press Enter.
Select images:
- Choose the mode.
Enter transparency mode [ON/OFF] <…>:
Options
- ON (ON): the transparent pixels of the file are shown as transparent.
- OFF (OFF): the image is shown opaque.
The proposed option is the one the first selected image already has: Enter leaves it as it is. If no image is selected, the command ends without a message.
Notes
- It only affects images whose file has a transparency channel, such as PNG, GIF or WebP.
- The mode is saved in each image, as in AutoCAD.
- To let the whole image show what is underneath, increase its fade with IMAGEADJUST.
- The transparency of objects and layers (0 to 90 %, group code 440) is a different property: it is changed in the PROPERTIES palette, in the layer manager and with CETRANSPARENCY, and shown or hidden with the TRANSP button on the status bar. See Layers and properties.
See also
XBIND — Bind Reference Symbols
Binds layers, linetypes, styles and blocks of an external reference to the drawing.
- Command:
XBIND· Global name:_XBIND· Alias:XB - Ribbon: Insert › Reference
Binds single symbols of an external reference (blocks, dimension styles, layers, linetypes and text styles) to the drawing, like AutoCAD XBIND: the symbol REF|name is renamed REF$0$name and no longer depends on the reference, which stays attached. To bind the whole reference, use Bind in XREF.
Usage
- Enter XBIND (or XB). In the Xbind dialog box, tick the symbols of each type and click OK.
In scripts, SCRIPT and AutoLISP there is no dialog box: it asks as in -XBIND.
Notes
- A layer also binds its dependent linetype. If the name
REF$0$namealready exists,$1$,$2$... are used. - When the reference is reloaded, its dependent symbols appear again as
REF|name. The dialog box cannot be scripted in the AutoCAD console: it has a unit test.
See also
VECTORIZE — Vectorize image
Turns a monochrome/scanned image into drawing entities.
- Command:
VECTORIZE· Global name:_VECTORIZE - Ribbon: Insert › Image and tracing
Turns a monochrome or scanned image, already attached with IMAGEADJUNTAR, into drawing entities: polylines, circles, arcs and lines. This is the RASTOOLS raster-to-vector step.
Usage
- Type VECTORIZE or click Vectorize image.
- Select the image in the drawing, or press Enter to choose an image file (it is vectorized at the origin, 1 pixel = 1 unit; with FILEDIA=0 you type the path).
Select the image to vectorize or press Enter to choose a file:
- Adjust the parameters or press Enter to run with the current ones.
Set [Threshold/Fit/Minimum/Centerline/Join] or <Run> (centerline: …, join: …):
Parameters
- Threshold — binarization cutoff (0-255): a pixel darker than the threshold is ink. Enter the binarization threshold (0-255) <…>:
- Fit — fit tolerance in pixels: how far an outline may stray and still count as a line, circle or arc, and how much polylines are simplified. Enter the fit tolerance in pixels <…>:
- Minimum — drops chains shorter than this size in pixels. Enter the minimum size in pixels <…>:
- Centerline — thins strokes to one pixel (skeleton) and follows their center instead of tracing the outline; for scanned line drawings with thick strokes.
- Join — joins broken strokes whose endpoints nearly touch.
Notes
- Entities are created on the current layer and color (like SVGIMPORT); set LAYER and COLOR first if you want others.
- Outlines are recognised by least-squares fit: a near-circular outline yields a circle or an arc, a near-straight one a line, and the rest a polyline. These are standard entities that audit with no errors.
- It does not OCR text or import PDF (PDFIMPORT): those are separate raster steps in the plan.
See also
BTESTBLOCK — Test Block
Tests the block being edited, without saving it, in a test drawing.
- Command:
BTESTBLOCK· Global name:_BTESTBLOCK· Alias:BTEST
Tests the block being edited without saving it, like AutoCAD BTESTBLOCK. It only works in the Block Editor (BEDIT).
Usage
- In the Block Editor, enter BTESTBLOCK.
- Another tab opens, Test Block Window - name, with a drawing that has a single reference to the block as it is in the editor: try its grips and its Properties palette.
- Enter BCLOSE or CLOSE ("Close Test Block" in AutoCAD): it closes without asking about changes and you go back to the editor.
Notes
- In AutoCAD the test happens in a window inside the editor; here it is a tab with the test drawing in memory (it is not saved to any file). The block of the drawing being edited does not change. It cannot be scripted in the AutoCAD console (the Block Editor does not exist there).
See also
WMS — WMS map
Inserts a WMS map as a georeferenced image.
- Command:
WMS· Global name:_WMS - Ribbon: Mapping › Map services
- Menu: Mapping
Adds a map from a WMS (Web Map Service) as a live map layer: a georeferenced image of the visible area, reprojected to the drawing system, requested again after panning or zooming.
Use
- Type WMS or click the button: MAPCONNECT opens with the WMS servers. Pick the connection, click Connect, check the layers, choose format, server system, background and style, and click Load.
Notes
- The layer is managed in ONLINEMAPS: on/off, transparency, order, refresh and clipping (MAPCLIP).
- If the server does not offer the drawing system (Catastro has no 25828, Canary Islands), another one it offers is requested and converted. The background is transparent (PNG) by default, so the orthophoto below shows.
- The drawing needs a coordinate system (GEOGRAPHICLOCATION). Built-in servers: MAPSERVICE.
See also
MAPCONNECT · ONLINEMAPS · WMTS · WFS · GEOGRAPHICLOCATION
WMTS — WMTS tiles
Inserts WMTS/XYZ tiles (Web Mercator) stitched as an image.
- Command:
WMTS· Global name:_WMTS - Ribbon: Mapping › Map services
- Menu: Mapping
Adds WMTS or XYZ tiles (Web Mercator, like OpenStreetMap) as a live map layer: the tiles covering the view are stitched into an image reprojected to the drawing system and requested again after panning or zooming.
Use
- Type WMTS or click the button: MAPCONNECT opens with the WMTS and XYZ servers. Pick the connection, for WMTS click Connect and check the layer (XYZ has none), and click Load.
Notes
- WMTS: LinceCAD reads from the service capabilities the layer's tile matrix set (
TileMatrixSet), with its levels, scales, corner and tile size, its format, its style and its REST template (ResourceURL); if it has none, it requests each tile withGetTile. It picks the set in the drawing's system if the service offers it (for example RD New 28992 in the Netherlands or L-EST97 3301 in Estonia) and, otherwise, the Web Mercator one under any name (GoogleMapsCompatible,PM,EPSG:3857,google3857,GLOBAL_WEBMERCATOR…); the tiles are reprojected to the drawing's system. The chosen set is saved with the layer in the drawing. - XYZ:
{z}/{x}/{y}template in Web Mercator with 256-pixel tiles. - Tiles are cached for 7 days. Layers are managed in ONLINEMAPS.
See also
MAPCONNECT · ONLINEMAPS · WMS · MAPSERVICE
XOPEN — Open External Reference
Opens the drawing of an external reference in another tab.
- Command:
XOPEN· Global name:_XOPEN - Ribbon: Insert › Reference
Opens the drawing of an external reference in another tab, like AutoCAD XOPEN.
Usage
- Enter XOPEN and select an external reference.
Select Xref:
Notes
- If the drawing is already open, its tab becomes active. After changing and saving it, go back to the host and reload the reference in XREF.
- It cannot be scripted in the AutoCAD console (it opens another drawing): it has a unit test.
See also
MAPBUFFER — Buffer
Creates the buffer zone of points, lines and polygons.
- Command:
MAPBUFFER· Global name:_MAPBUFFER· Alias:BUFFER - Ribbon: Mapping › GIS Analysis
- Menu: Mapping
Creates the buffer zone of points, lines and polygons: everything within a given distance, either fixed or taken from an object data field. The result is closed polylines on the current layer with the object data of each source.
Usage
- Enter MAPBUFFER (or BUFFER) or click the button and select the objects.
Select objects:
- The Buffer dialog box opens and, at the same time, the command line asks.
Distance or [Field/Merge/Segments] (merge = …, segments = …) <…>:
- Enter the distance (or, in the dialog box, the Distance) and click OK.
Options
- Field: each feature's distance comes from that field of its object data (for example, the easement width of each pipe). Features without a number greater than zero in the field are skipped, with a message.
Field with the distance (…) or [None] <None>:
- Merge: merges all zones into one (no overlaps). The merged result has a single field, DISTANCE, with the distance or the field used.
Merge the zones? [Yes/No] <…>:
- Segments: sides of a full circle (8 to 200; 64 by default); corner and end arcs get their share.
Segments per circle (8 to 200) <…>:
Notes
- Points: circles. Lines: bands with rounded ends and corners. Polygons (closed polylines): the polygon plus the band around its outline; a ring inside another of the same feature is a hole, which gets narrower.
- Input curves (arcs, circles, polylines with arcs) are taken faceted as shown on screen.
- Positive distances only: there is no inner buffer (negative distance) of polygons.
- A zone with holes is several polylines with the same feature number: MAPEXPORT writes it as one polygon and GISTABLE shows it as one row.
See also
GISOVERLAY · OFFSET · GISTABLE · GISQUERY
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