Lince2D is a 2D technical drawing program that works directly with DWG and DXF files, the AutoCAD formats. It opens drawings as they arrive, edits them with the commands and aliases AutoCAD and progeCAD users already know, and saves them back to DWG or DXF, in whatever version the recipient needs.
Who it is for
For people who draw architectural, building services, civil engineering or surveying plans and exchange DWG files with others.
For AutoCAD users: commands have the same names (in the interface language, or their English name prefixed with _), the command line prompts come in the same order and the usual aliases work (L, C, PL, O...).
For beginners: the tutorials in this manual go from an empty drawing to a dimensioned plan with blocks, plotted to PDF.
What it includes
2D drawing and editing: lines, polylines, arcs, circles, hatches, text, dimensions, leaders and tables.
Layers, linetypes, lineweights, blocks with attributes, dynamic blocks and external references.
Layouts with their viewports and plotting to PDF with plot style tables (CTB and STB).
Raster images, georeferenced images, coordinate systems (EPSG) and import of SHP, KML and GeoJSON.
Basic AutoLISP and scripts (SCRIPT) to automate tasks.
Spanish and English interface.
How the help is organized
F1 opens the help. With a command running, it opens that command's page directly. The HELP command does the same.
Contents: the tree on the left, in three parts: this User manual (installation and step-by-step tutorials), the General help (concepts: interface, coordinates, layers, dimensions...) and the Reference (one page per command, the system variables and the AutoLISP functions).
Index: terms in alphabetical order; type the first letters to jump to them.
Search: looks for a word in every page.
PDF manual: the Help > Manual (PDF) menu opens this same content as a single document, handy for printing or reading without the program.
Each command page starts with its name, its English global name, its aliases and where it is on the ribbon and in the menus. Prompts are shown exactly as they appear on the command line, for example:
Lince2D is installed on Windows with a setup program and on Linux with a compressed package. In both cases it is installed for the current user, without administrator rights.
Requirements
64-bit Windows (x64) or 64-bit Linux (x86_64) with a graphical desktop.
A graphics driver with OpenGL, as found on any computer from recent years.
About 40 MB of disk space for the program and the symbol library.
AutoCAD or any other program is not needed: Lince2D reads and writes DWG and DXF files by itself.
Windows
The setup program is in Spanish for now; the steps below give the meaning of each option.
Run Lince2D-<version>-setup.exe.
Choose whether to install for your user only (recommended, no administrator needed) or for all users of the computer. For your user, the program goes to %LOCALAPPDATA%\Programs\lince; for all users, to the program files folder.
Tick the optional tasks you want: - Create a desktop shortcut. - Add Lince2D to "Open with" for .dwg and .dxf files: the program appears in the Explorer Open with menu when you right-click a DWG or DXF file. It does not change the default program: if AutoCAD opens those files on double-click, it still does.
Click Install. When it finishes you can start Lince2D from the last page of the wizard or from the Start menu.
The bibliotecas folder is installed next to the program, with the 2D symbols used by the Blocks palette and DesignCenter (see Inserting blocks).
Updating
Run the setup program of the new version: it replaces the previous one in the same folder and keeps your preferences.
Uninstalling
Open Settings > Apps > Installed apps, find Lince2D and click Uninstall. The program, its shortcuts and, if you chose it, the "Open with" entry are removed. User preferences (%APPDATA%\lince) are left in place in case you install it again; delete them by hand if you do not want them.
Linux
The package is lince-<version>-linux-x86_64.tar.gz. It can be used without installing:
tar xzf lince-<version>-linux-x86_64.tar.gz
cd lince-<version>-linux-x86_64
./lince
To install it for your user, with a launcher in the applications menu, run from that folder:
The last line copies the symbol library and this help to ~/.local/share/lince, where the program looks for them when they are not next to the executable. To uninstall, delete those files and the ~/.config/lince folder (preferences).
Language
On first start, Lince2D uses the system language if it has it (Spanish or English) and Spanish otherwise. To change it, open OPTIONS, Interface tab, and choose the Language; the change applies at once. The number format (decimal comma or point) is chosen on the same tab.
On the command line you always type as in AutoCAD, whatever the language: decimal point and a comma between coordinates (10.5,20). Global command names (_LINE, _CIRCLE...) work in any language.
Languages can be added without reinstalling: a <code>.ftl catalog in the idiomas folder next to the executable or in the user configuration folder is enough.
In this tutorial you create a drawing, draw a rectangle with lines and a circle, save it as DWG, close it and open it again. It takes about five minutes.
1. A new drawing
On start, Lince2D shows an empty drawing. To start another one at any time, enter NEW, click New on the Quick Access toolbar or press Ctrl+N. Each open drawing has its own tab above the drawing area.
New drawings are metric: one drawing unit is one millimetre. Coordinates are typed on the command line, at the bottom, where Command: appears.
2. Drawing some lines
Enter LINE (or L) and press Enter.
Specify first point:
Type 0,0 and press Enter: this is the coordinate origin.
Specify next point or [Undo]:
Type 100,0 and Enter: the first segment is drawn, 100 mm to the right.
Type @0,60 and Enter. The @ means a relative coordinate: 60 mm up from the last point.
Specify next point or [Close/Undo]:
Type @-100,0 and Enter: 100 mm to the left.
Type C (Close) and Enter: the line goes back to the first point and the command ends.
If you get a point wrong, type U (Undo) without leaving the command. After the command has finished, Ctrl+Z undoes the whole command.
3. Drawing a circle
Enter CIRCLE (or C) and Enter.
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:
Type 50,30 and Enter: the centre of the rectangle.
Specify radius of circle:
Type 20 and Enter.
To see the whole drawing on screen, double-click the mouse wheel or type Z, Enter, E (Extents) and Enter. The wheel zooms in and out; pressed and dragged, it pans the view.
4. Saving as DWG
Enter SAVEAS or press Ctrl+Shift+S.
In the dialog box, choose the folder, type the name primero and click Save.
The status bar confirms the file and the version. SAVEAS typed on the command line saves in the DWG 2018 format, the one used by AutoCAD 2018 to 2027. For another version, open the Lince2D menu (top left), hover over Save As and choose from the list: DWG 2018, 2013, 2010, 2007, 2004 or 2000, or DXF 2018 or 2000. Choose an older version when the recipient has an old program.
From then on, QSAVE (Ctrl+S) saves to the same file and in the same version, without asking.
5. Closing and opening again
Enter CLOSE (or use Close in the Lince2D menu). If there are unsaved changes, the program asks whether to save them.
Enter OPEN or press Ctrl+O, find primero.dwg and click Open. You can also drag the file from Explorer onto the program window.
The drawing opens in its own tab, as it was saved. Lince2D opens DWG files from release R14 up to the current one and DXF files from R12 on; large drawings are read in the background, with a progress bar.
Notes
Press Esc to cancel a command halfway, and Enter (or Space) on the empty command line to repeat the last one.
The program saves an automatic copy of the drawing every so often; if it closes unexpectedly, opening the file again warns that there is a more recent copy.
In this tutorial you draw the plan of a simple 8 × 6 m dwelling: 25 cm outer walls, a 10 cm partition with a doorway, an entrance door and two windows, each on its own layer. The following tutorials dimension this plan, add furniture and plot it.
The drawing is in millimetres (the unit of new drawings). All coordinates are typed on the command line; press Enter after each value. A coordinate with @ is relative to the last point: @8000,0 is 8 m to the right.
Enter LAYER (or LA). The Layer Properties Manager opens.
Click New Layer. A layer appears with its name ready to type: type Walls and Enter.
Repeat step 3 for Doors, Windows, Furniture, Dims and Text.
In the Color column of each layer, drop down the colour and choose the one in the table. On the Walls layer, also change the Lineweight to 0.50 mm: walls will plot thicker.
Double-click the Status column of the Walls layer to make it current (the ✔ mark appears) and close the dialog.
Layer
Colour
For
Walls
1 (red), lineweight 0.50
walls, partitions and jambs
Doors
3 (green)
door leaves and swings
Windows
4 (cyan)
window frames
Furniture
8 (grey)
furniture (blocks tutorial)
Dims
2 (yellow)
dimensions (dimensioning tutorial)
Text
7 (white)
room names
The same, from the command line with -LAYER (useful in scripts): each line is one answer and the empty one at the end is the Enter that ends the command.
-LAYER
N
Walls,Doors,Windows,Furniture,Dims,Text
C
1
Walls
C
3
Doors
C
4
Windows
C
8
Furniture
C
2
Dims
LW
0.5
Walls
S
Walls
2. Outer walls with PLINE and OFFSET
Enter PLINE (or PL).
Specify first point:
Type 0,0.
Specify next point or [Arc/Close/Width/Undo]:
Type @8000,0, then @0,6000 and then @-8000,0.
Type C (Close): the polyline closes. It is the outer face of the walls, a single object.
Double-click the mouse wheel to see the whole drawing.
Enter OFFSET (or O).
Specify offset distance:
Type 250, the wall thickness.
Select object to offset or <exit>:
Click the polyline.
Specify point on side to offset:
Type 4000,3000 (a point inside the dwelling) or click inside. The inner face appears. Press Enter to finish.
3. The partition
Enter LINE (or L), 5000,250, 5000,5750 and Enter: the line runs from wall to wall.
Enter OFFSET, 100, click the line you have just drawn, type 6000,3000 and press Enter. The partition lies between x = 5000 and x = 5100: the living room on the left, the bedroom on the right.
4. Opening the gaps
Each opening is marked with two jambs (short lines across the wall) and then the wall is trimmed between them.
Enter LINE, 1000,0, @0,250 and Enter: the first jamb of the entrance door.
Enter COPY (or CO) to repeat it at the other openings.
Select objects:
Click the jamb and press Enter.
Specify base point:
Type 1000,0.
Specify second point or <exit>:
Type, one after the other, 1900,0 (door), 2000,5750 and 3500,5750 (living room window), 5900,5750 and 7400,5750 (bedroom window). Press Enter to finish.
For the partition doorway: LINE, 5000,1000, @100,0 and Enter; then COPY that line with base point 5000,1000 and second point 5000,1800.
Enter TRIM (or TR).
Select cutting edges or <select all>:
Press Enter without selecting anything: every object acts as a cutting edge.
Select object to trim:
Click each piece of wall between two jambs: at the door, the outer and the inner line; at each window, both; at the partition, its two lines (zoom in with the wheel if they are close together). That is eight clicks. Press Enter to finish. If you trim the wrong piece, finish and press Ctrl+Z.
5. The entrance door
Drop down the layer control on the ribbon and choose Doors: it becomes the current layer.
Draw the open leaf: LINE, 1000,250, @0,900 and Enter.
Draw the swing with an arc by its centre. Enter ARC (or A).
Specify start point of arc or [Center]:
Type C (Center).
Specify center point of arc:
Type 1000,250 (the hinge).
Specify start point of arc:
Type 1900,250 (the other jamb).
Specify end point of arc:
Type 1000,1150 (the end of the leaf). The arc is drawn counterclockwise, from the jamb to the leaf.
6. The windows
Make the Windows layer current.
Draw the two lines on the wall faces: LINE, 2000,5750, @1500,0, Enter; and LINE, 2000,6000, @1500,0, Enter.
Copy the window to the bedroom: COPY, click the three pieces of the window, Enter, base point 2000,5750 and second point 5900,5750, Enter.
7. Saving
Enter SAVEAS and save the drawing as plano.dwg. The next tutorial starts from it.
Notes
Instead of typing, points can be specified with the mouse and object snaps (F3), such as Endpoint or Intersection, and with Ortho (F8) for horizontal and vertical lines. See Object snaps and precision.
The partition doorway is left open: in the blocks tutorial a door from the library is placed in it.
In this tutorial you dimension the plan from the previous tutorial and label the rooms. You create a dimension style for plotting at 1:50, draw chains of dimensions with DIMLINEAR and DIMCONTINUE and write text with TEXT.
Open plano.dwg. As before, press Enter after each typed value.
1. A dimension style for 1:50
The drawing is in millimetres and will be plotted at 1:50. The Standard style has text and arrows of 2.5 units: at 1:50 they would come out 0.05 mm high. The overall scale of the style multiplies all those sizes.
Enter DIMSTYLE (or D). The Dimension Style Manager opens.
Click New.... Create New Dimension Style appears below.
In New Style Name: type Plan50; in Start With: leave Standard. Click Continue.
Modify Dimension Style opens. On the Fit tab, set Overall scale = 50.
On the Primary Units tab, set Precision (decimal places) = 0: measurements will show in whole millimetres (8000).
Click OK.
In the manager, with Plan50 selected, click Set Current and close the dialog.
With a scale of 50, the 2.5 text is 125 mm high in the drawing and 2.5 mm on paper.
2. Dimension chain along the lower façade
Make the Dims layer current in the layer control.
Enter DIMLINEAR (or DLI).
Specify first extension line origin or <select object>:
Type 0,0 (corner of the wall).
Specify second extension line origin:
Type 1000,0 (first jamb of the door).
Specify dimension line location:
Type 500,-600: the dimension line sits 60 cm below the wall. It measures 1000.
Enter DIMCONTINUE (or DCO). It starts from the last dimension drawn.
Specify a second extension line origin or [Undo/Select] <Select>:
Type 1900,0 and then 8000,0. Each point adds a dimension next to the previous one: 900 (the door) and 6100. Press Enter to finish.
Add the overall dimension outside: DIMLINEAR, 0,0, 8000,0, 4000,-1200.
If a point in the chain goes wrong, type U (Undo) in DIMCONTINUE: it removes the last dimension without leaving the command.
3. Dimensions on the left side and the upper façade
Left side: DIMLINEAR, 0,0, 0,6000, -1200,3000. As the location is to one side, the dimension is vertical: 6000.
Upper façade, with the windows: DIMLINEAR, 0,6000, 2000,6000, 1000,6600.
DIMCONTINUE, 3500,6000, 5900,6000, 7400,6000, 8000,6000 and Enter. The chain measures 2000, 1500, 2400, 1500 and 600.
4. Interior dimensions
DIMLINEAR, 250,2000, 5000,2000, 2625,2000: the clear width of the living room, 4750. The dimension line runs inside the room.
DIMCONTINUE, 5100,2000, 7750,2000 and Enter: the partition (100) and the bedroom (2650).
5. Room names
Make the Text layer current.
Enter TEXT (or DT).
Specify start point of text or [Justify/Style]:
Type J (Justify).
Enter an option [Left/Center/Right/Middle/TL/TC/TR/ML/MC/MR/BL/BC/BR]:
Type MC: the text is centred on the point, horizontally and vertically.
Specify the point: 2625,1500.
Specify height <…>:
Type 200 (4 mm on paper at 1:50).
Specify rotation angle of text <…>:
Press Enter to keep 0.
Enter text:
Type LIVING ROOM and Enter. The command asks for another line below: press Enter on the empty line to finish.
Repeat for the bedroom: TEXT, J, MC, 6425,1500, 200, Enter, BEDROOM, Enter, Enter.
Add a title under the plan: TEXT, 0,-2200, height 250, Enter, GROUND FLOOR - 1:50, Enter, Enter.
6. Saving
Press Ctrl+S (QSAVE): the drawing is saved to plano.dwg, in the same version.
Notes
Dimensions are drawn with the current style and on the current layer. To change the style of a dimension later, select it and change it in the PROPERTIES palette; when a style is modified, all its dimensions are redrawn.
DIMBASELINE makes chains from a common origin, each dimension further out than the previous one.
To change the text of a dimension (for example, to add a prefix), use DIMEDIT.
TEXT always proposes 2.5 as the height: type the one you want for each text. For multi-line formatted text, use MTEXT.
In this tutorial you furnish the plan from the previous tutorials with symbols from the library installed with Lince2D: a door in the partition doorway, furniture and a socket with its attribute. You use the Blocks palette (INSERT) and ADCENTER.
Open plano.dwg.
The included library
The bibliotecas folder, next to the program, holds two drawings with 2D symbols in millimetres, on layer 0 (they take the layer they are inserted on). Block names are in Spanish:
Arquitectura.dwg (architecture): swing doors PUERTA_70, PUERTA_80 and PUERTA_90 (base point at the hinge), PUERTA_DOBLE_160 (double door) and PUERTA_CORREDERA_80 (sliding door); windows VENTANA_60, VENTANA_120 and VENTANA_180 (for a 15 cm wall); INODORO (WC), LAVABO (washbasin), BANERA_170 (bath), PLATO_DUCHA_80 (shower tray), FREGADERO_2 (sink); SILLA (chair), MESA_4_SILLAS (table with four chairs), CAMA_150 and CAMA_90 (beds), SOFA_3 and ARMARIO_120 (wardrobe).
Electricidad.dwg (electrical): ENCHUFE and ENCHUFE_DOBLE (sockets), INTERRUPTOR (switch), CONMUTADOR (two-way switch), PULSADOR (push button), PUNTO_LUZ (ceiling light), APLIQUE (wall light), FLUORESCENTE_120 (linear luminaire), TOMA_TV (TV outlet), TOMA_DATOS (data outlet) and CUADRO_ELECTRICO (distribution board). Most carry the CIR attribute (circuit).
Opened as drawings, each one shows its catalogue: every symbol with its name below.
1. The Blocks palette
Enter INSERT (or I), or click Insert on the ribbon. The Blocks palette opens, with three tabs: Current Drawing (the blocks already in the drawing), Recent and Libraries.
Click Libraries. The library folder appears with its two drawings and the thumbnails of their blocks. The Search box filters by name: type puerta to see only the doors.
Below are the Insertion Options: the Insertion Point is specified on screen; the Scale is 1 and the Rotation 0. Leave them like that: the symbols are drawn at real size.
The palette can stay open while you draw.
2. The partition door
Make the Doors layer current.
In the palette, click PUERTA_80. The command line starts inserting and the block follows the cursor.
Specify insertion point or [Scale/Rotate]:
The library door opens upwards; in the partition it has to open towards the living room. Type R (Rotate).
Specify rotation angle <0>:
Type 90.
It asks for the point again: type 5000,1000, the corner of the doorway on the living room face. The hinge is at the bottom and the leaf opens to the left, with its swing inside the living room.
The block is copied from the library file into the drawing the first time; from then on it also appears on the Current Drawing tab.
3. Living room furniture
Make the Furniture layer current.
Click MESA_4_SILLAS and type 2600,3300: the table is centred on that point, with its four chairs (a SILLA block inside another block).
Click SOFA_3 and type 2800,4750: the base point is the lower left corner and the back rests against the wall.
To place the same block several times, tick Repeat Placement: after each insertion it asks for the point again, until you press Enter or Esc.
4. The bedroom with DesignCenter
DesignCenter browses other drawings (open ones or those in the library folders) and copies blocks, layers, styles and layouts from them.
Enter ADCENTER (or ADC). DesignCenter opens.
In the tree on the left, under the library folder, choose Arquitectura.dwg.
Click Blocks in the list of categories: its thumbnails appear.
Double-click CAMA_150 and type 5700,3500.
Click ARMARIO_120, click Insert and type 6400,250: the wardrobe stands against the lower wall.
With the other categories (Layers, Text Styles, Dimension Styles...) the Add to Drawing button copies the chosen item into the drawing; if an entry with that name already exists, the drawing's own is kept.
5. A socket with an attribute
In the Blocks palette, Libraries tab, search for enchufe and click ENCHUFE (from Electricidad.dwg).
Type 5600,250: the socket sits on the inner face of the lower wall.
The block has an attribute, and the program asks for its value with the block's own prompt, Circuito <C2>:. Type C3 and Enter (or press Enter to keep C2).
The value can be changed later by double-clicking the block (ATTEDIT) or with EATTEDIT.
6. Saving
Press Ctrl+S. The plan now has walls, doors and windows, dimensions, text and furniture: the next tutorial plots it to PDF.
Notes
On the Current Drawing tab, Browse… inserts another whole DWG or DXF as a block.
Add Folder… (Libraries tab) adds your own folder of drawings with blocks: it appears in the palette and in DesignCenter.
-INSERT asks everything on the command line (name, point, scale and rotation); it is the one scripts use.
To keep the blocks you use most at hand, with their layer, scale and rotation, drag them to a tool palette (TOOLPALETTES).
In this tutorial you plot the plan from the previous tutorials to a PDF file, at 1:50 on an A4 sheet, in black and white with the monochrome.ctb plot style table. Then you see how layouts, with their viewports, are plotted.
Open plano.dwg and check that the Model tab, below the drawing area, is active.
1. The Plot dialog
Enter PLOT (or PRINT) or press Ctrl+P. The Plot dialog opens. Lince2D plots to vector PDF: lines, text (with its fonts) and hatches come out as on screen, at any magnification.
Printer/plotter: leave DWG To PDF.pc3 (lince PDF). It is the same name AutoCAD uses, so the settings saved in the drawing work for it too.
Paper size: choose ISO full bleed A4 (297.00 x 210.00 mm).
Drawing orientation: select Landscape.
2. What to plot: a window
In What to plot: choose Window and click Window <. The dialog hides and the command line asks for the corners.
Specify first corner:
Type -1800,-2400 (bottom left, outside the dimensions and the title).
Specify opposite corner:
Type 9200,7200. The Plot dialog comes back.
The other options are Extents (everything drawn), Display (what is on screen) and Limits.
3. The scale
In Plot scale: clear Fit to paper.
Choose 1:50 from the list. Below it you can read the equivalence: 1 mm of paper = 50 drawing units. As the drawing is in millimetres, 1 m of the plan measures 2 cm on paper.
Tick Center the plot: the window is placed in the middle of the sheet.
The window measures 11 × 9.6 m: at 1:50 it takes 220 × 192 mm and fits on the landscape A4.
4. The plot style table
The plot style table (CTB) decides the colour, lineweight and screening each drawing colour is plotted with.
In Plot style table (pen assignments): choose monochrome.ctb: everything comes out black, whatever its colour on screen. With grayscale.ctb colours become greys.
In Plot options: leave Plot object lineweights ticked (walls, at 0.50 mm, come out thicker) and Plot with plot styles (without this box the table is not applied).
Your own tables (.ctb files, or .stb if the drawing uses named plot styles) are copied to the %APPDATA%\lince\estilos_trazado folder or to the drawing folder, and appear in the same list.
5. Preview and PDF
Click Preview… to see the sheet as it will come out. Close the preview to return to the dialog.
If you want the drawing to remember these settings for next time, tick Apply to Layout.
Click OK, choose the folder and type the name plano.pdf. The command line confirms the file and its size.
The same dialog saves PNG or SVG instead of PDF: just type the name with that extension. The PNG resolution is chosen in PNG:.
6. Layouts and viewports
Besides Model, a drawing can have layouts (paper space): each tab is a sheet with its title block and one or more viewports that show the model at a scale. Drawings coming from AutoCAD usually have them ready.
Click the layout tab. You see the sheet, its printable area and the viewports.
Double-click inside a viewport to enter the model through it (the status bar button changes from PAPER to MODEL); double-clicking outside it, or PSPACE, goes back to paper.
With a viewport active, the sun-with-viewport icon of the layer control freezes a layer in that viewport only; in the Layer Properties Manager it is the VP Freeze column. That way each viewport shows its own content.
Whatever you draw with the layout active and outside the viewports goes on paper: a title block, a legend.
To plot it, enter PLOT on that tab. What to plot: proposes Layout and a 1:1 scale: the sheet comes out at its size and each viewport keeps its own scale.
New layouts and viewports are created with LAYOUT and MVIEW; the viewport scale is set in the status bar. For a plan drawn from scratch you can also plot from Model as in steps 1 to 5.
Notes
PAGESETUP saves named page setups to reuse them or import them from another drawing.
PREVIEW opens the preview directly, with the current settings.
To print on paper, choose the printer in Printer/plotter:.
In this tutorial you set up a drawing in real-world coordinates: you give the drawing a coordinate system, insert a georeferenced orthophoto and overlay the parcels of a SHP file, which Lince2D converts to the drawing's system if it comes in another one.
You need two sets of files for the same area, like those published by official mapping agencies:
An orthophoto in GeoTIFF, or in TIFF, JPG or PNG with its world file (.tfw, .jgw, .pgw or .wld) next to it. Here it is called ortofoto.tif.
A SHP with its companion files (.shx, .dbf and, preferably, .prj). Here it is called parcelas.shp.
The example uses ETRS89 / UTM zone 30N (EPSG:25830), the official system in much of mainland Spain; use the one for your area. In UTM, one drawing unit is one metre.
Enter GEOGRAPHICLOCATION (or GEO). The Geographic Location dialog opens and, at the same time, the command line asks:
Enter EPSG code of the coordinate system or [Remove/List] <…>:
Type 25830 and Enter (or choose the system from the list in the dialog and click OK). The command line confirms the chosen system.
This is the target system: everything imported with its own system is converted to it. Type L (List) to see the available systems: ETRS89, WGS84 and ED50 in zones 28 to 31, REGCAN95, Web Mercator (3857) and geographic coordinates. The AutoCAD code, such as ETRS89.UTM-30N, is accepted too.
The drawing is assumed to be, or to be going to be, in coordinates of that system: GEOGRAPHICLOCATION does not move what is already drawn.
2. The orthophoto
Create an Orthophoto layer and make it current, so that you can turn it off or lock it later.
Enter GEOIMAGE.
Enter image file name to attach or [Browse] <Browse>:
Press Enter (Browse) and choose ortofoto.tif.
The image is placed at its coordinates, with its pixel size and rotation, read from the world file or the GeoTIFF tags. The command line says which georeferencing file it used and which system the image is in.
Double-click the mouse wheel to see the whole image.
If the image states its coordinate system and it differs from the drawing's, it is reprojected on insertion. If it does not, it is inserted as it is: its coordinates must already be in the drawing's system.
3. The SHP parcels
Create a Parcels layer, with a colour that stands out on the photo (for example 2, yellow), and make it current.
Enter MAPIMPORT (or SHP2CAD). The Import SHP, KML or GeoJSON dialog opens.
In File click Browse… and choose parcelas.shp. The dialog shows the Contents: how many features and how many fields it has.
Layer from field: leave none so that everything goes to the current layer, or choose a field of the table (for example, the land use or type field): each feature goes to a layer named after the value of that field, created if it does not exist.
Block for the points: only matters if the file has points. With (point object), each point is a POINT object; with a block of the drawing, each point is that block, and its attributes take the values of the fields with the same name.
File coordinate system: the one stated in the .prj appears. If the file has no .prj, choose its system here; with (no reprojection) the coordinates are imported as they are.
Drawing coordinate system shows EPSG:25830. Click OK.
The parcels are drawn as closed polylines (polygon holes too) over the orthophoto. If the SHP was in another system, for example zone 29 or geographic coordinates, it has already been converted. The table data of each feature is kept with it, as extended data.
The same can be done on the command line, for example in a script:
SHP, KML, KMZ or GeoJSON file:
Field for the layer (…) or [None] <None>:
Block name for the points <point object>:
4. Checking coordinates
Enter GEOCOORD.
Specify point or [System] <EPSG:…>:
Click a parcel corner: the command line shows its drawing coordinates and its WGS84 latitude and longitude. With S (System) you choose another target system, for example 4326 or 23030 (ED50).
With the drawing georeferenced, clicking the coordinates on the status bar toggles them with the latitude and longitude of the cursor.
5. Saving and sharing
Save as DWG: the coordinate system is saved the way AutoCAD saves it, and AutoCAD recognizes it when it opens the drawing (GEOGRAPHICLOCATION).
The image is not stored inside the DWG: the drawing points to the file. Send the orthophoto and its world file along with the drawing.
MAPEXPORT writes the selected objects to SHP, KML, KMZ or GeoJSON, with the table data they came with. KML and GeoJSON are in WGS84: a KMZ opens directly in map viewers.
Notes
Image formats: TIFF and GeoTIFF, JPG, PNG, BMP, GIF and WebP. ECW and JPEG 2000 are not read: convert them to GeoTIFF first.
If the image has no georeferencing, place it with GEOREFIMAGE, giving two or three points on the image and their real position.
So that the orthophoto does not cover the parcels, send it to the back with DRAWORDER. IMAGEADJUST changes its brightness and contrast, and TRANSPARENCY lets what is underneath show through its transparent pixels.
With the ED50 datum, the conversion to ETRS89 uses the official IGN grid (SPED2ETV2.gsb) if it is in the program's rejillas folder (centimetre accuracy); otherwise, a 7-parameter transformation (≈ 1.5 m).
An alias is a short way of typing a command on the command line: L instead of LINE, C instead of CIRCLE. Lince2D uses the usual AutoCAD aliases in each language, so muscle memory works just the same.
Type the alias and press Enter or Space, as if it were the full name.
Every command also has an English global name prefixed with _ (_LINE, _CIRCLE), which works in any interface language: it is the one to use in scripts and in AutoLISP.
As you type, the command line suggests the commands starting with those letters; an exact alias always comes first.
Your own aliases
Aliases can be changed and added with ALIASEDIT: they are saved in lince.pgp, in the configuration folder (%APPDATA%\lince; on Linux, ~/.config/lince), with the syntax of AutoCAD's acad.pgp (LL, *LINE). An AutoCAD acad.pgp can be imported as it is: its external commands are ignored.
Your own alias wins over a built-in one with the same letters, but not over a command name.
With _ or . in front, your own aliases are not used.
They apply at once, without restarting.
Built-in aliases
The table lists every command with its name, its global name and its aliases in the language of this page.
From top to bottom, the Lince2D window has the ribbon (or the menus and toolbars of the Classic workspace), the drawing area, the layout tabs, the command line and the status bar. Palettes (Properties, layers, blocks...) open when you need them and can float over the drawing or be docked at its sides.
Workspaces
A workspace is a named layout of the interface. Two are built in:
Drafting & Annotation (ribbon): the ribbon with its tabs, the Lince2D ▾ application button and the Quick Access toolbar (New, Open, Save, Save As, Undo, Redo and Plot).
Classic (menus and toolbars): the traditional menu bar (File, Edit, View, Insert, Format, Tools, Draw, Dimension, Modify, Window and Help) and the Standard, Draw, Modify and Layers toolbars.
Each workspace also remembers the ribbon state, how the command line is placed and which palettes are open, on which side and how wide. The ⚙ gear on the status bar shows the current one and, when clicked, lists them all to switch with one click. WSSAVE saves the current layout with a name and WORKSPACE renames and deletes them. They are kept when the program closes.
Both built-in workspaces give access to the same commands. Commands that are not finished yet are dimmed; hovering over any button shows its description.
The ribbon
Tab
Panels
Home
Draw, Modify, Annotation, Layers, Block, Groups, Properties, Utilities and Clipboard
Insert
Block, Attributes, Reference, Content and Geolocation
Annotate
Text, Dimensions, Leaders, Tables and Annotation Scaling
View
Navigate, Isolate, Palettes, Coordinates and Interface
Manage
Drawing, Applications and Customization
Output
Plot and Export
Every available command is in some panel. Each panel shows its large buttons and two columns of small ones; if it has more, the ▾ in its title expands the rest. While you edit a block, the Block Editor contextual tab appears (see Blocks).
When the window is narrow, the panels that do not fit collapse, from right to left, into a button with their icon, title and ▼ that drops the panel down below.
Minimizing the ribbon
The ▴/▾ button to the right of the tabs cycles through the ribbon states; right-click it to choose one directly:
Show Full Ribbon: tabs and panels.
Minimize to Tabs: only the tabs; clicking one drops its panels over the drawing, and they fold away when you choose a command or click elsewhere.
Minimize to Panel Titles: the tabs and the titles of their panels; each title drops its panel down.
The command line
The keyboard always goes to the command line, as in AutoCAD: just start typing.
It shows the last three lines; the text window (F2) has the full history.
While you type a command name, a list of up to 8 suggestions with their descriptions appears: choose with the arrow keys and complete with Tab or a click.
Enter or Space sends what you typed (Space does not while you are typing text). Enter on an empty line repeats the last command.
The options in brackets in the prompt are shown in blue and can be clicked; typing their capital letters also works.
You can type the command name, its alias (built-in or your own) or the global English name with _ (_LINE) in any language.
A line that starts with ( is evaluated as AutoLISP (see AutoLISP).
Floating command line
The ⇱ button at its left undocks the command line: it becomes a window without a title bar that you can drag anywhere and widen by its edges. While it floats, the ◐ button sets its transparency (opacity from 10 to 100 %); it turns opaque when the mouse is over it. ⇲ docks it again below the drawing.
◂ / ▸ (Dock left / Dock right): the palette docks on that side and the drawing narrows to make room. Several palettes on the same side share its height. Drag the edge facing the drawing to change the width.
◻ (Floating): it becomes a floating window again.
📌 (Auto-hide), docked only: the palette folds into a vertical tab at the edge of the window and slides out when the mouse passes over it.
Customizing
CUI changes the commands of any ribbon panel or Classic toolbar (add, remove and reorder) and assigns your own keyboard shortcuts. Your own aliases are edited with ALIASEDIT and saved in lince.pgp, with the syntax of AutoCAD's acad.pgp (one can be imported). Everything is saved in the configuration folder (%APPDATA%\lince; on Linux, ~/.config/lince), together with the workspaces.
The status bar
Item
What it does
Coordinates
Cursor position. Click to add latitude and longitude when the drawing has a coordinate system
Layer
Current layer
⚖ 1:1
Annotation scale (CANNOSCALE); click to choose another one from the drawing's list
OSNAP
Object snaps (F3); right-click to choose the modes
ORTHO
Ortho mode (F8)
POLAR
Polar tracking (F10); right-click for the increment angle
OTRACK
Object snap tracking (F11)
SNAP
Snap the cursor to the grid (F9)
ISO
Isometric drafting, with the current plane (F5 switches planes)
DYN
Dynamic input (F12)
ISOLATE
Isolate or hide objects; on while there are hidden objects
Current workspace; its menu switches it, saves it and opens the customization
Next come the program messages and, at the far right, what was drawn in the last redraw and how long it took.
Drawing tabs and layout tabs
With two or more drawings open, their tabs appear above the drawing area; Ctrl+Tab and Ctrl+Shift+Tab switch to the next and previous one. Below the drawing are the Model tab and one tab per layout (see Layouts and plotting).
Shortcut menu and double-click
Right-clicking in the drawing area opens a menu that depends on what you are doing:
With a command running: Enter, Cancel and the options of the prompt.
With no command: repeat the last command, the usual editing commands if something is selected (Erase, Move, Copy, Scale, Rotate, Mirror) and Deselect All, plus Undo, Redo, Zoom Extents, Select All and Properties.
Double-clicking an object opens its editor: a text, TEXTEDIT; a hatch, HATCHEDIT; a block with attributes, ATTEDIT; a block without attributes, BEDIT; a table cell, TABLEDIT. For any other object it opens the Properties palette.
You can also open a drawing by dragging the file onto the window.
When a command asks for a point, you can specify it by clicking in the drawing, with an object snap, or by typing its coordinates on the command line. Coordinates are Cartesian, in drawing units, in the current User Coordinate System (UCS), which at first is the World Coordinate System (WCS).
Ways to type a point
Form
Example
Meaning
Absolute
100,50
X = 100, Y = 50 from the origin
Relative
@20,-10
20 to the right and 10 down from the last point
Relative polar
@50<30
50 units from the last point, at 30°
Absolute polar
80<45
80 units from the origin, at 45°
Direct distance
35
35 units from the last point, in the direction of the cursor
World
*100,50 or @*20,0
In the WCS even if there is a UCS
Input is always typed as in AutoCAD: decimal point and comma between X and Y (10.5,20), whatever number format is chosen in OPTIONS.
Angles are typed in degrees and measured from the X axis, counterclockwise.
Direct distance entry is very handy with Ortho (F8) or polar tracking (F10): point with the mouse and type only the length.
When the command expects a number (a radius, a height, a factor), what you type is that number, not a point.
Dynamic input (F12)
With DYN on (it is on at startup), the command prompt appears next to the cursor and, when a point is requested, two fields with live values:
for the first point, X and Y;
for the following ones, the distance and the angle from the last point.
What you type goes to the active field. Tab locks that value (the cursor is constrained to it and a padlock appears) and moves to the other field; Enter sends the point. Without Tab, what you type is read exactly as on the command line. F12 or the DYN button on the status bar turns it on and off.
Coordinates on the status bar
The left end of the status bar shows the cursor position (or that of the point it snaps to, if there is an object snap or grid snap). It uses the units and precision set with UNITS and the number format from OPTIONS: with a decimal comma, X and Y are separated by a semicolon (12,5; 30). If the drawing has a coordinate system (GEOGRAPHICLOCATION), clicking the coordinates adds latitude and longitude.
Drawing units
UNITS sets how lengths and angles are displayed (decimal, feet and inches, degrees-minutes-seconds, bearings...) and their precision. The variables LUNITS, LUPREC, AUNITS, AUPREC and INSUNITS store these settings in the drawing.
A UCS is an origin and axes of your own, moved or rotated with respect to the WCS: for example, aligned with a building that does not follow the axes of the plan. Lince2D has UCSs in the plane, like AutoCAD in 2D:
UCS defines the current UCS (by origin and X axis, aligned with an object, rotated with Z...), saves it with a name and goes back to the previous one or to the world system. UCSMAN manages named UCSs.
With a UCS, the coordinates you type and those shown in the status bar are in the UCS; an asterisk in front (*x,y) gives them in the world system.
Ortho, the grid, snap and the crosshairs are aligned with the UCS, and so are RECTANG and the rotation of TEXT. Polar tracking, dynamic input and the angles of other commands stay on the world axes.
The UCS icon, at the lower left or at the origin, is set up with UCSICON (variable UCSICON).
PLAN rotates the view so that the UCS X axis is horizontal.
The UCS is saved in the drawing as in AutoCAD. In AutoLISP, trans converts points between the WCS and the UCS.
Clicking "close enough" is not enough to draw accurately: object snaps take the cursor to exact points on objects (endpoints, centers, intersections...), and Ortho, polar tracking and object snap tracking guide it along exact directions. All these aids work only while a command is asking for a point.
Object snaps (F3)
With OSNAP on, moving the cursor near a key point shows a yellow marker with its name, and the click snaps to that point. F3 or the status bar button turns snaps on and off; right-clicking the button opens the list of modes, with Select All and Clear All. At startup all modes are on except Nearest.
Mode
Type
Point
Endpoint
END
End of lines, arcs, polyline segments
Midpoint
MID
Midpoint of a line, an arc or a segment
Center
CEN
Center of circles, arcs and ellipses
Node
NOD
Point objects
Quadrant
QUA
Points at 0°, 90°, 180° and 270° of circles, arcs and ellipses
Intersection
INT
Crossing of two objects
Extension
EXT
Extension of a line or arc beyond its endpoint
Insertion
INS
Insertion point of blocks, texts and attributes
Perpendicular
PER
Foot of the perpendicular from the last point
Tangent
TAN
Tangent point from the last point
Nearest
NEA
Point on the object nearest to the cursor
Snap override: when the command asks for a point, type the abbreviation (END, MID, TAN...) and press Enter: only that mode applies to the next point, even if OSNAP is off. The Spanish abbreviations (FIN, MED, CER...) and the underscore forms (_end) are accepted too. Object snaps also work inside inserted blocks and dimensions.
Object snap tracking (F11)
With OTRACK and object snaps on, rest the cursor on an object snap for half a second: the point is acquired and marked with a green cross. Horizontal and vertical tracking paths come out of each acquired point; the cursor snaps to them and to their intersections with other paths or with polar paths. Up to 7 points can be acquired; resting on one again releases it. The Extension mode is acquired the same way, by resting on an endpoint.
Ortho (F8) and polar tracking (F10)
ORTHO forces the next point to be horizontal or vertical from the last one.
POLAR snaps the cursor to directions that are multiples of the increment angle when it passes near them, with a dashed tracking path and a tooltip with the distance and angle. Right-click the button to choose the increment: 90°, 45°, 30°, 22.5°, 18°, 15°, 10° or 5°.
Ortho and polar tracking exclude each other: turning one on turns the other off. With either of them, typing just a distance places the point in the marked direction (see Coordinates and input).
Grid and snap (F9)
The model background shows a grid that adapts to the zoom: its spacing is a power of 10 with at least 25 pixels between lines. With SNAP (F9) the cursor jumps to the nodes of that grid. The grid cannot be configured or hidden yet (the GRID toggle and F7 are not available yet). With a rotated UCS, the grid, snap and Ortho follow its axes (see Coordinates and input).
Isometric drafting (F5, Ctrl+E)
To draw isometric views in 2D, turn on isometric drafting with ISODRAFT or the ISO button on the status bar. Ortho, the grid, snap and the crosshairs then follow the two axes of the current isometric plane:
Plane
Axes
Left
90° and 150°
Top
30° and 150°
Right
30° and 90°
F5 or Ctrl+E switch to the next plane (so does ISOPLANE), and ELLIPSE offers the Isocircle option to draw circles in the plane. The mode is saved in the drawing (SNAPSTYL and SNAPISOPAIR).
Order of priority
When several aids are on, the point is decided as follows: first the object snap under the cursor, if any; otherwise tracking (polar or object snap tracking); otherwise grid snap and Ortho. Dynamic input can then lock the distance or the angle with Tab.
Almost all editing commands work on a set of selected objects. You can select them before starting the command (pre-selection, or noun/verb selection) or when the command asks for them with the prompt:
Select objects:
Ways to select
Action
Result
Click an object
Selects it (5-pixel pick box)
Drag from left to right
Window: selects what lies entirely inside the rectangle
Drag from right to left
Crossing: selects what lies inside or crosses the rectangle
While selecting for a command, adds the last object created
Enter, Space or right-click > Enter
Ends the selection and the command goes on
While selecting, the object under the cursor is highlighted so you can see what a click would select. Selected objects are drawn highlighted and, with no command running, show their grips (see Editing).
Pre-selection
With no command running, each click or window adds objects to the selection. If you then start an editing command (ERASE, MOVE, COPY...), the command uses that selection and does not ask again. To clear it:
press Esc (with a command running, the first Esc cancels the command and the second one clears the selection);
click an empty area of the drawing;
or use Deselect All on the shortcut menu.
With something selected, Delete erases it and right-clicking offers the most common editing commands.
What cannot be selected
Objects on locked layers: they are visible, but neither clicks nor windows select them (a few layer commands, which only need to know an object's layer, do accept them).
Objects on layers that are off or frozen, which are not visible.
A group (GROUP) is a named set of objects that are selected together. With the PICKSTYLE variable set to 1, selecting a member selects the whole group; Ctrl+Shift+A toggles this behavior. GROUPEDIT adds or removes members and UNGROUP dissolves the group.
Selecting by properties
QSELECT: selects by object type and by the value of a property (layer, color, linetype...).
SELECTSIMILAR: selects the objects of the same type and properties as the selected ones.
The PROPERTIES palette shows a drop-down list by type ("All (6)", "Line (2)"...) to view or change only part of the selection.
Table cells
With no command running, a click inside a table selects the cell; Shift+click or dragging from one cell to another selects a range (see Tables).
Notes
AutoCAD's Previous, Fence and polygon window options and selection cycling between overlapping objects are not available yet.
AutoCAD's selection variables (PICKFIRST, PICKADD...) cannot be changed: Lince2D behaves as with their default values.
Objects are changed with the editing commands (MOVE, COPY, ROTATE, TRIM...) or directly with the mouse, through their grips. This page covers what all of them have in common.
Grips
When you select objects with no command running, their grips appear: blue squares at the points that define each object (endpoints and midpoints of segments, center and quadrants of circles and arcs, insertion point of blocks and texts...). The one under the cursor turns red.
Click a grip: it becomes the hot grip (red) and STRETCH mode starts.
Specify stretch point or [Base point/Copy/eXit]:
Move the cursor and click where the point must go (object snaps and typed coordinates work). You can also drag the grip and drop it in place.
Enter or Space cycles to the next mode, in this order:
Mode
What it does
** STRETCH **
Moves the point; if several objects share it, all of them are stretched
** MOVE **
Moves the selected objects
** ROTATE **
Rotates the objects around the grip (or the base point); a number is the angle
** SCALE **
Scales the objects from the grip; a number is the factor
** MIRROR **
Mirrors them about the line from the grip to the point you specify
Every mode has three options:
Base point (B): picks another base point instead of the grip.
Copy (C): keeps the original and creates a copy with each click, until you press Enter.
eXit (X): ends without further changes. Esc cancels as well.
Dimensions, tables (column widths, row heights) and dynamic blocks have their own grips; those of dynamic blocks are drawn in cyan.
Undo and redo
UNDO (Ctrl+Z) undoes the whole last command; it can be repeated up to 50 times.
You can copy from one drawing and paste into another open drawing. The clipboard keys only act when the command line is empty and no command is running; if another text box has the keyboard focus, they copy and paste text as usual.
Properties
The PROPERTIES palette (Ctrl+1, or double-click an object) shows and changes the properties of the selection:
General: color, layer, linetype, linetype scale and lineweight, common to all objects.
Geometry and sections specific to each type: coordinates of a line, radius of a circle, vertices of a polyline, contents of a text, style of a dimension, cells of a table, properties of a dynamic block...
When the objects have different values, *VARIES* is shown. Read-only values are grayed out.
With nothing selected, the palette shows the current properties: the ones new objects will take.
MATCHPROP copies the properties of one object to others.
Layers organize a drawing like stacked transparent sheets: every object is on a layer and, unless the object says otherwise, the layer sets its color, linetype, lineweight and transparency. Turning a layer off, freezing it or locking it affects all its objects at once.
The layer control
The layer control is on the ribbon (Home tab, Layers panel) and on the Layers toolbar of the Classic workspace: the drop-down list with the current layer and, for each layer, the state icons:
Icon
State
Effect
Light bulb
On or off
Objects on a layer that is off are neither shown nor plotted
Sun or snowflake
Thawed or frozen
Like off, and also left out of calculations; the current layer cannot be frozen
Sun with viewport
Frozen in the current viewport
Only in a layout viewport
Padlock
Unlocked or locked
Objects are visible but cannot be selected or modified
Color swatch
Layer color
Click to change it
Choosing a layer in the drop-down list makes it current: new objects are created on it. The current layer is also shown on the status bar.
The Layer Properties Manager
LAYER opens the Layer Properties Manager, a palette with one row per layer and AutoCAD's columns: status, name, on, freeze, VP freeze, lock, color, linetype, lineweight, transparency, plot, new VP freeze and description. Click a column title to sort, select several layers at once, and search by name with wildcards (*, ?).
Filters: property filters (conditions on name, state, color, linetype...) and group filters (a list of chosen layers), in a tree on the left, with the option to invert them.
Layer states (LAYERSTATE): save the settings of all layers so you can restore them later. They are stored in the drawing as in AutoCAD, which lists and restores them.
The global linetype scale is LTSCALE; the one for new objects is CELTSCALE. The current values are in CLAYER, CECOLOR and CELTYPE. Lineweights are always shown on screen (the LWDISPLAY toggle is not available yet), and when plotting they depend on the plot style table.
To change the properties of objects already drawn, use the PROPERTIES palette or MATCHPROP.
Transparency
Transparency lets what is underneath an object show through: at 50 %, the object is half visible over the background and over whatever is behind it. Object transparency is changed in the Properties palette; layer transparency, in the Transparency column of the layer manager or with the TRansparency option of -LAYER. New objects take CETRANSPARENCY, which starts as ByLayer.
The TRANSP button on the status bar (TRANSPARENCYDISPLAY) shows or hides it on screen; it does not change the drawing.
It is always plotted to PDF, SVG and PNG (there is no option to plot without it).
It is saved in DWG files from version 2004 (group code 440 on objects and AcCmTransparency data on layers); DWG 2000 keeps the layer transparency but not the object transparency.
Multiline text with its own colors inside the text loses its transparency.
Lince2D has AutoCAD's two kinds of text: single-line text (TEXT), created with TEXT, and multiline text or paragraph text (MTEXT), created with MTEXT. Both use a text style, which sets the font and its shape, and both are drawn with the real SHX or TrueType fonts, on screen and when plotting.
Single-line text
TEXT asks for the start point, the height and the rotation, and then the contents. Each line you type is a separate text object and the next one is placed below it; Enter on an empty line ends the command.
Specify start point of text or [Justify/Style]:
Justify chooses which of the 15 points of the text is the insertion point (Left, Center, Right, Middle and the nine combinations of top, middle and bottom).
Style changes the text style used (? lists them).
Multiline text
MTEXT asks for the two corners of the paragraph box; the width of the box decides where lines wrap. Before the second corner you can change the height, justification, style, rotation and width:
Specify opposite corner or [Height/Justify/Style/Rotation/Width]:
Then the Text Editor opens, with style, height, justification, width and color, and bold, italic and underline buttons that apply to the selected text. Each line in the editor is a paragraph. AutoCAD's MTEXT formatting codes are honored (font change, height, color, underline, stacked fractions...).
Editing text
Double-click a text, or use TEXTEDIT, to change its contents: a single-line text on the command line itself and an MTEXT in its editor. The PROPERTIES palette also changes the height, style, justification and rotation.
Text styles
STYLE opens the text style manager: create, rename, delete and set current. Each style sets:
Setting
Effect
Font
An SHX file (with an optional big font for Asian languages) or a TrueType font
Height
0 to ask for it in each text, or a fixed height
Width factor
Narrows (less than 1) or widens (more than 1) the characters
Oblique angle
Slants the characters, between -85° and 85°
Annotative
New texts are written with the paper height and shown at the annotation scale
A field is a piece of text that is computed automatically: the date, the file name, the drawing author or title, the user, or a property of an object (the length of a line, the area of a boundary, the layer...). FIELD creates a text with a field or puts it in an existing text.
Fields are shown on a gray background that is not plotted (FIELDDISPLAY turns it off).
They are updated when the drawing is opened and saved; UPDATEFIELD updates them at any time, including the date.
They are saved as in AutoCAD: the fields of an AutoCAD drawing are read and updated, and the other way round.
Find, replace and check spelling
FIND finds a text and replaces it with another in the whole drawing or in the selection: texts, attributes, dimension texts, multileaders and table cells, matching case and whole words or not.
SPELL checks those same texts with the dictionary of the interface language (Spanish or English, both included with the program) and suggests corrections; your own words are added to a user dictionary.
Fonts
SHX: AutoCAD's stroke fonts (shapes 1.0 and 1.1, Unicode and big fonts).
TrueType: the system fonts (.ttf).
Lince2D does not ship AutoCAD's own fonts: it looks for them, in this order, in the drawing folder, in AutoCAD's font folders if AutoCAD is installed, and in the system fonts (on Linux, those of fontconfig). If a style's font is missing, it uses simplex.shx, txt.shx or Arial instead, the first one it finds, as AutoCAD does with FONTALT. For a drawing to look the same on another computer, copy its SHX fonts next to the DWG.
Notes
When a DWG is read, texts are placed as AutoCAD left them; texts from a DXF are justified again.
MTEXT indents, tabs and columns, text background masks and fields inside the MTEXT editor are not available yet.
The texts of dimensions, leaders and tables also use text styles.
A dimension measures the drawing and writes the measurement. In Lince2D every dimension is an AutoCAD dimension object (DIMENSION) with its style: it is drawn from its definition points and regenerated when it is moved, copied or its style changes, so AutoCAD recognizes it and can edit it.
A series of dimensions of all the selected geometry
All of them ask for the points one by one, with a preview; object snaps (Endpoint, Center, Intersection...) are almost essential to dimension accurately. The dimension is created on the current layer; its lines, arrows and text go on layer 0 of the dimension's block with ByBlock properties, as in AutoCAD.
TOLERANCE creates geometric tolerance feature control frames (position, flatness, perpendicularity...); measurement tolerances (± and limits) are turned on in the dimension style.
Editing dimensions
Grips move the dimension line, the text or the measured points.
DIMEDIT changes the text of dimensions or puts it back in its home position.
DIMSPACE evens out the spacing between parallel dimensions, DIMBREAK breaks them where other objects cross them and DIMJOGLINE adds a jog to a linear dimension.
The PROPERTIES palette has Dimension and Overrides sections: changing a dimension variable there overrides it for that dimension only, without touching the style (stored as AutoCAD does).
Associative dimensions
With DIMASSOC set to 2 (the initial value), a dimension whose points lie on the geometry (endpoint, midpoint, center, quadrant, node or polyline vertex) is associated with it: when the line, arc or polyline is moved, stretched, scaled or edited with grips, the dimension moves and its measurement changes.
If the dimension is moved on its own or its geometry is erased, the dimension is disassociated and stays where it is.
Associations are saved as in AutoCAD, both ways: associative dimensions of an AutoCAD drawing stay associative in Lince2D, and the other way round.
A point at an intersection or a nearest point does not associate the dimension.
Dimension styles
DIMSTYLE opens the dimension style manager, with Set Current, New, Modify, Rename and Delete. When you modify a style, its settings are on AutoCAD's tabs: Lines, Symbols and Arrows, Text, Fit and Primary Units. Changes to a style apply to all the dimensions that use it.
A new drawing starts with a metric ISO-25 style (arrows and text 2.5 high). The decimal separator of the measurements is the style's: with a comma, as in Spanish AutoCAD, the dimension reads "56,57". The current style is in DIMSTYLE.
Multileaders
MLEADER draws a multileader: arrowhead, leader line, landing and a text or a block.
MLEADERSTYLE: creates, modifies and sets current multileader styles.
MLEADEREDIT: adds leader lines to an existing multileader or removes some.
MLEADERALIGN: aligns the contents of several multileaders.
Annotation scales
For texts and dimensions to have the intended size on paper there are two ways:
Fixed scale: DIMSCALE multiplies all dimension sizes (with 50, a 2.5 arrowhead is 125 drawing units long, which is 2.5 mm on a 1:50 plot), and texts are written with the height already multiplied.
Annotative objects: they are written with the paper height (2.5) and shown at the size that matches the annotation scale (CANNOSCALE). If the plot changes scale, just change the annotation scale.
The current annotation scale is chosen with the selector on the status bar (or with CANNOSCALE) among the scales of the drawing's list, which is edited with SCALELISTEDIT. What is created annotative:
texts, multiline texts and dimensions created with an annotative style (Annotative box in STYLE and on the Fit tab of DIMSTYLE);
multileaders and tolerances with an annotative style;
any text or dimension set to Annotative: Yes in the PROPERTIES palette.
An annotative object can support several scales and keeps one representation (position and size) for each. OBJECTSCALE adds scales to it or removes them and, with ANNOAUTOSCALE, the new scale is added automatically when the annotation scale changes. In a layout, each viewport shows the annotative objects at its own scale: the same text comes out the same size in a 1:50 viewport and in a 1:100 one.
Everything is saved as in AutoCAD: annotative objects of an AutoCAD drawing look the same in Lince2D, and the other way round.
Notes
Annotative blocks cannot be created yet (those that come in drawings do change scale), and annotative multileader styles are the ones that come in drawings.
A grip moves all the representations of an annotative object, not only the one shown, and a copy of an annotative object supports only the current scale.
A block is a named set of objects that you define once and insert as many times as needed (a door, a socket, a symbol). Each insertion is a single object that can be moved, rotated or scaled; if you change the definition, all insertions change.
When you create a block you choose what to do with the original objects: retain them, convert them to an insertion of the block, or delete them. If the name already exists, you are asked whether to redefine it.
The Blocks palette shows thumbnails of the blocks in the current drawing, the recently used ones and those of the libraries. Click or drag a block to place it; scale and rotation are typed or picked with the mouse. Inserting a DWG or DXF file brings it in as a block with its layers, styles and nested blocks; definitions that already exist in the drawing are kept.
Tip: draw the contents of a block on layer 0 with ByBlock properties; that way each insertion takes the layer, color and linetype it is inserted with (see Layers).
Attributes
Attributes are variable texts inside a block (a reference, a circuit, a price).
ATTDEF creates an attribute definition: tag, prompt and default value. It is included in the block when the block is created.
When the block is inserted, the values are requested.
ATTEDIT (or double-click the block) and EATTEDIT change the values of an insertion.
BATTMAN changes the order, prompt, default value and modes of a block's attributes, and ATTSYNC updates the existing insertions to match the definition.
ATTEXT extracts attributes to a CSV file or to a table in the drawing.
Dynamic blocks
Dynamic blocks made with AutoCAD work in Lince2D: their grips are drawn in cyan and change visibility, flip, lengths, point positions, rotation, arrays and lookup tables. The Properties palette shows their values in the Custom section. RESETBLOCK resets them to the values of the definition. Lince2D cannot create new parameters or actions yet.
Block Editor
BEDIT (or double-click a block without attributes) opens a block definition as if it were a drawing: all commands, object snaps, grips and undo work. The Block Editor ribbon tab appears and, at the bottom, a bar with the block name.
BSAVE saves the definition and redraws all its insertions.
BSAVEAS saves the edited contents as a new block and leaves the original unchanged.
BCLOSE closes the editor; if there are unsaved changes, it asks.
The whole editor session is undone in one step. External references and anonymous blocks cannot be edited.
DesignCenter, palettes and libraries
ADCENTER browses other drawings, open or in a folder, and copies their blocks, layers, linetypes, styles and layouts into the current drawing.
TOOLPALETTES are palettes with blocks ready to insert with their scale, rotation and layer; fill them by dragging blocks from the Blocks palette or from DesignCenter.
Lince2D is installed with two libraries of its own in the bibliotecas folder: Arquitectura.dwg (doors, windows, furniture and sanitary fittings) and Electricidad.dwg (switches, sockets and lights, with CIR and REF attributes). Any DWG with blocks can serve as a library.
A hatch (HATCH) fills a closed boundary with a pattern of lines, a solid fill or a gradient: sections, materials, areas of a plan. Lince2D draws the hatches of any DWG or DXF with their pattern and islands, and creates new hatches with HATCH and gradients with GRADIENT.
Creating a hatch
Enter HATCH or click Hatch on the ribbon. The Hatch and Gradient dialog box opens.
Choose the Pattern, the Scale and the Angle.
Specify the boundary with Add: Pick points (click inside the area: Lince2D finds the closed boundary around it and any islands inside) or with Add: Select objects (select the closed objects that form it). Both can be combined. If the boundary has small gaps, HPGAPTOL closes them.
Click OK.
Islands (boundaries inside the boundary) are treated as in AutoCAD's Normal style: hatched and empty areas alternate inwards.
Patterns
Pattern
Look
SOLID
Solid fill in the hatch color
ANSI31
45° hatching, the usual one for sections
ANSI32
Pairs of lines at 45° (steel)
ANSI37
Grid at 45°
LINE
Horizontal lines
NET
Horizontal and vertical grid
CROSS
Crosses
DOTS
Dots
BRICK
Brick
HONEY
Hexagonal honeycomb
HORMIGON
Concrete
They are Lince2D's own definitions with the usual names, so AutoCAD recognizes the hatch. Hatches that come with a drawing are always drawn with the pattern they store, even if it is not in this list.
The scale multiplies the pattern spacing; the angle rotates it (with ANSI31, 0° gives the 45° hatching).
The Origin option of HATCH chooses the point the pattern passes through: for example, so that a row of bricks starts at the corner of the wall.
Editing a hatch
Double-click the hatch, or use HATCHEDIT, to change its pattern, scale, angle, gradient or origin. On the command line, HATCHEDIT also disassociates it from its boundary or associates it with other objects, separates it into independent hatches (one per area) and recreates its boundary as polylines. The PROPERTIES palette also changes the layer, the color and the other general properties. A hatch is moved, copied, rotated and scaled like any other object, and TRIM removes the piece you pick between the cutting edges.
Associative hatches
The hatches Lince2D creates are associative, as in AutoCAD: they keep the objects of their boundary and, if one of them is edited (with grips, MOVE, STRETCH, PEDIT...), the hatch is rebuilt to follow it. It stops being associative if the hatch is moved on its own, if a boundary object is erased or if it is trimmed. AutoCAD recognizes the associativity when it opens the drawing.
HATCHGENERATEBOUNDARY creates polylines with the boundary of a hatch that has lost it (without associating them).
Gradients
GRADIENT, or the Gradient tab of the HATCH dialog box, fills with a gradient of one color (towards black or white) or of two, in the nine AutoCAD types (linear, cylinder, spherical, hemispherical, curved and their inverted versions), centered or shifted and at any angle. They are saved as in AutoCAD, and the gradients that come in drawings are shown with their colors.
Related commands
BOUNDARY creates a polyline or a region from the boundary around a point, with the same search as HATCH.
A table is an object with rows and columns of cells holding text, numbers or formulas: bills of materials, area schedules, legends. Lince2D creates and edits tables compatible with AutoCAD's (TABLE object), which look and plot the same in both programs.
the number of columns and rows and their size (column width and row height in lines of text);
what the first and second rows are: title, header or data;
how it is placed: by its insertion point or with a window that sets the overall size;
the contents: empty, from a CSV file, or pasted text (separated by tabs, commas or semicolons).
Once placed, you start typing in the first cell: Tab and Shift+Tab move to the next and previous cell, and the arrow keys move between cells.
Selecting and editing cells
With no command running:
a click inside a cell selects it; Shift+click or dragging to another cell selects a range;
double-clicking a cell, or TABLEDIT, edits its text with the multiline text editor.
With cells selected, the Table Cell palette appears: insert and delete rows and columns, merge and unmerge cells, alignment, text height and color, fill color, and quick formulas (Sum, Average, Count). Each button is equivalent to TABLECELL and is undone separately. The PROPERTIES palette also shows Table and Cells sections.
Formulas
A cell that starts with = is a formula. References are column and row, as in a spreadsheet (A3, B2:B9).
Formula
Result
=Sum(B2:B9)
Sum of the range
=Average(B2:B9)
Average
=Count(B2:B9)
Number of cells with a value
=Min(B2:B9), =Max(B2:B9)
Minimum and maximum
=B2*C2+1
Arithmetic with +, -, * and / between cells and numbers
Formulas are recalculated when a cell changes, and a formula can use the result of another. A decimal comma is accepted, as in Spanish AutoCAD. They are stored as AutoCAD stores them, so AutoCAD keeps calculating them.
Grips
A selected table has grips to move it, to change the width of each column, the overall width and height (at the corners), and the height of each row. COPY, ROTATE, SCALE and EXPLODE work with tables as with any other object.
Table styles
TABLESTYLE creates and modifies table styles: cell margins and, for each kind of cell (title, header and data), text style and height, color, fill and alignment. The current style (CTABLESTYLE) can also be chosen on the ribbon, Annotate tab, Tables panel.
Import and export
CSV: TABLE imports it when the table is created; TABLEEXPORT saves the cells of a table to a CSV file, with formulas as their values.
ATTEXT creates a table with the attributes of blocks.
Notes
Formulas do not update their references when rows or columns are inserted or deleted.
Rows grow with the text but do not shrink by themselves. SCALE does not change text heights.
In DWG 2000, formulas are saved as values (in DXF 2000 they are kept).
An external reference (xref) is another DWG or DXF drawing displayed inside the current one without copying it: an architectural plan under the building services, a survey base, a project's common title block. If someone changes the referenced drawing, the change shows when it is reloaded. A PDF underlay is the same with a page of a PDF: a plan received as a PDF that serves as a background to draw on.
Attaching a reference
Enter XATTACH or click Attach DWG… in the XREF palette.
Choose the file and specify the insertion point, the scale and the rotation.
With the Overlay option the reference is an overlay: it is shown in this drawing, but not in the drawings that attach this one (useful to avoid carrying bases from one drawing to another). The reference's layers appear as reference|layer: they can be turned off, frozen or recolored like any other, and with VISRETAIN = 1 those changes are kept when it is reloaded. The reference content is shown somewhat faded (XFADECTL) to tell it apart from your own objects.
The references of a reference (nested ones) are also loaded and drawn; nested overlays are not.
The External References palette
XREF opens the External References palette, with the tree of DWG references (and their nested ones), the PDF underlays and the raster images of the drawing. For each reference it shows its status, type, size, date, saved path and the file that was found, and it has buttons to:
Button
What it does
Reload
Reads it again from disk
Unload
Stops showing it without removing it from the drawing
Detach
Removes it from the drawing with all its inserts
Bind
Turns it into a normal block of the drawing (BINDTYPE)
Change Path…
Chooses another file or fixes its path
The same is done on the command line with -XREF, which accepts wildcards in the names. If a reference's file changes while the drawing is open (for example, because someone else saved it), the status bar warns about it with a button to reload it.
Where files are looked for
As in AutoCAD, for each reference the program tries, in this order:
the saved path, if it is absolute;
the saved path, relative to the drawing's folder;
just the file name, in the drawing's folder.
That is why, to take a project to another computer, it is enough to copy the drawing and its references together. How the path of new ones is saved (full, relative or no path) is decided by REFPATHTYPE. For security, network paths (\\server\...) are not read, and nothing from a referenced file is ever run: only its geometry is read.
Clipping
XCLIP shows only part of a reference or a block, inside or outside a rectangular, polygonal or polyline boundary. XCLIPFRAME decides whether the boundary is shown.
PDF underlays
PDFATTACH attaches a page of a PDF; at scale 1 it measures the same as on paper.
PDFCLIP clips the underlay, PDFADJUST changes its fade or contrast or turns it monochrome, and PDFLAYERS turns the PDF layers off or on.
Lince2D turns the page into an image by itself, without external programs. That is why object snaps do not work on what is drawn in the PDF, and with a lot of zoom the pixels show.
Not available yet
Editing references in place (REFEDIT); the Block Editor does not open external references.
XCLIP clip depth (3D).
DWF and DGN underlays.
Alternatives
To bring the content of another drawing in permanently, insert it as a block with INSERT or -INSERT, or bind it with -XREF: its objects become part of the current drawing.
To copy only layers, styles or blocks from another drawing, use ADCENTER.
You can place raster images (photos, orthophotos, scanned drawings, logos) in the drawing, as in AutoCAD: the drawing stores only the image path, its position, size and rotation, not the pixels. So the image file must always travel with the drawing.
Formats
PNG, JPEG, BMP, TIFF (including GeoTIFF and tiled TIFF), GIF and WebP. ECW and MrSID cannot be read: convert them to GeoTIFF first with another program (for example, GDAL).
Inserting an image
Enter IMAGEATTACH or use the Insert tab. Enter opens the dialog box to choose the file.
Specify the insertion point (lower-left corner). The Path option chooses whether the path is saved Relative to the drawing folder or Full.
Enter the scale factor (with 1, the image takes the size given by its resolution and the drawing units) and the rotation.
The IMAGEFRAME variable controls image frames: 0, no frame; 1, displayed and plotted; 2, displayed but not plotted (for now Lince2D plots it too).
An image is moved, copied, rotated and scaled like any other object.
Large images
Very large images (orthophotos of hundreds of megapixels) are loaded in tiles and in the background: a reduced version appears first and the detail arrives as you zoom in. Their memory use is capped, so you can work with several at once. Huge PNG and JPEG files, unlike TIFF, are read whole; it is better to convert them to TIFF.
Plotting
Images come out in PDF, SVG and PNG with their clipping and transparency. To keep files from growing without limit, each image is plotted at 300 dpi and 16 megapixels at most.
Notes
Images are saved in DWG and DXF as AutoCAD saves them, and AutoCAD opens them in place.
Brightness and contrast are close to, but not exactly, AutoCAD's.
A georeferenced drawing has its coordinates in a real-world reference system (for example, ETRS89 / UTM 30N): every point of the drawing is a point on the ground. This way orthophotos, maps, GIS files and GPS data can be overlaid without moving them by hand.
Coordinate system of the drawing
GEOGRAPHICLOCATION assigns a coordinate system to the drawing. Type its EPSG code (25830, 4326...) or the Autodesk code (ETRS89.UTM-30N), or choose it in the dialog box; the List option shows the available systems and Remove deletes it. The drawing must already be in coordinates of that system: GEOGRAPHICLOCATION moves nothing, it only states which system the drawing is in. It is saved as in AutoCAD, which recognizes it.
Systems included
EPSG codes
ETRS89 / UTM 28N to 31N
25828 to 25831
WGS84 / UTM 28N to 31N
32628 to 32631
ED50 / UTM 28N to 31N
23028 to 23031
REGCAN95 (Canary Islands): geographic and UTM 27N and 28N
4081, 4082 and 4083
Geographic WGS84, ETRS89, ED50
4326, 4258, 4230
Web Mercator
3857
Transformations between ETRS89, WGS84 and UTM are accurate to better than a millimeter. ED50 transformations use the official NTv2 grid of the Spanish IGN if it is installed (in the rejillas folder next to the program or in AutoCAD's); otherwise a 7-parameter transformation with an error of about 1.5 m.
Geographic coordinates
With a coordinate system assigned, clicking the coordinates on the status bar adds the cursor's latitude and longitude.
GEOCOORD shows a point in WGS84 (latitude and longitude) or, with the System option, in any other system of the catalog.
GIS import and export
MAPIMPORT brings SHP (with its DBF), KML, KMZ and GeoJSON files into the drawing:
points, lines and polygons (holes as closed polylines);
reprojected to the drawing's system according to the SHP's .prj (KML and GeoJSON are always in WGS84);
the attributes of each feature are stored on the object as extended data;
the layer can come from a field, and points can be a block whose attributes take the values of the fields with the same name.
MAPEXPORT saves the selection to SHP, KML, KMZ or GeoJSON; the format comes from the file extension. SHP is written in the drawing's system, with its .prj and one file per geometry type. KML, KMZ and GeoJSON are written in WGS84 and need the drawing to have a coordinate system.
Georeferenced images
GEOIMAGE inserts an image at its real coordinates from its world file (.tfw, .jgw, .pgw, .bpw, .wld...) or its GeoTIFF tags. If the image carries its coordinate system (.prj or GeoTIFF) and it is not the drawing's, the image is reprojected.
GEOREFIMAGE places an image without georeferencing using control points: for each one, specify the point on the image and its real position. With two points the image is moved, rotated and scaled exactly; with three it is fitted by least squares.
Large orthophotos are loaded in tiles (see Raster images). ECW and MrSID cannot be read: convert them to GeoTIFF with GDAL.
Tips
Use meters as drawing units (UNITS) when working in UTM.
With UTM coordinates the numbers are large (X ≈ 400,000, Y ≈ 4,500,000): use ZOOMEXTENTS to find the drawing.
In model space you draw at full size (1 unit = 1 meter, or 1 millimeter, depending on the project). In the paper space of each layout you compose the sheet to be printed: the title block, notes, and one or more viewports that show the model at the chosen scale. Plotting turns the model or a layout into a PDF, SVG or PNG file.
Model and layout tabs
Below the drawing area are the Model tab and one tab per layout in the drawing. Switching to a layout shows the sheet of paper with its shadow and printable area, and the viewports with their contents.
A button next to the tabs shows whether you are working on paper (PAPER) or inside a viewport (MODEL); a click switches.
Viewports
Double-click inside a viewport, or use MSPACE, to enter it: what you draw or edit goes to the model, clipped and at the viewport scale.
Double-click outside the viewports, or use PSPACE, to return to paper.
On paper you draw the title block, the texts and the dimensions of the sheet, at paper size (in millimeters or inches).
Each viewport keeps its scale and its list of frozen layers: the Freeze in current viewport icon of the layer control hides a layer in that viewport only, on screen and when plotting. AutoCAD respects it.
Annotative objects of the model are shown in each viewport at its annotation scale (the viewport's own or the one matching its scale): the same text comes out the same size on paper in a 1:50 viewport and in a 1:100 one.
LAYOUT and the layout tab context menu create, copy, delete, rename and insert layouts from templates (drag the tabs to reorder). MVIEW creates viewports (also non-rectangular) and VPCLIP clips them; inside a viewport zoom changes its view, and its scale is set in the status bar or PROPERTIES. VPMAX maximizes it.
One saved with PAGESETUP, the previous one, or none
Printer/plotter
Output to a vector PDF file (saved as "DWG To PDF.pc3", as in AutoCAD)
Paper size
Those of "DWG To PDF.pc3": ISO (A and B), ANSI and ARCH; portrait or landscape
What to plot
Layout, Extents, Display, Limits or Window (two corners in the drawing)
Scale
Fit to paper or a scale: millimeters (or inches) of paper per drawing units
Offset
Plot origin or Center the plot
Plot style table
Color, screening and lineweight of each color when plotting
Options
Plot lineweights, plot with plot styles, plot paper space last, scale lineweights
When you click OK you choose the file: the extension (.pdf, .svg or .png) decides the format. For PNG you choose the resolution in dots per inch. Apply to Layout saves the settings in the layout.
The PDF is vector-based: lines, fills and texts (with their real SHX or TrueType fonts) stay sharp at any zoom. With a system printer, the sheet is printed at the printer resolution.
Plot styles (CTB and STB)
The plot style table decides the color, screening and lineweight each object is plotted with. Lince2D includes monochrome.ctb (everything in black) and grayscale.ctb (grays), and also uses the .ctb files (or .stb, if the drawing uses named plot styles) in the drawing folder and in %APPDATA%\lince\estilos_trazado. You can copy AutoCAD's tables there.
Page setups and preview
PAGESETUP manages the page setup of each layout and the named page setups, and imports them from other drawings. They are stored in the drawing as in AutoCAD.
PREVIEW shows the sheet exactly as it will be plotted, with plot styles; the wheel zooms and dragging pans.
EXPORT plots directly to PDF, SVG or PNG with the same dialog box.
Notes
Plotting is always wireframe (no hidden lines), which is what a 2D drawing needs.
Viewport views cannot be rotated yet, and ZOOM does not work inside a viewport yet.
Lince2D works directly with AutoCAD's formats: it opens and saves DWG and DXF with no conversion, and what it saves opens in AutoCAD with all its entities. Compatibility is checked with AutoCAD 2027 on dozens of real drawings, auditing every copy.
Opening
OPEN (Ctrl+O), or dragging the file onto the window, opens:
DWG files from R14 to 2018, that is, those written by every AutoCAD release from R14 to 2027;
text DXF files of the same versions.
Each drawing opens in its own tab, in the background and with a progress bar (an 80 MB plan takes a few seconds). If the empty drawing from startup (Drawing1) has not been touched, it is replaced. Several drawings can be open at once, and you can copy and paste between them.
Saving
QSAVE (Ctrl+S) saves the drawing in its format and version. A DWG older than 2000 (R14) is saved as DWG 2018.
SAVEAS chooses the format and version. In the application menu and the File menu, Save As has a submenu with all the versions; when typed, it proposes DWG 2018.
Save as
Opened by
DWG 2018
AutoCAD 2018 to 2027
DWG 2013
AutoCAD 2013 to 2027
DWG 2010
AutoCAD 2010 to 2027
DWG 2007
AutoCAD 2007 to 2027
DWG 2004
AutoCAD 2004 to 2027
DWG 2000
AutoCAD 2000 to 2027
DXF 2018
AutoCAD 2018 to 2027 and almost any CAD program
DXF 2000
AutoCAD 2000 to 2027 and older programs
When saving to an earlier version, objects that do not exist in it (proxy objects of third-party applications, render sun) are left out, with a warning. Drawings with AutoCAD Architecture objects can only be saved as DWG in their original version. The DWG 2000 format is not compressed, so it takes about twice the space of the same drawing in 2004 or later.
Safe saving
The drawing is first written to a temporary file; only when it is complete does the original become .bak and the new file take its place. If anything fails, the original is left intact.
Read-only files are not overwritten.
When you close a drawing, exit, or open another drawing in its place, you are asked whether to save the changes.
Automatic save
Every 10 minutes, drawings with unsaved changes are saved in the background to the user's temporary folder (%TEMP%\lince\<name>_<n>.sv$). The file is deleted when the drawing is closed normally. If Lince2D closes unexpectedly, opening the drawing again warns that there is a more recent automatic save: change its extension to .dwg and open it.
Damaged drawings
AUDIT checks the integrity of the open drawing and fixes what is safe to fix.
RECOVER opens a damaged file in tolerant mode, recovers whatever can be read and shows a report. Then save the drawing to keep what was repaired.
If a file cannot be read, the error is shown and the drawing that was open is not lost.
OPTIONS (alias OP; also on the application menu and the Tools menu) opens the Options window with the program preferences. They belong to the user, not to the drawing: they apply to every drawing you open.
Interface tab
Setting
What it does
Language
Language of the whole interface: ribbon, menus, prompts, options, messages and help
Number format
Automatic (by language), Decimal comma (1234,56) or Decimal point (1234.56)
Decimal places
Number of decimal places of the lengths displayed (0 to 8)
Example
How a number will look with the chosen format
Apply tries the change without closing the window; OK applies and saves it; Cancel leaves everything as it was. Changing the language takes effect at once: no restart is needed.
Language and command names
In English you type the English command names (LINE, CIRCLE...) and their aliases (L, C...).
In Spanish you type the Spanish AutoCAD names (LINEA, CIRCULO...).
In any language the global names with an underscore (_LINE, _CIRCLE) and the Spanish names always work, so .scr scripts and AutoLISP routines run with any interface language.
The first time, Lince2D starts in the system language if it has a catalog for it; otherwise in Spanish.
Number format
The format decides how numbers are displayed: status bar coordinates, measurements from DIST or LIST, properties... With Automatic (by language) the language's format is used (comma in Spanish, point in English). With a decimal comma, X and Y are separated by a semicolon (12,5; 30).
What you type never changes: On the command line, input is always AutoCAD-style: decimal point and comma between coordinates (10.5,20).
Drawing units (decimal, feet and inches, angles) are a different thing: they are stored in each drawing and changed with UNITS. The decimal separator of dimensions is set by their style (DIMSTYLE).
Where they are stored
Preferences are stored in preferencias.toml, in the user configuration folder: %APPDATA%\lince on Windows and ~/.config/lince on Linux. The same folder holds lisp.toml (APPLOAD routines and trusted folders), idiomas (added language catalogs) and estilos_trazado (your own CTB and STB tables).
Adding a language
Each language is a text file <code>.ftl (UTF-8) with one key = text line for each text of the interface. Nothing needs to be compiled:
Start from es.ftl, the complete Spanish catalog (in the idiomas folder of the Lince2D source code), and save it with the code of the new language: fr.ftl, de.ftl, pt-BR.ftl...
Translate the texts to the right of =; do not change the keys or the { $name } variables. Use AutoCAD's official terms in that language.
Put the name of the language, written in that language, in idioma-nombre, and its decimal separator (, or .) in idioma-separador-decimal.
cmd-<command>-nombre and cmd-<command>-alias hold the names and aliases to be typed in that language. In the options (opt-…), the capital letters are the abbreviation.
Copy the file to the idiomas folder next to lince.exe or to %APPDATA%\lince\idiomas and restart Lince2D: the language appears under Language.
A partial catalog works: whatever is missing is shown in Spanish. A file with the code of an existing language (es.ftl, en.ftl) replaces only the keys it contains, which is useful to adjust a few texts.
The pages of this help are translated the same way: an ayuda\<code> folder next to the program with the pages you want to translate; missing pages are shown in Spanish.
Other preferences
The workspace (ribbon, Classic or a saved one) is chosen with the ⚙ button on the status bar; the ribbon, toolbars, shortcuts and aliases are adapted with CUI (see The user interface).
Automatic save runs every 10 minutes (see File formats).
Sends what you typed or ends the selection; on an empty line, repeats the last command
Esc
Cancels the running command (or grip editing); a second Esc clears the selection
Delete
Erases the selection, with no command running
Tab
Completes the suggested command name; in dynamic input, locks the value and moves to the other field; in a table, moves to the next cell
Arrow keys
Choose among the autocomplete suggestions; in a table, move between cells
Shift while selecting
Removes objects from the selection instead of adding them
Space does not send while you are typing text (TEXT, MTEXT, names) or inside an AutoLISP expression that starts with (: in those cases, only Enter does.
Mouse
Action
Function
Click
Specifies a point or selects an object
Drag right / left
Window / crossing selection
Click a grip
Makes it hot to stretch, move, rotate, scale or mirror
Double-click an object
Opens its editor (text, hatch, attributes, block, cell) or the Properties palette
Right-click
Shortcut menu: Enter, Cancel, command options, repeat, edit the selection...
Wheel
Zoom centered on the cursor
Drag with the middle button
Pan: moves the view
Double-click the middle button
Zoom extents: the whole drawing on screen
Click the blue options of the prompt
Chooses that option
In a layout, double-clicking inside a viewport enters it, and double-clicking outside the viewports returns to paper.
Notes
Command options are chosen by typing their capital letters (C for Close, U for Undo), as in AutoCAD; in Spanish the letters may be different.
The clipboard keys (Ctrl+C, Ctrl+X, Ctrl+V) only act when the command line is empty; if another text box has the keyboard focus, they copy and paste text.
With CUI you can add your own shortcuts (Ctrl, Alt or a function key plus a key) for any command; your own shortcut wins over a built-in one with the same keys. Aliases are changed with ALIASEDIT.
History of the Lince2D versions, from the most recent to the oldest. The installed version is shown in the window title and in ABOUT.
0.1.4-beta (November 2026)
Complete external references: XATTACH (attach or overlay), -XREF (bind, detach, unload, reload, path and path type), the XREF palette with the tree of nested references and a status bar warning when a file changes, XCLIP and the BINDTYPE, REFPATHTYPE, VISRETAIN, XCLIPFRAME and XFADECTL variables.
Annotation scale and annotative objects: CANNOSCALE with a selector on the status bar, annotative text and dimension styles, OBJECTSCALE, ANNOAUTOSCALE, Annotative in PROPERTIES and viewports that each show their own scale.
FIND (find and replace) and SPELL, with Spanish and English dictionaries included.
Output: PUBLISH (several sheets to one PDF or one PDF per sheet), ETRANSMIT (ZIP package with the dependent files), layered PDF and PDF/A-2b, SAVEAS to DWG R14 and DXF R12, and proxies kept as AutoCAD does when changing version.
Help (F1): this viewer, with help for every command, extended tooltips and the PDF manual.
Interface: collapsible ribbon (full, tabs only or panel titles; panels that do not fit collapse) with every command; workspaces (WORKSPACE, WSSAVE and the ⚙ gear); dockable palettes on the left or right with auto-hide; floating command line with transparency; CUI (ribbon, toolbars and shortcuts) and ALIASEDIT (aliases in lince.pgp, compatible with acad.pgp).
Georeferenced images: GEOIMAGE (world files and GeoTIFF) and GEOREFIMAGE (control points).
Dynamic blocks: visibility, flip, stretch, rotation, arrays and lookups, with their grips; RESETBLOCK.
0.1.1-beta
Blocks palette with thumbnails and libraries (INSERT), -INSERT, DesignCenter (ADCENTER) and tool palettes (TOOLPALETTES). Architecture and Electrical libraries included.
AutoLISP: .lsp routines, expressions on the command line, C: commands and APPLOAD.
0.1.0-beta: first complete basic 2D clone
Brings together everything from the 0.0.x versions: drawing, editing, precision, layers, text, dimensions, blocks, hatches, layouts, plotting, utilities and several open drawings. The program is now split into independent modules, which speeds up its development.
Draws a circular arc. By default it passes through three points: start, intermediate and end. With its options it can also be drawn by its center, or by its start, its end and the center or the radius.
Usage
Enter ARC (or A) or click Arc.
Specify the start point, or enter Center to begin with the center.
Specify start point of arc or [Center]:
Specify a second point the arc passes through, or enter Center or End.
Specify second point of arc or [Center/End]:
Specify the end point.
Specify end point of arc:
Options
Center (C) at the first prompt: center, start point and end point.
Specify center point of arc:
Specify start point of arc:
Center (C) at the second prompt: after the start point, specify the center and the end point.
End (E): after the start point, specify the end and then the center or, with the Radius option (R), the radius. A negative radius draws the major arc.
Specify center point of arc or [Radius]:
Specify radius of arc:
Notes
With a center, arcs are drawn counterclockwise from the start point; the end point only gives the direction in which the arc ends and does not have to lie on it.
If the three points are collinear there is no arc and the program says so.
The AutoCAD options Angle, Direction and Length are not available, nor is Enter to continue from the last line or arc.
Creates a polyline or a region from the boundary around a point.
Command:BOUNDARY · Global name:_BOUNDARY · Alias:BO
Ribbon: Home › Draw
Menu: Draw
Creates a closed polyline (or a region) from the boundary around an internal point, using the objects that enclose it. The original objects are not modified.
Usage
Enter BOUNDARY (or BO) or click Boundary.
Click inside each closed area. For each one, its outer boundary and the boundary of each island it contains are created.
Pick internal point or [Object type]:
Press Enter to finish; the program reports how many objects it has created.
Options
Object type (O): chooses what is created, polylines or regions.
Enter type of boundary object [Region/Polyline] <Polyline>:
Notes
The boundary is found in the same way as in HATCH with an internal point: lines, arcs, circles, polylines, ellipses, splines and blocks count; text and dimensions do not.
If there is no closed boundary around the point, the program says so and you can try another point.
The resulting polylines are useful, for example, to measure the area of a room with AREA.
Draws a circle. By default you specify the center and the radius; with its options, also by three points, by the endpoints of a diameter or tangent to two objects with a given radius.
Usage
Enter CIRCLE (or C) or click Circle.
Specify the center, or enter an option.
Specify center point for circle or [3P/2P/Ttr (tan tan radius)]:
Specify the radius with a point on the circle or by typing its value.
Specify radius of circle:
Options
3P: the circle passes through three points.
Specify first point on circle:
Specify second point on circle:
Specify third point on circle:
2P: the two points are the endpoints of a diameter.
Specify first end point of circle's diameter:
Specify second end point of circle's diameter:
Ttr (T): tangent to two objects (lines, circles or arcs) with the radius you enter. Select each object near where the circle should touch it and enter the radius (or give a point: the radius is its distance to the second point selected).
Specify point on object for first tangent of circle:
Specify point on object for second tangent of circle:
Specify radius of circle:
Notes
Type 3P and 2P in full.
With Ttr there are usually several solutions: the one nearest the points where the objects were selected is used. If there is none with that radius, the program says so.
The AutoCAD Diameter option is not available; use 2P or type the radius.
Places points or blocks that divide an object into equal parts.
Command:DIVIDE · Global name:_DIVIDE · Alias:DIV
Ribbon: Home › Draw
Menu: Draw
Divides an object into a number of parts of equal length and places points (or a block) at the divisions. The object is not cut.
Usage
Enter DIVIDE (or DIV) or click Divide.
Select a line, arc, circle, polyline, ellipse or spline.
Select object to divide:
Enter the number of parts, from 2 to 32767.
Enter the number of segments or [Block]:
Options
Block (B): instead of points, inserts a block of the drawing at each division, rotated to follow the direction of the object at that point or not rotated.
Enter name of block to insert:
Align block with object? [Yes/No] <Y>:
Enter the number of segments:
Notes
On an open object, n parts give n − 1 points. On a closed one you get n points, the first one at the start (on a circle, at 0°).
The points are shown with the style set by PTYPE; with the default style they can hardly be seen. They can be used with the Node object snap.
On ellipses and splines the length is measured on a very fine approximation of the curve.
Draws an ellipse or an elliptical arc. The ellipse is defined by one axis (its two endpoints, or the center and one endpoint) and by the distance to the other axis or by a rotation.
Usage
Enter ELLIPSE (or EL) or click Ellipse.
Specify one endpoint of the first axis, or enter an option.
Specify axis endpoint of ellipse or [Arc/Center]:
Specify the other endpoint of that axis.
Specify other endpoint of axis:
Specify the distance from the center to the other axis, with a point or a number.
Specify distance to other axis or [Rotation]:
Options
Center (C): starts with the center and then one endpoint of the first axis.
Specify center of ellipse:
Specify endpoint of axis:
Rotation (R): instead of the distance, the rotation of a circle about the first axis, from 0 to 89.4 degrees (0 gives a circle).
Specify rotation around major axis:
Arc (A): draws an elliptical arc. After the ellipse is defined, it asks where it starts and where it ends.
Specify start angle or [Parameter]:
Specify end angle or [Parameter/Included angle]:
Parameter (P) and Angle (A): switch between giving angles (the direction from the center) and parameters (the angle in the parametric equation of the ellipse).
Included angle (I): the end as the angle swept from the start.
Isocircle (I): only with isometric drafting on (ISODRAFT); the first prompt offers it. It draws the ellipse that represents a circle in the current isometric plane: specify the center and the radius, or choose Diameter (D) and give the diameter.
Specify axis endpoint of ellipse or [Arc/Center/Isocircle]:
Specify radius of isocircle or [Diameter]:
Notes
The first axis may turn out to be the major or the minor one: if the distance to the other axis is greater than half the first one, the other becomes the major axis.
The angles and parameters of the arc are measured from the first axis specified and counterclockwise, as in AutoCAD.
A true ellipse (ELLIPSE) is created, not a polyline that approximates it.
Command:GRADIENT · Global name:_GRADIENT · Alias:GD
Ribbon: Home › Draw
Menu: Draw
Fills a closed area with a color gradient: from one color to another, or from a color towards black or white. It is HATCH with its dialog open on the Gradient tab: the boundary is given in the same way.
Usage
Enter GRADIENT (or GD) or click the button.
In the Hatch and Gradient dialog, choose One color or Two color and the colors (from the AutoCAD palette or a true color).
With one color, move the slider between Shade (towards black) and Tint (towards white).
Choose one of the nine types by clicking its sample, and set Centered and the Angle.
Click inside each area you want to fill (or select its boundaries, as in HATCH).
Pick internal point or [Select objects/Pattern/sCale/Angle/Gradient/Origin]:
Press Enter or OK.
Types
LINEAR, CYLINDER, INVCYLINDER, SPHERICAL, INVSPHERICAL, HEMISPHERICAL, INVHEMISPHERICAL, CURVED and INVCURVED: the same as in AutoCAD. When not centered, the gradient is shifted towards one side, as in AutoCAD.
On the command line
The Gradient (G) option of HATCH and HATCHEDIT asks for the type (? lists them), the angle and whether it is centered; it uses the colors of the last gradient.
Enter gradient name or [?] <…>:
Specify gradient angle <…>:
Centered gradient? [Yes/No] <Yes>:
Notes
The gradient is saved as in AutoCAD (a solid hatch with the gradient data) and AutoCAD draws it the same way.
When plotting to PDF, PNG or SVG it comes out in thin bands of flat color, which cannot be told apart by eye.
The settings are remembered for the next gradient. They are changed later with HATCHEDIT.
Fills a closed area with a pattern of lines, a solid fill or a gradient. While the command runs, the Hatch and Gradient dialog box is shown, with its Hatch tab (the pattern swatches, the scale and the angle) and its Gradient tab; the same can be done on the command line.
Usage
Enter HATCH (or H) or click Hatch.
In the dialog box, choose the pattern by clicking its swatch and set the scale and the angle (or switch to the Gradient tab: see GRADIENT).
Click inside each area you want to hatch (or, with the Select objects option, select its boundaries). The dialog box shows how many boundaries have been found.
Pick internal point or [Select objects/Pattern/sCale/Angle/Gradient/Origin]:
Press Enter or OK to create the hatch. Cancel exits without creating it.
Options
Select objects (S): select closed polylines, circles, ellipses or splines as boundaries.
Select objects or [Internal point/Pattern/sCale/Angle/Gradient/Origin]:
Internal point (I): goes back to picking internal points.
Pattern (P): enter the pattern name; ? lists them.
Enter a pattern name or [?] <…>:
sCale (C) and Angle (A): pattern scale (greater than 0) and its rotation in degrees.
Gradient (G): a gradient instead of the pattern: type, angle and whether it is centered.
Enter gradient name or [?] <…>:
Origin (O): the point the pattern passes through (for example, the corner of a row of bricks).
Specify new hatch origin:
Patterns
SOLID (solid fill), ANSI31, ANSI32, ANSI37, LINE, NET, DOTS, CROSS, BRICK, HONEY and HORMIGON (concrete). The definitions are Lince2D's own; the names match AutoCAD's when the drawing is the same. HORMIGON is saved as a custom pattern.
Notes
With an internal point, the program looks for the nearest boundary around it, with its islands (Normal island detection). Lines, arcs, circles, polylines, ellipses, splines and blocks count; text and dimensions do not. If the boundary has small gaps, HPGAPTOL closes them.
The hatch is associative: if an object of its boundary is edited (with grips, MOVE, STRETCH...), the hatch is rebuilt to follow it. It stops being associative if the hatch is moved on its own or a boundary object is erased.
The pattern, scale and angle are remembered for the next hatch.
TRIM trims hatches: it removes the selected piece between the cutting edges.
Creates non-associated polylines around selected hatches.
Command:HATCHGENERATEBOUNDARY · Global name:_HATCHGENERATEBOUNDARY
Ribbon: Home › Draw
Menu: Draw
Creates closed polylines around the selected hatches: one for each boundary, the outer one and that of each island. It is used to recover the boundary of a hatch that has lost it (for example, one that comes from another program or has been disassociated).
Usage
Enter HATCHGENERATEBOUNDARY or click the button.
Select the hatches and press Enter. If hatches were already selected, those are used.
Select hatch objects:
The program reports how many boundaries it has created.
Boundaries created: ….
Notes
The polylines follow the straight segments and arcs of the boundary; ellipses and splines in the boundary become short straight segments.
They are created on the current layer. The hatch is not associated with them; for that, use the Boundary recreate option of HATCHEDIT.
Other objects can be included in the selection: only hatches count.
Draws straight line segments. Each segment is a separate object that can be moved, erased or put on another layer on its own. For an outline that is a single object, use PLINE.
Usage
Enter LINE (or L) or click Line on the ribbon.
Specify the first point with a click, an object snap or by typing its coordinates.
Specify first point:
Specify the next point. A segment is created and the prompt repeats from the last point.
Specify next point or [Undo]:
From the third point on you can close the figure.
Specify next point or [Close/Undo]:
Press Enter, Space or Esc to finish.
Options
Close (C): joins the last point to the first one and ends the command.
Undo (U): removes the last segment without leaving the command; it can be repeated.
Notes
Coordinates can be typed as absolute (100,50), relative (@20,0) or polar (@50<30). See Coordinates and input.
With Ortho (F8) or polar tracking (F10) the segments snap to the horizontal and vertical directions or to the polar angles.
Lines are created on the current layer, with the current color, linetype and lineweight.
Places points or blocks at measured intervals along an object.
Command:MEASURE · Global name:_MEASURE · Alias:ME
Ribbon: Home › Draw
Menu: Draw
Places points (or a block) along an object at intervals of a given length, measured from one of its ends. The object is not cut.
Usage
Enter MEASURE (or ME) or click Measure.
Select the object near the end you want to measure from.
Select object to measure:
Enter the length of each segment.
Specify length of segment or [Block]:
Options
Block (B): instead of points, inserts a block of the drawing at each mark, rotated to follow the direction of the object at that point or not rotated.
Enter name of block to insert:
Align block with object? [Yes/No] <Y>:
Specify length of segment:
Notes
Lines, arcs, circles, polylines, ellipses and splines can be used. On an open object, measuring starts at the end nearest the point where it was selected; the last segment may be shorter. If the last mark falls exactly on the far end, it is placed too.
If the length is so small that more than 100,000 objects would be created, the program says so and creates none.
Draws multilines (parallel lines following the multiline style).
Command:MLINE · Global name:_MLINE · Alias:ML
Ribbon: Home › Draw
Menu: Draw
Draws multilines: several parallel lines that run together, according to a multiline style. They are used, for example, for walls or roads.
Usage
Enter MLINE (or ML) or click Multiline. The prompt shows the current justification, scale and style.
Current settings: Justification = …, Scale = …, Style = …. Specify start point or [Justification/Scale/STyle]:
Specify the start point and the following ones.
Specify next point:
Specify next point or [Close/Undo]:
Press Enter to finish.
Options
Justification (J): which line passes through the points you give.
Enter justification type [Top/Zero/Bottom] <…>:
Top (T), Zero (Z) and Bottom (B): the top line, the axis of the style or the bottom line.
Scale (S): multiplies the spacing of the style. A negative scale reverses the order of the lines.
Enter mline scale <…>:
STyle (ST): multiline style; ? lists those in the drawing.
Enter mline style name or [?]:
Close (C): with three points or more, joins back to the first one and ends the command.
Undo (U): removes the last point.
Notes
Justification, scale and style are changed before the first point and saved in the drawing for the next time.
Only the styles the drawing already has can be used (Standard, two lines at ±0.5, if there is no other): there is no command yet to create multiline styles.
For crossings, tees, cuts and welds of multilines, use MLEDIT.
Draws a polyline: a sequence of straight and arc segments that form a single object. Each segment can have a width, constant or tapering from its start to its end.
Usage
Enter PLINE (or PL) or click Polyline.
Specify the first point.
Specify first point:
Specify the next points. Each point adds a straight segment.
Specify next point or [Arc/Close/Width/Undo]:
With the Arc option, the following segments are arcs tangent to the previous segment: specify the end point of each arc.
Specify end point of arc or [Line/Close/Width/Undo]:
Press Enter, Space or Esc to finish.
Options
Arc (A): switches to drawing arcs. Each arc starts tangent to the previous segment; if it is the first segment, it leaves horizontally to the right.
Line (L): in arc mode, goes back to straight segments.
Width (W): asks for the starting and ending width of the next segment; Enter accepts the value shown and a click gives it as the distance from the last point. Later segments keep the ending width.
Close (C): joins the last point to the first one (with a straight segment or an arc, depending on the mode) and ends the command.
Undo (U): removes the last point without leaving the command.
Notes
A lightweight polyline (LWPOLYLINE) is created, as in AutoCAD.
The width always starts at 0; it is not taken from the PLINEWID variable.
Arcs are drawn only by their end point, tangent to the previous segment: the AutoCAD options Angle, CEnter, Direction, Radius and Second pt are not available, nor are Halfwidth and Length.
To change the vertices or the width or to join segments later, use PEDIT.
Places point objects. Each click creates a point; points are used as marks and as targets for the Node object snap.
Usage
Enter POINT (or PO) or click Point.
Specify a point with a click or by typing its coordinates. The prompt repeats so you can place more points.
Specify a point:
Press Enter, Space or Esc to finish.
Notes
The symbol used to draw all points and its size are chosen with PTYPE (variables PDMODE and PDSIZE). With the default style a point is a single pixel, hard to see.
To place points along an object, use DIVIDE or MEASURE.
Points are created on the current layer, with the current color and linetype.
Creates lines that start at a point and continue to infinity.
Command:RAY · Global name:_RAY
Ribbon: Home › Draw
Menu: Draw
Draws rays: half-lines that start at a point and go on endlessly in one direction. Like construction lines, they are construction guides, for when only one side matters.
Usage
Enter RAY or click the button.
Specify the start point.
Specify start point:
Specify a point the ray passes through. Each point creates another ray from the same start.
Specify through point:
Press Enter, Space or Esc to finish.
Notes
RAY objects are created, as in AutoCAD. They do not count for zoom extents.
With ortho (F8) or polar tracking (F10) it is easy to draw horizontal, vertical or fixed-angle rays.
Command:RECTANG · Global name:_RECTANG · Alias:REC, RECTANGLE
Ribbon: Home › Draw
Menu: Draw
Toolbar: Draw
Draws a rectangle with its sides parallel to the X and Y axes of the current UCS from two opposite corners. The rectangle is a closed polyline with four vertices.
Usage
Enter RECTANG (or REC) or click Rectangle.
Specify the first corner.
Specify first corner point:
Specify the opposite corner, with a click or with relative coordinates: @40,25 draws a 40 × 25 rectangle.
Specify other corner point:
Notes
The two corners must have different X and different Y (in the UCS). With a rotated UCS (see UCS), the rectangle is rotated with it.
The AutoCAD options Chamfer, Fillet, Width, Area, Dimensions and Rotation are not available.
As it is a polyline, it is edited with PEDIT and exploded into four lines with EXPLODE.
Converts closed curves into regions: flat surfaces saved in the same way as in AutoCAD. Each closed curve selected becomes a region and the original curve is erased.
Usage
Enter REGION (or REG) or click Region. If objects were already selected, those are used.
Select closed polylines, circles, ellipses or closed splines.
Select objects:
Press Enter. The program reports how many loops it found and how many regions it created.
Notes
Each region takes the layer, color and linetype of the curve it comes from.
Only closed curves made of a single object can be used: separate lines or arcs that enclose an area are not joined into a region. For that, use BOUNDARY with the Region type or join the segments with PEDIT.
Ellipses and splines are turned into a very fine polygon that approximates them.
There are no operations between regions (union, subtraction, intersection).
To get curves back, explode the region with EXPLODE.
Draws a revision cloud: rectangular, polygonal, freehand or from an object.
Command:REVCLOUD · Global name:_REVCLOUD
Ribbon: Home › Draw
Menu: Draw
Draws a revision cloud: a polyline made of arcs used to mark the changes on a drawing. The cloud can be rectangular, polygonal or freehand, or made from an existing object.
Usage
Enter REVCLOUD or click Revision Cloud.
Choose the type of cloud with its option, if it is not the current one, and specify the first point. The prompt shows the current type; Enter goes to the Object option.
Specify first corner point or [Arc length/Object/Rectangular/Polygonal/Freehand/Style] <Object>:
Rectangular: specify the opposite corner and the cloud is created.
Specify opposite corner:
Polygonal and freehand: specify the next points and press Enter to finish.
Specify next point or [Undo]:
Options
Arc length (A): minimum and maximum arc length. The maximum cannot exceed three times the minimum.
Specify minimum length of arc <…>:
Specify maximum length of arc <…>:
Object (O): turns a polyline, circle, ellipse or spline into a cloud. The cloud replaces the object and takes its layer, color and linetype; the direction of the arcs can be reversed.
Reverse direction [Yes/No] <No>:
Rectangular (R), Polygonal (P) and Freehand (F): type of cloud.
Style (S): Normal or Calligraphy (arcs of varying width, as if drawn with a pen nib).
Select arc style [Normal/Calligraphy] <Normal>:
Undo (U): removes the last point of a polygonal or freehand cloud.
Notes
A polygonal cloud closes itself when you press Enter. A freehand cloud closes when you come back near the first point; if you press Enter before, it stays open. Freehand clouds are also drawn with clicks, point by point.
The arc lengths, the style and the type are remembered for the next cloud.
The cloud is saved like AutoCAD's (a polyline with 110° arcs) and is edited with PEDIT.
Draws filled triangles and quadrilaterals (2D solids). They can be chained to form a strip.
Usage
Enter SOLID (or SO) or click 2D Solid.
Specify the first and second points: they form one side.
Specify first point:
Specify second point:
Specify the third point.
Specify third point:
Specify the fourth point, or press Enter to create a triangle and finish.
Specify fourth point or <exit>:
After the fourth point, the third and fourth become the first side of the next solid: go on with more third and fourth points, or press Enter to finish.
Notes
The order of the points is AutoCAD's: the first and second form one side and the third and fourth the opposite side, in the same direction. If you give them in circular order (1, 2, 3, 4 around the figure), you get a bow tie.
To fill areas of any shape, use HATCH with the SOLID pattern.
Creates a smooth curve through the specified points.
Command:SPLINE · Global name:_SPLINE · Alias:SPL
Ribbon: Home › Draw
Menu: Draw
Toolbar: Draw
Draws a smooth curve (spline). By default the curve passes through the points you specify (Fit method); with the CV method, the points are control vertices that pull the curve.
Usage
Enter SPLINE (or SPL) or click Spline.
Specify the first point, or first change the method, the knots or the degree.
Specify first point or [Method/Knots]:
Specify the next points.
Enter next point or [start Tangency]:
Enter next point or [end Tangency/Undo/Close]:
Press Enter to finish.
Options
Method (M): chooses the method.
Enter spline creation method [Fit/CV] <Fit>:
Knots (K): in the Fit method, how the knots are spaced between the points: by the distance between them (Chord), by its square root (S) or evenly (Uniform).
Enter knot parameterization [Chord/Square root/Uniform] <Chord>:
Degree (D): in the CV method, the degree of the curve, from 1 to 10 (3 by default).
Enter degree of spline <3>:
start Tangency (T): after the first point, the direction in which the curve leaves.
end Tangency (T): the direction in which it reaches the last point; ends the spline. Enter at a tangent prompt leaves it free.
Close (C): with three points or more, closes the curve and ends the command.
Undo (U): removes the last point.
Notes
A fit spline stores its fit points and tangents as AutoCAD does, which recognizes and edits it in the same way.
In the CV method, a closed curve joins without a visible kink but is not periodic as in AutoCAD.
Covers what lies under an outline with the background color.
Command:WIPEOUT · Global name:_WIPEOUT
Ribbon: Home › Draw
Menu: Draw
Creates a wipeout: a polygonal area that covers everything drawn beneath it with the background color. It is used, for example, to clear the space for a text or a table on a drawing.
Usage
Enter WIPEOUT or click Wipeout.
Specify the first point of the boundary, or press Enter to convert a polyline.
Specify first point or [Frames/Polyline] <Polyline>:
Specify the next points.
Specify next point:
Specify next point or [Close/Undo]:
Press Enter (or enter C) to close the boundary and create the wipeout. At least three points are required.
Options
Polyline (P): uses a closed polyline as the boundary; then asks whether to erase the polyline.
Select a closed polyline:
Erase polyline? [Yes/No] <No>:
Frames (F): shows or hides the frame of all the wipeouts in the drawing (WIPEOUTFRAME).
Enter mode [ON/OFF/Display but not plot] <ON>:
Undo (U): removes the last point.
Notes
A wipeout covers what was drawn before it; to change what stays on top, use DRAWORDER.
The arcs of the polyline are turned into straight segments, as AutoCAD does.
The wipeout and its frame mode are saved in the drawing like AutoCAD's.
Creates lines of infinite length in both directions.
Command:XLINE · Global name:_XLINE · Alias:XL
Ribbon: Home › Draw
Menu: Draw
Draws construction lines: infinite straight lines in both directions, useful as construction guides (axes, alignments, projections between views). They do not count for zoom extents.
Usage
Enter XLINE (or XL) or click the button.
Specify a point on the line, or choose an option.
Specify a point or [Hor/Ver/Ang/Bisect/Offset]:
Specify a point it passes through. Each point creates another construction line through the first one; Enter ends.
Specify through point:
Options
Hor (H) and Ver (V): horizontal or vertical lines through each point you specify.
Ang (A): lines at a fixed angle, in degrees, through each point.
Enter angle of xline (0) or [Reference]:
Reference (R), inside Ang: the angle is measured from a line, a polyline (its straight segment nearest to the selected point), a ray or another construction line.
Select a line object:
Enter angle of xline <0>:
Bisect (B): the bisector of an angle, given by its vertex and a point on each side. Each further end point creates another bisector with the same vertex and start.
Command-line version of MLEDIT: edits crossings, tees, corners, vertices, cuts and welds of multilines by typing the code of the tool. It is the way to use it in scripts and in AutoLISP.
Usage
Enter -MLEDIT.
Type the code: CC, OC or MC (crosses), CT, OT or MT (tees), CJ (corner), AV or DV (add or delete vertex), CS or CA (cut one or all) or WA (weld all).
Enter mline editing option [CC/OC/MC/CT/OT/MT/CJ/AV/DV/CS/CA/WA]:
Select the multilines and the points as in MLEDIT. The prompt repeats; Enter finishes.
Select first mline or [Undo]:
Options
Undo (U): undoes the last edit.
Notes
In Lince2D MLEDIT opens no dialog box either, so both commands do the same.
Command-line version of OVERKILL: erases duplicates and combines overlapping lines and arcs with typed options, without dialog boxes. It is the way to use it in scripts and in AutoLISP.
Usage
Enter -OVERKILL.
Select the objects and press Enter (or start the command with them already selected).
Select objects:
Change the settings you want and press Enter to clean up.
Current settings: Tolerance=…, Ignore=…, Optimize polylines=…, Combine partial overlap=…, Combine end-to-end=…. Enter an option to change [Done/Ignore/tOlerance/optimize Polylines/combine parTial overlap/combine End-to-end] <done>:
Options
The same as OVERKILL: tOlerance (O), Ignore (I), Polylines (P), parTial (T), End-to-end (E) and Done (D).
Notes
In Lince2D OVERKILL has no dialog box either, so both commands do exactly the same.
In a script, for example, -OVERKILL · ALL · Enter · I · layer,color · Enter cleans the whole drawing ignoring layer and color.
Moves, rotates and scales objects to align them with others.
Command:ALIGN · Global name:_ALIGN · Alias:AL
Ribbon: Home › Modify
Menu: Modify
Moves, rotates and, if you ask for it, scales the selected objects so that some source points match some destination points. Use it to fit a part or a block against another object without working out angles.
Usage
Enter ALIGN (or AL).
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Specify the first pair of points: one on the objects (source) and the place where it must go (destination).
Specify first source point:
Specify first destination point:
Specify the second pair, or press Enter to just move.
Specify second source point or <continue>:
Specify second destination point:
Specify the third pair, or press Enter and choose whether the objects are scaled so that the second source lands on the second destination (Enter: no).
Specify third source point or <continue>:
Scale objects based on alignment points? [Yes/No] <N>:
Notes
With one pair of points, the objects are moved; with two, they are also rotated around the first destination so that the direction from the first source to the second matches that of the destinations.
With three pairs, the third one also decides whether the objects must be flipped (mirrored about the line of the first pair) so that they end up on the same side as the third destination.
Use object snaps (F3) so that the points land exactly on the vertices.
Repeats objects in rows and columns or in a circle.
Command:ARRAY · Global name:_ARRAY · Alias:AR
Ribbon: Home › Modify
Menu: Modify
Toolbar: Modify
Repeats the selected objects in rows and columns (rectangular array) or around a center (polar array). The copies are independent objects.
Usage
Enter ARRAY (or AR) or click Array on the ribbon.
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Choose the type of array (Enter: rectangular).
Enter the type of array [Rectangular/Polar] <R>:
Rectangular: enter the number of rows and columns (Enter: 1) and the distances between them. The original stays in a corner; with negative distances the copies go down or to the left.
Enter the number of rows (---) <1>:
Enter the number of columns (|||) <1>:
Specify the distance between rows:
Specify the distance between columns:
Polar: specify the center, the number of items (including the original) and the angle to fill (Enter: 360; negative, clockwise). The copies are rotated around the center.
Specify center point of array:
Enter the number of items in the array:
Specify the angle to fill (+=ccw, -=cw) <360>:
Options
Rectangular (R): rows and columns at a fixed spacing.
Polar (P): copies spread around a circle or an arc.
Notes
With a single row or column its distance is not asked. The total number of items goes from 2 to 100,000.
The array is not associative (it cannot be edited later as a whole) and there is no path array.
Breaks an object by removing the piece between two points, or splits it in two at a single point without removing anything.
Usage
Enter BREAK (or BR) or click Break on the ribbon.
Click the object. The point you click is the first break point.
Select object:
Specify the second break point: whatever lies between both points is removed.
Specify second break point or [First point] (@: at the same point):
Options
First point (F): discards the clicked point and asks for the first break point, for example to give it with an object snap.
Specify first break point:
@: uses the same point as the first one; the object is split into two objects that touch.
Notes
Breaks lines, arcs, circles and polylines. The points are projected onto the object, so they do not have to lie exactly on it.
On a circle the piece from the first point to the second one counterclockwise is removed and an arc remains; a closed polyline becomes open. Closed objects cannot be broken at a single point (@).
It does not use preselection: the object is picked during the command.
Command:CHAMFER · Global name:_CHAMFER · Alias:CHA
Ribbon: Home › Modify
Menu: Modify
Toolbar: Modify
Chamfers the corner between two lines: it trims each one at the chamfer distance measured from their intersection and joins both ends with a straight segment.
Usage
Enter CHAMFER (or CHA) or click Chamfer on the ribbon.
If needed, change the distances with the Distance option; then it goes back to selecting.
Select first line or [Distance]:
Specify first chamfer distance (Enter: current):
Specify second chamfer distance (Enter: same as first):
Select the first line and then the second one, each on the part you want to keep. The first distance applies to the first line and the second one, to the other.
Select second line:
The chamfer is created and the command ends.
Options
Distance (D): asks for both distances (0 or positive). Enter on the first one keeps the current value; on the second, makes it equal to the first. They are saved in the drawing (CHAMFERA and CHAMFERB).
Notes
It only works between two different, non-parallel lines. With both distances set to 0 the lines meet in a sharp corner, with no segment.
The segment goes on the layer of the lines if they share it; otherwise, on the current layer.
It does not use preselection. There are no Angle, Polyline, Trim or Multiple options as in AutoCAD.
Copies objects from a base point to another point.
Command:COPY · Global name:_COPY · Alias:CO, CP
Ribbon: Home › Modify
Menu: Modify
Toolbar: Modify
Copies the selected objects from a base point to one or more destination points. Each point you specify creates a new copy; the originals do not change.
Usage
Enter COPY (or CO, CP) or click Copy on the ribbon.
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Specify the base point.
Specify base point:
Specify the destination point. A copy is created and the prompt repeats to make another one from the same base point.
Specify second point or <exit>:
Press Enter, Space or Esc to finish.
Notes
As in AutoCAD, copying is multiple: the command keeps asking for destinations until you finish it.
Destinations can be typed as relative or polar coordinates from the base point, or as a distance in the direction of the cursor.
Grips copy too: in any mode (stretch, move, rotate, scale, mirror) choose Copy (C) and each point leaves a copy.
There is no Array option as in AutoCAD; for copies in rows, columns or around a circle use ARRAY.
Command:DRAWORDER · Global name:_DRAWORDER · Alias:DR
Ribbon: Home › Modify
Menu: Tools
Changes the order in which overlapping objects are drawn: it brings the selection to the front or sends it to the back of everything, or above or under other specific objects. It is useful with images, solid hatches and wipeouts.
Usage
Enter DRAWORDER (or DR).
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Choose where they go (Enter: to the back).
Enter object ordering option [Above objects/Under objects/Front/Back] <Back>:
With Above or Under, select the reference objects and press Enter.
Select reference objects:
Options
Above (A): just above the highest of the reference objects.
Under (U): just under the lowest of the reference objects.
Front (F): in front of every object in its space.
Back (B): behind every object in its space.
Notes
The order is saved in the drawing (SORTENTS table of model space or of the layout), as in AutoCAD, which reads it the same way. It can be undone.
The selected objects keep the order they had among themselves.
When it finishes, the view is regenerated so that the new order shows. After undoing it, use REGEN if the order on screen is not up to date.
Command:ERASE · Global name:_ERASE · Alias:E · Shortcut: Del
Ribbon: Home › Modify
Menu: Edit
Menu: Modify
Toolbar: Modify
Removes the selected objects from the drawing.
Usage
Enter ERASE (or E) or click Erase on the ribbon.
Select the objects with clicks, windows or crossing windows and press Enter to erase them.
Select objects:
The quickest way is preselection: select the objects with no command running and press Delete, or start ERASE, which erases them without asking anything else.
Breaks each selected compound object into the pieces it is made of: a polyline into lines and arcs, a block into its objects, a multiline into its lines, a dimension into its lines, arrowheads and text, a hatch into its lines and a table into its lines and texts.
Usage
Enter EXPLODE (or X) or click Explode on the ribbon.
Select the objects and press Enter. If they were already selected before starting the command, they are exploded without asking.
Select objects:
Notes
Each use explodes a single level: a block that contains other blocks leaves those blocks as references, which can be exploded again.
Pieces of a dimension that were on layer 0 go to the layer of the dimension.
Simple objects (lines, arcs, circles, texts) do not change; if nothing selected can be exploded, a message says so.
Exploding loses what the compound object provides: a dimension stops measuring, a block no longer updates when it is redefined and a polyline loses its width.
Extends an object from the selected end until it meets the first object in its way (the boundary edges).
Usage
Enter EXTEND (or EX) or click Extend on the ribbon.
Select the boundary edges and press Enter, or press Enter straight away so that every object in the drawing acts as a boundary.
Select boundary edges or <select all>:
Click each object near the end you want to extend. The prompt repeats to extend more.
Select object to extend:
Press Enter or Esc to finish.
Notes
Extends lines, arcs and open polylines; boundaries can be lines, arcs, circles and polylines. An arc is extended along its circle.
If the object, when prolonged, reaches no boundary, a message says so and it does not change.
Objects are picked one at a time with a click, near the end; preselection is not used.
There is no quick mode and no Edge or Project options as in AutoCAD, and ellipses and splines cannot be extended. To extend by a distance or to a total length use LENGTHEN.
Joins two lines with a tangent arc of the current radius, trimming or extending them up to the arc. With radius 0 it takes them to their intersection and makes a sharp corner.
Usage
Enter FILLET (or F) or click Fillet on the ribbon.
If needed, change the radius with the Radius option; then it goes back to selecting.
Select first object or [Radius]:
Specify fillet radius (Enter: current):
Select the first line and then the second one, each on the part you want to keep.
Select second object:
The arc is created and the command ends.
Options
Radius (R): changes the fillet radius (0 or positive; Enter keeps the current one). It is saved in the drawing, in the FILLETRAD variable, and applies to the next fillets.
Notes
It only works between two different, non-parallel lines. If the radius does not fit on the lines, a message says so.
The arc goes on the layer of the lines if both are on the same one; otherwise, on the current layer.
It does not use preselection: both lines are picked during the command.
Compared with AutoCAD, fillets with arcs, circles and polylines, the Polyline, Trim and Multiple options and Shift for radius 0 are missing.
Creates a group with the selected objects: a named (or unnamed) set that is selected as a whole with one click, while its objects stay independent and can be edited separately.
Usage
Enter GROUP (or G).
If you want, choose Name or Description before selecting.
Select objects or [Name/Description]:
Enter a group name or [?]:
Enter a group description:
Select the objects and press Enter: the group is created. If the objects were already selected before starting the command, the group is created at once, unnamed.
Options
Name (N): name of the group; it cannot repeat another one. ? lists the groups in the drawing. Without a name, the group is anonymous (like AutoCAD's *A1, *A2...).
Description (D): free text saved with the group.
Notes
While group selection is on, selecting a member selects the whole group. Ctrl+Shift+A turns it on or off; it is stored in the PICKSTYLE variable.
Groups are saved in DWG and DXF like AutoCAD's (ACAD_GROUP dictionary).
An erased object stops being a member; an anonymous group that becomes empty disappears.
To change the members or the name use GROUPEDIT; to undo the group, UNGROUP. Unlike a block, a group creates no definition.
Adds or removes objects from a group, or renames it.
Command:GROUPEDIT · Global name:_GROUPEDIT
Ribbon: Home › Groups
Menu: Modify
Changes an existing group: adds objects to it or removes them, or renames it.
Usage
Enter GROUPEDIT.
Select a member of the group, or choose Name and type the name of the group (? lists them). If objects of a single group were already selected before starting the command, that group is edited without asking.
Select group or [Name]:
Choose what to do.
Enter an option [Add objects/Remove objects/REName]:
Select the objects to add or remove and press Enter, or type the new name.
Select objects to add to group:
Select objects to remove from group:
Enter new name for group or [?]:
Options
Add (A): adds the objects you select to the group.
Remove (R): takes the objects you select out of the group; they stay in the drawing.
REName (REN): gives the group another name (also to an anonymous one, which becomes named).
Notes
To select just some members of a group, first turn group selection off with Ctrl+Shift+A (PICKSTYLE).
Changes can be undone and the drawing is marked as modified.
Joins into a single object several objects that touch at their ends: aligned lines into one line, and consecutive lines, arcs and polylines into a polyline.
Usage
Enter JOIN (or J) or click Join on the ribbon.
Select the objects to join and press Enter. If they were already selected before starting the command, they are joined without asking.
Select objects:
Notes
If everything selected is lines on the same straight line, the result is one line from end to end, even if there are gaps between them.
Otherwise, each chain of lines, arcs and open polylines that touch at their ends becomes a polyline; if the chain closes, the polyline is closed. More than one polyline can result.
The result keeps the properties (layer, color...) of the first object of each chain.
It does not join arcs of the same circle into one arc nor closed polylines, and if there is nothing to join a message says so.
To add objects to an existing polyline, even with gaps, use the Join option of PEDIT.
Lengthens or shortens lines, arcs and open polylines.
Command:LENGTHEN · Global name:_LENGTHEN · Alias:LEN
Ribbon: Home › Modify
Menu: Modify
Measures or changes the length of lines, arcs and open polylines: it lengthens or shortens the end nearest to the point where you select, along the curve itself.
Usage
Enter LENGTHEN (or LEN).
Select an object to see its length (and the included angle, for an arc), or choose how to change it. Enter repeats the previous mode and value.
Select an object to measure or [DElta/Percent/Total/DYnamic] <…>:
Enter the value of the chosen mode.
Select each object near the end you want to change. The prompt repeats; Enter finishes.
Select an object to change or [Undo]:
Options
DElta (DE): adds that length (negative shortens). With Angle (A), an angle in degrees is added to an arc.
Enter delta length or [Angle] <…>:
Percent (P): the new length is that percentage of the current one (50 halves it).
Enter percentage length <…>:
Total (T): leaves the object with that total length (or, with Angle, an arc with that total angle).
Specify total length or [Angle] <…>:
DYnamic (DY): after you select the object, its end follows the cursor up to the point you specify.
Specify new end point:
Undo (U): undoes the last change without leaving the command.
Notes
A line is lengthened in its direction and an arc, along its circle; in a polyline the end segment is lengthened or the polyline is trimmed along itself.
Ellipses and splines cannot be changed. Preselection is not used.
Creates a mirrored copy of the selected objects about an axis defined by two points and, if you ask for it, erases the originals.
Usage
Enter MIRROR (or MI) or click Mirror on the ribbon.
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Specify the two points of the mirror line. While you specify the second one the result is previewed.
Specify first point of mirror line:
Specify second point of mirror line:
Choose whether the originals are kept (Enter: they are kept).
Erase source objects? [Yes/No] <No>:
Options
Yes (Y): erases the source objects; only the mirrored copy remains.
No (N): keeps the originals next to the copy.
Notes
With Ortho (F8) the mirror line is horizontal or vertical, the most common case.
Texts are mirrored or not depending on the MIRRTEXT variable: with 0 (the usual value) they still read correctly; with 1 they look as in a mirror. Dimensions are regenerated readable.
Grips also have a mirror mode (press Space until you reach it); the grip is the first point of the mirror line.
Crosses, tees, corners, vertices, cuts and welds of multilines.
Command:MLEDIT · Global name:_MLEDIT
Ribbon: Home › Modify
Menu: Modify
Edits multilines: resolves their crossings, tee junctions and corners, adds or deletes vertices and cuts or welds their elements. Each tool is chosen by its two-letter code, the same ones as in AutoCAD.
Usage
Enter MLEDIT.
Type the code of the tool (table below).
Enter mline editing option [CC/OC/MC/CT/OT/MT/CJ/AV/DV/CS/CA/WA]:
For crosses, tees and corners, select the first multiline and the second one. For the other tools, select the multiline at the point where the tool acts and, if asked, specify the second point.
Select first mline or [Undo]:
Select second mline:
Select mline or [Undo]:
Select second point:
The prompt repeats with the same tool to keep editing; Enter finishes.
Code
Tool
CC / OC / MC
Closed, open or merged cross between two multilines
CT / OT / MT
Closed, open or merged tee (the first one ends on the second)
CJ
Corner joint: both multilines are trimmed or extended until they meet
AV / DV
Add or delete a vertex at the selected point
CS / CA
Cut one element or all of them between the selected point and the second point
WA
Weld all the elements between both points (removes the cuts)
Options
Undo (U): undoes the last edit without leaving the command.
Notes
It does not use preselection. If the selected object is not a multiline, a message says so.
In a tee, the piece left after the junction loses its cuts; deleting a vertex recalculates the miters of the whole multiline.
-MLEDIT does the same; in Lince2D neither of them opens a dialog box.
Moves the selected objects a distance and direction given by two points: the base point and the destination point. The objects keep their shape, size and orientation.
Usage
Enter MOVE (or M) or click Move on the ribbon.
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Specify the base point: the point of the objects you want to take somewhere else.
Specify base point:
Specify the destination point. While you move the cursor you see where the objects will go.
Specify second point:
Notes
The second point can be typed as relative (@100,0) or polar (@50<45) coordinates from the base point, or as a single distance, applied in the direction of the cursor (handy with Ortho, F8).
With no command running you can also move with grips: select the objects, click a grip and press Space until the move mode.
Specify move point or [Base point/Copy/eXit]:
Moving a dimension also moves its block; texts and blocks keep their rotation.
There is no Displacement option as in AutoCAD: use a base point at 0,0 and type the displacement as destination.
Creates a parallel copy of an object at a given distance, on the side you indicate: parallel lines, concentric circles and arcs or equidistant polylines.
Usage
Enter OFFSET (or O) or click Offset on the ribbon.
Type the offset distance (greater than 0).
Specify offset distance:
Click the object you want to offset.
Select object to offset or <exit>:
Specify a point on the side where the copy is created.
Specify point on side to offset:
The prompt of step 3 repeats with the same distance to offset other objects (or the new one). Press Enter or Esc to finish.
Notes
Offsets lines, circles, arcs and polylines. In polylines the straight segments are joined with a miter and arcs keep their curvature with another radius.
A circle or arc offset inwards beyond its radius cannot be created and a message says so.
It does not use preselection: objects are picked one at a time during the command.
Only offset by distance exists: the Through, Erase, Layer and Multiple options of AutoCAD are not available, and the distance is asked again each time.
Deletes duplicate objects and combines overlapping lines and arcs.
Command:OVERKILL · Global name:_OVERKILL
Ribbon: Home › Modify
Menu: Modify
Cleans a drawing of repeated objects: it erases exact duplicates and combines overlapping lines and arcs into a single one. It is useful with imported drawings or with objects drawn several times on top of each other.
Usage
Enter OVERKILL.
Select the objects to check and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
The prompt shows the current settings. Change the ones you want and press Enter (or choose Done) to clean up.
Current settings: Tolerance=…, Ignore=…, Optimize polylines=…, Combine partial overlap=…, Combine end-to-end=…. Enter an option to change [Done/Ignore/tOlerance/optimize Polylines/combine parTial overlap/combine End-to-end] <done>:
When it finishes, the command line reports how many duplicates and how many overlapping objects or segments were deleted.
Options
tOlerance (O): distance below which two points are considered equal.
Specify Tolerance <…>:
Ignore (I): properties that do not count when comparing, separated by commas, or All or None. With none ignored, two objects on different layers are not duplicates.
Specify properties to ignore (…) or [All/None] <…>:
Polylines (P): also looks for repeated segments within polylines.
parTial (T): combines into one the aligned objects that partially overlap.
End-to-end (E): combines aligned objects that only touch at their ends.
Done (D): cleans up with the settings shown.
Notes
The options start each time with their default values. Deleted objects come back with UNDO.
There is no dialog box: OVERKILL and -OVERKILL ask the same on the command line.
Only lines, arcs, circles, points and polylines are compared with tolerance; other types must be identical. A block with attributes is not recognized as a duplicate, and lines are not combined with polyline segments.
Edits polylines: close, join, width, vertices, fit and spline.
Command:PEDIT · Global name:_PEDIT · Alias:PE
Ribbon: Home › Modify
Menu: Modify
Edits polylines: closes or opens them, joins other objects to them, changes their width, edits their vertices and turns them into curves. It also converts lines and arcs into polylines.
Usage
Enter PEDIT (or PE).
Select a polyline, or choose Multiple to select several. If you select a line or an arc, you are offered to turn it into a polyline. With preselection: one object is edited directly and several go into Multiple.
Select polyline or [Multiple]:
Object selected is not a polyline. Do you want to turn it into one? [Yes/No] <Y>:
Choose options; the prompt repeats until you press Enter.
Enter an option [Close/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype gen/Reverse/Undo]:
Options
Close (C) / Open (O): closes the polyline with a last segment or opens it.
Join (J): adds lines, arcs and open polylines that touch its ends. In Multiple it also asks for a fuzz distance and the join type (Extend, Add or Both) to fill the gaps.
Width (W): the same width for every segment.
Edit vertex (E): walks the vertices with a cross (Next, Previous) and lets you Break, Insert, Move, Straighten, set the Tangent or the Width of the segment; eXit goes back. Only with one polyline.
Enter a vertex editing option [Next/Previous/Break/Insert/Move/Regen/Straighten/Tangent/Width/eXit] <N>:
Fit (F): curve of tangent arcs through the vertices.
Rotates the selected objects around a base point. The angle is given with a point or typed in degrees.
Usage
Enter ROTATE (or RO) or click Rotate on the ribbon.
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Specify the base point: the center of rotation.
Specify base point:
Specify the angle. Typed, in degrees (positive is counterclockwise); with a click, the angle is that of the direction from the base point to the point. The preview follows the cursor.
Specify rotation angle:
Notes
With Ortho (F8) or polar tracking (F10) the rotation with the cursor snaps to 90° or to the polar angles.
With no command running you can rotate with grips: select the objects, click a grip (it becomes the base point) and press Space until the rotate mode.
Specify rotation angle or [Base point/Copy/eXit]:
Texts, blocks and arcs update their angle; dimensions are regenerated and their text stays readable.
There are no Reference or Copy options as in AutoCAD. To rotate a copy use grips with Copy (C).
Enlarges or reduces the selected objects from a base point, the only point that does not move.
Usage
Enter SCALE (or SC) or click Scale on the ribbon.
Select the objects and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
Specify the base point.
Specify base point:
Specify the scale factor: typed (greater than 0; 2 doubles, 0.5 halves) or with a click, and then the factor is the distance from the base point to the point.
Specify scale factor:
Notes
The factor is the same in X and Y: circles stay circles and blocks change their scale.
With no command running you can scale with grips: select the objects, click a grip (it becomes the base point) and press Space until the scale mode.
Specify scale factor or [Base point/Copy/eXit]:
Scaling a table enlarges its rows and columns, but the height of its texts comes from its style and does not change.
There are no Reference or Copy options as in AutoCAD; to scale a copy use grips with Copy (C).
Edits splines: fit points, control vertices, close, reverse and convert to polyline.
Command:SPLINEDIT · Global name:_SPLINEDIT · Alias:SPE
Ribbon: Home › Modify
Menu: Modify
Edits a spline: closes or opens it, changes its fit points or its control vertices, reverses its direction or converts it into a polyline.
Usage
Enter SPLINEDIT (or SPE).
Select the spline. If it was selected (on its own) before starting the command, it is used without asking.
Select spline:
Choose options; the prompt repeats until you choose eXit or press Enter.
Enter an option […/…Edit vertex/convert to Polyline/Reverse/Undo/eXit] <eXit>:
Options
Close (C) / Open (O): closes or opens the spline (the prompt offers the one that applies).
Fit data (F): only if the spline has fit points. Lets you Add, Delete and Move fit points, change the end Tangents, the toLerance or Purge the fit data (only the control vertices remain). The curve is recalculated.
Enter a fit data option [Add/…/Delete/Move/Purge/Tangents/toLerance/eXit] <eXit>:
Edit vertex (E): Add a control vertex without changing the shape, Delete or Move vertices and change their Weight. Editing the vertices removes the fit data.
Enter a vertex editing option [Add/Delete/Move/Weight/eXit] <eXit>:
Polyline (P): replaces the spline with a polyline that approximates it.
Specify a precision <10>:
Reverse (R): reverses the direction of the curve.
Undo (U): undoes the last option. eXit (X): ends.
Notes
When moving points you walk them with Next and Previous, or pick one with Select point.
There are no Join, Kink or Elevate order options as in AutoCAD; the tolerance is saved, but the curve still goes through the fit points.
With no command running, the spline grips can also be dragged.
Stretches objects by moving the vertices inside a crossing window.
Command:STRETCH · Global name:_STRETCH · Alias:S
Ribbon: Home › Modify
Menu: Modify
Toolbar: Modify
Stretches objects by moving only the vertices and endpoints that lie inside a crossing window; the rest of each object stays where it was. Use it, for example, to lengthen a part or move a door without redrawing the walls.
Usage
Enter STRETCH (or S) or click Stretch on the ribbon.
Select the objects with a crossing window (dragged from right to left) that encloses the points to move. You can make several crossing windows. Press Enter.
Select objects to stretch by crossing-window:
Specify the base point and the second point, as in MOVE. The preview moves only the captured points.
Specify base point:
Specify second point:
Notes
The endpoints of lines, arcs (which keep their angle) and the vertices of polylines that fall inside a crossing window are moved. An object that lies completely inside a crossing window is moved as a whole.
Ellipses, splines, dimensions and other types are not stretched by their points: they only move if they lie completely inside the window.
At least one crossing window is needed: if you only select with clicks, a message says so. Preselection is not used.
With no command running, grips stretch point by point: select the object, click a grip (it turns red) and take the point to its new place. It is the first mode; Space switches to move, rotate, scale and mirror.
Trims the part of an object that lies between its intersections with other objects (the cutting edges) or between an intersection and its end.
Usage
Enter TRIM (or TR) or click Trim on the ribbon.
Select the cutting edges and press Enter, or press Enter straight away so that every object in the drawing acts as an edge.
Select cutting edges or <select all>:
Click the unwanted part of each object: the selected piece is removed up to the nearest intersections. The prompt repeats to trim more.
Select object to trim:
Press Enter or Esc to finish.
Notes
Lines, arcs, circles and polylines can be trimmed and act as edges. Trimming a circle leaves an arc; trimming the middle of a line or polyline splits it into two objects.
It also trims hatches: the piece of the hatch you pick between the edges is removed, and the rest is still a single hatch, which is no longer associative.
Objects to trim are picked one at a time with a click, on the point you want to remove; windows do not work in that step. Preselection is not used.
There is no quick mode as in AutoCAD and no Edge, Crossing or Project options, and ellipses and splines cannot be trimmed. To extend with the same edges use EXTEND.
Removes a group. Its objects stay in the drawing, but they are no longer selected together.
Usage
Enter UNGROUP.
Select a member of the group, or choose Name and type the name of the group (? lists them). The group is removed at once.
Select group or [Name]:
Enter a group name or [?]:
Preselection is quicker: click a member (the whole group is selected) and start UNGROUP. If the selection belongs to several groups, all of them are removed.
Options
Name (N): picks the group by its name instead of selecting it.
Notes
If the selected object belongs to no group, a message says so.
If its points lie on the geometry (endpoint, midpoint, center...), the dimension is associated with it and follows it when it is moved, stretched or scaled (DIMASSOC). With an annotative dimension style, the dimension is annotative.
Command:DIMANGULAR · Global name:_DIMANGULAR · Alias:DAN
Ribbon: Annotate › Dimensions
Menu: Dimension
Dimensions the angle between two non-parallel lines, or the angle defined by a vertex and two points, with a dimension arc. The text is in degrees, with the angular precision of the dimension style.
Usage
Enter DIMANGULAR (or DAN) or click Angular on the ribbon.
Select the first line, or press Enter to specify the angle with three points.
Select first line or <specify vertex>:
Select the second line. If it is parallel to the first one, a message is shown and another line is requested.
Select second line:
Move the cursor to choose which angle is dimensioned (depending on the quadrant it is in) and how far from the vertex the arc goes, and specify the point.
Specify dimension arc line location:
Three points
With Enter at the first step, the vertex and a point on each side of the angle are requested, then the location of the arc:
Specify angle vertex:
Specify first angle endpoint:
Specify second angle endpoint:
Notes
The AutoCAD variants that dimension an arc or a circle directly are not available; for the length of an arc use DIMARC.
The dimension uses the current dimension style (DIMSTYLE); angular precision and zero suppression are on the Primary Units tab of DIMSTYLE.
The dimension is associated with the lines or points it measures and follows them when they change (DIMASSOC).
Dimensions the length of an arc, measured along the curve. The dimension arc is concentric with the dimensioned arc and the text carries the arc length symbol (⌒).
Usage
Enter DIMARC (or DAR).
Select the arc with a click. Circles are not accepted.
Select arc:
Move the cursor to preview the dimension and specify where the dimension arc goes.
Specify arc length dimension location:
Notes
The position of the symbol is set by the DIMARCSYM dimension variable, on the Primary Units tab of DIMSTYLE: before the text, above it or none.
The dimension uses the current dimension style (DIMSTYLE) and is associated with the arc: if the arc changes, the measurement is updated.
The Partial and Leader options of AutoCAD are not available: the whole arc is always dimensioned.
Command:DIMBASELINE · Global name:_DIMBASELINE · Alias:DBA
Ribbon: Annotate › Dimensions
Creates several dimensions measured from the same origin. Each dimension line is offset from the previous one by the DIMDLI distance of the dimension style, so that they do not overlap.
Usage
Enter DIMBASELINE (or DBA).
The command starts from the last linear or aligned dimension in the drawing, from its first extension line. If there is none, select the base dimension.
Select base dimension:
Specify the second extension line origin. A dimension is created from the common origin to that point and the prompt repeats.
Specify a second extension line origin or [Undo/Select] <Select>:
Press Enter to finish.
Options
Undo (U): removes the last dimension created.
Select (S): selects another base dimension. The common origin is the extension line closest to the point you click.
Notes
Only linear and aligned dimensions are accepted as the base.
New dimensions use the current dimension style (DIMSTYLE).
If its points lie on the geometry (endpoint, midpoint, center...), the dimension is associated with it and follows it when it is moved, stretched or scaled (DIMASSOC). With an annotative dimension style, the dimension is annotative.
Breaks dimension and extension lines where other objects cross them.
Command:DIMBREAK · Global name:_DIMBREAK · Alias:DBR
Ribbon: Annotate › Dimensions
Breaks the dimension and extension lines where other objects cross them, so the drawing reads better, or removes the breaks.
Usage
Enter DIMBREAK (or DBR).
Select the dimension, or choose Multiple to select several (Enter ends the selection).
Select dimension to add/remove break or [Multiple]:
Select the object that breaks the dimension (only that one will break it), press Enter (or choose Auto) to break it with everything that crosses it, or choose Remove to remove the breaks.
Select object to break dimension or [Auto/Remove] <Auto>:
The number of changed dimensions is reported.
Options
Multiple (M): selects several dimensions at once.
Select dimensions:
Auto (A): breaks the dimension at every crossing with other objects.
Remove (R): removes the breaks from the selected dimensions.
Notes
The breaks are redone every time the dimension is regenerated (when it is moved, stretched or its style changes), with the crossings found at that moment.
Only lines and straight polyline segments break; arcs, circles and splines do not.
With an object selected, the dimension only breaks where that object crosses it (remembered even if it moves). Manual breaks (by two points) are not available.
The break mark is specific to Lince2D: AutoCAD shows the dimension broken, but does not recognize it as a dimension break and the break disappears if it edits the dimension.
Creates a chain of linear dimensions from the previous one.
Command:DIMCONTINUE · Global name:_DIMCONTINUE · Alias:DCO
Ribbon: Annotate › Dimensions
Chains linear dimensions: each new dimension starts where the previous one ends, on the same dimension line. It is used for consecutive spans (openings in a façade, spacing of columns…).
Usage
Enter DIMCONTINUE (or DCO).
The command starts from the last linear or aligned dimension in the drawing. If there is none, select the dimension to continue.
Select continued dimension:
Specify the second extension line origin. A dimension is created from the previous one to that point and the prompt repeats from the new dimension.
Specify a second extension line origin or [Undo/Select] <Select>:
Press Enter to finish. If no dimension has been created yet, Enter asks you to select another starting dimension.
Options
Undo (U): removes the last dimension created and goes back to the previous one.
Select (S): selects another starting dimension. It continues from the extension line closest to the point you click.
Notes
Only linear and aligned dimensions can be continued.
New dimensions use the current dimension style (DIMSTYLE).
The continuation of an aligned dimension is created as a rotated linear dimension, with the same geometry.
If its points lie on the geometry (endpoint, midpoint, center...), the dimension is associated with it and follows it when it is moved, stretched or scaled (DIMASSOC). With an annotative dimension style, the dimension is annotative.
Command:DIMDIAMETER · Global name:_DIMDIAMETER · Alias:DDI
Ribbon: Annotate › Dimensions
Menu: Dimension
Dimensions the diameter of a circle or an arc. The text is prefixed with the diameter symbol (Ø50).
Usage
Enter DIMDIAMETER (or DDI) or click Diameter on the ribbon.
Select the circle or the arc with a click.
Select arc or circle:
Move the cursor and specify where the dimension goes. The dimension line crosses the center in the direction of the cursor.
Specify dimension line location:
Notes
Only circles and arcs can be dimensioned; for the radius use DIMRADIUS.
The dimension uses the current dimension style (DIMSTYLE); change it with DIMSTYLE.
The Text and Angle options of AutoCAD are not available; change the text afterwards with DIMEDIT.
If its points lie on the geometry (endpoint, midpoint, center...), the dimension is associated with it and follows it when it is moved, stretched or scaled (DIMASSOC). With an annotative dimension style, the dimension is annotative.
Changes the text of dimensions or moves it back to its default position.
Command:DIMEDIT · Global name:_DIMEDIT · Alias:DED
Ribbon: Annotate › Dimensions
Menu: Dimension
Changes the text of one or more dimensions, or moves the text back to the position given by the style.
Usage
Enter DIMEDIT (or DED).
Choose the type of editing (Enter: Home).
Enter type of dimension editing [Home/New] <Home>:
With New, type the new text.
Enter dimension text <<>>:
Select the dimensions and press Enter. They are redrawn with the change.
Select objects:
Options
Home (H): the text goes back to its default position if it had been moved (for example, with grips).
New (N): replaces the text of the dimensions. <> stands for the measurement: <> mm writes the measurement followed by "mm", and <> alone (or Enter) shows the plain measurement again.
Notes
Selected objects that are not dimensions are ignored.
The Rotate and Oblique options of AutoCAD are not available.
The text of a dimension can also be changed in the PROPERTIES palette.
Creates jogged radius dimensions for large arcs and circles.
Command:DIMJOGGED · Global name:_DIMJOGGED · Alias:DJO, JOG
Ribbon: Annotate › Dimensions
Dimensions the radius of a large arc or circle whose center lies outside the drawing or far from the visible area. The dimension line does not start at the real center but at an override center you choose, and it has a jog (a zigzag break) showing that it is not to scale.
Usage
Enter DIMJOGGED (or DJO, JOG).
Select the arc or the circle with a click.
Select arc or circle:
Specify the override center: the point the dimension line starts from.
Specify center location override:
Specify where the dimension line goes (and the arrow on the curve).
Specify dimension line location:
Specify where the jog goes, between the override center and the arrow.
Specify jog location:
Notes
The jog angle is the DIMJOGANG dimension variable of the style (45° if it has no value).
The text is prefixed with the letter R, like that of a normal radius dimension, and measures the real radius.
The dimension uses the current dimension style (DIMSTYLE) and is associated with the center of the arc or circle.
The Text and Angle options of AutoCAD are not available; change the text afterwards with DIMEDIT.
Command:DIMLINEAR · Global name:_DIMLINEAR · Alias:DLI
Ribbon: Home › Annotation
Ribbon: Annotate › Dimensions
Menu: Dimension
Dimensions the horizontal or vertical distance between two points. The dimension is horizontal or vertical depending on where you drag the dimension line: above or below the points it measures the X distance; to one side, the Y distance.
Usage
Enter DIMLINEAR (or DLI) or click Linear on the ribbon.
Specify the first extension line origin, or press Enter to select a line.
Specify first extension line origin or <select object>:
Specify the second extension line origin.
Specify second extension line origin:
Move the cursor to preview the dimension and specify where the dimension line goes.
Specify dimension line location:
Selecting an object
With Enter at the first step the object is requested: the endpoints of the selected line are the two origins.
Select object to dimension:
Notes
Use object snaps (endpoint, intersection…) so that the origins fall exactly on the geometry.
The dimension uses the current dimension style (DIMSTYLE): arrows, text height and placement, precision and units. Change it with DIMSTYLE.
The measurement is written automatically; to show another text use DIMEDIT or the PROPERTIES palette.
The Text, Angle, Horizontal, Vertical and Rotated options of AutoCAD are not available: the orientation comes from the position of the dimension line. For a dimension parallel to two diagonal points, use DIMALIGNED.
When selecting an object, only lines are accepted.
If its points lie on the geometry (endpoint, midpoint, center...), the dimension is associated with it and follows it when it is moved, stretched or scaled (DIMASSOC). With an annotative dimension style, the dimension is annotative.
Command:DIMORDINATE · Global name:_DIMORDINATE · Alias:DOR
Ribbon: Annotate › Dimensions
Dimensions the X or Y coordinate of a point relative to the drawing origin, with a leader from the point to the text. It is the usual dimension in machining or setting-out drawings.
Usage
Enter DIMORDINATE (or DOR).
Specify the point to dimension (the feature).
Specify feature location:
Specify the leader endpoint. If the leader runs mostly vertically, the X is dimensioned; if it runs horizontally, the Y.
Specify leader endpoint or [Xdatum/Ydatum]:
Options
Xdatum (X): dimensions the X of the point even if the leader runs horizontally.
Ydatum (Y): dimensions the Y of the point.
Notes
The measurement is the coordinate in the world coordinate system.
If the endpoint is not aligned with the point, the leader has a diagonal jog, as in AutoCAD.
The dimension uses the current dimension style (DIMSTYLE).
If its points lie on the geometry (endpoint, midpoint, center...), the dimension is associated with it and follows it when it is moved, stretched or scaled (DIMASSOC). With an annotative dimension style, the dimension is annotative.
Command:DIMRADIUS · Global name:_DIMRADIUS · Alias:DRA
Ribbon: Annotate › Dimensions
Menu: Dimension
Dimensions the radius of a circle or an arc. The text is prefixed with the letter R (R25).
Usage
Enter DIMRADIUS (or DRA) or click Radius on the ribbon.
Select the circle or the arc with a click.
Select arc or circle:
Move the cursor around the circle and specify where the dimension goes. The dimension line starts at the center, in the direction of the cursor.
Specify dimension line location:
Notes
Only circles and arcs can be dimensioned; for the diameter use DIMDIAMETER.
The dimension uses the current dimension style (DIMSTYLE); change it with DIMSTYLE.
The Text and Angle options of AutoCAD are not available; change the text afterwards with DIMEDIT.
If its points lie on the geometry (endpoint, midpoint, center...), the dimension is associated with it and follows it when it is moved, stretched or scaled (DIMASSOC). With an annotative dimension style, the dimension is annotative.
Command:DIMREASSOCIATE · Global name:_DIMREASSOCIATE · Alias:DRE
Ribbon: Annotate › Dimensions
Associates dimensions with the geometry again: for each selected dimension you specify its definition points once more and the dimension becomes linked to the objects found there. From then on the dimension follows those objects when they are moved, stretched, scaled or edited with grips.
Usage
Enter DIMREASSOCIATE (or DRE).
Select the dimensions and press Enter. Anything that is not a dimension is discarded.
Select dimensions to reassociate:
The points of each dimension are requested one by one. Specify the point with an object snap (endpoint, midpoint, center, quadrant or node) or press Enter to keep the current one.
Specify definition point … or press Enter to skip:
At the end, the number of dimensions that became associative is reported.
Points requested
Dimension
Points
Linear and aligned
The two extension line origins
Arc length
The two endpoints of the arc
Three-point angular
The vertex and the two points
Radius and diameter
The center
Ordinate
The feature point
Notes
The dimension is associated only if DIMASSOC is 2.
The association is recognized because the point coincides with a key point of the object (endpoint, midpoint, center, quadrant, node or polyline vertex). A point at an intersection or a nearest point does not associate it.
New dimensions are already associated when their points lie on the geometry; this command is for dimensions that were disassociated (moved on their own, their object erased) or for those of older drawings.
Associations are saved as in AutoCAD (DIMASSOC object), and AutoCAD keeps them.
Adjusts the spacing between parallel linear dimensions.
Command:DIMSPACE · Global name:_DIMSPACE · Alias:DSP
Ribbon: Annotate › Dimensions
Makes the spacing between parallel linear dimensions equal: it places them at the same distance from one another starting from a base dimension, or aligns them all on the same line.
Usage
Enter DIMSPACE (or DSP).
Select the base dimension, the one that does not move.
Select base dimension:
Select the dimensions to space and press Enter.
Select dimensions to space:
Enter the spacing, or press Enter for the automatic one.
Enter value or [Auto] <Auto>:
Options
Auto (A): the spacing is twice the text height of the base dimension's style.
A number: the distance between consecutive dimension lines. With 0 the dimensions are aligned with the base.
Notes
Only linear and aligned dimensions parallel to the base are moved; the others are discarded.
They are sorted by their distance to the base and placed, in that order, towards the side of the base's dimension line.
The text of the moved dimensions returns to its default position.
Command:DIMSTYLE · Global name:_DIMSTYLE · Alias:D, DST
Ribbon: Annotate › Dimensions
Menu: Format
Menu: Dimension
Manages dimension styles: creates, modifies, renames and deletes styles, and sets the current one. The style sets the look of dimensions: extension lines, arrows, text, scale and number format.
Usage
Enter DIMSTYLE (or D, DST) or click Dimension Style on the ribbon. The Dimension Style Manager opens.
Choose a style in the Styles: list (styles used by dimensions show "(in use)"). Double-click makes it current.
Click one of the buttons.
Buttons
Set Current: new dimensions will use the selected style.
New...: opens Create New Dimension Style; type the name in New Style Name:, choose in Start With: the style to copy and click Continue.
Modify...: opens Modify Dimension Style, with the tabs below.
Rename: changes the name, also in the dimensions that use it. Standard cannot be renamed.
Delete: deletes the style unless it is Standard, current or used by a dimension.
Modify Dimension Style
Lines: Extend beyond dim lines, Offset from origin and Dimension line extension with ticks (DIMDLE).
Symbols and Arrows: Arrow size, Tick size instead of arrowheads (DIMTSZ; 0: arrowheads), A different arrowhead at each end (DIMSAH) and the arrowheads: Arrowheads (or First and Second with DIMSAH) and Leader. They are AutoCAD's 20 (Closed filled, Closed blank, Closed, Dot, Architectural tick, Oblique, Open, Origin indicator, Origin indicator 2, Right angle, Open 30, Dot small, Dot blank, Small, Box blank, Box filled, Datum triangle, Datum triangle filled, Integral and None), drawn the way AutoCAD draws them: _ArchTick, _Dot… blocks added to the drawing (DIMBLK, DIMBLK1, DIMBLK2 and DIMLDRBLK). Dimensions from AutoCAD DWG files keep their arrowheads when edited.
Text: Text height, Offset from dim line, text placement (Centered or Above) and Text style.
Fit: what moves out when the text and the arrowheads do not fit between the extension lines (If text and arrows don't fit, move out (DIMATFIT): Both text and arrows, Arrows first, Text first or Either text or arrows (best fit)), Text always between extension lines (DIMTIX), Suppress arrowheads that don't fit (DIMSOXD), Dimension line between extension lines (DIMTOFL) and When the text is moved (DIMTMOVE) (Beside the dimension line, Over dimension line, with leader or Over dimension line, without leader). As in AutoCAD, the text width is measured with its font; what moves out goes beyond the second extension line, with the dimension line extended. Also Overall scale, which multiplies all sizes, and Annotative: new dimensions with the style are annotative and, instead of the overall scale, take the current annotation scale (CANNOSCALE): at 1:50 the sizes are multiplied by 50.
Primary Units: precision, decimal separator, linear scale factor, round off, zero suppression (Leading and Trailing), angular precision and Prefix and suffix (<> = measurement). Also the measurement tolerances: Tolerances (DIMTOL, 0/1), Limits (DIMLIM, 0/1), Upper value (DIMTP) and Lower value (DIMTM). And, for arc length dimensions, Arc length symbol (0: preceding, 1: above, 2: none).
Alternate Units: Display alternate units (DIMALT) adds the measurement in other units in brackets (40 [1.575]), with Alternate units multiplier (DIMALTF) (25.4 from inches to millimetres; 0.03937 the other way), Alternate units decimal places (DIMALTD), Alternate units round-off (DIMALTRND), Alternate units zero suppression (DIMALTZ), Alternate tolerance decimal places (DIMALTTD) and Alternate prefix and suffix ([] is the value) (DIMAPOST).
Click OK: the dimensions that use the style are redrawn.
Notes
The current style is stored in DIMSTYLE, and the overall scale in DIMSCALE.
Hovering over each label shows the name of its variable (DIMTXT, DIMASZ…).
There is no style preview. Alternate units are only written in decimal (DIMALTU), and the text and arrowhead fit is that of linear and aligned dimensions (angular and radius dimensions keep their own placement).
Measurement tolerances (± or limits) are not geometric tolerances: the feature control frame is created with TOLERANCE.
Inserts an updatable field: date, file name, drawing properties or an object property.
Command:FIELD · Global name:_FIELD · Alias:FLD
Ribbon: Annotate › Text
Inserts a field: a text whose value is computed and updated automatically, such as the date, the file name, the drawing author or a property of an object (the length of a line, the area of a boundary...). The field can go in a new text or replace the contents of an existing text.
Usage
Enter FIELD (or FLD).
Choose the field (Enter: Date).
Enter field [Date/Filename/Author/Title/Subject/Login/Object] <Date>:
With Object, select the object and choose the property (Enter: Length).
Enter property [Length/Area/Radius/Diameter/anGle/laYer] <Length>:
Specify where the new text starts, or choose Select text and select a text or a multiline text.
Specify text start point or [Select text]:
Select the text to hold the field:
Fields
Option
Value
Date
Today's date (in the short date format of the interface language)
Filename
The drawing file name
Author, Title, Subject
The drawing properties
Login
The user logged on to the computer
Object
Length, Area, Radius, Diameter, anGle or laYer of the selected object
Notes
The new text is a multiline text with the current text style and height.
Fields are shown on a gray background, which is not plotted; FIELDDISPLAY turns it off.
They are updated when the drawing is opened and saved and with UPDATEFIELD; the date, only with the latter.
They are saved as in AutoCAD, which recognizes and updates them.
FIELD does not yet put fields in attributes or inside the MTEXT editor. A field that cannot be evaluated is shown as ####.
Finds text in texts, attributes, dimensions, leaders and tables and replaces it.
Command:FIND · Global name:_FIND · Alias:FND
Ribbon: Annotate › Text
Finds a text in the drawing and replaces it with another. It searches texts, multiline texts, attributes, dimension override texts, multileaders and table cells.
Usage
Enter FIND (or FND). The Find and Replace dialog box opens.
Type what you are looking for in Find what:. Below it you see how many times it appears, updated as you type.
Type the new text in Replace with: and click Replace All. Close finishes without changing anything.
The dialog box
Match case: when cleared, "wall" also finds "Wall" and "WALL".
Find whole words only: "wall" does not find "walls" or "drywall".
If objects were selected when the command started, only they are searched and the dialog box says so.
Command line
While the dialog box is open you can also type:
Find what:
Replace with (Enter: find only):
If you press Enter at the second prompt, the matches are only counted. The typed search uses the boxes of the dialog.
Notes
Texts with fields are skipped, because their contents come from the field; in tables, formulas are not searched.
In multiline texts, a word split by a formatting change (one letter in bold, for example) is not found.
There is no step-by-step search or zoom to each match: all of them are replaced at once. The change is undone with UNDO.
Creates a multileader: arrowhead, landing and text or block content.
Command:MLEADER · Global name:_MLEADER · Alias:MLD
Ribbon: Home › Annotation
Ribbon: Annotate › Leaders
Menu: Dimension
Creates a multileader: an arrow pointing at a point, a landing and some content (multiline text, a block or nothing). Its look is set by the current multileader style.
Usage
Enter MLEADER (or MLD) or click Multileader on the ribbon.
Specify the arrowhead location, or choose what to specify first.
Specify leader arrowhead location or [leader Landing first/Content first/Options] <Options>:
Specify the next point. When the maximum number of points is reached (2 by default: the arrowhead and the landing), that point is the landing; with more points, Enter ends the leader at the last one.
Specify leader landing location:
If the content is text, the MTEXT editor opens: type the text and click OK.
Options
leader Landing first (L): specify the landing first and then the arrowhead.
Content first (C): draw the text box first (two corners), type the text and specify the arrowhead last.
leader arrowHead first (H): starts again with the arrowhead.
Options (O, or Enter):
Enter an option [Content type/Maxpoints/eXit options] <eXit options>:
Content type (C): Block, Mtext or None. With a block, type its name.
Maxpoints (M): maximum number of leader points, from 2 to 100.
eXit options (X): goes back to the first prompt.
Notes
The chosen order (arrowhead, landing or content first) is remembered for the next MLEADER, as in AutoCAD.
The arrowhead, landing, text style and text height are changed in MLEADERSTYLE.
Grips move the arrowhead, the vertices, or the content together with the landing.
If the style is annotative (those that come in AutoCAD drawings), the multileader is created annotative at the current annotation scale (CANNOSCALE). When the scale changes its content is scaled, but the leader is not rebuilt.
Command:MLEADERALIGN · Global name:_MLEADERALIGN · Alias:MLA
Ribbon: Annotate › Leaders
Aligns the content of several multileaders: their landings move onto the same line, the one that starts at the reference multileader in the direction you specify. The arrowheads do not move.
Usage
Enter MLEADERALIGN (or MLA) or click Align Multileaders on the ribbon.
Select the multileaders to align and press Enter.
Select multileaders:
Select the multileader used as the reference (it does not move).
Select multileader to align to:
Specify the direction of the line (for example, vertical with Ortho to stack the texts in a column).
Specify direction:
Notes
Each multileader is moved onto the line by the shortest path, together with its content.
The AutoCAD options to distribute the multileaders or to change their spacing are not available.
Creates, modifies and sets the current multileader style.
Command:MLEADERSTYLE · Global name:_MLEADERSTYLE · Alias:MLS
Ribbon: Annotate › Leaders
Menu: Format
Manages multileader styles: creates and modifies styles and sets the current one. When a style is modified, the multileaders that use it are updated.
Usage
Enter MLEADERSTYLE (or MLS) or click Multileader Style on the ribbon. The Multileader Style Manager opens.
Choose a style in the Styles: list.
Set Current makes it current; to create one, type the name in the field and click New (a copy of the selected style); Modify... shows its values.
Change the values, click OK and, when done, Close.
Modifying the style
Arrowhead symbol: Closed filled or None; Arrowhead size.
Automatically include landing, Set landing distance (length of the landing) and Landing gap (gap between the landing and the text).
Multileader type: Mtext, Block (choose the Source block) or None.
Text style and Text height.
Left attachment and Right attachment: where the landing meets the text when the leader comes from the left or from the right (Top of top line, Middle of multi-line text, Underline all text…).
Command line
While the dialog box is open you can type:
Multileader Style Manager (or ?, Current name, New name, Text height value):
?: lists the styles.
Currentname (C): makes the style current.
Newname (N): creates a copy of the current style and makes it current.
Text heightvalue (T): changes the text height of the current style.
Notes
The current style is stored in CMLEADERSTYLE. There are only two arrowheads: closed filled and none.
The Annotative property of the style is not changed here; annotative styles from AutoCAD drawings are honored and their multileaders are created annotative.
Creates multiline text (MTEXT): a paragraph inside a box, with line breaks and formatting (bold, italic, underline, color, height) within the same object. For one-line notes, TEXT is quicker.
Usage
Enter MTEXT (or T, MT) or click Multiline Text on the ribbon.
Specify the first corner of the box.
Specify first corner:
Specify the opposite corner or choose an option. The box width is the paragraph width: long lines wrap at the edge.
Specify opposite corner or [Height/Justify/Style/Rotation/Width]:
The Text Editor opens. Type the text and click OK. You can also type the lines on the command line; Enter on an empty line finishes.
Enter text (Enter on an empty line ends):
Options
Height (H): text height (it offers the last one used, TEXTSIZE).
Justify (J): attachment point of the box (TL, TC, TR, ML, MC, MR, BL, BC, BR).
Enter justification [TL/TC/TR/ML/MC/MR/BL/BC/BR] <…>:
Style (S): text style; ? lists the ones in the drawing.
Rotate (R): angle of the box and the text.
Width (W): types the box width instead of the opposite corner (0, no limit).
Text Editor
Style, Height, Justification and Width: the values for the whole paragraph.
B, I and U: bold, italic and underline for the selection (or for all the text if nothing is selected).
Color list and Color: applies the chosen color to the selection.
× factor and Height button: changes the height of the selection relative to the paragraph.
Each line in the box is a paragraph. Formats are stored as MTEXT codes, which can also be typed by hand.
Notes
With a fixed-height style, the style height replaces the typed one.
With an annotative style, the text is created annotative and its height is the paper height at the current annotation scale (CANNOSCALE); OBJECTSCALE adds more scales to it.
Fields are inserted with FIELD (not yet from the editor), and spelling is checked with SPELL.
To change the text later, double-click it or use TEXTEDIT.
Adds or deletes annotation scales of annotative objects.
Command:OBJECTSCALE · Global name:_OBJECTSCALE · Alias:OBJSC
Ribbon: Annotate › Annotation Scaling
Adds or deletes annotation scales of the selected annotative objects. An annotative object keeps one representation for each scale it supports and is shown with the one of the current annotation scale (CANNOSCALE) or of the viewport; if it does not support that scale, it is shown with its default scale.
Usage
Enter OBJECTSCALE (or OBJSC).
Select the objects and press Enter. Objects that are not annotative are discarded.
Select annotative objects:
Choose whether to add or delete a scale (Enter: Add).
Enter an option [Add/Delete/?] <Add>:
Enter the scale name as it appears in the drawing's scale list (1:50). When adding, Enter takes the current annotation scale.
Enter named scale to add or [?] <…>:
Enter named scale to delete or [?]:
Options
Add (A): the objects start supporting the scale. The new representation is computed from the one shown: texts and dimensions keep their size on paper.
Delete (D): the objects stop supporting the scale. An object never loses its last scale.
?: lists the scales supported by the selected objects.
Notes
The scale must be in the drawing's scale list; add it with SCALELISTEDIT. If the drawing has no list, the AutoCAD metric list is created.
The scales supported by an object are shown in the PROPERTIES palette (Annotative scales), where it can also be made annotative with Annotative.
There is no dialog box: everything is done on the command line.
With ANNOAUTOSCALE, changing the annotation scale adds it automatically to the objects that supported the previous one.
Quickly creates a series of dimensions from the selected geometry.
Command:QDIM · Global name:_QDIM · Alias:QD
Ribbon: Annotate › Dimensions
Creates a series of dimensions of the selected geometry in one go: chained dimensions, baseline dimensions, staggered dimensions, ordinate dimensions, or radius or diameter dimensions of all arcs and circles. It is the quick way to dimension a part or a façade.
Usage
Enter QDIM (or QD).
Select the geometry you want to dimension and press Enter.
Select geometry to dimension:
Move the cursor to preview the dimensions and specify where the dimension line goes, or choose another type of dimension first. Enter finishes without dimensioning.
Specify dimension line position or [Continuous/Staggered/Baseline/Ordinate/Radius/Diameter] <…>:
Options
Continuous (C): chained dimensions between consecutive points. This is the initial option.
Staggered (S): nested symmetric dimensions, from the outer pair of points to the inner one.
Baseline (B): all from the first point, each one offset from the previous one by the baseline spacing of the style (DIMDLI).
Ordinate (O): one ordinate dimension per point.
Radius (R) and Diameter (D): one dimension per arc and circle, in the direction of the cursor.
Which points are dimensioned
Lines: their two endpoints. Polylines: their vertices. Points: their location.
Arcs: their endpoints and, with Radius or Diameter, the arc itself. Circles: only with Radius or Diameter.
Points that coincide in the measured direction are dimensioned only once.
Notes
As in DIMLINEAR, the orientation comes from the position: above or below the geometry the dimensions are horizontal; to one side, vertical.
The dimensions use the current dimension style (DIMSTYLE) and are associated with the geometry.
The datumPoint, Edit and seTtings options of AutoCAD are not available.
Command:SCALELISTEDIT · Global name:_SCALELISTEDIT
Ribbon: Annotate › Annotation Scaling
Menu: Format
Edits the list of annotation scales of the drawing: adds scales, deletes the ones not needed or goes back to the default list. The list is saved in the drawing, as in AutoCAD (ACAD_SCALELIST dictionary).
Usage
Enter SCALELISTEDIT.
Choose an option (Enter: Add).
Enter option [?/Add/Delete/Reset/Exit] <Add>:
To add a scale, type its name and its paper:drawing ratio.
Enter name for new scale:
Enter scale ratio (paper:drawing):
Options
?: lists the scales of the drawing with their paper and drawing units.
Add (A): adds a scale. The ratio is typed 1:50 or 1=50.
Delete (D): deletes the scale with the given name. The last scale cannot be deleted.
Reset (R): after confirmation, replaces the list with the default metric one (1:1 to 1:100, and 2:1 to 100:1).
Exit (E): ends the command (Esc also does).
Notes
Everything is done on the command line: there is no dialog box, and SCALELISTEDIT does the same as -SCALELISTEDIT.
The scales in the list are the ones that can be chosen as annotation scale (CANNOSCALE, also with the selector on the status bar) and the ones added to annotative objects with OBJECTSCALE.
Lince2D does not check whether a scale is in use before deleting it: neither the current annotation scale nor those supported by annotative objects.
Checks the spelling of texts with the language dictionary.
Command:SPELL · Global name:_SPELL · Alias:SP
Ribbon: Annotate › Text
Checks the spelling of the texts in the drawing with the dictionary of the interface language (Spanish or English) and suggests corrections for every word it does not recognize.
Usage
Enter SPELL (or SP).
Select the objects you want to check and press Enter, or press Enter without selecting anything to check the whole drawing.
Select objects (Enter: entire drawing):
For each word not in the dictionary, the Check Spelling dialog box opens with the suggestions. Pick one (or type the right one in Change to:) and click a button.
At the end you are told: Spelling check complete.
Buttons
Change: corrects this occurrence of the word.
Change All: also corrects all the other identical occurrences.
Ignore: leaves the word as it is and goes to the next one.
All: leaves this word and all identical ones during this check.
Add: adds it to the user dictionary; it will not be flagged again.
Close: ends the check; what was already corrected stays.
Command line
The same prompt can be answered by typing:
"…" is not in the dictionary. Suggestions: …. Type the correction or [Ignore/All/Add] <Ignore>:
Type the correction (ending with *, for all identical occurrences) or one of the options; Enter ignores the word.
Notes
Texts, multiline texts, attributes, dimension texts, multileaders and table cells are checked. Texts with fields are skipped.
Single-letter words and words containing digits are not checked.
The user dictionary is the file ortografia_usuario.txt in the Lince2D configuration folder (%APPDATA%\lince on Windows): one word per line.
The dictionaries come with the program (RLA-ES for Spanish and SCOWL for English). Some compound or heavily derived forms may be flagged as unknown: use Add.
Creates, modifies and deletes text styles, and sets the current one. A text style holds the font, an optional fixed height, the width factor and the oblique angle; it is used by TEXT, MTEXT, dimensions and tables.
Usage
Enter STYLE (or ST) or click Text Style on the ribbon. The Text Style dialog box opens.
Choose a style in the Styles: list. Its values are shown on the right.
Change the values and click Apply to save them in the style.
Controls
Font Name: the font, chosen from the list (the Windows TrueType and OpenType fonts, and the AutoCAD SHX fonts if AutoCAD is installed).
or type the font: the font file name, typed (txt.shx, arial.ttf).
Height: fixed height of the style. With 0, TEXT and MTEXT ask for the height of each text.
Width Factor: 1 is the normal width; less than 1 narrows the characters and more than 1 widens them.
Oblique Angle: slant of the characters, between -85° and 85°.
Annotative: new texts with this style are created annotative: the height is the paper height and they are shown at the current annotation scale (CANNOSCALE). Existing texts do not change.
Set Current: new texts will use the selected style.
New...: creates a copy of the selected style; type the name in Style Name: and click OK.
Delete: deletes the selected style. Standard, the current style and styles used by texts, attributes or dimension styles cannot be deleted.
Apply: saves the changes to font, height, width and angle (enabled only when there are changes).
Notes
The current style is stored in the TEXTSTYLE variable.
Creates an empty table or one with the data of a CSV file.
Command:TABLE · Global name:_TABLE · Alias:TB
Ribbon: Home › Annotation
Ribbon: Annotate › Tables
Menu: Draw
Inserts a table: empty, to type in its cells, or filled with the data of a CSV file or of pasted text. The table is an AutoCAD TABLE object, with title, header and data rows according to its style.
Usage
Enter TABLE (or TB) or click Insert Table on the ribbon. The Insert Table dialog box opens.
Choose the style, where the data comes from and the size, and click OK.
Specify the insertion point (the upper-left corner) or, with Specify window, the two corners.
Specify insertion point:
In an empty table you start typing in the first cell: Tab moves to the next cell, Shift+Tab to the previous one and the Up and Down arrows to another row. OK finishes.
Insert options: Start from empty table, From a CSV file: (type the path or click Browse…) or From pasted text (CSV). In the last two the first row is the header and the columns take the width of their contents.
Insertion behavior: Specify insertion point or Specify window. With a window, the columns share the width and as many data rows as fit in the height are created.
Column & row settings (empty table only): Columns:, Column width:, Data rows: and Row height (lines):.
Set cell styles: the style of the First row cell style: and the Second row cell style: (Title, Header or Data).
Command line
While the dialog box is open you can type the same options; Enter accepts.
Columns (C), Rows (R), Width (W), Height (H), Style (S), WIndow (WI, toggles point and window) and CSV (CSV, path of the file).
Formulas
Contents starting with = are a formula: =Sum(A3:A5), =Average(B3:B6), =Count(A3:C5), =A3*B3+1. Columns are letters and rows are numbers, as in a spreadsheet. A formula that cannot be calculated shows ####.
Command:TABLECELL · Global name:_TABLECELL · Alias:CELLS
Changes the selected cells of a table: inserts or deletes rows and columns, merges or unmerges cells, and changes the alignment, height and color of the text, the fill and the contents.
Selecting cells
With no command running, click inside a cell to select it; Shift+click or dragging from one cell to another extends the range. The Table Cell palette appears; its buttons run TABLECELL:
Command:TABLEDIT · Global name:_TABLEDIT · Alias:EDITTABLE
Ribbon: Annotate › Tables
Edits the text of table cells with the text editor, moving from one cell to another with the keyboard.
Usage
Enter TABLEDIT (or EDITTABLE), or double-click a cell. If a cell was already selected, that one is edited.
Select the cell with a click.
Select a table cell:
Type in the editor. Tab moves to the next cell and Shift+Tab to the previous one; with a single line of text, the Up and Down arrows move to the row above or below. OK saves and finishes.
You can also type on the command line: each line is the contents of a cell and moves to the next one; Enter on an empty line finishes.
Cell …: type the contents (Enter ends):
Notes
Contents starting with = are a formula (=Sum(A3:A5)); see TABLE.
Cancel does not save the cell being edited, but keeps what was typed before in other cells. All the changes made in one TABLEDIT are undone together.
Merged cells are edited as one; the cells covered by a merged cell are skipped.
Command:TABLESTYLE · Global name:_TABLESTYLE · Alias:TS
Ribbon: Annotate › Tables
Menu: Format
Manages table styles: creates, modifies and deletes styles, and sets the current one. The style sets the cell margins and, for the data, header and title rows, the text, color, fill and alignment.
Usage
Enter TABLESTYLE (or TS) or click Table Style on the ribbon. The Table Style dialog box opens.
Choose a style in the list (styles used by tables show "(in use)"). Double-click makes it current.
Click one of the buttons; Close finishes.
Buttons
Set Current: new tables will use the selected style.
New...: opens Create New Table Style; type the name in New Style Name:, choose in Start With: the style to copy and click Continue.
Modify...: opens the modify dialog box, described below.
Delete: deletes the style unless it is Standard, current or used by a table.
Modify Table Style
Horizontal margin: and Vertical margin:: space between the text and the cell borders.
Cell style:: choose Data, Header or Title; the fields below belong to that row: Text style:, Text height:, Text color:, Fill color: and Alignment:.
Click OK: the tables that use the style are redrawn.
Command line
Table style (new N, current N, height N data 3, color N title 1…) <Close>:
new N [base], current N, delete N and, for the data, header or title row of style N: height N data 3.5, color N title 1, fill N header 8 (or none), align N data MC. margin N 1.5 changes the margins. The Spanish words (nuevo, actual, altura, datos…) are also accepted.
Notes
The current style is stored in CTABLESTYLE and can also be chosen in the list of the Tables panel on the Annotate tab.
Creates single-line text. Each line you type is a separate text object; after Enter, the next line starts below, as in a word processor. For a formatted paragraph, use MTEXT.
Usage
Enter TEXT (or DT) or click Single Line Text on the ribbon.
Specify the start point (the text baseline) or choose an option.
Specify start point of text or [Justify/Style]:
If the text style has no fixed height, enter the height (a number or a second point).
Specify height <…>:
Enter the rotation angle (a number in degrees or a point).
Specify rotation angle of text <…>:
Type the text and press Enter. The line is created and the next one is requested, below the previous one.
Enter text:
Press Enter on an empty line to finish.
Options
Justify (J): changes which point of the text sits on the start point. Left, Center, Right and Middle use the baseline; the two-letter options combine Top, Middle or Bottom with Left, Center or Right (TL = top left, MC = middle center, BR = bottom right…).
Enter an option [Left/Center/Right/Middle/TL/TC/TR/ML/MC/MR/BL/BC/BR]:
Style (S): chooses the text style for this command. ? lists the styles in the drawing.
Enter style name or [?] <…>:
Notes
The text uses the current style (TEXTSTYLE) with its font, width factor and oblique angle, and the current layer, color and linetype.
The height offered is the last one used (TEXTSIZE variable); the first time, 2.5.
With an annotative style (STYLE check box), the text is created annotative and the height you enter is the paper height: at the 1:50 annotation scale (CANNOSCALE), a 2.5 text measures 125 drawing units.
A text can hold fields (date, file name...): see FIELD.
The rotation angle is measured from the X axis of the current UCS (see UCS), as in AutoCAD.
The Align and Fit justifications of AutoCAD (the ones that ask for two points) are not available.
To change the contents later, double-click the text or use TEXTEDIT.
Command:TEXTEDIT · Global name:_TEXTEDIT · Alias:ED, DDEDIT
Ribbon: Annotate › Text
Changes the contents and formatting of an existing text, single-line or multiline, in the text editor.
Usage
Enter TEXTEDIT (or ED, DDEDIT), or double-click the text. If a text was already selected, that one is edited.
Select the text.
Select an annotation object:
The Text Editor opens with the contents. Change them and click OK (or Cancel to leave the text as it was).
Notes
In multiline text you can change the style, height, justification, width and formatting (bold, italic, underline, color, relative height); the buttons are the ones of MTEXT.
In single-line text the editor has a single line and only the contents, style and height change.
It only edits texts (TEXT and MTEXT). Table cells are edited with TABLEDIT; dimensions, with DIMEDIT or the PROPERTIES palette.
Creates a geometric tolerance feature control frame.
Command:TOLERANCE · Global name:_TOLERANCE · Alias:TOL
Ribbon: Annotate › Dimensions
Creates a geometric tolerance feature control frame: a row of compartments with the geometric characteristic symbol, the tolerance value and the datum references, as used in mechanical drawings.
Usage
Enter TOLERANCE (or TOL). The Geometric Tolerance dialog box opens.
Fill in the frame and click OK, or type it on the command line.
Use the dialog or type the frame (symbol tolerance datums; e.g. j %%c0.05M A B):
Specify where the frame goes.
Enter tolerance location:
The dialog box
Symbol: the geometric characteristic (position, flatness, perpendicularity...).
Tolerance 1: the Ø box puts the diameter symbol before the value; the list on the right adds the material condition (M, L or S).
Datum …: up to three datum reference letters (A, B, C...). Empty ones are not drawn.
Typing the frame
Type the symbol, the tolerance and the datums separated by spaces: j %%c0.05M A B is a position tolerance of diameter 0.05 at maximum material condition, referred to A and B. The tolerance accepts %%c or Ø before it and M, L or S after it.
Letter
Characteristic
Letter
Characteristic
j
Position
g
Cylindricity
r
Concentricity
c
Flatness
i
Symmetry
e
Circularity
f
Parallelism
u
Straightness
b
Perpendicularity
d
Profile of a surface
a
Angularity
k
Profile of a line
h
Circular runout
t
Total runout
Notes
The text height and the compartment gap come from the current dimension style (DIMSTYLE); with an annotative style the frame is annotative too.
The symbols are drawn with lines, without needing the AutoCAD GDT font.
There is a single row with one tolerance: the second tolerance, the second row and the projected tolerance zone are not available.
Command:UPDATEFIELD · Global name:_UPDATEFIELD · Alias:UPDFIELD
Ribbon: Annotate › Text
Evaluates the fields of the selected objects again, so that they show their current value: today's date, the new length of a line that was stretched, the file name after saving it under another name...
Usage
Enter UPDATEFIELD (or UPDFIELD).
Select the texts, multiline texts or block references with attributes that hold fields and press Enter. Type ALL to update those of the whole drawing.
Select objects:
The number of updated fields is reported.
Notes
All the fields of the selection are updated, including the date, which does not change on its own when the drawing is opened or saved.
In block references, the fields of their attributes are updated.
If you select the objects before starting the command, they are updated without further prompts.
Fields are created with FIELD; those that come in AutoCAD drawings are updated too.
Lists, detaches, reloads, unloads or changes the path of the images of the drawing.
Command:-IMAGE · Global name:_-IMAGE
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] <Attach>:
Enter the image names separated by commas, or * (or Enter) for all of them.
Enter images (names separated by commas, or * for all) <*>:
With Path, enter the new path or ~ to choose it in a dialog box.
Enter the new file path (~ to choose it):
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.
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.
Usage
Enter -INSERT (or -I).
Enter the block name. You can also enter the path of a DWG or DXF file (C:\drawings\door.dwg), name=path to give it another name, ~ to choose 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 [Scale/Rotate]:
Enter the scale factor or specify a point: its distance to the insertion point is the scale.
Specify scale factor <1>:
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
Scale (S): before specifying the point, sets the scale; the block already moves at that size.
Rotate (R): before specifying the point, sets the rotation.
Notes
The scale is uniform (the same in X, Y and Z) and cannot be 0. For a different scale on each axis, use the INSERT palette.
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.
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.
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] <Attach>:
Enter the names of the references. Wildcards are accepted: * all of them, ? one character, and several names separated by commas.
Enter xref name(s) <*>:
Options
?: lists the references that match the name, with their type (attached or overlay), path and status.
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).
Detach (D): removes the reference and all its inserts. It also removes PDF underlays.
Unload (U) and Reload (R): stop showing the reference without removing it, or read it again from disk. They also work with PDF underlays.
Path (P): changes the saved path of each reference; Enter or ~ opens the dialog to choose the file.
Xref name: …. Enter new path or <Browse>:
pathType (T): saves the path of the loaded references as full, relative or just the file name.
Path type [Full/Relative/No path] <Relative>:
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.
Browses other drawings and copies their blocks, layers, linetypes, styles and layouts.
Command:ADCENTER · Global name:_ADCENTER · Alias:ADC, DC
Ribbon: Insert › Content
Ribbon: View › Palettes
Menu: Insert
Opens the DesignCenter window, which browses other drawings and copies their blocks, layers, linetypes, text styles, dimension styles and layouts into the current one. Enter the command again to close it.
Usage
Enter ADCENTER (or ADC, DC) or click the button.
In the tree on the left, choose a drawing under Open Drawings or in a library folder. Add Folder… adds another folder to the tree (and to the Libraries tab of INSERT).
Choose the category at the top right; each one shows how many entries the drawing has.
Choose an entry and click a button:
Insert (blocks only): starts inserting the block, like a click in the Blocks palette. Double-clicking the thumbnail or dragging it onto the drawing does the same.
Add to Tool Palette (blocks only): adds it to the visible tool palette (TOOLPALETTES).
Add to Drawing: copies the entry into the current drawing with whatever it needs (for example, a dimension style with its text style). Double-clicking a layer or a style does the same.
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 current drawing already has an entry with that name, its own is kept and a message is shown on the command line.
Copying into the drawing is undone with UNDO in a single step.
An open drawing that has not been saved yet cannot be added to a tool palette: the tool needs its file.
Drawings larger than 20 MB in library folders are not browsed; insert them with Browse… in the Blocks palette.
Creates an attribute definition: a variable text that, once included in a block, asks for its value each time the block is inserted (a drawing number, a reference, a manufacturer...). It is shown with its tag until it is included in a block with BLOCK.
Usage
Enter ATTDEF (or ATT) or click the button.
Change the modes you need by entering their option (each time it toggles between Y and N) and press Enter when done.
Attribute modes -- Invisible:… Constant:… Verify:… Preset:…. Enter an option to change [Invisible/Constant/Verify/Preset] <done>:
Enter the tag: a single word without spaces, converted to uppercase.
Enter attribute tag name:
Enter the prompt, the text shown when the block is inserted (not asked if the attribute is constant).
Enter attribute prompt:
Enter the default value (or the fixed value, if it is constant).
Enter default attribute value:
Specify the start point of the text, its height and its rotation angle.
Specify start point of text:
Options
Invisible (I): the value is not shown in the drawing.
Constant (C): the value is fixed and is not asked on insertion.
Verify (V): flags the attribute so that its value is checked on insertion.
Preset (P): flags the attribute so that it takes its default value.
Notes
The default height is the fixed height of the current text style or, if it has none, the last one used (TEXTSIZE). With a fixed-height style it is not asked.
In Lince2D, verify and preset attributes are prompted on insertion like the others; the modes are saved for AutoCAD.
The modes, prompt and default value can be changed later with BATTMAN.
Extracts block attributes to a CSV file or a table.
Command:ATTEXT · Global name:_ATTEXT · Alias:DATAEXTRACTION, DX
Ribbon: Insert › Attributes
Menu: Insert
Extracts the attribute values of blocks to a table in the drawing or to a CSV file that opens in a spreadsheet. It is useful for door, device or luminaire schedules.
Usage
Enter ATTEXT (or DATAEXTRACTION, DX) or click the button.
Select the blocks and press Enter, or press Enter without selecting to take all those in model space.
Select blocks or [ALL] <ALL>:
Choose the output.
Output [Table/File] <Table>:
With Table, specify the upper-left corner of the table.
Upper-left corner of the table:
With File, enter the file path.
CSV file:
Options
ALL (ALL): every block with attributes in model space.
Table (T): a table titled "Block Attributes", with a header row and one row per block.
File (F): a comma-separated CSV file.
Notes
The columns are the block name, the X and Y coordinates of its insertion point and one attribute tag per column, in the order they appear. There is no wizard to choose columns: they are all output.
If the path does not end in .csv or .txt, .csv is 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).
Updates the attributes of a block's inserts to match its definition.
Command:ATTSYNC · Global name:_ATTSYNC
Ribbon: Insert › Attributes
Menu: Insert
Updates the attributes of every insert of a block from its current definition: after changing a block's attribute definitions (with BEDIT or BLOCK), the existing inserts are brought up to date.
Usage
Enter ATTSYNC or click the button.
Select an insert of the block or enter its name.
Select a block or type its name:
The number of updated inserts is shown.
Notes
The attributes are placed again as in the definition: position, height, style and modes.
Values are kept by tag. A new attribute takes its default value and one that is no longer in the definition disappears from the inserts.
Inserts in model space and in layouts are updated.
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.
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.
Point 0,0 in the editor is the block's base point.
External references, layouts and anonymous blocks cannot be edited. For a dynamic block its definition is edited; its parameters and actions are kept, but new ones cannot be added.
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.
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.
Enter 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.
Specify the base point: the point the block is held by when it is inserted.
Specify insertion base point:
Select the objects and press Enter.
Select objects:
Choose what to do with the original objects.
What to do with the objects? [Retain/Convert to block/Delete] <Convert to block>:
Options
Retain (R): leaves the objects as they were.
Convert to block (C): replaces them with an insert of the block at the base point. This is the default.
Delete (D): deletes them from the drawing.
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, not in selection order.
External references, layouts and anonymous blocks cannot be redefined with BLOCK.
There is no dialog box: everything is asked on the command line. To change a block without creating it again, use BEDIT.
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.
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.
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.
With the drawing's system set, the status bar always shows the cursor's latitude and longitude.
Assigns a coordinate system (EPSG code) to the drawing.
Command:GEOGRAPHICLOCATION · Global name:_GEOGRAPHICLOCATION · Alias:GEO
Ribbon: Insert › Geolocation
Menu: Insert
Assigns a coordinate system to the drawing, for example ETRS89 / UTM 30N. With it, the drawing knows which point on Earth each coordinate corresponds to: the status bar shows the cursor's latitude and longitude, and GEOIMAGE, MAPIMPORT, MAPEXPORT and GEOCOORD can reproject.
Usage
Enter GEOGRAPHICLOCATION (or GEO) or click the button. The Geographic Location dialog box opens and, at the same time, the command line asks.
Choose the system in the dialog box and click OK, or enter its code on the command line: the EPSG code (25830, 4326) or the AutoCAD code (ETRS89.UTM-30N).
Enter EPSG code of the coordinate system or [Remove/List] <…>:
Options
Remove (R): removes the coordinate system from the drawing.
List (L): lists the available systems, with their EPSG code, AutoCAD code and name.
Notes
The drawing is assumed to be already drawn in coordinates of that system, as is usual in survey drawings. A drawing with local coordinates cannot be placed on a point of the map.
It is saved the way AutoCAD saves it; if AutoCAD does not know the system, its full definition is saved.
The available systems include ETRS89, WGS84 and ED50 in UTM zones 28 to 31, REGCAN95 and WGS84 geographic.
With ED50, a message tells how it is transformed to ETRS89: with the official IGN grid if it is installed or, otherwise, with 7 parameters (about 1.5 m of error).
Inserts an image at its real coordinates, from its world file or its GeoTIFF tags.
Command:GEOIMAGE · Global name:_GEOIMAGE
Ribbon: Insert › 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.
The image's coordinate system is taken from its .prj file 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.
Moves an image into place with 2 or 3 control points.
Command:GEOREFIMAGE · Global name:_GEOREFIMAGE
Ribbon: Insert › 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.
Attaches a raster image (PNG, JPEG, BMP, TIFF, GIF or WebP) to the drawing.
Command:IMAGEATTACH · Global name:_IMAGEATTACH · Alias:IAT
Ribbon: Insert › Reference
Attaches a raster image (PNG, JPEG, BMP, TIFF, GIF or WebP) to the drawing: a scanned drawing, a photo or an orthophoto. The image is not copied into the drawing: its path is saved and the file is read when the drawing opens.
Usage
Enter IMAGEATTACH (or IAT) or click the button.
Enter the image path, or press Enter to choose it in a dialog box. Its size at scale 1 is shown.
Enter image file name to attach or [Browse] <Browse>:
Specify the lower-left corner of the image (Enter: the origin).
Specify insertion point or [Path] <0,0>:
Enter the scale or specify a point: its distance to the insertion point is the width of the image.
Specify scale factor <1>:
Enter the rotation angle or specify a point in that direction.
Specify rotation angle <0>:
Options
Browse (B): opens the dialog box to choose the file (so do ~ and Enter).
Path (P): chooses how the path is saved.
Path type [Relative/Full] <Relative>:
Relative (R): relative to the drawing's folder; the drawing and the image can be moved together. If the drawing has not been saved yet or the image is on another drive, the full path is saved.
Full (F): the full path.
Notes
At scale 1, if the file states its resolution and the drawing has units (INSUNITS), the image comes in at its real size; if either is missing, it is 1 unit wide.
If the file is not found at its path when the drawing opens, a file with the same name is looked for in the drawing's folder.
The image frame is controlled with IMAGEFRAME. Images are listed in XREF.
For an image with a world file or GeoTIFF tags, use GEOIMAGE: it is placed at its coordinates automatically.
Shows only part of an image, inside or outside a boundary.
Command:IMAGECLIP · Global name:_IMAGECLIP · Alias:ICL
Ribbon: Insert › Reference
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 the boundary will be hidden. Specify clipping boundary [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.
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 the boundary will be hidden. Specify clipping boundary [Polygonal/Rectangular/Invert clip] <Rectangular>:
Undo (U): in a polygonal boundary, removes the last vertex.
Inserts a block or a whole drawing. It opens the Blocks palette, with thumbnails of the blocks in the drawing, the most recently inserted ones and those in the library folders. Click a thumbnail (or drag it onto the drawing) and the block hangs from the cursor so you can place it.
Usage
Enter INSERT (or I) or click the button: the palette opens (or closes).
Choose the tab and, if needed, type part of the name in Search.
Click a block. If it comes from another file, its definition is copied into the drawing first.
Specify on screen whatever is missing, according to the palette's insertion options.
Specify insertion point or [Scale/Rotate]:
If the block has attributes, enter their values (Enter keeps the default value).
Tabs
Current Drawing: the blocks defined in the drawing. Browse… inserts another DWG or DXF as a block.
Recent: the last 24 inserted blocks, with their source file.
Libraries: the drawings in the library folders, each one whole and with its blocks. The folder installed with the program has architectural and electrical symbols. Add Folder… adds another one; right-click its title to remove it.
Insertion options
Insertion Point, Scale and Rotation: with Specify On-screen they are specified with the mouse; otherwise the typed values are used. Clear Uniform Scale to use different X, Y and Z scales.
Repeat Placement: after placing the block it asks for the point again, until Enter or Esc.
Explode: inserts the pieces of the block instead of a reference to it.
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 drawing already has a block with the same name, the drawing's block is used and the other file's is not copied.
Recent blocks, folders and tool palettes are saved in bloques.toml, in the program's settings folder.
In scripts, INSERT asks on the command line like -INSERT.
Exports the selection to SHP, KML, KMZ or GeoJSON.
Command:MAPEXPORT · Global name:_MAPEXPORT
Ribbon: Insert › Geolocation
Menu: Insert
Exports the selected objects to a GIS format: SHP, KML or KMZ (for Google Earth) or GeoJSON.
Usage
Enter MAPEXPORT or click the button.
Select the objects and press Enter. Objects already selected are used.
Select objects:
Choose the file in the dialog box or enter its path. The format comes from the extension.
Output file (.shp, .kml, .kmz or .geojson):
When it finishes, the files written are listed.
Notes
KML, KMZ and GeoJSON are in WGS84 (latitude and longitude), so the drawing needs its coordinate system (GEOGRAPHICLOCATION).
SHP is in the drawing's system, with its .prj; without a system, in the drawing's coordinates as they are. One file is written per geometry type (points, lines and polygons).
Points, block inserts and texts are written as points; everything else as lines or, if closed, as polygons. Arcs and curves are split into straight segments.
Each feature carries as attributes its layer, its text, the block's attributes and the fields it brought from MAPIMPORT.
Each polygon is exported as a single ring, without holes.
Imports SHP, KML, KMZ or GeoJSON with their attributes.
Command:MAPIMPORT · Global name:_MAPIMPORT · Alias:SHP2CAD
Ribbon: Insert › Geolocation
Menu: Insert
Imports GIS data (SHP, KML, KMZ or GeoJSON 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 or GeoJSON 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 .prj; 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. If the points are a block, its attributes take the value of the field with the same name.
KML styles and network links are not read. 3D objects in SHP files (multipatch) are skipped.
Changes the fade, contrast or monochrome mode of PDF underlays.
Command:PDFADJUST · Global name:_PDFADJUST
Ribbon: Insert › Reference
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 underlays:
Choose what to adjust; Enter, the fade.
Enter underlay option [Fade/Contrast/Monochrome] <Fade>:
Enter the new value.
Options
Fade (F): from 0 (no fade) to 80; Enter sets 25.
Enter fade value (0-80) <25>:
Contrast (C): from 0 to 100; Enter sets 20.
Enter contrast value (0-100) <20>:
Monochrome (M): with Yes, the underlay is shown in grayscale instead of in color.
Monochrome? [Yes/No] <No>:
Notes
The value is applied to all selected underlays. The one offered between < > is AutoCAD's default, not the underlay's current value.
It is saved in the underlay as in AutoCAD. The change is undone with UNDO.
Command:PDFATTACH · Global name:_PDFATTACH · Alias:PDFA
Ribbon: Insert › Reference
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>:
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 Lince2D, 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.
Shows only part of a PDF underlay, inside or outside a boundary.
Command:PDFCLIP · Global name:_PDFCLIP
Ribbon: Insert › Reference
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 underlay to clip:
Choose the option; Enter creates a new boundary, which replaces any existing one.
Enter PDF clipping option [ON/OFF/Delete/New boundary] <New>:
Choose the boundary type; Enter, rectangular.
Outside mode: objects outside the boundary will be hidden. Specify clipping boundary [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) when there are at least three.
Specify next point or [Close/Undo]:
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 (N): draws a new boundary.
Rectangular (R) and Polygonal (P): the boundary type.
Invert (I): switches between hiding what is outside and hiding what is inside.
Inside mode: objects inside the boundary will be hidden. Specify clipping boundary [Polygonal/Rectangular/Invert clip] <Rectangular>:
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.
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 Lince2D's own data: AutoCAD shows the underlay with all its layers.
The choice is made on the command line: there is no PDF layers dialog box.
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.
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 [Scale/Rotate]:
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.
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] <OFF>:
Options
ON (ON): the transparent pixels of the file are shown as transparent.
OFF (OFF): the image is shown opaque. This is the default.
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.
Saves a block of the drawing 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.
Enter the path of the new file. If it has no .dwg or .dxf extension, .dwg is added.
New file name (.dwg or .dxf):
Enter the block name, or = if it has the same name as the file.
Enter name of existing block or [=] (block=output file):
Notes
The block's contents go to the model space of the new drawing, with the layers, linetypes, styles and nested blocks it uses. Its 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).
Only existing blocks are saved: you cannot select loose objects or save the whole drawing. For that, create the block first with BLOCK.
If the file already exists, it is replaced and a .bak copy is left.
To insert the file into another drawing, enter its path in -INSERT or use Browse… in the INSERT palette.
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>:
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.
Shows only part of an external reference or a block, inside or outside a boundary.
Command:XCLIP · Global name:_XCLIP · Alias:XC
Ribbon: Insert › Reference
Shows only part of an external reference or a block: what lies inside a boundary or, with the boundary inverted, what lies outside it. The reference itself does not change: the boundary can be turned off or removed later.
Usage
Enter XCLIP (or XC) or click the button.
Select the external references or blocks and press Enter.
Select objects:
Choose the option; Enter creates a new boundary.
Enter clipping option [ON/OFF/Clipdepth/Delete/Polyline/New boundary] <New>:
If any of them was already clipped, confirm that its boundary is replaced.
Delete old boundary(s)? [Yes/No] <Yes>:
Choose the boundary type; Enter, rectangular.
Outside mode: objects outside the boundary will be hidden. Specify clipping boundary [Select polyline/Polygonal/Rectangular/Invert clip] <Rectangular>:
For a rectangular one, specify two opposite corners; for a polygonal one, the vertices and Enter (or Close) when there are at least three.
Specify first corner point:
Options
New (N): draws a new boundary.
ON / OFF (ON / OFF): turns on or off the boundary they already have.
Delete (D): removes the boundary; they are shown whole again.
Polyline (P): creates a polyline with the shape of the boundary of each clipped object.
Select (S): uses a closed polyline with straight segments as the boundary.
Select polyline:
Polygonal (P) and Rectangular (R): the type of boundary to draw.
Invert (I): switches between hiding what is outside and hiding what is inside.
Inside mode: objects inside the boundary will be hidden. Specify clipping boundary [Select polyline/Polygonal/Rectangular/Invert clip] <Rectangular>:
Notes
The boundary is shown if XCLIPFRAME is not 0, on the layer and in the color of the insert.
It is saved as in AutoCAD (a spatial filter on the insert): AutoCAD shows it the same way.
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.
Manages layers from the command line, without windows: useful in scripts and in LISP. It does the same as the LAYER: create layers, set the current one, rename them and change their properties.
Usage
Enter -LAYER (or -LA).
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description]:
Choose an option. Options that change a property ask for the value first and then for the layers:
Enter name list of layer(s) (wildcards allowed) <…>:
After each option the first prompt comes back. Press Enter to finish.
Layer lists accept several names separated by commas and wildcards (*, ?, #, @, ~). Pressing Enter without typing anything applies the option to the current layer.
Options
?: lists the layers with their status, color and linetype.
Make (M): makes a layer current; if it does not exist, it is created.
Set (S): makes an existing layer current.
New (N): creates layers without making them current.
Enter name list for new layer(s) (comma-separated):
Rename (R): renames a layer.
ON / OFF: turns layers on or off.
Color (C): a number from 1 to 255, a standard color name (red, yellow...) or R,G,B.
Enter color (number from 1 to 255, standard name or R,G,B):
Ltype (L): a loaded linetype (Enter = Continuous).
LWeight (LW): a standard lineweight in millimeters or Default.
TRansparency (TR): the layer transparency, from 0 (opaque) to 90 %.
Enter transparency value (0-90):
Plot (P): Plot or No plot.
Freeze (F) / Thaw (T): freezes or thaws layers.
LOck (LO) / Unlock (U): locks or unlocks layers.
stAte (A): layer states.
Enter a layer state option [?/Save/Restore/Delete]:
Save saves the current setup under a name, Restore brings it back, Delete deletes it and ? lists the saved states.
Description (D): sets the description of the layers.
Notes
The current layer cannot be frozen; with wildcards, a warning is shown and the other layers are changed.
Options are typed in the language of the interface (in Spanish: Establ, Def, Inut...).
Every option can be undone with UNDO and is remembered by LAYERP.
Deletes layers together with all their objects. Unlike the Delete Layer button of the LAYER, which only deletes empty layers, this command first erases whatever is on them.
Usage
Enter LAYDEL or click Delete on the ribbon.
Select object on layer to delete or [Name]:
Select objects on the layers to delete; the command line shows the chosen layers. Press Enter.
Confirm. The default answer is No.
… objects and layers … will be deleted. Do you wish to continue? [Yes/No] <No>:
Options
Name (N): type the layer names instead of selecting objects (wildcards are accepted).
Enter names of the layers to delete:
Yes (Y) / No (N): deletes or cancels.
Notes
Layer 0, Defpoints, the current layer and xref layers cannot be deleted.
Layout viewports on those layers are not erased: they are moved to layer 0.
Opens and closes the Layer Properties Manager, a palette that lists every layer of the drawing in a table. From it you create, delete and rename layers, set the current layer and change layer properties. To do the same from the command line (scripts, LISP), use -LAYER.
Usage
Enter LAYER (or LA) or click Layers on the ribbon. Run it again to close the window.
Click a row to select that layer; Ctrl+click adds or removes rows and Shift+click selects a range.
Click the icons or drop-down lists of the row. If the row is one of the selected ones, the change applies to all selected layers.
Columns
Status: marks the current layer. Double-click to make the layer current.
Name: double-click to type a new name (Enter confirms, Esc cancels).
On: light bulb. A layer that is off is neither displayed nor plotted.
Freeze: sun. A frozen layer is not displayed, not plotted and not regenerated. The current layer cannot be frozen.
VP Freeze: only shown inside a layout viewport; freezes the layer in that viewport only.
Lock: padlock. Objects on a locked layer are visible but cannot be selected or modified.
Color, Linetype, Lineweight: drop-down lists. The linetype list shows the loaded linetypes and, at the end, Load… opens LINETYPE.
Transparency: from 0 (opaque) to 90 %, in steps of 10. Objects on the layer with ByLayer transparency take it; on screen it shows while the TRANSP button on the status bar is on.
Plot: printer; when crossed out, the layer is not plotted.
New VP Freeze: the layer will be frozen in viewports created from now on.
Description: free text; double-click to type it.
Click a column heading to sort by it; another click reverses the order.
Buttons and filters
New Layer: creates a layer with the properties of the selected one and leaves the name ready to type.
New Layer VP Frozen in All Viewports: the same, but frozen in all layout viewports.
Delete Layer: does not delete layer 0, Defpoints, the current layer, xref layers or layers that contain objects (to delete a layer together with its objects, use LAYDEL).
Set Current, New Property Filter…, New Group Filter and Layer States… (opens LAYERSTATE).
The search box shows only the layers whose name contains the text; wildcards are accepted (*, ?, #, @, ~ and commas).
The Filters tree chooses which layers are listed. The shortcut menu of a filter has Properties…, Add Selected Layers, Remove Selected Layers and Delete Filter; Invert filter lists the layers that do not match it.
The shortcut menu of a row: Set Current, Rename, Delete Layer, Select All, Invert Selection and Add to Group Filter.
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.
Every change can be undone with UNDO, and LAYERP restores the layers as they were before the last change.
Layers cannot be changed while a command is running: finish or cancel it first.
The layer control on the ribbon (and on the layers toolbar of the Classic workspace) shows the current layer: open it to change the current layer with one click or to turn on, freeze or lock any layer with its icons.
Layer filters and layer states are saved in the drawing.
Undoes the last change to layer settings: the layers return to how they were before (on, frozen, locked, color, linetype, lineweight...). Objects are not touched: an object that was moved or put on another layer stays as it is.
Usage
Enter LAYERP or click Previous on the ribbon.
The layers return to their previous settings and the command line confirms it. Repeat to go further back.
Notes
Up to 50 changes are remembered, made in the LAYER, in the layer control or with the layer commands (LAYOFF, LAYISO, -LAYER...).
It does not undo renamed layers or bring back deleted layers: use UNDO for that.
When there is nothing left to undo, it says so. It does not work while a command is running: finish it first.
Command:LAYERSTATE · Global name:_LAYERSTATE · Alias:LAS
Ribbon: Home › Layers
Menu: Format
Opens the Layer States Manager. A layer state saves under a name how all layers are set (on, frozen, locked, color, linetype, lineweight...) so that you can return to that setup later. Layer states are saved in the drawing.
Usage
Enter LAYERSTATE (or LAS) or click Layer States… in the LAYER.
To save the current setup, click New…, type the State name and, optionally, a Description, and click Save. A state with the same name is replaced.
To return to a state, choose it in the list and click Restore (or double-click it).
Controls
Delete: deletes the chosen state; the layers do not change.
Layer properties to restore: check boxes that decide what is restored from the chosen state: On/Off, Frozen/Thawed, Locked/Unlocked, Plot/No Plot, New VP Frozen, Color, Linetype, Lineweight and Transparency.
Notes
Restoring a state can be undone with UNDO or with LAYERP.
From the command line, the stAte option of -LAYER saves, restores and deletes states.
Layer states are stored in the drawing in the same place as AutoCAD's.
Freezes the layer of the objects you select. A frozen layer is neither displayed nor plotted, like a layer that is off, and it is also not regenerated, which makes large drawings lighter. The command keeps asking for objects until you press Enter.
Usage
Enter LAYFRZ or click Freeze on the ribbon.
Select an object on the layer to be frozen:
Select an object: its layer is frozen. Repeat with other objects.
Press Enter to finish.
Notes
If objects are selected before the command starts, their layers are frozen and the command ends.
The current layer cannot be frozen: a warning is shown and it does not change.
The layer is frozen in the whole drawing. To freeze it in one layout viewport only, use the VP Freeze column of the LAYER.
Leaves only the layers of the selected objects visible.
Command:LAYISO · Global name:_LAYISO
Ribbon: Home › Layers
Keeps only the layers of the selected objects visible: all other layers are turned off. Useful to work on one part of the drawing without the rest getting in the way. LAYUNISO returns the layers to how they were.
Usage
Enter LAYISO or click Isolate on the ribbon.
Select objects on the layer(s) to be isolated:
Select one or more objects and press Enter. Their layers stay on and all others are turned off.
Notes
If objects are selected before the command starts, their layers are isolated without asking.
If the current layer is not one of the isolated layers, the first of them becomes current.
Layers are turned off, not frozen or locked. If you isolate several times in a row, LAYUNISO returns to the setup before the first isolation.
To isolate individual objects instead of whole layers, use ISOLATEOBJECTS.
Locks the layer of the selected object. Its objects are still displayed, plotted and usable for object snaps, but they cannot be selected or modified. This is how you protect a base plan or a reference drawing while drawing on top of it.
Usage
Enter LAYLCK or click Lock on the ribbon.
Select an object on the layer to be locked:
Select an object. Its layer is locked and the command ends.
Notes
If objects are selected before the command starts, their layers are locked.
You can draw on a locked layer if it is the current layer.
Moves the selected objects to the layer of another object.
Command:LAYMCH · Global name:_LAYMCH
Ribbon: Home › Layers
Moves the selected objects to the layer of another object (the destination layer). Use it to fix objects drawn on the wrong layer without having to look up the name of the right one.
Usage
Enter LAYMCH or click Match Layer on the ribbon.
Select objects to be changed:
Select the objects to change and press Enter.
Select object on target layer or [Name]:
Select an object on the destination layer. The objects change layer and the command ends.
Options
Name (N): type the name of the destination layer instead of selecting an object.
Enter target layer name:
Notes
If objects are selected before the command starts, those are the ones changed and the command goes straight to the destination layer.
Objects on locked layers cannot be selected for changing; the destination object may be on a locked layer.
To copy color, linetype and lineweight as well, use MATCHPROP.
Makes the layer of an object current: whatever you draw next goes on that layer. It is quicker than looking for the layer by name when an object on it is in view.
Usage
Enter LAYMCUR or click Make Current on the ribbon.
Select object whose layer will become current:
Select an object. Its layer becomes the current layer and the command ends.
Notes
If objects are selected before the command starts, the layer of the first one is used without asking.
A frozen layer cannot be the current layer.
The change can be undone with UNDO or with LAYERP.
Moves all the objects of some layers to another one and deletes the former.
Command:LAYMRG · Global name:_LAYMRG
Ribbon: Home › Layers
Merges layers: moves all objects of some layers to another one (the destination layer) and deletes the first ones. Use it to clean up drawings with duplicated or badly named layers.
Usage
Enter LAYMRG or click Merge on the ribbon.
Select object on layer to merge or [Name]:
Select objects on the layers to merge; the command line shows the chosen layers. Press Enter.
Select object on target layer or [Name]:
Select an object on the destination layer.
Confirm. The default answer is No.
… objects will move to layer … and layers … will be deleted. Do you wish to continue? [Yes/No] <No>:
Options
Name (N): type the layer names instead of selecting objects (wildcards are accepted). At the destination prompt, the same option asks for its name.
Enter names of the layers to merge:
Yes (Y) / No (N): merges or cancels.
Notes
Layer 0, Defpoints and xref layers cannot be merged, and the destination cannot be one of the layers being merged.
If the current layer is one of the merged layers, the destination layer becomes current.
Turns off the layer of the objects you select: their objects are no longer displayed or plotted until the layer is turned on again. The command keeps asking for objects, so you can turn off several layers in a row.
Usage
Enter LAYOFF or click Off on the ribbon.
Select an object on the layer to be turned off:
Select an object: its layer is turned off. Repeat with other objects.
Press Enter to finish.
Notes
If objects are selected before the command starts, their layers are turned off and the command ends.
The current layer can be turned off: whatever you draw on it will not be seen until it is turned on.
To turn them all back on, use LAYON; for a single layer, the LAYER or the layer control.
Sets the color of new objects. It opens the PROPERTIES palette with no selection, in the General (current drawing) section, where the Color list changes the current color of the drawing.
Usage
Enter COLOR (or COL) or click Color on the ribbon.
In the palette, open Color and choose:
ByLayer: each object takes the color of its layer (the usual choice).
ByBlock: the object takes the color of the block it is inserted in.
One of the 7 standard colors or of the 255 of the Index color (ACI).
A True color: pick it in the color picker and click Apply.
Notes
Running it clears the selection, so that the palette shows the current properties and not those of objects.
To change the color of objects already drawn, select them and change the color in the palette or with the color list on the ribbon.
The current color is stored in the CECOLOR variable.
Command:LINETYPE · Global name:_LINETYPE · Alias:LT
Ribbon: Home › Properties
Menu: Format
Opens the Linetype Manager: loads linetypes into the drawing, sets the current one (used by new objects), deletes unused ones and sets the pattern scales.
Usage
Enter LINETYPE (or LT) or click Linetype on the ribbon.
Choose a linetype in the list and click Set Current so that new objects use it.
To add linetypes, click Load..., check the ones you want and click OK.
Controls
Load...: shows Load or Reload Linetypes with the linetypes of the Lince2D library that are not in the drawing yet (DASHED, HIDDEN, CENTER, DASHDOT, DOT, PHANTOM, DIVIDE and BORDER). File... reads the linetypes of a .lin file instead.
Delete: deletes the chosen linetype unless it is fixed (ByLayer, ByBlock, Continuous), current or used by an object or a layer.
Global scale factor (LTSCALE): multiplies the size of the dashes of all objects.
Current object scale (CELTSCALE): linetype scale of new objects.
Apply scales: applies the values typed in the scale boxes.
Notes
The patterns of the built-in library are in millimeters. Complex linetypes (with text or shapes) in a .lin file are skipped.
Linetypes already in the drawing are not loaded again.
The linetype of a layer is changed in the LAYER; that of some objects, in the PROPERTIES palette.
Sets the lineweight of new objects. It opens the PROPERTIES palette with no selection, in the General (current drawing) section, where the Lineweight list changes the current lineweight of the drawing.
Usage
Enter LWEIGHT (or LW) or click Lineweight on the ribbon.
In the palette, open Lineweight and choose ByLayer (that of the layer), ByBlock, Default or one of the standard lineweights in millimeters.
Notes
Running it clears the selection, so that the palette shows the current properties and not those of objects.
To change the lineweight of objects already drawn, select them and change it in the palette or with the lineweight list on the ribbon.
On screen, objects are always drawn with their lineweight; see LWDISPLAY.
Command:MATCHPROP · Global name:_MATCHPROP · Alias:MA
Ribbon: Home › Properties
Menu: Modify
Copies the general properties of one object (the source) to others: layer, color, linetype, linetype scale, lineweight and transparency. It is the quick way to make some objects look like another one that is already right.
Usage
Enter MATCHPROP (or MA) or click Match Properties on the ribbon.
Select source object:
Select the source object.
Select destination object(s):
Select the destination objects; you can select several times.
Press Enter: the destination objects take the properties of the source and the command ends.
Notes
If a single object is selected before the command starts, it is used as the source.
It does not copy type-specific properties (text style, dimension style, hatch...), and it has no Settings option as in AutoCAD.
Displays and edits the properties of the selection.
Command:PROPERTIES · Global name:_PROPERTIES · Alias:PR, CH · Shortcut: Ctrl+1
Ribbon: Home › Properties
Ribbon: View › Palettes
Menu: View
Menu: Modify
Toolbar: Standard
Opens and closes the Properties palette, which shows the properties of the selected objects and lets you change them by typing or choosing from a list. With nothing selected, it shows the current properties of the drawing, the ones that new objects will take.
Usage
Enter PROPERTIES (or PR), press Ctrl+1 or click Properties on the ribbon. Doing it again closes the palette.
Select objects, before or with the palette open: the palette updates by itself.
Change a value: in text boxes, type and press Enter (or leave the box); in drop-down lists, choose.
The palette
Top drop-down list: the selected objects grouped by type, with their count (All (…) when there are several types). Choose a type to see and change only those objects. With nothing selected it reads No selection.
General (or General (current drawing) with no selection): Color, Layer, Linetype, Linetype scale, Lineweight and Transparency.
Sections depending on the type: Geometry (coordinates, radius, length, area...), Text, Dimension and Overrides, Table and Cell, Misc.
For a polyline, Vertex has < and > buttons to step through the vertices and change their coordinates.
For a block: Attributes (read-only; change them with EATTEDIT) and, for a dynamic block, Custom with its parameters.
For texts and dimensions: Annotative (Yes or No) makes the object annotative with the current annotation scale or turns it back to normal, and Annotative scales shows the scales it supports (read-only; change them with OBJECTSCALE).
Click the title of a section to collapse or expand it.
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.
When the selected objects have different values, VARIES is shown; what you type is applied to all of them.
Calculated values (deltas, length, angle of a line, area...) are dimmed: they cannot be typed.
Lengths and coordinates use the drawing units (UNITS).
The color list offers ByLayer, ByBlock, the 7 standard colors, the 255 index colors and a True color applied with Apply.
Transparency is ByLayer, ByBlock or 0 to 90 %, in steps of 10. With nothing selected it is the one for new objects (CETRANSPARENCY). It is saved in DWG files from version 2004.
Double-clicking an object with no command running selects it and opens the palette (for texts, hatches, tables and blocks it opens their editor instead). Every change can be undone with UNDO.
Command:ISOLATEOBJECTS · Global name:_ISOLATEOBJECTS
Ribbon: View › Isolate
Menu: View
Leaves only the selected objects in view: everything else in the same space (model or layout) is hidden until isolation ends. It helps to work on a part of a busy drawing without changing layers.
Usage
Enter ISOLATEOBJECTS or choose Isolate Objects on the ISOLATE button of the status bar.
Select the objects you want to keep seeing and press Enter. If they were already selected before starting the command, they are isolated without asking.
Select objects:
To see everything again, use UNISOLATEOBJECTS or End Object Isolation on the same button.
Notes
It does not change the drawing: nothing is saved or undone and the visibility of layers is not touched.
Hidden objects cannot be seen, selected or used with object snaps.
The ISOLATE button of the status bar is lit while there are hidden objects.
Known limit: hidden objects show again if the whole view is rebuilt (for example, when changing the color of a layer or switching to a layout).
Creates, copies, deletes, renames and sets layouts.
Command:LAYOUT · Global name:_LAYOUT · Alias:LO
Ribbon: View › Layout
Menu: View
Creates, copies, deletes, renames and sets layouts, like AutoCAD's -LAYOUT. Each layout is stored as in AutoCAD: a LAYOUT object (with its page setup and tab order) and its *Paper_Space… block.
Usage
Type LAYOUT.
Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] <Set>:
Options
New: new layout with the default page setup and, with LAYOUTCREATEVIEWPORT set to 1, a viewport showing the model extents.
Copy: copies a layout with its drawing and viewports, placed after it.
Delete: deletes one or more (comma separated). Deleting all of them creates an empty one.
Template: inserts layouts from a DWT, DWG or DXF (* for all).
Rename, SAveas (to a .dwt template), Set (make it current) and ?.
Notes
The layout tab context menu does the same; drag the tabs to reorder, double-click to rename, + for a new one.
In a layout, enters model space through a layout viewport: from then on you draw, edit and zoom in the model seen inside the viewport, not on the sheet.
Usage
With a layout active, enter MSPACE (or MS) or click Model Space on the ribbon.
The first viewport of the layout is entered. To go back to the sheet, use PSPACE.
Notes
To enter a particular viewport, double-click inside it.
On the Model tab it does nothing: the command line says so.
Inside a viewport, the LAYER shows the VP Freeze column to freeze layers in that viewport only.
Entering or leaving cancels the running command and clears the selection.
Creates layout viewports and turns them on, off or locks them.
Command:MVIEW · Global name:_MVIEW · Alias:MV
Ribbon: View › Layout
Menu: View
Creates viewports in the current layout and turns them on, off or locks them. Each new viewport shows the model extents.
Usage
Specify corner of viewport or [ON/OFF/Fit/Lock/Object/Polygonal/2/3/4] <Fit>:
Options
Fit, 2 / 3 / 4, Object (non-rectangular viewport from a closed object), Polygonal, ON / OFF and Lock.
Notes
Inside a viewport, zoom and pan change that viewport's view and the sheet stays put; ZOOM 1/100XP, the status bar scale list and the PROPERTIES palette set its scale.
Displays an orthographic view of the XY plane of a UCS.
Command:PLAN · Global name:_PLAN
Ribbon: View › Coordinates
Menu: View
Shows the plan view of a UCS: it rotates the view so that the X axis of that UCS is horizontal on screen and does a zoom extents. With a UCS aligned with a rotated building, the building is shown straight.
Usage
Enter PLAN or click the button.
Choose which UCS; Enter, the current one.
Enter an option [Current ucs/Ucs/World] <Current>:
Options
Current ucs (C): the plan of the current UCS.
Ucs (U): that of a named UCS, whose name you type next.
Enter name of UCS to restore or [?]:
World (W): that of the world system: the view is no longer rotated.
Notes
PLAN does not change the current UCS or move any object: it only rotates the view.
The rotation is saved in the drawing as in AutoCAD (VIEWTWIST of the current viewport), and AutoCAD opens the drawing with the view rotated the same way.
With the view rotated, the selection window takes the world box of its two corners.
Recomputes the geometry displayed on screen (the segments that curves and texts are divided into) for the whole drawing, or for the space being shown (model or layout).
Usage
Enter REGEN or choose it in the View menu or on the ribbon (View › Navigate). The command line says "Regenerating drawing.".
Notes
Lince2D regenerates only what is needed, automatically: when objects, layers, styles or the linetype scale change, the screen is updated without being asked. DRAWORDER regenerates when it finishes so that the new order shows.
Use it after changing variables that AutoCAD only applies on regeneration, or if something looks out of date after undoing a DRAWORDER.
Expands the current viewport to the whole drawing area to edit the model.
Command:VPMAX · Global name:_VPMAX
Ribbon: View › Layout
Menu: View
Expands the current viewport to the whole drawing area, with a red border. VPMIN returns to the layout.
VPMIN — Minimize Viewport
Returns to the layout from a maximized viewport.
Command:VPMIN · Global name:_VPMIN
Ribbon: View › Layout
Menu: View
Returns to the layout from a viewport maximized with VPMAX.
ZOOM — Zoom
Enlarges or reduces the view.
Command:ZOOM · Global name:_ZOOM · Alias:Z
Ribbon: View › Navigate
Menu: View
Enlarges or reduces the view of the drawing without changing the real size of the objects. The mouse wheel, which zooms in and out around the cursor, is usually more convenient; the command is for an exact window, a scale factor or going back to the previous view.
Usage
Enter ZOOM (or Z) or click Zoom on the ribbon.
Specify corner of window, enter a scale factor (nX) or [All/Extents/Previous/Scale/Window] <real time>:
Specify two opposite corners to zoom into that area, type a factor or choose an option.
Specify opposite corner:
The command ends after changing the view. Enter on its own ends it without changing the view.
Options
All (A) and Extents (E): show the whole drawing, like ZOOMEXTENTS.
Previous (P): returns to the view before the last ZOOM; it can be repeated.
Scale (S): asks for the factor. 2 or 2X zooms in to twice the size and 0.5 zooms out to half, always relative to the current view.
Enter a scale factor (nX):
Window (W): asks for the two corners of the area to show.
Specify first corner:
Notes
Mouse wheel: zooms in or out at the cursor. Dragging with the middle button: pan. Middle double-click: extents.
Previous only remembers views changed with ZOOM, not those changed with the wheel or by panning.
All does not take drawing limits into account: it does the same as Extents.
Command-line version of PURGE: removes the unused items of one type, by name and optionally confirming each one. It is the way to purge from a script (SCRIPT).
Usage
Enter -PURGE (or -PU).
Choose the type of items.
Enter type of unused objects to purge [Blocks/Dimstyles/LAyers/LTypes/MUltileaderstyles/Plotstyles/textSTyles/Mlinestyles/Tablestyles/Regapps/Zero-length geometry/Empty text objects/All]:
Enter the names you want to purge. The wildcards * (any text) and ? (one character) and several patterns separated by commas are accepted; Enter purges all items of the type.
Enter name(s) to purge <*>:
Say whether you want to confirm each item. With Yes, the program asks about each one; with No, it removes them all.
Verify each name to be purged? [Yes/No] <Y>:
Purge … "…"? [Yes/No] <N>:
Options
Option
Type
Blocks (B)
Blocks
LAyers (LA)
Layers
LTypes (LT)
Linetypes
textSTyles (ST)
Text styles
Dimstyles (D)
Dimension styles
MUltileaderstyles (MU)
Multileader styles
Tablestyles (T)
Table styles
Mlinestyles (M)
Multiline styles
Plotstyles (P)
Plot styles
Regapps (R)
Registered applications
Zero-length (Z)
Zero-length geometry
Empty (E)
Empty text objects
All (A)
All named types
Notes
Zero-length and Empty ask for no names and no confirmation: they remove everything they find.
All does not include zero-length geometry or empty text, and also purges nested items (what becomes unused when others are removed).
The same safety rules as in PURGE apply. The result is undone with UNDO.
Calculates the area and perimeter of a boundary defined by points or of a closed object. With the Add area and Subtract area modes it keeps a running total, for example to subtract openings from a surface. The drawing does not change.
Usage
Enter AREA (or AA) or click its button.
Specify first corner point or [Object/Add area/Subtract area] <Object>:
To measure by points, specify the corners of the boundary one after another. The figure closes by itself: there is no need to go back to the first point.
Specify next point or [Undo]:
Specify next point or [Undo/Total] <Total>:
Press Enter (or type T) to calculate. The command line shows the area and the perimeter.
To measure an object, press Enter at the first prompt (or type O) and select the object.
Select objects:
Options
Object (O): measures a circle, arc, ellipse, polyline, spline or hatch. For an open object the area is closed by the chord between its endpoints and its length is given instead of the perimeter.
Add area (A): switches to add mode. Every boundary or object you measure is added to the total, which is shown after each measurement.
Specify first corner point or [Object/Subtract area]:
(ADD mode) Select objects:
Subtract area (S): switches to subtract mode. Every measurement is subtracted from the total.
Specify first corner point or [Object/Add area]:
(SUBTRACT mode) Select objects:
Undo (U): removes the last point of the boundary.
Total (T): closes the boundary and calculates.
In add and subtract modes, Enter at the object prompt goes back to the mode prompt; Enter at the mode prompt ends the command and shows the total.
Notes
In a hatch, the inner boundaries (islands) subtract their area.
Regions and 2D solids cannot be measured yet.
Results are written with the units and precision of the drawing (UNITS).
Measures the distance and angle between two points.
Command:DIST · Global name:_DIST · Alias:DI
Ribbon: Home › Utilities
Menu: Tools
Measures the distance between two points and writes it on the command line, together with the angle of the line that joins them in the XY plane and the X, Y and Z deltas. The drawing does not change.
Usage
Enter DIST (or DI) or click its button.
Specify the first point with a click, an object snap or by typing its coordinates.
Specify first point:
Specify the second point. While you move the cursor, the line being measured is shown.
Specify second point:
The result appears on the command line and the command ends.
Notes
Numbers are written with the format and precision of the drawing (UNITS): decimal, feet and inches, degrees, degrees/minutes/seconds… The angle follows the base and direction of ANGBASE and ANGDIR.
Lince2D is 2D: the angle from the XY plane and the Z delta are always 0.
Use object snaps (Endpoint, Midpoint, Center…) to measure between exact points of the geometry. See Object snaps and precision.
To measure several things in a row, press Enter or Space: it repeats the last command.
Shows the coordinates of a point on the command line. Use it to check where a vertex, a center or any point of the drawing is. The drawing does not change.
Usage
Enter ID or click its button.
Specify the point, usually with an object snap (Endpoint, Center, Intersection…).
Specify point:
The X, Y and Z coordinates appear on the command line and the command ends.
Notes
Coordinates are written with the format and precision of the drawing (UNITS). Z is always 0.
The coordinates are those of the drawing's world coordinate system.
The status bar also shows the coordinates of the cursor while it moves.
Shows the data of the selected objects: type, layer, space, handle and geometry. The listing is written on the command line and the text window (F2) opens so you can read all of it. The drawing does not change.
Usage
Enter LIST (or LI) or click its button. If objects are already selected, they are listed at once.
Select the objects and press Enter.
Select objects:
Read the listing in the text window. Press F2 to close it or open it again.
What is listed
For every object: type, layer, model or paper space and handle; and the color and linetype when they are not ByLayer.
Line: start and end points, length, angle and deltas.
Circle and arc: center, radius, circumference and area, or start and end angles and length.
Polyline: open or closed, constant width, area, perimeter or length, and every vertex (with the center, radius and angles of the curved segments).
Ellipse, point, text, multiline text, spline, hatch (pattern and area) and dimension (measurement and text).
Block reference: name, insertion point, scales, rotation and attributes.
Notes
Other types (tables, images, solids…) only show the common data.
Measurements are written with the units of the drawing (UNITS).
Command:MEASUREGEOM · Global name:_MEASUREGEOM · Alias:MEA
Ribbon: Home › Utilities
Menu: Tools
Brings the most common measurements together in one command: distance between two points, radius of an arc or circle, and area. Each option works like the equivalent command and writes the result on the command line.
Usage
Enter MEASUREGEOM (or MEA) or click its button.
Enter an option [Distance/Radius/ARea] <Distance>:
Choose the option. Enter, or specifying a point straight away, starts measuring a distance.
Follow the prompts of the chosen option. The command ends after the measurement.
Options
Distance (D): distance, angle and deltas between two points, like DIST.
Radius (R): select an arc or a circle; shows its radius and diameter.
Select arc or circle:
ARea (AR): area and perimeter by points or of an object, with the add and subtract modes, like AREA.
Notes
AutoCAD's Angle, Volume and Quick (measuring while hovering) options are not available yet.
Results are written with the units and precision of the drawing (UNITS).
Command:PTYPE · Global name:_PTYPE · Alias:DDPTYPE
Ribbon: Home › Utilities
Menu: Format
Chooses how point objects are drawn (the symbol) and their size. The change affects all the points in the drawing, including those created by DIVIDE and MEASURE.
Usage
Enter PTYPE (or DDPTYPE) or click Point Style. The Point Style dialog box opens.
Click one of the 20 symbols.
Enter the Point Size and whether it is measured as a percentage of the screen size or in drawing units.
Click OK. Cancel leaves the style as it was.
On the command line (for example, in a script) you can type the values of the variables:
Enter new value for PDMODE (or use the Point Style dialog box):
Enter new value for PDSIZE:
Notes
The symbol is the PDMODE variable: 0 to 4 (dot, nothing, cross, X, tick), plus 32 to add a circle, 64 for a square or 96 for both.
The size is PDSIZE: a positive value is in drawing units; a negative one, a percentage of the screen.
Removes unused items from the drawing: blocks, layers, linetypes, styles…
Command:PURGE · Global name:_PURGE · Alias:PU
Ribbon: Manage › Drawing
Menu: File
Removes from the drawing what is not used: block definitions, layers, linetypes and styles that nothing refers to, plus zero-length geometry and empty text objects. It makes the file lighter and keeps the layer and style lists tidy.
Usage
Enter PURGE (or PU) or click its button. The Purge dialog box opens with the Purgeable items: list, grouped by type and with the number of items in each group.
Expand the groups and check what you want to remove.
Click Purge Checked Items, or Purge All to remove everything in the list. The command line says how many items were purged.
Options
Purge nested items (checked by default): Also removes what becomes unused when the selected items are removed (for example, layers only used by a purged block).
What can be purged
Blocks, Layers, Linetypes, Text styles, Dimension styles, Multileader styles, Table styles, Multiline styles, Plot styles, Registered applications, Zero-length geometry and Empty text objects.
Notes
An item is only removed if nothing uses it: no object (including those inside blocks), no other table and not the drawing header. Layer 0, the Standard styles and other default items, the current ones and those of external references are never purged.
Selects objects by type and by the value of a property.
Command:QSELECT · Global name:_QSELECT
Ribbon: Home › Utilities
Menu: Tools
Selects the objects that meet a condition on their type and the value of a property: all lines on a layer, circles with a radius greater than 5, texts of a certain height… The selection can then be edited with any command or with the Properties palette.
Usage
Enter QSELECT or click its button. The Quick Select dialog box opens.
Fill in the condition:
Apply to: Entire drawing or, if objects were selected, Current selection.
Object type: Multiple (all types) or one of the types present, with its number of objects.
Properties: the general ones (layer, color, linetype…) and, once a type is chosen, its own (length, radius, height…): the same as in the Properties palette.
Operator: = Equals, <> Not Equal, > Greater than, < Less than, * Wildcard Match or Select All.
Value: the value to compare with. For the layer it is chosen from a list.
Under How to apply: choose Include in new selection set or Exclude from new selection set, and check Append to current selection set to add the result to what was already selected.
Click OK. The objects are selected.
Notes
Numbers are compared as numbers, in the drawing units; texts, ignoring case. With the wildcard operator, * (any text) and ? (one character) can be used.
The objects of the current space (model or the open layout) are searched.
Command:SELECTSIMILAR · Global name:_SELECTSIMILAR
Ribbon: Home › Utilities
Menu: Tools
Selects all objects similar to the ones already selected: of the same type, on the same layer and, for block references, texts and dimensions, with the same block or style name.
Usage
Select one or more sample objects, with no command active.
Enter SELECTSIMILAR or click its button.
All objects similar to any of the samples are selected; the command line says how many.
Notes
With no objects selected, the command only warns: Select the sample objects first.
The objects of the current space (model or the open layout) are searched.
The criteria are fixed (type, layer and name, as AutoCAD's default setting); the Settings option to choose them is not available yet.
Sets how the lengths and angles of the drawing are written and the unit used to scale inserted content. The choice is saved in the drawing and used by the command line, the status bar, the Properties palette and the inquiry commands (DIST, AREA, LIST…).
Usage
Enter UNITS (or UN) or click its button. The Drawing Units dialog box opens.
Choose the formats. The Sample Output box shows how a coordinate and an angle will look.
Edits the command aliases (lince.pgp file, with the acad.pgp syntax).
Command:ALIASEDIT · Global name:_ALIASEDIT
Ribbon: Manage › Customization
Edits the user command aliases: your own abbreviations, typed on the command line instead of the full name. They are saved in lince.pgp, with the same syntax as AutoCAD's acad.pgp, and an AutoCAD one can be imported as it is.
Usage
Enter ALIASEDIT or click the button. Customize opens on the Aliases tab, with the file path at the top.
To add one, type the alias and the command (its English or Spanish name; the suggestions complete it) and click Add. If the alias already existed, it now points to the new command.
To remove one, click ✕ on its row.
Import acad.pgp… adds the aliases of a .pgp file; existing ones with the same name are replaced.
Changes apply at once, without restarting the program.
The lince.pgp file
One line per alias, ALIAS, *COMMAND; whatever follows ; is a comment:
; my aliases
LL, *LINE
CC, *CIRCLE
The external command lines of acad.pgp (those without *) are ignored. If an alias is repeated, the last one wins.
Notes
A user alias wins over a built-in alias with the same letters, but never over a command name: LINE is still LINE even if there is a LINE alias.
With _ or . in front (_LL) the user aliases are not looked up: the command is searched by its global name.
Built-in aliases, at the bottom of the tab, lists the aliases that come with the program.
The file is in the configuration folder (%APPDATA%\lince; on Linux, ~/.config/lince) and is read when the program starts.
Loads AutoLISP routines (.lsp) and chooses the ones loaded at startup.
Command:APPLOAD · Global name:_APPLOAD · Alias:AP
Ribbon: Manage › Applications
Loads AutoLISP routines (.lsp) and manages the ones loaded at startup and the load security. Once loaded, a routine that defines C:NAME is used by entering NAME on the command line.
Usage
Enter APPLOAD (or AP) or click its button. The Load Applications (APPLOAD) dialog box opens.
Click Load a .lsp file… and choose the file. It is loaded at once.
Close the dialog box. Changes to the lists and to the security are saved immediately.
The dialog box
Startup suite (loaded at startup):: files loaded every time Lince2D starts. Add them with Add to the startup suite… and remove them with ✖.
Load security (SECURELOAD):: Load from any folder without asking, Ask outside the trusted folders or Load only from the trusted folders. It is equivalent to AutoCAD's SECURELOAD variable.
Trusted folders (the first one is the user folder):: the folders from which files are loaded without asking. Add them with Add trusted folder….
Notes
Outside the trusted folders, and with the intermediate security, the program asks for permission before loading: a .lsp file can run commands on the drawing.
On the command line, anything that starts with ( is evaluated as AutoLISP: (load "routine.lsp") also loads.
Only plain-text .lsp files are loaded; .fas, .vlx, .arx and .dll files are not.
Customizes the ribbon, toolbars, keyboard shortcuts and aliases.
Command:CUI · Global name:_CUI
Ribbon: View › Interface
Ribbon: Manage › Customization
Opens the Customize window, to adapt the interface: which commands each ribbon panel and each toolbar of the Classic workspace has, your own keyboard shortcuts and command aliases. It is a reduced version of AutoCAD's CUI editor.
Usage
Enter CUI or click the button (it is also in the menu of the ⚙ gear on the status bar).
Choose the tab and make the changes: they apply at once and are saved automatically.
Ribbon and Toolbars tab
Panel or toolbar: chooses the ribbon panel (tab › panel) or the toolbar. Those with changes are marked *.
The list shows its commands in order: ✕ (Remove) removes one, ▲ and ▼ (Move up, Move down) move it.
Add command:: type part of a command name and click one of the suggestions to add it at the end.
Reset returns the panel or toolbar to its built-in commands.
Keyboard Shortcuts tab
Type the keys (Ctrl+Shift+L, Alt+G, F6...) and the command, and click Add. The shortcut must include Ctrl or Alt, or be a function key, so that it does not take keys away from the command line.
A user shortcut wins over a built-in one with the same keys. ✕ removes it.
Built-in shortcuts lists the shortcuts that come with the program.
Aliases tab
The same list that ALIASEDIT opens: the user aliases, saved in lince.pgp.
Notes
The ribbon, toolbars and shortcuts are saved in personal.txt and the aliases in lince.pgp, both in the configuration folder (%APPDATA%\lince; on Linux, ~/.config/lince).
Only existing panels and toolbars can be changed: no new tabs, panels, toolbars or menus.
Shortcut keys are typed as text; they are not captured by pressing them.
Turns isometric drafting on in an isoplane, or back to orthographic.
Command:ISODRAFT · Global name:_ISODRAFT · Alias:ISOD
Ribbon: View › Coordinates
Menu: Tools
Turns on isometric drafting in one of its three planes, or goes back to orthographic drafting. In isometric mode you draw an axonometric view of an object in a flat drawing: edges run at 30°, 90° and 150°, depending on the plane (left, top or right) you draw in.
Usage
Enter ISODRAFT (or ISOD) or click the button.
Choose the plane; Enter, the top one.
Enter an option [Orthographic/Left/Top/Right] <Top>:
Options
Left (L), Top (T) and Right (R): turn on isometric drafting in that plane.
Orthographic (O): goes back to normal drafting, with horizontal and vertical axes.
With isometric drafting
Ortho (F8), the grid, snap (F9) and the crosshairs follow the two axes of the current plane.
F5 or Ctrl+E switch to the next plane (left, top, right); so does ISOPLANE.
The ISO button on the status bar shows the plane and, with a click, turns the mode on or off.
ELLIPSE offers the Isocircle option: the ellipse that represents a circle in the current plane, given by its center and its radius or diameter.
Specify radius of isocircle or [Diameter]:
Notes
The mode is saved in the drawing as in AutoCAD, in the SNAPSTYL and SNAPISOPAIR variables.
It is an aid for drawing in 2D: it does not create a 3D model.
Chooses the current isometric plane: left, top or right. Ortho, the grid, snap and the crosshairs follow the axes of that plane. It is the same as pressing F5 or Ctrl+E.
Usage
Enter ISOPLANE.
Choose the plane; Enter switches to the next one.
Enter isometric plane setting [Left/Top/Right] <next>:
The program shows the chosen plane.
<…>
Options
Left (L): axes at 90° and 150°.
Top (T): axes at 30° and 150°.
Right (R): axes at 30° and 90°.
Notes
The plane is saved in the SNAPISOPAIR variable. If isometric drafting is not on, the plane is kept for when it is turned on with the ISO button on the status bar.
Command:OPTIONS · Global name:_OPTIONS · Alias:OP, PREFERENCES
Ribbon: Manage › Drawing
Menu: Lince2D
Menu: Tools
Opens the application preferences: the interface language, how numbers are written, the QNEW template and the start page. They belong to Lince2D, not to the drawing: they apply to every drawing and are kept when the program closes.
Usage
Enter OPTIONS (or OP) or click its button. The Options dialog box opens.
Change what you need. The changes show at once in the whole window.
Click OK (or Apply, which saves without closing). Cancel goes back to the previous preferences.
Interface tab
Language: the language of the menus, ribbon, dialog boxes, command line and help (Spanish or English). Global command names (_LINE) work in any language.
Number format: Automatic (by language), Decimal comma (1234,56) or Decimal point (1234.56).
Decimal places: from 0 to 8, the decimal places the interface uses to show numbers.
Example: a coordinate written with the chosen format.
On the command line, input is always AutoCAD-style: decimal point and comma between coordinates (10.5,20).
Open and Save tab
QNEW template: the template QNEW starts drawings with, without asking (also the startup one). With None (ask), QNEW asks like NEW. The … button chooses another one.
Start page: shows the start page (templates, open and recent files) while nothing has been drawn.
Notes
Preferences are saved in %APPDATA%\lince\preferencias.toml (on Linux, ~/.config/lince). The first time, the system language is used if there is a catalog for it.
Drawing measurements (DIST, AREA, LIST, dimensions) follow the format and precision of UNITS.
For now only the Interface and Open and Save tabs exist; AutoCAD's other tabs (Display, Plot and Publish…) are not available yet. The AutoLISP preferences are in APPLOAD.
Runs a script: a .scr text file whose lines are typed on the command line one after another, as if the user entered them. Use it to repeat tasks (setting up layers, purging, changing variables…) in one or more drawings.
Usage
Enter SCRIPT (or SCR) or click its button.
Choose the .scr file in the dialog box. (In a script that calls another one, its path is typed.)
Enter script file name:
The lines run in order. Meanwhile the keyboard does not reach the command line.
How a script is written
Every space and every end of line counts as pressing Enter, as in AutoCAD: CIRCLE 0,0 5 draws a circle.
When a command expects free text (the text of TEXT, a layer or style name…), the rest of the line is taken whole, with its spaces.
In other prompts, a value with spaces is written between quotes: "Exterior wall".
Lines that start with ; are comments.
A blank line is an Enter (it repeats the last command or ends the active one).
; Current layer, linetype scale and purge
CLAYER Exterior wall
LTSCALE 50
-PURGE A * N
Notes
Commands with a dialog box are used in their command-line version (-PURGE, -LAYER, -INSERT…).
AutoCAD's RSCRIPT, DELAY and RESUME are not available yet.
Shows or changes the value of a system variable of the drawing: units, current layer, linetype scale, fillet radius… The variable name can also be entered directly, as if it were a command.
Usage
Enter SETVAR (or SET).
Enter variable name or [?]:
Enter the variable name, or ? to see the list of all of them with their values (in the text window, F2).
Enter the new value. Enter keeps the current value, shown between < >.
Enter new value for … <…>:
Shortcut: enter the variable name on the command line (for example LTSCALE) and go straight to step 3.
A value out of range or of the wrong type is rejected with a warning and the variable does not change.
Variables that name something (CLAYER, CELTYPE, TEXTSTYLE, DIMSTYLE, CTABLESTYLE) require it to exist: they do not create the layer or the style. Names with spaces are accepted.
The change is saved in the drawing and undone with UNDO.
Only these variables are available; AutoCAD has many more. See System variables.
Changes the user coordinate system (UCS): an origin and X and Y axes of your own, moved or rotated with respect to the world coordinate system (WCS). It is useful to draw aligned with a rotated building or to measure from a corner of the plot.
Usage
Enter UCS or click the button.
Specify the new origin, or choose an option. Enter goes back to the world system.
Specify origin of UCS or [NAmed/OBject/Previous/World/Z] <World>:
Specify a point on the positive X axis; Enter keeps the axes as they were and only changes the origin.
Specify point on X-axis or <accept>:
Press Enter (or specify any point) to accept.
Specify point on the XY plane or <accept>:
Options
NAmed (NA): saves the current UCS with a name, restores a saved one or deletes it; ? lists them.
Enter an option [Restore/Save/Delete/?]:
Enter name to save current UCS or [?]:
OBject (OB): aligns the UCS with an object: a line (origin at the endpoint nearest to the selected point), a circle or an arc (origin at the center), a polyline (its first segment), a text or a block (its point and rotation), an ellipse or a point.
Select object to align UCS:
Previous (P): goes back to the previous UCS. The last ten of the session are remembered.
World (W): goes back to the world system.
Z: rotates the UCS about its origin; Enter rotates 90°.
Specify rotation angle about Z axis <90>:
Notes
With a UCS, the coordinates you type and those shown in the status bar are in the UCS. To type a point in the world system, put an asterisk in front: *100,50 or @*20,0.
Ortho, the grid, snap and the crosshairs are aligned with the UCS, and so are RECTANG and the rotation of TEXT. Polar tracking, dynamic input and the angles of other commands stay on the world axes.
Only UCSs in the plane: the 3-point option does not tilt the XY plane.
It is saved as in AutoCAD (UCS table and the UCSORG, UCSXDIR and UCSNAME variables): AutoCAD opens the drawing with the same UCS.
PLAN rotates the view so that the UCS X axis is horizontal. The icon is controlled with UCSICON.
Opens the Named UCSs dialog box, which lists the world system and the drawing's named UCSs to make them current, rename them or delete them, and sets up the UCS icon.
Usage
Enter UCSMAN (or UC) or click the button.
At the top you see Current UCS: …. In the list, the current one is marked with ▶.
Click a UCS in the list and use the buttons:
Set Current: makes it current (the world system too).
Delete: deletes it from the drawing.
Rename: gives it the name typed in the box next to it.
At the bottom, Display the UCS icon and Display at UCS origin point change UCSICON.
Click Close.
Notes
Named UCSs are created with the Named > Save option of UCS.
Names follow the rules for block names. The world system cannot be renamed or deleted.
Opens the Workspaces window, which switches workspaces and saves, renames or deletes user workspaces. A workspace remembers how the interface is laid out:
the ribbon or the menus and toolbars of the Classic workspace, and the ribbon state (full, tabs only or panel titles);
the command line, docked or floating, and its transparency;
for each palette (Properties, Layers, Blocks, Tool Palettes, DesignCenter and external references): whether it is open, whether it floats or is docked left or right, whether it auto-hides, its width and its position.
Usage
Enter WORKSPACE or click the button. The window lists the workspaces; the current one is marked (current).
Choose one and click Set Current (or double-click it): the interface changes at once.
To save the current layout, type a name in Name: and click Save Current As… or press Enter.
Buttons
Set Current: applies the selected workspace and makes it current.
Delete: deletes the selected workspace. The built-in ones and the current one cannot be deleted.
Rename: gives the selected workspace the name typed in Name:. Built-in ones cannot be renamed.
Save Current As…: saves the current layout with the typed name; a workspace with that name is replaced.
Notes
Two are built in: Drafting & Annotation and Classic. You can overwrite them by saving with their name.
The ⚙ gear on the status bar shows the current workspace: its menu lists them all to switch with one click, and also has this window, save current and the interface customization.
Workspaces and which one is current are saved in espacios.txt, in the configuration folder (%APPDATA%\lince; on Linux, ~/.config/lince), and restored when the program starts.
Until they are overwritten, the built-in workspaces have every palette closed and floating.
Saves the current interface layout as a workspace.
Command:WSSAVE · Global name:_WSSAVE
Ribbon: View › Interface
Saves the current interface layout as a named workspace, so you can return to it whenever you need: the ribbon or the Classic workspace, the ribbon state, the command line and the open palettes with their place and size.
Usage
Arrange the interface the way you want it: open palettes, dock them, minimize the ribbon, float the command line...
Enter WSSAVE or choose Save Current As… in the menu of the ⚙ gear on the status bar. The Workspaces window opens with the cursor in Name:.
Type the name and press Enter (or click Save Current As…).
The saved workspace becomes current, and the status bar says so:
Workspace saved: …
Notes
A workspace with the same name is replaced without asking. With the name of a built-in one (Drafting & Annotation, Classic), that one is overwritten.
The name cannot be empty, start with @ or contain brackets.
It is saved in espacios.txt, in the user configuration folder: it applies to every drawing.
Evaluates the integrity of the drawing and fixes the safe errors.
Command:AUDIT · Global name:_AUDIT
Ribbon: Manage › Drawing
Menu: File
Checks the integrity of the open drawing and, if asked, fixes the errors that can be repaired safely. Useful with drawings that come from other programs or that cause problems when saving.
Usage
Enter AUDIT or click its button.
Say whether you want the errors fixed.
Fix any errors detected? [Yes/No] <N>:
The command line shows how many records were checked, the errors and warnings found and the first problems; with Yes, also how many repairs were made and how many errors remain.
Options
Yes (Y): repairs what is safe: indexes, null handles, owners of block entities and the handle seed.
No (N, or Enter): only reports; the drawing does not change.
Notes
Doubtful issues (duplicate handles, references to objects that do not exist) are never fixed: they are only reported.
Repairs are undone with UNDO. Save the drawing to keep them.
Packages the drawing and its dependent files in a ZIP.
Command:ETRANSMIT · Global name:_ETRANSMIT
Ribbon: Output › Export
Packages the drawing with every file it needs to look the same on another computer: external references, images, PDF underlays, SHX and TTF fonts and plot style tables. The result is a ZIP file with a transmittal report.
Usage
Save the drawing and enter ETRANSMIT. The eTransmit dialog lists the files in the package with the path they will have inside the ZIP; files that cannot be found show as (not found) and are left out.
Check Keep the drawing paths as they are if the packaged drawing should keep its original paths. Unchecked, the packaged drawing points to its files with paths relative to the package, which is usually what you need to send it.
Click Create Transmittal… and specify the ZIP name. The dialog shows the Transmittal Report.
What the package contains
The drawing and, with its relative path, each dependent file. Files outside the drawing folder go into subfolders: xrefs/, imagenes/, pdf/, fuentes/ and estilos_trazado/.
Transmittal report.txt: each file with its path in the drawing and in the package, and the missing ones.
Notes
The original drawing is not changed: rewriting the paths only affects the packaged copy.
Exports model space or the current layout to vector PDF or SVG, or to a PNG image. It uses the same Plot dialog box as PLOT: paper, area, scale and plot styles are chosen the same way.
Usage
Enter EXPORT (or EXP) or click its button. The Plot dialog box opens.
Set the paper, area, scale and plot style table (see PLOT). For a PNG, set the resolution in PNG:.
Click OK, enter the file name and choose its type. The extension decides the format:
.pdf: vector PDF. Texts are drawn from their font (SHX strokes or TrueType outlines), so they look the same on any computer.
.svg: vector drawing for web browsers and design programs.
.png: image at the chosen resolution.
Notes
To convert the drawing to DXF or another DWG version, use SAVEAS.
Starts a new drawing from a template (.dwt, or a .dwg used as a template), in a new tab. The drawings already open stay in their tabs.
Usage
Enter NEW, press Ctrl+N or click the + button to the right of the file tabs.
The Select template dialog box opens in the Lince2D templates folder. Choose one and click Open.
A tab opens with an unnamed drawing (Drawing1, Drawing2…) that has the layers, styles, units and layouts of the template. Save it with QSAVE; the first time it asks for a name and a folder.
On the command line (scripts) the prompt is:
Enter template file name or [. (for none)] <…>:
Enter the name of a template in the folder (with or without .dwt) or a full path; Enter takes the one shown between < > and . starts an empty metric drawing without a template.
Standard templates
Template
Contents
lince_iso.dwt
Lince2D metric template: millimetres, ISO-25 dimension style and a landscape A3 layout.
lince_imperial.dwt
Lince2D inch template: the acad.dwt dimension style and an ANSI B (17 × 11 in) layout.
They are installed with the program in the plantillas folder, next to the executable. Any drawing can be saved as a template with SAVEAS › DWT.
Notes
If the current drawing is untouched (no name and nothing drawn), the new one takes its tab.
To always start with the same template without being asked, choose it in OPTIONS › Open and Save and use QNEW (the Quick Access toolbar button).
To switch drawings, click their tab or use Ctrl+Tab and Ctrl+Shift+Tab.
Command:OPEN · Global name:_OPEN · Shortcut: Ctrl+O
Menu: Lince2D
Menu: File
Toolbar: Standard
Opens a DWG or DXF drawing in a new tab. The file is read in the background, with a progress bar, so the window keeps responding even with large files.
Usage
Enter OPEN or press Ctrl+O.
Choose the file in the dialog box. You can also drag the file onto the Lince2D window.
When it finishes, the status bar says how many entities it has and how long it took, and the view shows the drawing extents.
Notes
If the file is already open, its tab becomes current instead of opening it again.
If the current drawing is untouched (Drawing1 with no changes), the opened one takes its tab, as in AutoCAD.
Its external references and the text fonts in the drawing's folder are loaded too.
If there is an automatic save of the same drawing newer than the file (from a session that did not close properly), the command line warns about it and says where it is.
If the file is damaged and does not open, try RECOVER.
Manages the page setups of the drawing: the one of each layout (and of model space) and the named page setups, which can be applied to several layouts or brought in from other drawings. They are saved in the drawing, as in AutoCAD, and are the ones PLOT uses.
Usage
Enter PAGESETUP or click its button. The Page Setup Manager opens, showing Current layout: …
In Page setups: choose the one of the current layout (between asterisks) or a named one.
Use the buttons:
Set Current: Applies the selected page setup to the current layout.
New…: creates a named page setup. It asks for the New page setup name: and what to Start with: (the layout's own or an existing one).
Modify…: opens the edit dialog box, with the same controls as the Plot dialog box (plotter, paper, area, offset, scale, plot style table, options and orientation).
Import…: Copies the named page setups of another drawing (DWG or DXF).
At the bottom, Selected page setup details sums up the device, paper, plot size, scale and plot style table.
Command:PLOT · Global name:_PLOT · Alias:PRINT · Shortcut: Ctrl+P
Ribbon: Output › Plot
Menu: Lince2D
Menu: File
Toolbar: Standard
Plots model space or the current layout to a vector PDF, PNG or SVG file, with the paper, area, scale and plot style table chosen in the Plot dialog box.
Usage
Enter PLOT (or PRINT), press Ctrl+P or click its button. The dialog box says what is plotted: Plot: …
Choose a saved Page setup:, or <None>, or <Previous plot> (the one of the last plot), and adjust what is needed.
Click OK, enter the file name and choose its type: the extension (.pdf, .png or .svg) decides the format.
The dialog box
Printer/plotter:DWG To PDF.pc3 (lince PDF), None or an installed printer (with its paper sizes and Copies:): OK prints to it instead of saving a file.
Paper size: ISO (A4, A3…), ANSI and architectural sizes, portrait or landscape.
What to plot: Layout (only in a layout), Extents, Display, Limits or Window. With Window, click Window < and specify the two corners in the drawing.
Specify first corner:
Specify opposite corner:
Plot offset (origin set to printable area): X and Y in mm, or Center the plot.
Plot scale:Fit to paper or a scale from the list (1:1, 1:50, 1:100…) or a custom one: so many mm (or inches) of paper = so many drawing units. Scale lineweights thickens lineweights with the scale.
Plot style table (pen assignments): None, monochrome.ctb, grayscale.ctb or the .ctb tables (.stb if the drawing uses named plot styles) in %APPDATA%\lince\estilos_trazado and in the drawing's folder.
Plot options: Plot object lineweights, Plot with plot styles, Plot paperspace last and Hide paperspace objects (the last two, in layouts).
Drawing orientation: Portrait or Landscape, and Plot upside-down.
Apply to Layout: Saves this page setup to the layout (or to the model) when plotting.
PNG: the resolution, in dots per inch (30 to 2400), when saving as PNG.
Notes
The settings are saved in the drawing as an AutoCAD page setup; named page setups are managed with PAGESETUP.
Shows the sheet full screen exactly as it will be plotted: the paper, the printable area and what is plotted, with the settings of the Plot dialog box (scale, area, orientation and plot style table included).
Usage
Enter PREVIEW or click its button. It also opens from the PLOT dialog box with Preview….
Inspect the sheet: Wheel: zoom · Drag: pan.
Click Plot to plot to a file, Fit to see the whole sheet again or Close to leave.
Notes
The preview is an image of the page: with a plot style table such as monochrome.ctb it already shows in black.
To change the paper, scale or area, close the preview and change them in PLOT or PAGESETUP.
Plots several sheets to PDF in one go: model space and the layouts of the open drawing and of other drawings, each sheet with its own page setup. The result is a single multi-sheet PDF or one PDF per sheet.
Usage
Save the drawing and enter PUBLISH. The Publish dialog opens with the Sheet List: model space and the layouts of the current drawing.
Check the sheets you want to plot; ✖ removes a sheet from the list.
Use Add Drawings… to add model space and the layouts of other DWG or DXF files.
Choose Single multi-sheet PDF or One PDF per sheet and, if you wish, Include layer information and PDF/A.
Click Publish and specify the PDF file (or the folder, with one PDF per sheet). Plotting runs in the background with a progress bar; you can keep drawing meanwhile.
Sheet list
Save Sheet List… saves the list in a Lince2D .dsl file, with drawing paths relative to the list; Load Sheet List… loads it again to repeat the same publication.
Each sheet is plotted with the page setup stored in its layout (PAGESETUP): paper, plot area, scale and plot style table.
Notes
The drawing must be saved before publishing.
Sheets of other drawings are plotted without their external references.
AutoCAD .dsl files are not read: the list is Lince2D's own.
Starts a drawing with the template set in OPTIONS.
Command:QNEW · Global name:_QNEW
Toolbar: Standard
Starts a new drawing with the template chosen in OPTIONS › Open and Save › QNEW template, without asking. It is what the New button of the Quick Access toolbar and of the Standard toolbar does.
Usage
Enter QNEW or click the New button of the Quick Access toolbar.
A tab opens with an unnamed drawing made from that template.
Notes
With None (ask) (the Lince2D default, as in AutoCAD), QNEW asks for the template like NEW.
With a template chosen, the startup drawing (Drawing1) also comes from it.
Command:QSAVE · Global name:_QSAVE · Shortcut: Ctrl+S
Menu: Lince2D
Menu: File
Toolbar: Standard
Saves the current drawing to its file, in the same format and version it was opened with. A new drawing, which has no name yet, asks where to save it.
Usage
Enter QSAVE, press Ctrl+S or click its button.
If the drawing has no name, the SAVEAS dialog box opens with the DWG 2018 format.
The status bar confirms the path, the version and the time taken. The * on the tab disappears.
Notes
Saving is safe: the file is first written next to it under another name; the previous one is kept as .bak and only then replaced. If anything fails, the original is left untouched.
DWG files older than version 2000 are saved as DWG 2018.
A read-only file cannot be overwritten.
Every 10 minutes with unsaved changes, Lince2D makes an automatic save in %TEMP%\lince (.sv$ files), without touching your file. It is deleted when the drawing is closed.
Opens a damaged drawing, recovering what can be read.
Command:RECOVER · Global name:_RECOVER
Ribbon: Manage › Drawing
Menu: Lince2D
Opens a damaged DWG or DXF drawing, recovering everything that can be read. Records that cannot be understood are skipped instead of stopping the reading, and then the same safe repairs as AUDIT are applied.
Usage
Enter RECOVER or click its button.
Choose the file in the dialog box. It opens in a new tab.
The command line shows the report: how many records were damaged or could not be read, the audit result and the repairs made.
Check the drawing and save it with QSAVE or SAVEAS to keep what was recovered.
Notes
The recovered drawing is marked as modified: until you save it, the original file does not change.
It is a good idea to save it under another name (SAVEAS) to keep the original.
If a drawing opens fine but has errors, AUDIT is enough.
Command:SAVEAS · Global name:_SAVEAS · Shortcut: Ctrl+Shift+S
Menu: Lince2D
Menu: File
Saves the drawing under another name, in another folder, in another format (DWG or DXF) or in another version, so that older programs can open it. Afterwards, the open drawing becomes the new file.
Usage
Enter SAVEAS or press Ctrl+Shift+S. The save dialog box opens with the DWG 2018 format.
In the menus (application menu or File), Save As opens a list of target versions: choose one and then the file name.
Enter the name and click Save. The status bar confirms the path and the version.
Target versions
Target
Opened by
DWG 2018 (AutoCAD 2018–2027)
AutoCAD 2018 and later, up to 2027
DWG 2013
AutoCAD 2013 to 2017
DWG 2010
AutoCAD 2010 to 2012
DWG 2007
AutoCAD 2007 to 2009
DWG 2004
AutoCAD 2004 to 2006
DWG 2000
AutoCAD 2000 to 2002
DWG R14
AutoCAD R14 and older programs (proxies are left out)
DXF 2018
Any program that reads AutoCAD 2018 DXF
DXF 2013, 2010, 2007 and 2004
Programs that read the DXF of those AutoCAD versions
DXF 2000
Programs that only read old DXF files
DXF R12
Programs that only read R12 DXF (what R12 lacks is exploded or left out)
With DWT (template) you choose the .dwt file and the Template Options dialog box opens: enter the Description (shown by the start page when the mouse is over the template) and choose the Measurement (Metric or English, the MEASUREMENT variable). They are saved in the file, where AutoCAD saves them, and AutoCAD shows them too.
Notes
When saving to an older version, proxy objects of external applications are kept or left out the way AutoCAD does it (depending on each object version), and the status bar says how many are left out.
AutoCAD Architecture objects of a DWG 2007 or later drawing cannot be saved to DWG 2000, 2004 or 2007: the program warns and does not save.
It is saved with the same protections as QSAVE: temporary file and .bak copy.
Command:AI_SELALL · Global name:_AI_SELALL · Shortcut: Ctrl+A
Ribbon: Home › Utilities
Menu: Edit
Selects all visible objects in the current space (model or the open layout). The selection can then be edited with any command or with the Properties palette.
Usage
Press Ctrl+A or enter AI_SELALL with no command active.
All objects are selected.
Inside a command that asks to select objects, Ctrl+A (or typing ALL) adds all objects to the command's selection.
Notes
Objects on locked, off or frozen layers are left out.
To remove objects from the selection, click them with Shift held down. Esc clears it.
Ctrl+A does not act if another text box (for example, in the Properties palette) has the keyboard.
Copies the selection to the clipboard with a specified base point.
Command:COPYBASE · Global name:_COPYBASE · Shortcut: Ctrl+Shift+C
Ribbon: Home › Clipboard
Menu: Edit
Copies the selected objects to the clipboard with the base point you specify. When pasting with PASTECLIP, that point goes exactly to the insertion point, so the copy can be placed precisely.
Usage
Press Ctrl+Shift+C or enter COPYBASE.
Select the objects and press Enter.
Select objects:
Specify the base point, usually with an object snap (a corner, a center…).
Specify base point:
The command line says how many objects were copied.
Notes
As with COPYCLIP, the layers, styles and blocks the objects use are copied too, and the copy can be pasted into any open drawing.
Command:COPYCLIP · Global name:_COPYCLIP · Shortcut: Ctrl+C
Ribbon: Home › Clipboard
Menu: Edit
Copies the selected objects to the Lince2D clipboard, without changing the drawing. They can then be pasted into this drawing or another open one with PASTECLIP, PASTEORIG or PASTEBLOCK.
Usage
Select the objects and press Ctrl+C (or enter COPYCLIP). With objects already selected, they are copied at once.
If nothing was selected, select the objects and press Enter.
Select objects:
The command line says how many objects were copied.
Notes
The base point is the lower-left corner of the selection: when pasting, that corner goes to the point you specify. To choose another base point, use COPYBASE.
The layers, linetypes, styles and blocks the objects use are copied too, so the paste is the same in another drawing.
The clipboard belongs to Lince2D: it works between the open drawings, but not for pasting into AutoCAD or other programs. The Windows clipboard only receives a text summary (how many objects and of which types).
Ctrl+C only acts with an empty command line and no active command; in a text box it copies the text.
Moves the selection to the clipboard and erases it.
Command:CUTCLIP · Global name:_CUTCLIP · Shortcut: Ctrl+X
Ribbon: Home › Clipboard
Menu: Edit
Moves the selected objects to the Lince2D clipboard and erases them from the drawing. They can then be pasted into this drawing or another one with PASTECLIP, PASTEORIG or PASTEBLOCK.
Usage
Select the objects and press Ctrl+X (or enter CUTCLIP). With objects already selected, they are cut at once.
If nothing was selected, select the objects and press Enter.
Select objects:
The command line says how many objects were copied. The objects disappear from the drawing.
Notes
The base point is the lower-left corner of the selection. To choose it, use COPYBASE and then ERASE.
The layers, linetypes, styles and blocks the objects use are copied too.
The cut is undone with UNDO; the copy stays on the clipboard.
Ctrl+X only acts with an empty command line and no active command.
Command:PASTEBLOCK · Global name:_PASTEBLOCK · Shortcut: Ctrl+Shift+V
Ribbon: Home › Clipboard
Menu: Edit
Pastes the copy as a single object: it creates a new block definition with it and inserts it at the point you specify. The pasted content can then be moved, copied or erased in one go.
Command:PASTECLIP · Global name:_PASTECLIP · Shortcut: Ctrl+V
Ribbon: Home › Clipboard
Menu: Edit
Pastes into the current drawing what was copied with COPYCLIP, CUTCLIP or COPYBASE. The pasted objects are ordinary, independent objects, with their layers and styles.
Usage
Press Ctrl+V or enter PASTECLIP.
Specify the insertion point. While you move the cursor, the outline of the copy is shown.
Specify insertion point:
The objects are placed with their base point at the specified point.
Notes
You can paste several times in a row: pasting does not empty the clipboard.
The layers, linetypes, styles and blocks the objects use that are missing from the drawing are added with them.
If the clipboard is empty, the command says so and ends.
To paste at the same place they had, use PASTEORIG; to paste as a single block, PASTEBLOCK.
Ctrl+V only acts with an empty command line and no active command; in a text box it pastes the text.
Pastes the copied objects at their original coordinates.
Command:PASTEORIG · Global name:_PASTEORIG
Ribbon: Home › Clipboard
Menu: Edit
Pastes the copy at the same coordinates it had in the source drawing, without asking for a point. Use it to move objects from one drawing to another without shifting them.
Command:UNDO · Global name:_UNDO · Alias:U · Shortcut: Ctrl+Z
Menu: Edit
Toolbar: Standard
Undoes the last command that changed the drawing. Each command is undone as a whole (all the lines of a LINE, all the copies of a COPY…), and you can undo several times in a row to go further back.
Usage
Press Ctrl+Z, click Undo on the Quick Access toolbar or enter UNDO (or U) with no command active.
The command line says what was done. If there is nothing left to undo, it says so.
Shows or hides the grid of the drawing area, a reference mesh that helps to judge distances by eye. Also with the F7 key and the GRID button of the status bar.
Usage
Enter GRID or press F7.
Grid [ON/OFF] <…>:
Choose ON or OFF; Enter switches to the opposite of the current state.
Notes
The grid is drawn with thin lines. Its spacing is a power of 10 (1, 10, 100...) that changes with the zoom so that the lines stay at least about 25 pixels apart.
SNAP (F9) makes the cursor jump to the crossings of that grid, also with the grid hidden.
The grid spacing cannot be chosen yet, and the state applies to every drawing of the session.
Turns Ortho mode on and off: while a command asks for a point from another one, the cursor is constrained to the horizontal or vertical of the last point. Use it to draw straight lines by hand without typing coordinates. It is not typed as a command: use the F8 key or the ORTHO button on the status bar.
Usage
Press F8 or click the ORTHO button: the button stays highlighted while Ortho is on.
Move the cursor: the point snaps to the nearest horizontal or vertical direction.
Notes
Ortho and polar tracking (POLAR) exclude each other: turning one on turns the other off.
Object snaps take priority: if the cursor finds a key point, that point is used.
Command:OSNAP · Global name:_OSNAP · Alias:OS · Shortcut: F3
Not available yet in this version.
Turns running object snaps on and off: while a command asks for a point, the cursor jumps to nearby key points (endpoints, midpoints, centers, intersections...) and a marker shows which one was found. It is not typed as a command: use the F3 key or the OSNAP button on the status bar.
Usage
Press F3 or click the OSNAP button to turn them on or off.
Right-click the button to choose the modes: Endpoint, Midpoint, Center, Intersection, Perpendicular, Tangent, Quadrant, Insertion, Node, Extension and Nearest. Select All and Clear All check or clear them all.
Temporary snaps
When a command asks for a point, type the first three letters of a mode to use it for that point only, even with running snaps off: END, MID, CEN, INT, PER, TAN, QUA, INS, NOD, EXT or NEA (the Spanish names FIN, MED, CUA, CER... also work).
Notes
Object snaps take priority over tracking, SNAP and Ortho.
Object snap tracking (OTRACK, F11) needs object snaps on to acquire points.
Command:POLAR · Global name:_POLAR · Shortcut: F10
Not available yet in this version.
Turns polar tracking on and off: while a command asks for a point from another one, when the cursor passes close to a direction that is a multiple of the increment angle, it snaps to it, a dashed alignment path is drawn and a tooltip shows the distance and the angle. It is not typed as a command: use the F10 key or the POLAR button on the status bar.
Usage
Press F10 or click the POLAR button to turn it on or off.
Right-click the button to choose the increment angle: 90, 45, 30, 22.5, 18, 15, 10 or 5 degrees.
With the alignment path in view, click: the point lies on it.
Notes
Polar tracking and Ortho (ORTHO) exclude each other: turning one on turns the other off.
The OTRACK button (F11), next to it, turns on object snap tracking: rest the cursor half a second on an object snap to acquire it (green cross) and horizontal and vertical paths come out of it.
POLAR, at 90°, and object snap tracking are on at startup.
Command:SNAP · Global name:_SNAP · Alias:SN · Shortcut: F9
Not available yet in this version.
Turns snap to grid on and off: while a command asks for a point, the cursor jumps to the crossings of the visible grid. It is not typed as a command: use the F9 key or the SNAP button on the status bar.
Usage
Press F9 or click the SNAP button: the button stays highlighted while it is on.
Move the cursor: the point snaps to the nearest grid crossing.
Notes
The spacing is that of the grid shown on screen, a power of 10 that changes with the zoom (see GRID). A different spacing cannot be set yet.
Object snaps and tracking take priority over SNAP; Ortho is applied afterwards.
Opens the About Lince2D window, with the installed version of Lince2D, the copyright notice and the license notices of the third-party libraries included in the program.
Usage
Enter ABOUT or choose it on the application menu or the Help menu.
Expand Third-party notices to read the full licenses.
Close the window with its close button.
Notes
Quote the version shown in this window when you report a problem.
Opens the Lince2D help viewer. If a command is running, it opens the page of that command directly.
Usage
Press F1, enter HELP or choose Help on the Help menu.
While a command is running, F1 opens its page; with the mouse over a button of the ribbon or of a toolbar, F1 opens the page of that button's command. Otherwise the general help opens.
The viewer
Contents: the table of contents as a tree (general help, user manual, commands, system variables and AutoLISP functions). Click an entry to show it.
Index: alphabetical list of commands and terms; click one to go to its page.
Search: looks for words in the text of all pages and lists the pages that contain them.
Back and Forward: step through the pages you have seen, as in a web browser.
Manual (PDF): opens the complete manual as a PDF, in the language of the interface, to read or print it.
Command pages start with the command name, its English global name, its alias, its shortcut and where it is on the ribbon and in the menus. Prompt texts are the same ones the command line shows.
Notes
Links lead to other help pages; those starting with https:// open in the web browser.
The help works without an Internet connection: the pages are installed with the program.
System variables hold drawing settings: the units, the current layer and color, the fillet radius, how points look… Lince2D uses the same names and the same values as AutoCAD, and stores them in the drawing header: when the DWG or DXF file is opened in AutoCAD they are kept, and the other way round.
Enter the variable name, or ? to list all of them with their values in the text window.
Enter new value for … <…>:
Enter the new value, or press Enter to keep the current one (shown between < >).
The variable name can also be typed directly on the command line, as if it were a command: LTSCALE asks for the new value of LTSCALE. The _ and . prefixes are accepted, as in AutoCAD.
Notes
Real numbers can be typed with a decimal comma or point (2,5 or 2.5). Distances also accept feet and inches (1'-3 1/2").
If the value is not valid, the program says so and keeps the previous one.
Invalid value for …: …
Changes can be undone with UNDO and are saved with the drawing, except for the variables marked as session ones, which last until the program is closed.
From AutoLISP they are read and changed with getvar and setvar, which also know other variables (DIMZIN, UNITMODE, OSMODE, ORTHOMODE, DWGNAME…). See AutoLISP.
Type: real · Stored in: drawing · Initial value: 0
Direction of angle 0, from which the angles written by the program are measured (in LIST, DIST, the PROPERTIES palette…). It is entered in degrees or in any angle format (90, 90d0'0", 100g, 1.5708r); getvar returns it in radians, as in AutoCAD.
0: east (positive X axis). 90: north. 180: west. 270: south.
Notes
Typed polar coordinates (@50<30) are always measured in degrees from the X axis, counterclockwise.
When the annotation scale (CANNOSCALE) changes, adds the new scale to the annotative objects that supported the previous one, so that they keep their paper size.
Value
Objects the scale is added to
1
All, except those on layers that are off, frozen or locked
2
All, except those on layers that are off or frozen
3
All, except those on locked layers
4
All
0 or negative
None: the scale is not added
Notes
It applies to the session: it is not saved in the drawing (in AutoCAD it is a program setting). A negative value turns the feature off while remembering which value would be used, as in AutoCAD.
Number of decimal places of the angles written by the program, from 0 to 8. In degrees/minutes/seconds it sets how far they go: 0 degrees only, 1-2 minutes, 3-4 seconds and higher, decimals of the seconds.
How the layers, linetypes, styles and blocks of an external reference are named when it is bound to the drawing with the Bind option of -XREF (or the button in XREF).
Value
Names
0
Bind: reference$0$name (the WALLS layer of the base reference becomes base$0$WALLS)
1
Insert: the name they had in the reference (WALLS); if it already exists in the drawing, the drawing's own is used
Notes
It applies to the session: it is not saved in the drawing (in AutoCAD it is a program setting).
Type: text · Stored in: drawing · Initial value: 1:1
Current annotation scale of model space: the name of a scale in the drawing's scale list (1:50). Annotative objects are shown with the representation of this scale and new ones are created with it: a 2.5 text at 1:50 measures 125 drawing units.
Notes
It can also be changed with the scale selector on the status bar. The scale must be in the drawing's list (SCALELISTEDIT); otherwise you are warned:
Scale … is not in the drawing scale list.
Layout viewports show annotative objects at their own scale, not this one.
It is saved in the drawing as AutoCAD does (variable dictionary), so it is kept both ways.
Type: real · Stored in: drawing · Initial value: 1
Linetype scale given to new objects. It multiplies LTSCALE: with 2, the dashes and gaps of new objects are twice as long as those of the rest. It must be greater than 0.
Type: text · Stored in: drawing · Initial value: ByLayer
Linetype given to new objects: BYLAYER (the layer's), BYBLOCK (the block's) or the name of a linetype loaded in the drawing (CONTINUOUS, DASHED…). A linetype that is not loaded is rejected: load it first with LINETYPE.
Type: real · Stored in: drawing · Initial value: 0
First chamfer distance: the one trimmed from the first selected object. CHAMFER proposes it and stores it when it is changed. With both distances at 0, the objects are joined in a sharp corner.
Exploded: separate lines, arrowheads and text, as in AutoCAD
1
Not associated with the geometry
2
Associative: they follow the objects they measure when these are moved, stretched or scaled
Notes
With 2, a dimension is associated when its points coincide with key points of the objects (endpoint, midpoint, center, quadrant, node). Changing the variable does not affect existing dimensions: use DIMREASSOCIATE and DIMDISASSOCIATE.
Type: real · Stored in: drawing · Initial value: 1
Overall dimension scale: it multiplies the text heights, arrow sizes and distances of the dimension style. A value of 0 or greater.
Notes
New dimensions use the DIMSCALE of their dimension style. When a style is made current, this variable takes its value; to rescale the dimensions, modify the style with DIMSTYLE.
Type: text · Stored in: drawing · Initial value: Standard
Current dimension style: the one used by new dimensions. When it changes, the dimension variables of the header (DIMSCALE, arrow size, text height…) take the values of the style, as in AutoCAD.
Type: real · Stored in: drawing · Initial value: 0
Fillet radius. FILLET proposes it and stores it when it is changed with its Radius option. With 0, the objects are trimmed or extended until they meet in a sharp corner.
In AutoCAD, whether solids, donuts and wide polylines are filled.
Value
Fill
0
Outline only
1
Filled
Notes
With 0 no fill is drawn (solid and gradient hatches, solids and wide polylines): solids keep their outline and wide polylines their centreline. It also applies when plotting.
Type: real · Stored in: session · Initial value: 0
Hatch gap tolerance: when looking for the boundary with an internal point, HATCH closes gaps of up to this length between loose endpoints, as if they were joined. With 0, the boundary must be fully closed. It accepts 0 to 5000, in drawing units.
Notes
As in AutoCAD, it is not saved in the drawing. It only counts for boundaries found from an internal point, not for selected objects.
Type: point · Stored in: drawing · Initial value: 0,0
Base point of the drawing: the point placed at the insertion point when this file is inserted as a block into another drawing. It is entered as x,y coordinates.
Notes
WBLOCK stores the base point of the block as the INSBASE of the new file.
Unit in which the drawing is drawn. When an image is attached with IMAGEATTACH, Lince2D uses it together with the resolution of the file to give the image its real size; AutoCAD also uses it to scale blocks and references inserted from drawings in another unit.
Type: real · Stored in: drawing · Initial value: 1
Global linetype scale: it multiplies the length of the dashes and gaps of all objects. For drawings in millimeters at 1:100, a value around 100 makes dashed lines look dashed. It must be greater than 0.
Number of decimal places of the lengths written by the program, from 0 to 8. In the fractional formats it sets the smallest denominator: 1 halves, 2 quarters, 3 eighths… up to 8 (1/256).
Number of straight segments with which the Spline option of PEDIT approximates each span of the polyline. More segments give a smoother curve. From 1 to 32767.
Type: real · Stored in: drawing · Initial value: 2.5
Default text height, when the current text style has no fixed height. TEXT, MTEXT and ATTDEF propose it and store here the last height chosen; it is also used by the attributes created by BATTMAN and by texts created with entmake without a height. It must be greater than 0.
How much the content of external references (what is on reference|layer layers) is faded on screen, from 0 (not at all) to 90 %, to tell it apart from what is drawn in this drawing.
Notes
It only affects the screen: when plotting, references come out in their colors.
In AutoCAD this fading is XDWGFADECTL; its XFADECTL is the one for in-place reference editing, which Lince2D does not have.
It applies to the session: it is not saved in the drawing.
Lince2D has its own AutoLISP interpreter to run routines written for AutoCAD or progeCAD: the same functions, the same data types and the same error messages ("; error: bad argument type…", as in AutoCAD, because many routines compare them in their *error*). Routines ask for points and select objects like any command, with object snaps, rubber band and typed coordinates.
Typing expressions on the command line
When no command is active, anything that starts with ( is evaluated as AutoLISP and the result is written below. If parentheses or quotes are left open, the program shows (_> and waits for more lines.
(setq r (* 2 pi))
6.28319
Loading .lsp files
APPLOAD opens the Load Applications (APPLOAD) dialog box: Load a .lsp file… loads a file now; the startup suite is loaded every time the program starts.
load loads a file from a routine or from the command line: (load "myroutine").
When a drawing is opened, acaddoc.lsp and lince.lsp are loaded automatically if they are in its folder. At startup, those in the user folder are loaded too.
Security (like SECURELOAD): files in the trusted folders (the user folder, the lisp folder next to the program and the ones added in APPLOAD) are loaded without asking; files in other folders are confirmed first. APPLOAD can also allow loading from any folder or only from trusted ones.
Files can be in UTF-8 or in Windows-1252, like those of older AutoCAD versions.
New commands with c:
A function whose name starts with c: becomes a command: type its name on the command line like any other.
(defun c:area2 (/ e)
(setq e (car (entsel "\nSelect a circle: ")))
(princ (strcat "\nArea: " (rtos (* pi (expt (cdr (assoc 40 (entget e))) 2)) 2 2)))
(princ))
Data types
32-bit integers (which overflow as in AutoCAD), reals, strings, symbols, lists and dotted pairs, entity names, selection sets, files and functions. Angles are in radians; points are lists of two or three numbers. Comments go from ; to the end of the line or between ;| and |;. Strings accept \n, \t, \", \\ and \e.
Limits
There are no ActiveX functions (vla-…, vlax-…), DCL dialog boxes, reactors or separate namespaces per drawing.
entget, entmod and entmake work with LINE, CIRCLE, ARC, LWPOLYLINE, TEXT, MTEXT, POINT, INSERT and ATTRIB; DIMENSION can be read but not changed; for other entities only the common codes (layer, color…) are read. There is no extended data (XDATA).
trans converts between the WCS and the UCS; with an entity name or with paper space it returns the point unchanged.
While a command is active, ( is not evaluated (AutoCAD evaluates it and uses the result as the answer). There is no !variable either to see the value of a variable: type (princ variable).
Expressions can be nested up to about 8000 levels (recursion included). Esc stops a running routine.
Creates an unnamed function. Returns the function.
((lambda (a b) (+ a b)) 2 3) ; 5
setq
(setq symbol expression [symbol expression]...)
Evaluates each expression and assigns it to the symbol before it, which is not evaluated. Returns the last value assigned.
(setq a 10 b (* a 2)) ; 20
defun
(defun name (arguments [/ locals]) expression...)
Defines a function. The arguments and the local variables (after /) get their previous value back on exit; other variables are global. Returns the name. If the name starts with C:, the function becomes a command.
(defun double (x) (* 2 x))
(double 4) ; 8
defun-q
(defun-q name (arguments [/ locals]) expression...)
In AutoCAD the function is kept as a list and can be modified with defun-q-list-set; in Lince2D it is a normal function.
if
(if test then [else])
Evaluates the test; if it is not nil, evaluates and returns then; if it is nil, else (or nil if missing).
(if (> a 0) "positive" "zero or negative")
cond
(cond (test expression...) ...)
Evaluates the tests in order and, for the first one that is not nil, its expressions. Returns the last one evaluated (or the test, if the clause has no expressions). T as the last test gives the default case.
(cond ((< x 0) "negative") ((= x 0) "zero") (T "positive"))
while
(while test expression...)
Repeats the expressions while the test is not nil. Returns the value of the last expression evaluated.
(setq i 0)
(while (< i 3) (setq i (1+ i))) ; 3
repeat
(repeat integer expression...)
Evaluates the expressions the given number of times. Returns the value of the last one.
(setq n 1)
(repeat 4 (setq n (* n 2))) ; 16
foreach
(foreach symbol list expression...)
Gives the symbol each element of the list and evaluates the expressions. Returns the value of the last one; the symbol gets its value back at the end.
(foreach c '("A" "B") (princ c)) ; prints AB
progn
(progn expression...)
Evaluates the expressions in order and returns the last one. Used to put several where one is expected, as in if.
(if ok (progn (princ "Done") (setq n (1+ n))))
and
(and expression...)
Evaluates the expressions until one is nil. Returns T if none is nil (also with no arguments) and nil otherwise.
(and (> 3 1) "text") ; T
or
(or expression...)
Evaluates the expressions until one is not nil. Returns T if it finds one and nil if all are nil.
(or nil 5) ; T
t
T
Symbol whose value is T: the "true" value of tests. Predicates that hold return it.
(= 1 1) ; T
pi
pi
Variable holding the number π (3.14159…). It can be changed with setq, as in AutoCAD, though it is not a good idea.
(* 2 pi) ; 6.28319
pause
pause
Variable whose value is "\\". In command it makes the command wait for the user to give that input.
(command "_circle" pause 10)
error
(defun *error* (message) ...)
Function the program calls when a routine fails, with the error message, before unwinding the stack: the local variables of the running functions still have their values. Used to restore variables and close files. Without *error*, the program writes ; error: message.
Adds the numbers. Integer if all are integers (32-bit, overflowing as in AutoCAD); real if any is real. With no arguments, 0.
(+ 1 2 3) ; 6
(+ 1 2.5) ; 3.5
-
(- [number number]...)
Subtracts the others from the first. With a single number, changes its sign. With no arguments, 0.
(- 10 3 2) ; 5
(- 4) ; -4
*
(* [number number]...)
Multiplies the numbers. Integer if all are integers. With no arguments, 0.
(* 2 3 4) ; 24
/
(/ [number number]...)
Divides the first by the others. Between integers, the result is an integer and is truncated; with any real, real. Dividing by zero gives the error divide by zero.
(/ 7 2) ; 3
(/ 7 2.0) ; 3.5
1+
(1+ number)
Adds 1 to the number.
(1+ 5) ; 6
1-
(1- number)
Subtracts 1 from the number.
(1- 5) ; 4
abs
(abs number)
Absolute value, of the same type as the number.
(abs -2.5) ; 2.5
fix
(fix number)
Integer part of the number, truncated toward zero, as an integer. If it does not fit in 32 bits, returns a truncated real.
(fix 3.7) ; 3
(fix -3.7) ; -3
float
(float number)
The number as a real.
(float 3) ; 3.0
rem
(rem number number...)
Remainder of dividing the first by the others, from left to right. Integer if all are integers.
(rem 17 5) ; 2
(rem 7.5 2) ; 1.5
gcd
(gcd integer integer)
Greatest common divisor of two integers.
(gcd 12 18) ; 6
min
(min number...)
The smallest of the numbers. If any is real, the result is real.
(min 3 1 2) ; 1
(min 3 1.0) ; 1.0
max
(max number...)
The largest of the numbers. If any is real, the result is real.
(max 3 1 2) ; 3
sqrt
(sqrt number)
Square root, as a real. A negative number is an error.
(sqrt 16) ; 4.0
expt
(expt base exponent)
Power. Integer if both are integers and the exponent is not negative; otherwise real.
(expt 2 10) ; 1024
(expt 2 0.5) ; 1.41421
exp
(exp number)
e raised to the number, as a real.
(exp 1) ; 2.71828
log
(log number)
Natural logarithm of a positive number, as a real.
(log 10) ; 2.30259
sin
(sin angle)
Sine of an angle in radians.
(sin (/ pi 2)) ; 1.0
cos
(cos angle)
Cosine of an angle in radians.
(cos 0) ; 1.0
atan
(atan y [x])
Arctangent in radians. With one number, between -π/2 and π/2; with two, the angle of y/x in the right quadrant, between -π and π.
(atan 1) ; 0.785398
(atan 1 -1) ; 2.35619
~
(~ integer)
Bitwise NOT of the integer.
(~ 5) ; -6
logand
(logand [integer]...)
Bitwise AND of the integers. Useful to test a bit of a value such as OSMODE.
(logand 7 12) ; 4
logior
(logior [integer]...)
Bitwise inclusive OR of the integers.
(logior 1 4) ; 5
lsh
(lsh integer bits)
Shifts the bits of the integer to the left (or to the right, if bits is negative).
(lsh 1 4) ; 16
(lsh 16 -2) ; 4
=
(= value value...)
T if all the values are equal. Compares numbers (an integer and a real are equal if their values are) or strings.
(= 2 2.0) ; T
(= "a" "A") ; nil
/=
(/= value value...)
T if each value is different from the next one. Numbers or strings.
(/= 1 2) ; T
<
(< value value...)
T if each value is less than the next one. Numbers or strings (by character order).
(< 1 2 3) ; T
(< "abc" "abd") ; T
>
(> value value...)
T if each value is greater than the next one.
(> 3 2 1) ; T
<=
(<= value value...)
T if each value is less than or equal to the next one.
(<= 1 1 2) ; T
>=
(>= value value...)
T if each value is greater than or equal to the next one.
(>= 2 2 1) ; T
eq
(eq expression expression)
T if both are the same object: the same symbol, the same number or the same list (not an equal copy). To compare contents, use equal.
(setq a '(1 2) b a)
(eq a b) ; T
(eq a '(1 2)) ; nil
equal
(equal expression expression [fuzz])
T if both have the same contents. With a fuzz, numbers may differ by up to that amount (useful to compare points).
(equal '(1 2) '(1 2)) ; T
(equal '(1.0 2.0) '(1.0 2.0001) 0.001) ; T
not
(not expression)
T if the expression is nil; nil otherwise. Same as null.
(not nil) ; T
null
(null expression)
T if the expression is nil (or the empty list).
(null '()) ; T
atom
(atom expression)
T if the expression is not a list with elements (nil is an atom too).
(atom 'a) ; T
(atom '(1)) ; nil
listp
(listp expression)
T if the expression is a list or nil.
(listp nil) ; T
vl-consp
(vl-consp expression)
T if the expression is a list with elements (not nil).
(vl-consp nil) ; nil
(vl-consp '(1)) ; T
numberp
(numberp expression)
T if the expression is an integer or a real.
(numberp 3.5) ; T
zerop
(zerop number)
T if the number is 0.
(zerop 0.0) ; T
minusp
(minusp number)
T if the number is negative.
(minusp -1) ; T
boundp
(boundp symbol)
T if the symbol has a value other than nil.
(boundp 'pi) ; T
type
(type expression)
Type of the expression as a symbol: INT, REAL, STR, SYM, LIST, SUBR (built-in function), USUBR (user function), ENAME, PICKSET, FILE or VL-CATCH-ALL-APPLY-ERROR. For nil, nil.
(type 1.5) ; REAL
(type "a") ; STR
vl-symbolp
(vl-symbolp expression)
T if the expression is a symbol (nil is not).
(vl-symbolp 'a) ; T
car
(car list)
First element of the list. For nil, nil. In a dotted pair, the first part.
(car '(1 2 3)) ; 1
(car '(8 . "0")) ; 8
cdr
(cdr list)
The list without its first element. In a dotted pair, the second part.
(cdr '(1 2 3)) ; (2 3)
(cdr '(8 . "0")) ; "0"
caar
(caar list)
First element of the first element: the first number of a point at the start of the list. Same as (car (car list)). If any step is not a list, it is an error.
(caar list) ; = (car (car list))
caaar
(caaar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (car (car list))). If any step is not a list, it is an error.
(caaar list) ; = (car (car (car list)))
cdaar
(cdaar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (car (car list))). If any step is not a list, it is an error.
(cdaar list) ; = (cdr (car (car list)))
caaaar
(caaaar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (car (car (car list)))). If any step is not a list, it is an error.
(caaaar list) ; = (car (car (car (car list))))
cadaar
(cadaar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (cdr (car (car list)))). If any step is not a list, it is an error.
(cadaar list) ; = (car (cdr (car (car list))))
cdaaar
(cdaaar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (car (car (car list)))). If any step is not a list, it is an error.
(cdaaar list) ; = (cdr (car (car (car list))))
cddaar
(cddaar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (cdr (car (car list)))). If any step is not a list, it is an error.
(cddaar list) ; = (cdr (cdr (car (car list))))
cadr
(cadr list)
Second element of the list. Of a point, the Y coordinate. Same as (car (cdr list)). If any step is not a list, it is an error.
(cadr list) ; = (car (cdr list))
caadr
(caadr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (car (cdr list))). If any step is not a list, it is an error.
(caadr list) ; = (car (car (cdr list)))
cdadr
(cdadr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (car (cdr list))). If any step is not a list, it is an error.
(cdadr list) ; = (cdr (car (cdr list)))
caaadr
(caaadr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (car (car (cdr list)))). If any step is not a list, it is an error.
(caaadr list) ; = (car (car (car (cdr list))))
cadadr
(cadadr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (cdr (car (cdr list)))). If any step is not a list, it is an error.
(cadadr list) ; = (car (cdr (car (cdr list))))
cdaadr
(cdaadr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (car (car (cdr list)))). If any step is not a list, it is an error.
(cdaadr list) ; = (cdr (car (car (cdr list))))
cddadr
(cddadr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (cdr (car (cdr list)))). If any step is not a list, it is an error.
(cddadr list) ; = (cdr (cdr (car (cdr list))))
cdar
(cdar list)
The first element without its first element. Same as (cdr (car list)). If any step is not a list, it is an error.
(cdar list) ; = (cdr (car list))
cadar
(cadar list)
Second element of the first element. Same as (car (cdr (car list))). If any step is not a list, it is an error.
(cadar list) ; = (car (cdr (car list)))
cddar
(cddar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (cdr (car list))). If any step is not a list, it is an error.
(cddar list) ; = (cdr (cdr (car list)))
caadar
(caadar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (car (cdr (car list)))). If any step is not a list, it is an error.
(caadar list) ; = (car (car (cdr (car list))))
caddar
(caddar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (cdr (cdr (car list)))). If any step is not a list, it is an error.
(caddar list) ; = (car (cdr (cdr (car list))))
cdadar
(cdadar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (car (cdr (car list)))). If any step is not a list, it is an error.
(cdadar list) ; = (cdr (car (cdr (car list))))
cdddar
(cdddar list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (cdr (cdr (car list)))). If any step is not a list, it is an error.
(cdddar list) ; = (cdr (cdr (cdr (car list))))
cddr
(cddr list)
The list without its first two elements. Same as (cdr (cdr list)). If any step is not a list, it is an error.
(cddr list) ; = (cdr (cdr list))
caddr
(caddr list)
Third element of the list. Of a 3D point, the Z coordinate. Same as (car (cdr (cdr list))). If any step is not a list, it is an error.
(caddr list) ; = (car (cdr (cdr list)))
cdddr
(cdddr list)
The list without its first three elements. Same as (cdr (cdr (cdr list))). If any step is not a list, it is an error.
(cdddr list) ; = (cdr (cdr (cdr list)))
caaddr
(caaddr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (car (car (cdr (cdr list)))). If any step is not a list, it is an error.
(caaddr list) ; = (car (car (cdr (cdr list))))
cadddr
(cadddr list)
Fourth element of the list. Same as (car (cdr (cdr (cdr list)))). If any step is not a list, it is an error.
(cadddr list) ; = (car (cdr (cdr (cdr list))))
cdaddr
(cdaddr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (car (cdr (cdr list)))). If any step is not a list, it is an error.
(cdaddr list) ; = (cdr (car (cdr (cdr list))))
cddddr
(cddddr list)
A combination of car and cdr: the letters between c and r are applied from right to left (a = car, d = cdr). Same as (cdr (cdr (cdr (cdr list)))). If any step is not a list, it is an error.
(cddddr list) ; = (cdr (cdr (cdr (cdr list))))
cons
(cons element list-or-atom)
With a list, returns it with the element in front. With an atom, creates a dotted pair, like those of entget.
Integer written at the start of the string (0 if there is none).
(atoi "12abc") ; 12
atof
(atof string)
Real written at the start of the string (0.0 if there is none). The decimal separator is the point.
(atof "2.5 m") ; 2.5
chr
(chr code)
Character with that (Unicode) code, as a string.
(chr 65) ; "A"
ascii
(ascii string)
Code of the first character of the string (0 if it is empty).
(ascii "A") ; 65
wcmatch
(wcmatch string pattern)
T if the string matches the pattern. Wildcards: * (any text), ? (one character), # (one digit), @ (one letter), . (one non-alphanumeric character), [abc] and [a-z] (one of them), [~abc] (none of them), ~ at the start negates the pattern, , separates several patterns and the reverse quote makes the next character literal. It is case-sensitive.
(wcmatch "DIM-12" "DIM-##") ; T
(wcmatch "Wall" "W*,P*") ; T
vl-string-trim
(vl-string-trim characters string)
The string without the given characters at the start and at the end.
(vl-string-trim " " " hello ") ; "hello"
vl-string-left-trim
(vl-string-left-trim characters string)
The string without the given characters at the start.
(vl-string-left-trim "0" "0042") ; "42"
vl-string-right-trim
(vl-string-right-trim characters string)
The string without the given characters at the end.
(vl-string-right-trim ".0" "2.500") ; "2.5"
vl-string-search
(vl-string-search pattern string [start])
Position (from 0) where the pattern appears in the string, searching from start, or nil.
(vl-string-search "2D" "Lince2D") ; 5
vl-string-subst
(vl-string-subst new pattern string [start])
The string with the first occurrence of the pattern (from start) replaced by new.
(vl-string-subst "B" "A" "AXA") ; "BXA"
vl-string-translate
(vl-string-translate from to string)
Replaces each character of from found in the string by the one at the same position in to.
The expression as prin1 writes it (strings in quotes), in a string.
(vl-prin1-to-string "a") ; "\"a\""
rtos
(rtos number [mode [precision]])
The number as text. Modes: 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional. Without mode or precision, the drawing's LUNITS and LUPREC are used. It follows DIMZIN (extra zeros) and uses the decimal point.
Reads a distance written in any of the rtos formats. Returns a real, or nil if it cannot be read.
(distof "1'-3 1/2\"") ; 15.5
angtos
(angtos angle [mode [precision]])
An angle in radians as text. Modes: 0 degrees, 1 degrees/minutes/seconds, 2 grads, 3 radians, 4 surveyor's units. Without mode or precision, AUNITS and AUPREC are used.
(angtos (/ pi 4) 0 2) ; "45.00"
(angtos (/ pi 4) 1 4) ; "45d0'0\""
angtof
(angtof string [mode])
Reads an angle written in any angtos format (the d, g and r marks and bearings are recognized on their own; without a mark, according to the mode, degrees by default). Returns radians, or nil.
(angtof "90") ; 1.5708
distance
(distance point point)
Distance between two points (2D or 3D).
(distance '(0 0) '(3 4)) ; 5.0
angle
(angle point point)
Angle in radians of the line from the first point to the second, measured from the X axis counterclockwise (from 0 to 2π).
(angle '(0 0) '(0 5)) ; 1.5708
polar
(polar point angle distance)
Point at that distance from the given one, in the direction of the angle (radians).
(polar '(0 0) 0 10) ; (10.0 0.0 0.0)
inters
(inters p1 p2 p3 p4 [on-segments])
Intersection point of line p1-p2 with line p3-p4, or nil if they are parallel. If the fifth argument is nil, the lines are extended; if it is missing or not nil, the point must lie on both segments.
Converts a point from one coordinate system to another. Systems are given as a number: 0 the world system (WCS), 1 the current UCS and 2 the display system (in 2D, the same as the UCS). With a non-nil fourth argument, the point is treated as a displacement: it is only rotated, without taking the UCS origin into account.
(trans '(0 0) 1 0) ; the UCS origin, in world coordinates
(trans '(10 0) 1 0 T) ; 10 units along the UCS X direction, in the WCS
Differences with AutoCAD
An entity name (object coordinate system) or 3 (paper space) return the point unchanged.
initget
(initget [bits] [keywords])
Sets up the next get… function, entsel or ssget. Bits that can be added: 1 disallows Enter, 2 disallows zero, 4 disallows negatives, 128 accepts any text (returned as a string). Keywords are separated by spaces; their capitals are the abbreviation. After _ the global names can be given.
Asks for a point: a click (with object snaps) or typed coordinates. With a base point, shows a rubber band from it. Returns the point, nil on Enter, or the initget keyword.
(setq p (getpoint "\nSpecify center: "))
getcorner
(getcorner base-point [prompt])
Asks for the opposite corner of a rectangle starting at the base point.
(getcorner p "\nOpposite corner: ")
getdist
(getdist [base-point] [prompt])
Asks for a distance: typed (in any length format) or with two points. Returns a real.
(setq d (getdist "\nDistance: "))
getangle
(getangle [base-point] [prompt])
Asks for an angle: typed (in any angle format) or with two points. Returns radians.
(setq a (getangle "\nAngle: "))
Differences with AutoCAD
It does not take ANGBASE or ANGDIR into account (with the initial values the result is the same).
In AutoCAD it always measures from east, even when ANGBASE is not 0; in Lince2D getangle does not use ANGBASE either, so both give the same result.
getreal
(getreal [prompt])
Asks for a real number (with a decimal point; the comma separates coordinates).
(setq k (getreal "\nFactor: "))
getint
(getint [prompt])
Asks for an integer between -32768 and 32767.
(initget 7)
(setq n (getint "\nNumber of copies: "))
getstring
(getstring [spaces] [prompt])
Asks for a text. If the first argument is not nil, Space is part of the text and only Enter ends it. Returns "" on Enter.
(setq name (getstring T "\nLayer name: "))
getkword
(getkword [prompt])
Asks for one of the initget keywords. Returns the whole keyword (or its global name) and nil on Enter.
(initget "Line Arc")
(getkword "\n[Line/Arc]: ")
entsel
(entsel [prompt])
Asks to select one object with a click. Returns a list with the entity name and the picked point, or nil.
(setq s (entsel "\nSelect a line: "))
(entget (car s))
princ
(princ [expression [file]])
Writes the expression on the command line (or to the file), strings without quotes. Returns the expression. (princ) with no arguments writes nothing: at the end of a routine it hides the last value.
(princ "\nDone.")
(princ)
prin1
(prin1 [expression [file]])
Like princ, but strings are written in quotes and with their escape characters.
(prin1 "a") ; writes "a"
print
(print [expression [file]])
Like prin1, with a line break before and a space after.
(print 42)
terpri
(terpri)
Writes a line break. Returns nil.
prompt
(prompt string)
Writes the string on the command line. Returns nil.
(prompt "\nSelect the walls: ")
alert
(alert string)
Shows the string in a message box with an OK button (and writes it on the command line). In scripts, it only writes it.
(alert "There is no WALLS layer.")
textscr
(textscr)
In AutoCAD, switches to the text window. In Lince2D it does nothing. Returns nil.
graphscr
(graphscr)
In AutoCAD, goes back to the graphics window. In Lince2D it does nothing. Returns nil.
command
(command [argument]...)
Types the arguments on the command line, like a script: strings as they are ("" is Enter), numbers and points as text, entity names and selection sets as a selection, and pause for the user to give that input. nil is skipped. (command) with no arguments cancels the active command. Returns nil.
Use global names (_line) so that the routine works with the interface in any language. With CMDECHO set to 0 the command line does not repeat the prompts or what command types (results are still shown).
AutoCAD checks the arguments before typing them; Lince2D types them directly.
entlast
(entlast)
Name of the last main entity created in the drawing, or nil if it is empty.
(command "_circle" '(0 0) 5)
(setq c (entlast))
entnext
(entnext [entity])
With no argument, the first entity of the drawing; with an entity, the next one (or nil at the end). It goes through model space and then the layouts; after an INSERT with attributes come its ATTRIBs and the SEQEND, as in AutoCAD.
(setq e (entnext))
(while e (setq e (entnext e)))
entget
(entget entity [applications])
List of DXF pairs of the entity: (-1 . name), (0 . "LINE"), (8 . "layer"), (10 x y z)… Angles are in radians. Returns nil if the entity does not exist.
(cdr (assoc 10 (entget (car (entsel))))) ; start point or center
Differences with AutoCAD
Applications (extended data) are accepted but not returned. For types other than LINE, CIRCLE, ARC, LWPOLYLINE, TEXT, MTEXT, POINT, INSERT, ATTRIB and DIMENSION only the common codes are returned.
entmod
(entmod list)
Changes the entity of code -1 with the values of the list (the others stay the same). If the layer does not exist, it is created. Returns the list, or nil if it cannot.
Only for LINE, CIRCLE, ARC, LWPOLYLINE, TEXT, MTEXT, POINT, INSERT and ATTRIB.
entmake
(entmake list)
Creates an entity from the list of DXF pairs: LINE, CIRCLE, ARC, POINT, LWPOLYLINE, TEXT, MTEXT or INSERT (of an existing block), or a layer with (0 . "LAYER"). Without code 8 it goes on the current layer; texts without a height take TEXTSIZE. Returns the list, or nil if it cannot.
INSERTs are created without attributes (there are no ATTRIB/SEQEND sequences) and blocks are not created.
entdel
(entdel entity)
Erases the entity. If it had already been erased with entdel in this session, it is restored. Returns the name, or nil.
(entdel (entlast))
entupd
(entupd entity)
In AutoCAD, redraws the entity after changing it. In Lince2D the drawing updates on its own: it returns the name and does nothing.
handent
(handent handle)
Name of the entity with that handle (code 5, in hexadecimal), or nil if it does not exist. The handle is kept when the drawing is saved.
(handent "2F")
ssget
(ssget [mode] [point [point]] [filter])
Selection set, or nil if it is empty. Without a mode, the user selects (with ":S", only once). Modes: "X" or "A" (the whole drawing), "I" (what was selected before the routine), "P" (the previous one of ssget), "L" (the last entity), "W" and "C" with two points (window and crossing) or a single point. The filter is a list of DXF pairs, with wildcards in strings and the -4 operators ("<AND", "<OR", "<XOR", "<NOT", "<", ">=", "*"…).
Name of the entity at that position (from 0) of the set, or nil.
(ssname ss 0)
sslength
(sslength set)
Number of entities in the set.
(sslength (ssget "X"))
ssadd
(ssadd [entity [set]])
With no arguments, an empty set; with an entity, a set holding it; with both, adds the entity to the set (if it was not there) and returns the set.
(setq ss (ssadd))
(ssadd (entlast) ss)
ssdel
(ssdel entity set)
Removes the entity from the set. Returns the set, or nil if the entity was not in it.
ssmemb
(ssmemb entity set)
Returns the entity if it is in the set, or nil.
tblsearch
(tblsearch table name [set-tblnext])
DXF list of the name record of the table, or nil. Tables: "LAYER", "LTYPE", "STYLE", "BLOCK" and "DIMSTYLE". With a non-nil third argument, the next tblnext continues after this record.
The VIEW, UCS, VPORT and APPID tables are not available.
tblnext
(tblnext table [rewind])
Next record of the table, or nil at the end. With a non-nil second argument, goes back to the first one.
(setq r (tblnext "LAYER" T))
(while r (princ (strcat "\n" (cdr (assoc 2 r)))) (setq r (tblnext "LAYER")))
getvar
(getvar name)
Value of a system variable, or nil if it is unknown. It reads those of the drawing (CLAYER, LUNITS, TEXTSIZE, DIMZIN…; ANGBASE in radians) and those of the program: OSMODE, ORTHOMODE, SNAPMODE, CMDACTIVE, CMDECHO, DWGNAME, DWGPREFIX, SECURELOAD, ACADVER, PRODUCT and PLATFORM.
(getvar "CLAYER") ; "0"
(getvar "OSMODE")
Notes
Variables such as PICKBOX, FILEDIA, CMDDIA, ATTREQ or EXPERT exist with their usual value so that routines do not fail, but they change nothing. See System variables.
setvar
(setvar name value)
Changes a system variable and returns the value. Those of the drawing can be undone; OSMODE, ORTHOMODE and SNAPMODE change the program's object snaps, ortho and snap. An invalid value gives the error AutoCAD variable setting rejected.
(setq old (getvar "OSMODE"))
(setvar "OSMODE" 0)
(setvar "OSMODE" old)
redraw
(redraw [entity [mode]])
In AutoCAD, redraws the screen or an entity. In Lince2D it is not needed: it returns nil and does nothing.
regen
(regen)
Regenerates the whole drawing, like REGEN. Returns nil.
open
(open file mode)
Opens a text file: "r" to read, "w" to write (emptying it) or "a" to append. Returns the file, or nil if it cannot be opened.
(setq f (open "C:/data/points.txt" "r"))
close
(close file)
Closes the file (and saves what was written). Returns nil.
(close f)
read-line
(read-line file)
Next line of the file, without the line break, or nil at the end.
(while (setq l (read-line f)) (princ l))
Differences with AutoCAD
Without a file it does not read from the keyboard: use getstring.
write-line
(write-line string [file])
Writes the string and a line break to the file (or on the command line). Returns the string.
(write-line "X;Y" f)
findfile
(findfile name)
Path of the file if it exists as given, in the drawing folder or in the APPLOAD trusted folders; otherwise nil.
(findfile "blocks.lsp")
getenv
(getenv name)
Value of an environment variable of the operating system, or nil.
(getenv "TEMP")
Differences with AutoCAD
It does not read the AutoCAD variables stored in the Windows registry.
load
(load file [on-failure])
Loads a .lsp file (the extension can be omitted), looking for it as given, in the drawing folder and in the trusted folders, and evaluates its expressions. Returns the value of the last one. If it is not found, returns on-failure or gives the error LOAD failed. Outside the trusted folders it may ask first, depending on the APPLOAD security setting.