Insert: Blocks, References, Images and Geolocation (4 of 5)
- ONLINEMAPS
- OCRIMAGE
- BATTORDER
- MAPCOUNTRY
- BAUTHORPALETTE
- TOOLPALETTES
- BCPARAMETER
- BVPARAM
- PDFATTACH
- PDFADJUST
- PDFLAYERS
ONLINEMAPS — Online maps
Opens the map layer manager (on/off, transparency, order, refresh, clipping).
- Command:
ONLINEMAPS· Global name:_ONLINEMAPS - Ribbon: Mapping › Map services
- Menu: Mapping
Opens the Online maps palette, the map layer manager (like the AutoCAD Map 3D Display Manager). Each layer added with MAPCONNECT has a row; the top one is drawn on top.
In each row
- The check box turns the layer on or off; Transparency fades it (0–90 %).
- ▲ ▼ move it up or down among the map layers.
- ⟳ Refresh in this area: requests it again for the current view. ⌖ Zoom to layer.
- ⚙ Properties…: name, format, server system, background and style (it is requested again on OK).
- 🗑 deletes the map layer.
- Automatic: requested again by itself half a second after panning or zooming, only if its image no longer covers the view at enough resolution. The previous image stays until the new one arrives.
- Right-clicking the row (or the map in the drawing) offers Clip to the visible area, Clip manually… and Remove clipping (MAPCLIP).
Notes
- By default map layers go below all entities; Above the entities puts them on top.
- Map layers are not selected and give no object snaps: they are handled from here.
- In the DWG each layer is an ordinary attached image (the file is in the LinceCAD cache) with its connection data in extended data: AutoCAD opens it without errors; on another computer LinceCAD requests it again.
- Downloaded images are cached by area and scale: going back to a view already seen downloads nothing.
See also
OCRIMAGE — Recognise text (OCR)
Recognises the text in a raster image and creates text entities at its position.
- Command:
OCRIMAGE· Global name:_OCRIMAGE· Alias:RECOGNIZETEXT,OCR - Ribbon: Insert › Image and tracing
Recognises (OCR) the text in a raster image already attached to the drawing and creates one text entity (TEXT) per recognised line, at its position, with the height measured from the pixels and the rotation of the line, on the current layer and text style.
The OCR engine is pure Rust (ocrs, on top of the rten inference engine), with no external binaries. It recognises the Latin alphabet; accents, the diaeresis, "ñ" and the cedilla are added from the shape of the letter if it is at least about 16 pixels high (2.5 mm text scanned at 200 dpi or more); otherwise the letter comes out without its accent. It is in preview, so it is worth reviewing the result.
Usage
- Enter OCRIMAGE (or RECOGNIZETEXT) or click the button.
- Select the image with the text, or press Enter to choose an image file (with FILEDIA=0 you type the path).
Select the image with the text to recognise or press Enter to choose a file:
- Press Enter.
Press Enter to recognise the text in the image.
The recognised text is created as standard TEXT entities, which you can move, edit or delete like any other text.
Models
- The first time it is used, the OCR downloads its two models (~12 MB in total) to the configuration folder (
<configuration>/lince/ocr). They are then reused without downloading again. - The download is verified by size and SHA-256 checksum. Nothing is stored in the drawing.
- Offline: if the models cannot be downloaded and tesseract is installed, it is used as a fallback; otherwise a message is shown and no text is created.
Notes
- The text height comes from the pixel height of each line; nearly horizontal text is straightened.
- The text takes the current layer and text style. The original image is not modified.
- Vectorization (raster to vector) and PDF to DWG are separate steps of the plan.
See also
BATTORDER — Attribute Order
Changes the order in which the block attributes are prompted (in the Block Editor).
- Command:
BATTORDER· Global name:_BATTORDER
Changes the order of the attribute definitions of the block being edited, like AutoCAD BATTORDER: it is the order in which INSERT asks for their values. It only works in the Block Editor (BEDIT).
Usage
- In the Block Editor, enter BATTORDER or click the button on the editor tab.
- In the Attribute Order dialog box, pick a tag and move it with Move Up and Move Down.
- Click OK and save the block with BSAVE.
In scripts, SCRIPT and AutoLISP there is no dialog box: enter the tags in the new order, separated by commas; the ones you leave out go after them, in their order.
Enter the tags in the new order (separated by commas):
Notes
- Existing inserts keep the order of their attributes until they are synchronized with ATTSYNC.
- AutoCAD prompts the attributes of a block made with a window in reverse order (from the last created to the first), and so does LinceCAD: this command fixes it. The dialog box cannot be scripted in the AutoCAD console (BATTORDER does not exist outside the Block Editor, which cannot be scripted either): it has a unit test.
See also
MAPCOUNTRY — Mapping country
Chooses the country whose cadastre, orthophoto and base map services are used.
- Command:
MAPCOUNTRY· Global name:_MAPCOUNTRY - Ribbon: Insert › Geolocation
- Menu: Mapping
Chooses the mapping country: the one that sets which cadastre, orthophoto and base map services of the built-in catalog MAPCONNECT and IMPORTMAP use. It is the same as clicking the country chip of the status bar (“ES · ETRS89 / UTM zone 30N”).
Usage
- Type MAPCOUNTRY and the country code (PT, FR, MX…) or its name in English or Spanish (Portugal, Brazil, Brasil…).
- Automatic leaves it automatic; List opens the list with search; Enter tells the current one.
How the country is chosen
When not chosen by hand, the country is, in this order:
- The one given away by the drawing's coordinate system (GEOGRAPHICLOCATION): 25830 → Spain, 3763 → Portugal, 2154 → France, 5343–5349 and 22181–22187 → Argentina… Systems shared by several countries (WGS 84 / UTM, ETRS89 / UTM except 28N–32N, S-JTSK) do not tell.
- The one in OPTIONS (Country), which is also saved when you choose it here or in the chip.
- The Windows region; otherwise, Spain.
In IMPORTMAP, when the area is given by coordinates, view or window and the country was not chosen by hand, the one at the centre of the area wins: coordinates in Portugal bring the mapping of Portugal.
Chosen by hand (here, in the chip or in the map dialogs), it holds for the whole session. If the drawing's system tells another country, the chip is painted in the warning colour and its list offers “Use the mapping of…” that country.
Notes
- The country is not saved in the drawing: the drawing keeps its coordinate system, from which it is deduced.
- The list shows what each country has in the catalog (cadastre, orthophoto, map); countries with nothing use OpenStreetMap and EOX Sentinel-2. The catalog by country is in Map servers by country.
- In scripts:
!importarmapa pais PTand!mapa pais FRchange the country of the open dialog.
See also
TOOLPALETTES — Tool Palettes
Palettes with blocks ready to insert with their scale, rotation and layer.
- Command:
TOOLPALETTES· Global name:_TOOLPALETTES· Alias:TP - Ribbon: Insert › Content
- Ribbon: View › Palettes
- Ribbon: Manage › Customization
- Menu: Insert
Opens the Tool Palettes window: palettes with blocks ready to insert, each one with its own scale, rotation and layer. Enter the command again to close it.
Usage
- Enter TOOLPALETTES (or TP) or click the button. The first time, one palette is created for each drawing in the installed library, with all its blocks.
- Choose the palette in the tabs at the top.
- Click a tool and specify the insertion point; the scale, rotation and layer are those of the tool.
Specify insertion point or [Basepoint/Scale/X/Y/Z/Rotate/Explode/REpeat]:
Organizing the palettes
- + (New Palette) creates an empty palette; Rename and Delete Palette act on the visible one.
- To add tools, drag blocks from the Blocks palette (INSERT) or from ADCENTER and drop them on the palette.
- Right-click a tool to change its Scale, Rotation and Layer (empty: the current layer), or to remove it with Delete Tool.
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.
- If the tool's layer does not exist in the drawing, it is created on insertion.
- Repeat placement and Explode from the Blocks palette do not apply to tools.
- Palettes are saved in
bloques.toml, in the program's settings folder; each tool remembers the file of its block.
See also
BCPARAMETER — Constraint parameter
In the Block Editor, creates a dimensional constraint that is also a property of the block.
- Command:
BCPARAMETER· Global name:_BCPARAMETER· Alias:CPARAM
Creates a constraint parameter in the Block Editor, like BCPARAMETER in AutoCAD: a dimensional constraint whose value is a property of the block. When it is changed in the Properties palette of a reference, the block is solved with all its geometric and dimensional constraints. Only in the Block Editor (BEDIT).
Usage
- In the Block Editor, with the geometry already constrained (GEOMCONSTRAINT, AUTOCONSTRAIN), type BCPARAMETER and choose the type.
Enter an option [LInear/Horizontal/Vertical/Aligned/ANgular/Radius/Diameter/Convert] <…>:
- As in DIMCONSTRAINT: the two constraint points (or Object), or the circle or arc of the radius or diameter, and the dimension line location.
Specify dimension line location:
- The value, or the name and the value (Enter: the one proposed). The name is the property name on the reference.
Enter value or name and value <…>:
- The number of grips (Enter: one, at the end point).
Enter number of grips [0/1/2] <1>:
- With Convert, select the dimensions of existing dimensional constraints of the block: they become constraint parameters.
Select dimensional constraints to convert:
Notes
- Saved as in AutoCAD 2027: the constraint in the block's network and the parameter in its evaluation graph.
- On the reference, the parameter is a property of the Properties palette (with its value list, if it has one) and has a grip: when it is changed, LinceCAD solves the block and rebuilds its geometry. The constrained blocks of the AutoCAD samples (Door elevation, Window, Fluorescent, Concrete pipe…) change with the same geometry as in AutoCAD.
- Constraint parameters and user parameters (PARAMETERS in the editor) can be columns of the block properties table (BTABLE).
- A value with which the constraints cannot be met is not accepted.
- No angular type and no 0 or 2 grips (they warn).
- Limits: blocks whose constraints use arcs, tangents or other constraints that LinceCAD cannot read from the DWG yet (steel profiles with fillets in the Structural samples) are shown but not solved; a vertical geometric constraint of the block is lost when saving to DWG (use perpendicular to a horizontal one), and DWG 2000 to 2007 do not keep the constraints.
See also
DIMCONSTRAINT · GEOMCONSTRAINT · PARAMETERS · BTABLE · BPARAMETER
BVPARAM — Visibility Parameter
Adds a visibility parameter to the block being edited.
- Command:
BVPARAM· Global name:_BVPARAM
Adds a visibility parameter to the block being edited in the Block Editor and defines its states. A visibility state shows or hides a set of the block's objects; when inserting the block, the state is chosen from a drop-down. The block becomes dynamic and AutoCAD recognizes it as such.
Usage
- Open the block in the Block Editor (BEDIT).
- Enter BVPARAM or click Visibility Parameter on the editor bar.
- Specify the point for the visibility grip.
- For each state: type its name and select the objects visible in that state; press Enter to finish the state.
- With an empty name, and having defined two or more states, the visibility parameter is created.
- Save the block with BSAVE.
Notes
- At least two states are required.
- Block objects not present in any state are hidden in all of them.
- The active state is the first one defined; it is baked into the geometry for plain readers.
- To discard the changes of an already-inserted dynamic block, use RESETBLOCK.
- Outside the Block Editor, the command only shows a message.
See also
PDFATTACH — Attach PDF
Attaches a page of a PDF file as an underlay.
- Command:
PDFATTACH· Global name:_PDFATTACH· Alias:PDFA - Ribbon: Insert › Import
Attaches a page of a PDF file as an underlay: a plan received as a PDF that serves as a background to draw on. The PDF is not copied into the drawing: its path is saved and the file is read again when the drawing is opened.
Usage
- Enter PDFATTACH (or PDFA), or click Attach PDF… in the XREF window.
- Enter the PDF path, or press Enter to choose it in a file dialog.
Enter path to PDF file to attach or [Browse] <Browse>:
- Enter the page number; Enter, the first one.
?lists the pages with their size in points.
Enter page number or [?] <1>:
- Specify the insertion point, which is the lower-left corner of the page (Enter: the origin).
Specify insertion point:
- Enter the scale, or specify a point: the distance to the insertion point is the width of the page.
Specify scale factor <1>:
- Enter the rotation angle, or specify a point in that direction.
Specify rotation <0>:
In the interface (not in scripts, SCRIPT or AutoLISP), after choosing the PDF the Attach PDF Underlay dialog box opens: the page (each one drawn with its proportions and its number) and the insertion point, scale and rotation; whatever you leave as Specify On-screen is specified afterwards, with the prompts of steps 4 to 6. The thumbnails do not show the page contents. The dialog box cannot be scripted in the AutoCAD console: it has a unit test; -PDFATTACH always asks on the command line.
Notes
- At scale 1, the page measures in the drawing the same as on paper, in the units of INSUNITS (without units, in millimeters): a landscape A3 measures 420 × 297 in a drawing in millimeters.
- The path is saved relative to the drawing's folder if REFPATHTYPE is 1 (and the drawing has been saved); otherwise, as a full path.
- The page is turned into an image inside LinceCAD, without external programs, at about 200 dots per inch: with a lot of zoom the pixels show. That is why object snaps do not work on what is drawn in the PDF.
- The underlay frame is controlled by PDFFRAME. It is adjusted with PDFADJUST, clipped with PDFCLIP, and its layers are shown or hidden with PDFLAYERS.
- It is saved as an AutoCAD PDF underlay (PDFUNDERLAY), which AutoCAD opens the same way.
See also
PDFADJUST — Adjust PDF
Changes the fade, contrast or monochrome mode of PDF underlays.
- Command:
PDFADJUST· Global name:_PDFADJUST - Ribbon: Insert › Import
Changes how PDF underlays look: more or less faded, with more or less contrast, or in monochrome. A faded underlay makes what you draw on top of it easier to see.
Usage
- Enter PDFADJUST or click the button.
- Select one or more PDF underlays and press Enter.
Select PDF underlay:
- Choose what to adjust; Enter, what was adjusted last (the first time, the fade).
Enter PDF underlay option [Fade/Contrast/Monochrome] <…>:
- Enter the new value.
Options
- Fade (F): from 0 (no fade) to 100.
Enter fade value (0-100) <…>:
- Contrast (C): from 0 to 100.
Enter contrast value (0-100) <…>:
- Monochrome (M): with Yes, the underlay is shown in grayscale instead of in color.
Monochrome? [Yes/No] <…>:
Notes
- The value is applied to all selected underlays. The one offered between
< >is the one the first underlay already has: Enter leaves it as it is. - It is saved in the underlay as in AutoCAD. The change is undone with UNDO.
See also
PDFATTACH · PDFCLIP · PDFLAYERS · IMAGEADJUST · External references
PDFLAYERS — PDF Layers
Shows or hides the layers of a PDF underlay.
- Command:
PDFLAYERS· Global name:_PDFLAYERS - Ribbon: Insert › Import
Shows or hides the layers of a PDF underlay. Many PDFs made with CAD programs keep the layers of the original drawing (in the PDF they are called optional content groups): with this command you can turn off, for example, the dimensions or the furniture of a plan received as a PDF.
Usage
- Enter PDFLAYERS or click the button.
- Select the PDF underlay.
Select PDF underlay:
- Choose the option; Enter or
?lists the PDF layers with their state.
Enter an option [?/ON/OFF] <?>:
- With ON or OFF, enter the layer names. Wildcards are accepted (
*all,?one character), as well as several names separated by commas.
Enter PDF layer name(s) <*>:
Options
- ?: lists the layers, each one with ON (shown) or OFF (hidden).
- ON (ON): turns on the given layers.
- OFF (OFF): turns off the given layers.
Notes
- It only changes what is shown of the underlay: the PDF file is not modified.
- If the PDF has no layers, the command says so and ends.
- The layers turned off are saved in the underlay with LinceCAD's own data: AutoCAD shows the underlay with all its layers.
- In the interface, after selecting the underlay the Underlay Layers dialog box opens, with a check box per PDF layer (and Show all / Hide all); in scripts, SCRIPT and AutoLISP the choice is made on the command line. The dialog box cannot be scripted in the AutoCAD console: it has a unit test.
See also
PDFATTACH · PDFADJUST · PDFCLIP · LAYER · 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 · CAD with a perpetual license