Docs Librecad Org en Latest
Docs Librecad Org en Latest
Release 2.2.x.y
1 About 3
1.1 The Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 The User Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Getting Started 7
2.1 Download and Install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Reference 15
3.1 Fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2 Main Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.3 Drawing Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.4 Snapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.5 Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3.6 Dock Widgets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.7 Drawing Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
3.8 Customizing LibreCAD’s Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
4 User Guides 63
4.1 Setting up a Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4.2 Creating and Editing Entities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.3 The Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
4.4 The Console Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
4.5 Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
4.6 Annotating a Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
4.7 Completing and Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
5 Appendices 97
5.1 Online Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
5.2 Line Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
5.3 Hatches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
5.4 Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
5.5 Common Drawing Scales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
5.6 Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
5.7 Systems of Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
5.8 Calculator Operators and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
5.9 Building from Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
5.10 Contributing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
5.11 License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
i
ii
LibreCAD User Manual, Release 2.2.x.y
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
LibreCAD is a free Open Source Computer Aided Drafting (CAD) application licensed under GPLv2.
The latest information about LibreCAD can be found at librecad.org.
The PDF conversion process on Read the Docs has limitations that affect the PDF version of this document. Our best
efforts has been made to address those limitations where possible, but some issues with tables and images/figures
remain.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
CONTENTS 1
LibreCAD User Manual, Release 2.2.x.y
2 CONTENTS
CHAPTER
ONE
ABOUT
LibreCAD, the web site, wiki and the User Manual are all user supported and represents the efforts numerous volunteers
committing countless hours of time to create, improve and support the application and documentation. Support is free
directly from the large dedicated community of users, contributors and developers.
1.1.2 Features
LibreCAD has the following features:
• reads DWG and DXF files
• writes DXF, SVG, PDF, and more. . .
• drawing entities include line, polyline, spline, circle, ellipse, text, dimension, blocks and hatches
• advanced snapping system
• custom toolbars and menus
• highly customizable user interface
• plugin system
As free software you can redistribute it and/or modify it under the terms of the see GNU General Public License version
2 (GPLv2) as published by the Free Software Foundation.
3
LibreCAD User Manual, Release 2.2.x.y
1.2.1 Conventions
• Internal and external links appear in blue.
• Clicking on the embedded images will display them full size. Click the browser’s “back button ” to return to the
manual.
• Application menu paths are shown in bold and levels are separated with “->”, e.g. File -> New.
• Dialogue box titles are shown in bold with matching case.
• Dialogue box labels are enclosed in quotes, ” ”, with matching case.
• Tab titles are enclosed in quotes with matching case.
• Button labels are enclosed in quotes with matching case.
• Key combinations are shown with the keyboard labels enclosed in square brackets with a “+” between keys, e.g.
[Ctrl]+[C].
• Text typed at the command line (OS commands, CAD commands or coordinates) is shown in a text box:
li
0,0
0,50
k
1.2.2 Contributors
There are many people who have contributed to the LibreCAD User Manual. Those contributions have come via
LibreCAD’s forum, wiki and source code.
Some of those that have contributed, directly or indirectly, include:
4 Chapter 1. About
LibreCAD User Manual, Release 2.2.x.y
1.2.3 Copyright
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license,
visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View,
CA 94042, USA.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
6 Chapter 1. About
CHAPTER
TWO
GETTING STARTED
LibreCAD is available for multiple operating systems and from a variety of sources. It can be used “straight out of the
box” or can be customized to suit the user’s preferences and needs.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
2.1.1 Windows
Links to the MS Windows installers can be found in the Resources section of the appendix. Download the desired
version, stable or a “NightlyBuild” of the installer from the build directory and run the installer (exe file).
ò Note
If you are an OS/X developer, please help us improve the DMG installers and MacPorts LibreCAD package.
7
LibreCAD User Manual, Release 2.2.x.y
2.1.3 Linux
LibreCAD is available in the software repository of many Linux distributions, however the versions in the repositories
may not be the most recent release of LibreCAD. Some distributions may have community supported builds that may
be more recent than what is available in the official software repository.
Packages are available for the following Linux distributions through their respective repositories:
• Debian (Stable and Unstable)
• Ubuntu (Stable and Daily PPAs)
• Arch Linux
• Fedora
• Gentoo
• OpenSUSE
Links to the repository can be found in the Resources.
Ubuntu
Official Ubuntu Repository
LibreCAD can be found in Ubuntu’s “Software Center” for Ubuntu 11.04 (Natty) and later. Search for “librecad” in
the software manager and then download and install it for your system, or to install it from the command line type:
Debian
LibreCAD is available in the main repository of Debian 7.0 (Wheezy) and later. Use your favorite package manager
(e.g. aptitude, synaptic, etc.) and search for “librecad” to install and configure it, or simply from the command line
type:
Debian Unstable
If you are not running unstable (i.e. Sid), and still want to upgrade LibreCAD to a newer version unstable package,
download the LibreCAD debs from “Debian unstable” (Resources), and manually install them in your system by “dpkg
-i”:
2.1.4 Other
FreeBSD
LibreCAD is available from [ports], and can be installed as a binary package:
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
2.2 Configuration
2.2.1 Initial Setup
LibreCAD’s “Welcome” dialog is shown the first time LibreCAD is launched after installation. The dialog prompts the
user to select the Default Unit and the languages to be used for the GUI and for the commands:
LibreCAD then starts with its default configuration and is ready use. Additional configuration as required can be
completed by changing the Application Preferences as shown below.
2.2. Configuration 9
LibreCAD User Manual, Release 2.2.x.y
Status Bar
There are five sections in the status bar. Those sections displays information about current drawing operation and
include coordinates, prompts for the next action, information about the selected entity or entities, and the grid status.
Section Description
Coordinates Displays the absolute coordinates (left) and the relative coordinates (right) of the cross-hair /
cursor. Cartesian coordinates are shown on top and and polar coordinates are bottom. Refer
to Coordinates in Fundamentals of the Reference section for more details on the type of
coordinates.
Next Action Displays a prompt for the next action required for the current command; e.g. ”Specify next
point”, ”Specify center”, etc. Prompts to the left of the mouse icon represent left mouse
button actions and the right represent right mouse button actions.
Selected Display the total number and the combined lengths of one or more selected entities.
Current Layer Displays the active layer. Refer to Layers in Fundamentals of the Reference section for
more details.
Grid Displays the minor and major grid spacing for the X and Y axes. Minor grid spacing is
represented by dots, and the major by dotted lines.
2.2. Configuration 11
LibreCAD User Manual, Release 2.2.x.y
Layout
LibreCAD’s layout and appearance is highly configurable:
• Menus: drop down from the menu bar or can be “torn off” and float anywhere on the display. Click the dashed
line at the top of a menu to detach it.
• Toolbars: can be dragged and dropped to the top, bottom, left, right, or float anywhere on the display.
• Docks Widgets: (e.g. command line or layer list) can also be dragged and dropped to the top, bottom, left, right,
or float within the drawing window. In addition they can be stacked in the same region of the application window
where they will be “tabbed”. Optionally docks can be placed outside of the application window, such as when
using multiple monitors. Drawing tools are also available as dock widgets, but are suited as floating “toolboxes”.
Widgets can also be resized by dragging their edges.
• Style sheets: allow users to change the visual elements of the application’s window decorations; title bars, fonts,
colors, etc. Refer to the Customizing in the Reference section for more details.
Appearance
There are three categories on the “Appearance” tab that allows the
user to change the look and behavior of LibreCAD.
The Graphic View category has options for the snap indicator style
and shape, scroll-bars and grid. Use the Snap Indicator Lines to se-
lect the style for orthogonal (Crosshair, Crosshair 2 or Spiderweb)
or isometric (Isometric) projections. The Anti-alias setting, if sup-
ported by the hardware, when checked will reduce jagged edges of
diagonal lines, circles, etc.
The Language categories allows the the user to select the language
used in the GUI and command line. Supported languages can be
found in the appendix.
Thirdly, the Graphic Colors section allow custom colors to be se-
lected for the snap indicator, drawing background, grid, and other
indicators (selections, highlighted items and Handles). Users can
select predefined colors from the drop down menu or select their own from the color selector.
Path
The Path tab allows users to specify the directory paths to additional
resources; language (“Translations”) and user created or installed
Hatch Patterns, Fonts, Parts libraries and Templates and a “Vari-
able file”. These paths do not override the defaults paths, but are
appended so the default resources are still available.
It is recommended that user defined resource be placed in a user di-
rectory (e.g. home directory on Linux: ~/LibreCAD/Translations,
etc.)
• Translations: Language files for the GUI and / or command
languages.
• Hatch Patterns, Fonts, Parts Libraries: user created or ob-
tained from other sources such as the Parts Library wiki
• Template: specify the full path and filename of a user-defined
drawing template to load when launching the application or
starting a new drawing
• Variable File: load a user-defined variable file when starting
the application (see the Command Line guide for details on
using commands / variables files.)
Defaults
The Defaults tab allows users to specify application-wide defaults.
Drawing Defaults
Unit: Defines the default unit of measure for all new drawings.
The default can be overridden by setting the unit of measure in the
Drawing preferences or template.
2.2. Configuration 13
LibreCAD User Manual, Release 2.2.x.y
Program Defaults
Clear Settings
Startup
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
THREE
REFERENCE
The Reference section provides an explanation of LibreCAD’s user elements, commands, drawing tools and other
features that are needed to create and print drawings. The reference manual provides a brief description of the command
and what parameters are necessary.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
3.1 Fundamentals
To be able to use LibreCAD effectively, there are a few concepts that need to be understood. While a basic drawing or
sketch can be created after the initial setup, as drawings become more complex further consideration to the elements
of a complete drawing is important. This section offers an introduction to some concepts that are required to create a
drawing, but by no means is it exhaustive. The rest of the Reference section provides a description of the tools used to
configure, create and modify drawings. Further general examples and guidance is offered in the User Guide section.
LibreCAD supports two drawing perspectives; orthogonal and isometric projections. Orthogonal projection is the
default perspective for creating two dimensional (2D) drawings. An isometric projection allows LibreCAD to represent
a three-dimensional object in two dimensions, sometimes referred to as “2.5D”. Both projections use coordinates to
locate drawing elements.
15
LibreCAD User Manual, Release 2.2.x.y
LibreCAD also uses a Relative Zero point. It is the last point set having created an entity. It is represented within the
drawing by a small red circle with a cross in it. The Relative Zero point is set temporarily to a new position in a drawing
so that a subsequent coordinates of the next entity can be placed using relative coordinates.
Angles
Angles are also used in LibreCAD. While horizontal or vertical distances are measured in the specified unit, angles in
LibreCAD are always measured in degrees, beginning from 0 degrees horizontally to the right of the origin, or at the
3 o’clock position. Angles entered as a positive value are measured in an anti-clockwise direction. Angles entered as
a negative value are measure in a clockwise direction.
Types of Coordinates
Cartesian
The Cartesian coordinate system is commonly used in most CAD programs. Cartesian coordinates take the form X,Y
where X is measured along the horizontal axis and Y on the vertical axis. Coordinates can also be shown as “positive”
(+) or “negative” (-) values. A specific point in a drawing is located by exact distances from the X and Y axis - for
example a point in a drawing could be “100,75”, as shown here.
16 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Polar
The Polar coordinate system uses a distance and an angle to locate a point in a drawing. In LibreCAD the < symbol
is used to designate an angle when using polar coordinates. Polar coordinates take the form 100<45, indicating a line
100 units long and with an angle of 45 degrees as shown.
3.1. Fundamentals 17
LibreCAD User Manual, Release 2.2.x.y
Absolute
When using absolute coordinates, whether Cartesian or polar, points are entered in direct relation to the origin (0,0).
To do this in LibreCAD enter in the desired point, e.g. “100,75” or “100<45” as shown in the two images above.
Relative
The next point can also be placed relative to the previously placed point. The last point placed when creating an entity
becomes a temporary reference for the next point. The newly set temporary reference is the “Relative Zero point” and
the next coordinates can be entered relative to that point. To define the next point relative to the Relative Zero point,
either cartesian or polar, prefix the coordinates with the “@”. Points without the @ prefix are always interpreted as
absolute coordinates.
For example, when using cartesian coordinates to set a point 75 units to the right and 65 units above of the previous
point, use “@75,65”. In the example shown, the previous point was set at 25 units horizontally and 35 vertically (25,35)
from the origin (0,0). The next point can be set @75,65 from the Relative Zero point at 25,35, resulting in a point at
100,100 absolute (100 units horizontally and 100 vertically from the origin).
Hint
Relative coordinates can also be entered using the x..y format. This format is equivalent to prefixing the coor-
dinates with the @ symbol, but allows for numeric keypad input when using the command line. As an example,
entering coordinates as 75..65 is equivalent to @75,65.
As an example when using a polar coordinates, to place a point 100mm and 45 degrees from the last point drawn at
25,35 (absolute cartesian coordinate) use “@100<45” (relative polar coordinate).
3.1.2 Entities
An entity is a geometric shape; a line, circle, arc, etc. A collection of entities is what forms a drawing. In addition
to the basic information that describes the geometry of an entity, there are two more attributes that further define an
entity:
18 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
• Pens describes the appearance of an entity, either on screen or in printed output with three additional properties:
– Color
– Width
– Line Type
• Layers provide a means to organize drawing and manage the properties of multiple entities.
ò Note
Pen or Layers properties can have a specific meaning, but vary by industry or an organization’s standards and a
complete description is beyond the scope of this manual.
Pen
As with many other aspects of drafting line color, thickness and type assigned to an entity, such as a line or circle are
determined by drafting conventions or common practices. Within LibreCAD, the three attributes are grouped together
as a “Pen”:
• Color - LibreCAD has 16 default colors, but supports the RGB color space (#000000 to #FFFFFF or 16,777,215
colors). The initial color for entities is black.
• Width - The default line width is 0.00mm. Line widths of up to 2.11mm are supported.
• Line Type - The default line type is “Continuous” (e.g. solid). Other line types included with LibreCAD are
Dot, Dash, Divide, Center, and Border.
The pen attributes can be defined for a single entity (via the Properties tool) , by a group of selected entities (via the
Attribute tool), or by layer.
ò Note
3.1. Fundamentals 19
LibreCAD User Manual, Release 2.2.x.y
Just as with entities, “pens” can also be applied to layers. See Layer List Dock for details on setting a layer’s
attributes.
20 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Color
The color for an entity can be selected from the ”Color” selection drop-down menu. The
drop-down menu allows the color to be selected ”By Layer”, ”By Block”, from the ”Custom”
color selector, or chosen quickly from one of the 16 pre-defined colors:
Selecting ”By Layer” will assign the color that was defined for the layer (see above) to the
entity. If the layer’s selected color is subsequently changed all entities on the layer will be
assigned the layer’s color.
When editing a block, selecting ”By Block” will assign the color that was defined for the
block to the added entity. If the block’s color is subsequently changed all entities in the block
will be assigned the block’s color.
Selecting ”Custom” will allow a selection from a palette of 36 colors and shades of grey or
from a user defined colors. User defined colors are created by clicking the Add button
and then selecting the hue and value from the color selection tool. User defined colors can
be modified by right-clicking on a user defined color and selecting a new hue and value. A
maximum of eight user defined colors can be added.
3.1. Fundamentals 21
LibreCAD User Manual, Release 2.2.x.y
Width
The LibreCAD default line thickness is 0.00 mm (hairline) and range up to 2.11 mm. The
range include ISO standard width lines. Line widths vary by purpose; outline, hidden, sec-
tion, etc., and by drawing size; larger drawings utilize thicker lines. In addition to the line
widths, four additional options will show on the drop-down list:
• - Unchanged -: Leave the line width as previously selected.
• By Layer: Adopts the line width set in the layer’s attributes.
• By Block: Adopts the line width used when the block was created.
• Default: Returns the line width to the default (0.00 mm).
Refer to Common Line Widths in the appendix for examples of line thickness by purpose.
22 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Line Type
Other than ”Continuous”, the other non-continuous lines are available in default, ”tiny”
(1/6x default), ”small” (1/2x) and ”large (2x)”. As with line thickness, different types
of lines are used for different purposes. A complete list of line types are shown in the
appendix.
ò Note
Intervals for non-continuous line types with white spaces remain constant when scaled.
”Tiny” should be used in most cases.
Fig. 3: Available Line
Layers Widths (Attributes)
One of LibreCAD’s key features is the ability to use layers. Layers help organize draw-
ings by allowing users to place and manage related entities. Traditional manual drafting
used a similar approach. The layers were often drawn on separate transparent sheets of
paper. These sheets were then overlaid one on top of another to produce final drawings.
Whether for engineering, architectural, construction, manufacturing or other types, lay-
ers were used to show different aspects on the drawing. Layers could be added to show
centre lines or dimensions on an engineering or manufacturing drawings, or to show
different building systems on architectural drawings such as exterior walls, partitions,
electrical, HVAC, grid lines, etc. While one layer can contain multiple entities, every
entity in a drawing can only be associated with single layer. Typically entities with com-
mon functions or attributes are put on the same layer. For example, all the walls in a
floor plan drawing would be put on a layer named “Walls”.
Layers have an added advantage that all the pen attributes can be assigned to a layer.
Every entity on that layer will adopt the attributes that have been assigned to that layer.
However, the attributes assigned by the layer can be overridden for entities if necessary.
In the above example a line thickness can applied to all entities on the “Walls” layer by
changing the “Layer Settings” for that layer.
3.1. Fundamentals 23
LibreCAD User Manual, Release 2.2.x.y
Creating a Layer
Layers are usually created to hold entities with common attributes. Creating a layer is
simple:
• Click the Add a layer icon .
• Specify a Layer Name.
• Optionally specify the Color, Width and Line Type for the layer.
• Click Ok.
Construction Layers
Using a Mouse
Entities’ coordinates can also be located graphically using a mouse or other pointing
device. Using a mouse is less precise, but may be acceptable for rough sketches or other
freehand work. However, the accuracy of using a mouse can be enhanced through the
use of snaps.
The keyboard can be used to select tools and enter coordinates using the command line.
Tools can be selected by typing a command and then entering the coordinate values.
The commands are shown in the Drawing Tools. Coordinates can be entered at the
command line after selecting a drawing tool using the formats as shown previously;
100,75 (Cartesian) or 100<45 (polar), absolute or relative (prefixed with @).
LibreCAD offers an additional method for entering relative coordinates when using the
numeric keypad; type two decimal points .. in lieu of the comma between the X and Y
values. For example, 10..20 is equivalent to typing @10,20. Refer to the User Guides
for more details on using the command line.
24 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Hint
The command line also accepts arithmetic expressions in coordinate values; e.g.
100<45+15 is a valid input for a 60° polar coordinate. For more details see The Com-
mand Line section or Calculator appendix.
Text input may also be required for Tool Options where distance, angle, etc. are needed
with some of the Drawing Tools.
Selecting Entities
Selecting entities allow them to be modified or deleted. Some operations can be applied
to groups of selected entities and other can only be applied to one entity at a time. There
are a variety of ways that entities can be selected:
• Single click on an entity. Holding the [Shift] key while clicking will allow additional
entities to be selected.
• Click and drag a selection box:
– Left to right while moving down or up to select entities enclosed within the selection
window’s boundary (blue selection box).
– Right to left while moving down or up to select entities enclosed within the window’s
boundary and crossed by the selection boundary (green selection box)
• type “sa” at the command line to select all entities.
Deselect selected entities by typing “tn” at the command line or pressing [Esc]. Note
that it might be necessary to press [Esc] twice if a command is active.
Also see the Select tools for additional methods to select and deselect entities.
Entity Handles
Selected entities display “handles”. Left-clicking on and dragging a handles allow the
entities to be manipulated; lengthened, moved or enlarged depending on the type of
entity:
• Entities that consist of a single segment, such as lines, arcs and polyline segments, have
a start handle and an end handle. Either handle can be clicked on and dragged into a
new position.
• Handles on circles or other entities that consist of multiple segments allow it to be ma-
nipulated in a variety of ways depending on the type of entity. For example:
– A rectangle’s corner handle can be dragged to a new position creating other quadrilat-
erals.
3.1. Fundamentals 25
LibreCAD User Manual, Release 2.2.x.y
Ordering Entities
Entities are drawn on a 2D plane, but can overlay each other and have levels that are
independent of layers. Entity can be raised, moved up, or lowered, moved down, with
respect to other entities. Each layer can contain entities that are at different levels. Use
the commands in Tools -> Modify -> Order to move entities up or down.
26 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the
latest build application.
Any help is welcome to add new features and modifications to this
documentation, to close the gap and make the manual more com-
plete.
Hint
The windows top bar is created and handled by your operating system.
Thus appearance and handling may vary.
If just click doesn’t work, try to drag the dashed line to create the floating menu.
The x may be any other symbol and it may also be on the left side, just follow your intuition and close the menu
like any other window on your system.
3.2.1 File
3.2.2 Options
28 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
3.2.3 Edit
3.2.4 View
3.2.5 Plugins
3.2.6 Tools
See Drawing Tools for a description of the drawing tools.
3.2.7 Widgets
30 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
3.2.8 Drawings
3.2.9 Help
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
32 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
3.3.1 Line
Tool Options:
Angle
Draw a line from an assigned point defining the start,
middle or end of the line and with an assigned length and
angle.
Tool Options:
Tool Options:
Tool Options:
Tool Options:
Tool Options:
3.3.2 Circle
2 Points, Ra-
Draw a circle with two points on the circumference and
dius
with an assigned radius.
Tool Options:
Tool Options:
Tangential,
Draw a circle tangential to two existing circles and
2 Circles, 1
assigning a centre point to establish the radius.
Point
Tangential, 2
Draw a circle tangential to an existing circle and define the
Points
diameter and placement by assigning two points on the
circumference.
Tangential,
Draw a circle tangential to two existing circles with a
2 Circles,
given radius.
Radius
Tool Options:
34 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
3.3.3 Curve
Tool Options:
Arc Tangential
Draw a curve (arc) tangential to the end of an existing line
segment with a defined radius or angle (deg).
Tool Options:
or
Tool Options:
Tool Options:
Ellipse Arc
N/A
(Axis)
Freehand Line fhl, free
Draw a non-geometric line.
3.3.4 Ellipse
Ellipse Foci
Draw an ellipse by assigning two foci points and a point
Point
on the circumference.
Ellipse 4 Point
Draw an ellipse assigning four points on the
circumference.
Ellipse Center
Draw an ellipse by assigning a centre point three points on
and 3 Points
the circumference.
36 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
3.3.5 Polyline
Tool Options:
Add node
Add node to existing polyline. (Use “Snap on Entity” to
place new node on segment.)
Append node
Add one or more segments to an existing polyline by
selecting polyline and adding new node endpoint.
Delete node
Delete selected node of an existing polyline.
Delete be-
Delete one or more nodes between selected nodes of an
tween two
existing polyline.
nodes
Trim seg-
Extend two separate non-parallel segments of an existing
ments
polyline to intersect at a new node.
Create
Draw a given number of polylines parallel to a selected
Equidis-
existing polyline with a given distance between lines.
tant Polylines
Tool Options:
Create Poly-
Create polyline from two or more existing separate line or
line from
arc segments forming a continuous line.
Existing Seg-
ments
3.3.6 Select
Hint
When the pointer is in the shape of an arrow, i.e. no tool selected, it is, by default, in a select mode. One can select
single or multiple entities by clicking on them or select multiple entities by mean of a window:
• Drawn from left to right (blue), it will select all entities fully included in it.
• Drawn from right to left (green), it will also select intersecting entities.
Deselecting can be done by pressing the esc key, or Selection Pointer from Edit menu
Select All sa
Select all entities on visible layers ([Ctrl]-[A]).
Select Entity
Select, or deselect, one or more entities (default cursor
action).
(De-)Select
Select or deselected entities connected by shared points.
Contour
Select Win-
Select one or more entities enclosed by selection window
dow
(L to R), or crossed by selection window (R to L) (default
cursor “drag” action).
Deselect Win-
Deselect one or more entities enclosed by selection
dow
window (L to R), or crossed by selection window (R to L).
Select Inter-
Select one or more entities crossed by selection line.
sected Entities
Deselect Inter-
Deselect one or more entities crossed by selection line.
sected Entities
(De-)Select
Select or deselected all entities on the layer of the selected
Layer
entity.
Invert Selec-
Select all un-selected entities will deselecting all selected
tion
entities.
38 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
3.3.7 Dimension
Tool Options:
Linear dr
Apply dimension lines and text at an defined angle to an
entity by selecting start and end points on a line segment
and placement point for the text.
Tool Options:
Horizontal dh
Apply dimension lines and text aligned to an entity by
selecting start and end points on a line segment and
placement point for the text.
Tool Options:
Vertical dv
Apply dimension lines and text aligned to an entity by
selecting start and end points on a line segment and
placement point for the text.
Tool Options:
Radial dimradial
Apply dimension lines and text a circle’s or arc’s radius by
selecting entity and placement point for the text.
Tool Options:
Diametric dimdiameter
Apply dimension lines and text a circle’s or arc’s diameter
by selecting entity and placement point for the text.
Tool Options:
Angular dimangular
Apply angular dimension by selecting two existing
non-parallel line segments and placement point for the
40 Chapter 3. Reference
text.
Tool Options:
LibreCAD User Manual, Release 2.2.x.y
3.3.8 Modify
Move / Copy mv
Move a selected entity by defining a reference point and a
relative target point. Optionally keep the original entity
(Copy), create multiple copies and / or alter attributes and
layer.
Rotate ro
Rotate a selected entity around a rotation point, moving
the entity from a reference point to a target point.
Optionally keep the original entity, create multiple copies
and / or alter attributes and layer.
Scale sz
Increase or decrease the size of a selected entity from a
reference point by a defined factor for both axis.
Optionally keep the original entity, create multiple copies
and / or alter attributes and layer.
Mirror mi
create a mirror image of a selected entity around an axis
defined by two points. Optionally keep the original entity
and / or alter attributes and layer.
Rotate Two
Rotate a selected entity around an absolute rotation point,
while rotating the entity around a relative reference point
to a target point. Optionally keep the original entity, create
multiple copies and / or alter attributes and layer.
Lengthen le
Extend the length of a line entity to an intersecting line
entity.
Tool Options:
42 Chapter 3. Reference
3.3.9 Info
Distance En-
Provides shortest distance selected entity and specified
tity to Point
point.
3.3.10 Others
Tool Options:
Tool Options:
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
3.4 Snapping
Snaps provide the ability to pick precise locations when using a mouse. Various snap tools are available to allow the
user to select different locations on entities or elsewhere in the drawing space when using the grid.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
44 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
3.5 Toolbars
Toolbars provide an alternative to the menus for accessing application functions and drawing tools. See Application
Menu or Drawing Tools for complete descriptions.
Toolbars can be moved any where on the display and left floating, or docked to any of the four sides of the drawing
window, similar to Dock Widgets. Unlike Dock Widgets, icons on a Toolbar are a single row when floating or docked
to the top or bottom of the drawing window and verticle when docked to either side. Also, Toolbars cannot be resized.
3.5. Toolbars 45
LibreCAD User Manual, Release 2.2.x.y
46 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Toolbar:
Circles
Drawing tools for circles. See Tools -> Circle.
Toolbar:
Creators
Access menu and toolbar creators to modify LibreCAD’s interface. Widgets ->
Menu Creator / Toolbar Creator. Also see Customizing LibreCAD’s Interface.
Toolbar:
Curves
Drawing tools for curves. See Tools -> Curve.
Toolbar:
DefaultCustom
Custom toolbar example. Includes MText, Hatch, Insert Image, Create Block,
and Points.
Toolbar:
Dimension
Drawing tools for dimensioning. See Tools -> Dimension.
Toolbar:
Dock Areas
Show or hide widgets. Widgets -> Dock Areas. See Dock Widget Areas.
s Important
Print Preview and Block operations require the use of the Tool Options toolbar as there are no menu or command
line equivalencies. Ensure the Tool Option toolbar is enabled.
The Tool Options toolbar should always be enabled. If the tool options do not appear, from the menu select Widgets
-> Toolbar and enable Tool Options (place checkmark in checkbox). If using the command line, the same tool options
are available via a command line prompt or the Tool Options toolbar.
The Block Insert capability can be expanded through the Tool Option bar features before the block is inserted.
48 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Inserting a block from a library can be enhanced through the Tool Option bar features before the block is inserted.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
• Info,
• Line,
• Modify, and
• Polyline.
Widgets can be placed either on top of an existing widget in any of the dock areas creating a tab for each of the widgets.
Widgets can also be place above or below an existing widget dividing the area into multiple sections.
In addition, dock widgets can be resized by clicking and dragging the edge of the widget’s box. A widget has a minimum
width of five icons and can be no shorter than the default height.
Icon Description
”Show all blocks” - Defreeze, makes all the blocks in the current
drawing visible.
”Hide all blocks” - Freeze, hides all blocks in the active drawing.
”Create a block” - Creates a block from the selected items.
”Add an empty block” - Creates an empty block that can then be
edited is a separate window (see below).
”Remove the active block” - Deletes the highlighted block.
”Rename the active block” - Rename the highlighted block.
”Edit the active block in a separate window” - Open a new drawing
window to edit a new or existing block.
”Save the active block to a file” - Saves the highlighted block to a
file.
”Insert the active block”. - Inserts the highlighted block in the cur-
rent drawing at the specified reference point
Fig. 6: Block List dock example - 3
The lower portion of the dock shows a list of blocks in the current drawing. The blocks
blocks in the above example are named “a3”, “d1”, and “d3”. More details on
creating and using blocks can be found in the User Guides.
50 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
ò Note
LibreCAD is designed with emphasis on mouse input and at the moment some options can be only selected by
using the mouse as there is no equivalent command.
name or partial name of a layer, in the input box to filter the layer or layers.
Wildcards (”*” or “?”) can be used to filter the list to locate similar layer names
(e.g. “*01” would show all names ending by “01”).
The icons on the top of the layer list allow operations to the entire list of layers.
Those operations include:
The lower portion of the dock shows a list of layers in the current drawing and
are listed in alpha-numeric order. In the example above the layers are named
“Layer01”, “Layer02”, and “Layer03”. Note that layer 0 is a special layer and
should not be used for general drawing purposes.
Icons to the left of each layer act on the layers individually. The layer operations
are:
Icon Description
/ Show / hide the selected layer. (Defreeze / Freeze)
/ Lock / unlock the selected layer. (*)
/ Print / don’t print the selected layer. (*)
/ Toggle construction lines. (*) A layer designated as a ”Construction Layer” is special layer used
to create reference geometry to help align other drawing entities. Construction lines are intended
as temporary guide lines and drawn to ”infinity”.
52 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
Attribute Description
Layer Name The default layer name is “O”, but any alpha-numeric label
can be used. New layers are created with the name of the
highlighted layer with a sequence number appended. Layers
are sorted in the list alpha- numerically.
Construc- Toggle the construction lines off / on.
tion Layer
Default Pen:
• Color: Select from default or custom colors.
• Width: Select from predefined line widths from 0.00
to 2.11 mm.
• Type: Select from predefined line types: Continuous,
or Dot, Dash, Dash Dot, Divide, Center, or Border
(normal, “tiny”, “small”, or “large”).
More details on creating and using layers can be found in the “Drawing Setup”
section of the User Guides.
The Library Browser Dock shows blocks available from the defined libraries
and allows users to insert blocks into the current drawing. To insert a block,
select a block from one of the categories by clicking on it, e.g. “d1” and click
the “Insert” button. Specify a reference point in the drawing window with a
mouse click or by entering coordinates at the command prompt. Once inserted
into the drawing, the block is shown in the Block List Dock.
LibreCAD includes several libraries and additional libraries can be specified
by defining a path to user libraries in the Application Preferences, “Path” tab
as shown in Getting Started.
Once colors have been added to the list, set the active pen color by double-
clicking a favorite color.
Right-clicking a favorite color allows users to:
• Select all objects of a specific color and clicking on “Select objects”
• Change the color of all selected objects by clicking on “Apply to se-
lected”
• Delete a favorite color by clicking “Remove”
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest
build application.
Any help is welcome to add new features and modifications to this documen-
tation, to close the gap and make the manual more complete.
3.7.1 Paper
The Paper tab is used to define the size, orientation and margins of the page used when generating output. The output
can be as a physical printed page or an electronic form such as a PDF. Layout of the page with specified settings may
be checked in Preview section. The paper format is also used when previewing a drawing (File -> Print Preview).
To be able to generate output, users must select a paper size and orientation. Paper sizes include ISO, ANSI and other
sizes. Sizes of the select page are shown in the current unit of measurement. Custom sizes can also be select by
choosing Custom from the drop-down box and specifying the paper width and height.
Orientation can be selected for any page size and is either Landscape (long edge horizontal) or Portrait (long edge
vertical).
Margins determine the printable area of a page. Specified fields at the edges of the page are marked with gray color
and always stay empty on the output.
If tiled printing is used to output the drawing, use Number of pages section to set a horizontal and a vertical number of
pages. For more details about the tiled printing refer to the Printing Guide.
54 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
3.7.2 Units
The Units tab allows users to set the Main drawing unit to the preferred unit of measure and the format of linear and
angular dimensions. The “Main Unit” setting overrides the default set during LibreCAD’s initial application configu-
ration. The same units of measures are as noted in the appendix are available for the drawing’s preferences.
ò Note
These preferences format the display of linear and angular units on the status bar. They do not affect the appearance
of dimensions in the drawing. See Dimensions below for configuring dimensions’ format.
Length Format
Angle Format
3.7.3 Grid
The grid provides an evenly spaced guides to assist with placing entities. When used with snaps place can be precise.
The Grid tab has the following options:
• Show Grid: Toggles the grid markers between visible or not visible. The grid can also be toggled with [Ctrl]-g
or by using the grid button of the view toolbar. This setting does not affect the use of “Snap to Grid”.
• Grid X and Y Spacing: Sets the minimum frequency of the grid markers. Values can be selected from the drop-
down box. Other values can be typed directly into the text box. Auto sets the frequency of markers to a spacing
suitable to the current zoom level.
• Orthogonal or Isometric Grid: Selects the grid to use. Orthogonal place the grid at right angles to the X and Y
axis. Isometric places the grid at 120 ° intervals for guiding isometric drawings.
• Cross-hair: Toggles the orientation of the cross-hairs (right, left, or top) when used with Isometric Snap indicator
lines (see Application Preferences).
3.7.4 Dimensions
The dimension preferences affect how dimensions appear on the drawings. Settings include:
• General scale:
• Text & position:
• Extension lines:
• Dimension lines, arrows & ticks:
56 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
• Format units: setting for linear and angular dimensions. These settings are independent of the preference defined
in the Drawing Prefences.
Setting Description
General Scale Adjusts the sizes of the text and arrows by the factor provided.
Text size & position
Length factor Adjusts the dimension value by the factor provided. The entity remains the length
as drawn.
Text Style Sets the font used for dimension text.
Text Height Sets the text height, measured in the units defined on the Units tab.
Text alignment Aligns the text parallel and offset to the dimension line or horizontal centered
on the dimension line.
Dimension line gap Sets the space between the dimension line and the dimension text.
Color Set the color of the dimension lines and text.
Extension lines
Offset Gap between entity and dimension extension line.
Enlarge Length of extension line beyond dimension line.
Fixed length Fixed length of extension line measured from the dimension line towards the
dimensioned entity.
Color Extension line color, independent of layer settings.
Width Extension line width, independent of layer settings.
Dimension lines, arrows and ticks
Arrow size Length of dimension (and leader) arrow.
Tick size Length of dimension tick to from end of dimension line in each direction, e.g.
a length of 1 will result in a total length of 2 units. (Anything greater than ‘’0”
will result in a tick instead of a dimension arrow).
Color Tick line color, independent of layer settings.
Width Tick line width, independent of layer settings.
Format units
Linear units (See Length Format under Units above.)
Linear precision (See Length Format under Units above.)
Linear zeros Remove leading, trailing, 0’ and / or 0” from linear dimensions.
Decimal separators Set the decimal separator to a period [.], or comma [,].
Angular units (See Length Format under Units above.)
Angular precision (See Length Format under Units above.)
Angular zeros Remove leading or trailing zeros from angular dimensions.
3.7.5 Splines
The single parameter Number of line segments per spline patch affects the ‘smoothness’ of a spline. The greater the
value, the ‘smoother’ the spline will be drawn.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
58 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
2. Select an action from the left-hand list and use the right arrow (or double-click on the action) to add it to the new
menu (right-hand list).
3. Drag and drop the items on the right-hand list to arrange the actions in the menu.
4. Click the Create button.
To edit an existing menu:
1. Select the menu from the Name drop-down box.
2. Add additional items as described above.
3. To remove an item from the menu, select an action from the right-hand list and use the left arrow (or double-click
on the action) to remove it from the menu.
4. Drag and drop the items on the right-hand list to arrange the actions.
5. Click the Update button.
To delete an existing menu:
1. Select the menu from the Name drop-down menu.
2. Click the Destroy button.
A custom pop-up menu needs to be assigned to a mouse button to make them accessible:
1. Click the Assign button
2. Enable one or more of the activators (“Double-Click”, “Right-Click”, “Ctrl-Right-
Click”, and / or “Shift-Right-Click”) with a check in the check-box.
3. Click the Save button
Example
A style sheet can be as simple as:
Or as a more complex example, save the following text as alpha.qss or alpha.txt, and then load the file with Options ->
Widget Options -> Style Sheet:
60 Chapter 3. Reference
LibreCAD User Manual, Release 2.2.x.y
/* Layer List */
QTableView
{
selection-background-color: #ccffcc;
selection-color: Blue;
font-size: 16px;
font-family: "Arial";
}
QMenu
{
padding: 4px;
font-size: 16px;
}
QMenu::item
{
padding: 2px 25px 2px 20px;
border: 1px solid transparent; /* reserve space for selection border */
}
QMenu::item:selected
{
border-color: darkblue;
background: rgba(240, 255, 255, 150);
}
QMenu::icon:selected
{
border-color: darkblue;
background: rgba(255, 255, 255, 255);
}
QToolBar
{
background-color: rgb(230, 230, 230);
spacing: 3px;
padding: 4px;
}
QToolButton
{
background-color: #eeeeee;
border-style: outset;
border-width: 2px;
border-radius: 2px;
border-color: beige;
font: 12px;
padding: 2px;
}
QToolButton:hover
{
border-color: grey;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #dadbde, stop: 1 #f6f7fa);
}
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
62 Chapter 3. Reference
CHAPTER
FOUR
USER GUIDES
The User Guide brings together many other parts of the user manual and will show how to use a variety tools to
create and modify drawings. The user guides provides examples of tasks performed with LibreCAD. The tasks are
generic in the sense that they can be applied to any drawing. The examples provided in the guides build on the previous
examples and when complete will provide a finished drawing that uses many of LibreCAD’s features. Be sure to read
through the Reference section, particularly the Fundamentals, the Drawing Tools and the Snapping sections to obtain
an understanding of the basic operation of LibreCAD and its various tools.
The example drawings in the User Guides use LibreCAD’s default configuration with the exception of the drawing
window’s background color. It has been changed to light grey (#e6e6e6) in Options -> Application Preferences ->
Appearances tab, “Background” color under “Graphic Colors”. The Exercises provide the opportunity to use the
examples to create the sample drawing used in the User Guide.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
63
LibreCAD User Manual, Release 2.2.x.y
If multiple options are available for the paper size, setting the paper size after drawing the object but prior to
dimensioning the drawing will help determine the print scale, the “General scale”, and subsequently the appropriate
line spacing for dimensions. See Dimensioning for additional information.
While any scale can be used when printing a drawing there are commonly used scales for different types of drawings.
Refer to Scales in the appendix for some examples.
Be sure to allow room on the drawing for dimension lines and text when determining the print scale. More details
on printing a drawing are found in the Printing Guide.
4.1.3 Layers
Using layers to organize drawings and assign pen attributes to the entities on the layer is an important concept. Refer to
Layers in Fundamentals and the Layer List Dock under Dock Widgets in the Reference section for additional details
on using layers.
In LibreCAD, layers are managed using the Layer List Dock. Use the Layer List Dock to add and remove, show and
hide and modify the layer’s attributes. Creating a layer is simple:
1. Click the Add a layer icon .
2. Specify a Layer Name.
3. Optionally specify the Pen Color, Width and Line Type for the layer.
4. Click Ok.
The first layer added defaults to the layer name “noname”, but the name can be replace with any alpha-numeric text.
Additional layers add will adopt the name of the currently selected layer and append a sequential number, but can also
be renamed.
Layer 0 is a special layer and should not be used for general drawing purposes. Create at least one additional layer
for the drawing.
Prefix the layer name with a sequential number when naming the layer to help sort the layers in the dock list. Layers
are listed in alpha-numeric order, e.g. 1a, 1b, 2a, 2b, etc.
Use “Construction Layer” to create reference geometry to help align other drawing entities.
Layers that have been completed can be locked. Locking layers prevents accidental changes and can improve the
performance when working with very large complex drawings.
Hiding layers while drawing reduces the visual complexity and makes it easier to focus on the current drawing
efforts.
4.1.4 Templates
Having to set the unit, page size, layers, etc. each time a new drawing is created can be avoided by using templates.
Templates are prototype drawings that provide a method to save a drawing’s configuration so it does not need to be
defined each time a new drawing is started. A template’s configuration can include the settings defined in the Drawing
Preferences, such as the page size, unit of measure, and the dimensioning format. Templates can also include layers
and other drawing elements such as a border and / or a title block. These settings and drawing elements are inherited
by a new drawings created from the template.
When LibreCAD is launched it creates a new drawing using a default template. The default template is also used when
a new drawing is created within LibreCAD by selecting File -> New or clicking the New icon . The new document
is initially called “unnamed document 1”. Any addition new drawings created while LibreCAD is still open will be
number sequentially; “unnamed document 1”, “unnamed document 2”, and so on. New drawings inherit the template
drawing contents, but do not take the template’s name as a file name. Users are prompted for a file name when saving
the drawing.
User-defined templates can be created to suit various purposes such as different page sizes or orientation, unit of
measure, etc. User-defined templates can be used by selecting File -> New From Template or clicking the New from
Template icon and then selecting the desired template file. See “Creating Templates” below.
Creating Templates
Templates are created starting with a new drawing, setting the desired Drawing Preferences, and adding any required
drawing elements (e.g. layers, borders, etc). To create a template, starting with a blank drawing:
1. Set the the drawing preferences by selecting Options from the menu bar and then Current Drawing Preferences.
1. On the “Paper” tab set the paper size, orientation and margins as desired.
2. Select the “Units” tab and set the “Main Drawing Unit”. (Note the “Length” and “Angle” settings configure
the status bar format and not the dimensioning format that appear on the drawing.)
3. Click the “Dimensions” tab and adjust the values.
4. Check the remaining tab, “Grid” and “Splines” and adjust those settings if necessary.
Default Template
LibreCAD includes a default template, “empty.dxf”, that is installed with the application and found in the resources
directory. It is used initially as the default template for all new drawings. A user-defined template can be used instead of
the default by specifying the new template in the Application Preferences. From the Options menu select Application
Preferences and click on the “Paths” tab. Enter the path and filename of the template to be used as the default. The
specified template is used instead of the default LibreCAD template when the application is launched and for new
drawings.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
ò Note
The examples below use both the the command line and the mouse for input. In cases where the command line
is used and additional input is required because of a Tool Option (see Drawing Tools) see the note below the
command text. Where the mouse is the primary form of input, the instructions are provided in a numbered list.
li
10,10
10,110
k
The first set of coordinates place the starting point of the line at 10 units horizontally and 10 units vertically from the
origin (0,0). The second set places the end point of the line at 10 units horizontally and 110 units vertically from the
origin (0,0), resulting in a vertical line 100 units long.
Or, using relative Cartesian coordinates:
li
10,10
@0,100
k
The “@” designates relative coordinates. The @0,100 relative Cartesian coordinates places the next point 0 units
horizontally (X axis) and 100 units vertically (Y axis) from the point previously placed at 10,10.
It can also be done with relative polar coordinates:
li
10,10
@100<90
k
The “<” designates a polar coordinate. The @100<90 polar coordinate places the next point 100 units 90 degrees from
the X axis of the point previously placed at 10,10.
The same line can also be drawn using just the mouse:
1. Enabled Snap on Grid .
2. Select the 2 Points line tool .
3. Click at 10,10 (use the Status Bar to locate the absolute coordinates)
4. Click at 10,110
5. Press [Esc] or right-click twice to exit the command.
Other tools can also be used achieve the same result:
ver
10,10
ò Note
Ensure the Length is set to “100” and the Snap Point: is “Start” in the “Tool Options” text box.
All the above examples create a line of the same length with the same start and end points. These examples help
illustrate the multiple ways to achieve the same result. The use of a particular tool may be determined by the next
operation that allows the drawing to be quickly extended. A good understanding of the available tools allows the user
to select the appropriate tool for the current operation.
While the above example always start at 10,10, the initial point can be placed anywhere:
li
10,110
10,10
k
Drawings are generally created with multiple lines segments with the end of one segment being the start of another.
Lines can be drawn with multiple connected segments by using the end of the current segment as the starting point
and defining the end point of the next segment. Further, additional points can be defined using any of the methods
previously shown:
li
10,110
10,10
@125,0
@50<90
k
Fig. 1: Example #1
Using the mouse, or another pointing device, along with the snapping tools provide an alternative to using the command
line for creating drawings. As with the command line, there are multiple line tools that can be used to produce the same
result. For example, adding the to the the previous example, a horizontal line can be added using various methods:
1. Click the 2 Points line tool icon .
2. Enable the Snap on Endpoints and click close to the end of the line at absolute coordinate 10,110.
3. Drag the mouse to the right and, with the Snap on Grid enabled, place a point at absolute coordinate 85,110.
Clicking the mouse should result in a horizontal line ending at precisely at 85,110.
4. Press [Esc] or right-click to exit the command.
Hint
It may be necessary to “Zoom In” to ensure the grid is at the correct resolution to be able to accurately place a line’s
start or end point.
A combination of the 2 Points line tool the Restrict Horizontal tool can also be use as an alternative to Snap on
Grid .
Alternatively, a horizontal line can be added:
1. Click the Horizontal line tool icon . On the “Tool Options” tool bar specify a length of 75 units and the “Snap
Point” at the “Start”.
2. With the Snap on Endpoints enabled click close to the end of the line at absolute coordinate 10,110. Clicking
the mouse should result in a horizontal line ending at 85,110.
3. Press [Esc] or right-click to exit the command.
Fig. 2: Example #2
Being that the end points of the existing lines have been established, the outline can be completed quickly with the
addition of a line:
1. Click the 2 Points line tool icon .
2. Enable the Snap on Endpoints and click close to the end of the line at absolute coordinate 85,110.
3. Drag the mouse to the right and down and place a point close to 135,60. Clicking the mouse should result in a
line angled down and to the right, closing the object’s outline.
4. Press [Esc] or right-click twice to exit the command.
Whichever of the above methods is used, the result should be similar to:
Another option is to draw the line at the desired angle:
1. Click the Angle line tool icon . On the “Tool Options” tool bar specify an Angle of “135”, a Length of “80” units
and the Snap Point at the “Start”.
2. With the Snap on Endpoints enabled, click close to the end of the line at absolute coordinate 135,60. Clicking
the mouse should result in a line angled up and to the left.
3. Press [Esc] to exit the command.
This option will result in a image similar to what is shown above, but with the diagonal line being a bit too long. The
line can be trimmed to suit (see “Modifying Entities” below):
Fig. 3: Example #3
ò Alternate Approach
All of the above examples create the object by drawing individual
lines. A completely different approach is to start with a rectangle:
rec
10,10
@125,100
k
And then modify it with the “Bevel” tool (see below).
Circles can be added in a similar fashion. It can be drawn with the “Center, Point” tool by specifying the coordinates
for the centre of the circle and of a point on the circumference:
ci
50,70
@0,20 Fig. 5: Alternate Approach
k
Fig. 6: Example #4
ò Alternate Approach
Continuing with the alternate example - starting with a rectangle
- the shape can be modified as required with the Bevel (or “cham-
fer”) tool. Its operation is similar to the fillet tool:
1. Click the Bevel tool icon . Ensure with “Trim” is checked,
and “Length 1” and “Length 2” is set at “50” in the “Tool
Options”.
2. As prompted on the Status Bar, select the first entity (the top
horizontal line of the rectangle), and then
3. the second entity (the right vertical line of the rectangle).
4. Press [Esc] or right-click to exit the command.
A rounded corner can be added to the drawing’s the lower left corner with
Fig.the Fillet tool:Approach - with the circle
7: Alternate
1. Click the Fillet tool icon . Ensure with “Trim” is checked and “Radius” is set at “10” in the “Tool Options”.
2. As prompted in the “Command Line” dock, and on the Status Bar, select the first entity (the bottom horizontal
line of the rectangle), and then
3. Select the second entity (the left vertical line of the rectangle).
4. Press [Esc] or right-click to exit the command.
The drawing should appear as:
Fig. 8: Example #5
Example 3a above left a diagonal line that is too long. The length can be easily trimmed:
1. Click the “Trim” icon
2. Click the top horizontal line. This line is the “limiting entity” that determines where the second line is going to
be trimmed to.
3. Click the line to be trimmed, the “entity to trim” anywhere along the line that is to be kept (below the top
horizontal line).
4. Press [Esc] or right-click to exit the command.
s Important
These examples do not provide an example of every tool available in LibreCAD, but is intended to show the basic
operation of some of the drawing and modifications tools. Most of the other drawing and modifying tools work in
a similar manner. Being familiar with the Drawing and Modify tools in the Reference section will help determine
what tool can be used in a particular situation.
These examples also illustrate that there are multiple ways to achieve the same result using a variety of methods.
There is no one best method. The particular method used may depend on the state of the drawing and how existing
entities can be used to build on, or perhaps it is a simple matter of using a preferred drawing / modifying tool.
Hint
Working on circle and arc with the Trim command can be confusing, and not working in the way we wish. At
certain constellations it might work, at others it doesn’t.
Circles and arcs have running directions, usually counterclockwise from starting to ending point. For a circle
start/end are both at 0 degree (center in +X direction).
It’s generally easier to cut them up with Divide at the desired points and Delete the unwanted parts.
Change an entity’s layer is similar with both the Attributes and Properties tools.
Using the Attributes to change an entity’s layer:
1. Select the entity (or entities) to be moved to a different layer.
2. From the menu select Tools -> Modify -> Attributes, or click the Attributes icon .
3. In the Attributes dialog, select the desired layer from the drop-down Layer selection box.
4. Click Ok.
Hint
Entities can also be moved from one layer to another by selecting one or more entities and then selecting the new
destination layer in the Layer List dock. To use this method the Modify layer of selected entities, at layer activation
option on the Application Preferences Defaults tab must be enabled.
In a similar manner the color, width and/or line type can be changed:
1. Select the entity (or entities) to be moved to a different layer.
2. From the menu select Tools -> Modify -> Attributes, or click the Attributes icon .
3. In the Attributes dialog, select the desired pen attribute from the drop-down Color, Width and/or Line type selec-
tion box.
4. Click Ok.
The Properties tool operates in a similar manner, but the tool need to be selected before selecting an entity:
1. From the menu select Tools -> Modify -> Properties, or click the Properties icon .
2. Select the entity.
3. In the Properties dialog, select the desired layer or pen attribute from the appropriate selection box.
4. Click Ok.
Geometry (Properties)
The Properties tool also allows the geometry of an entity to be changed. The geometry is the information used to
describe the entity. The geometry available depends on the type of entity, for example:
Some entities, such as a polyline, have limited properties available that can be changed. Other entities, such as Text,
have many properties that can be changes (including the text itself).
Also, the properties of a specific entity type, e.g. line, does not vary even if the specific tool used to create the entity
varies. A line drawn with the 2 Point line tool will have the same properties as a line drawn with Angle tool.
MText MText
Text, font, text height/angle/line spacing, alignment, special
characters
Orthogonal View
Orthogonal drawings use multiple views to pro-
vide a complete description of an object. Each
view of an orthogonal drawing is parallel to the
axes. Normally a front (the most complex view),
top and right view are added to the drawing. Ad-
ditional views; back, left and bottom can be added
if necessary.
Orthogonal drafting beyond the scope of the Li-
breCAD User Manual, but additional resources
and examples are available in LibreCAD’s wiki or
elsewhere on the web.
Isometric View
Isometric drawings represent an object on three
axes in a two-dimensional drawing. Isometric
drawings uses the same tools for creating, mod-
ifying and changing attributes as an orthogonal
drawings, but on a grid configuration specific for
an isometric perspective. Set the grid to suit an
isometric perspective on the Grid tab of Drawing
Preferences. Selecting “Isometric Grid” displays
the grid on three axes (X,Y,Z) allowing 3 dimen-
sional drawings to be drawn in a 2D view.
In addition to setting the grid for isometric draw-
ings, the “Snap indicator lines” on the Appear-
ance tab of Application Preferences can be set to
“Isometric” to assist in with locating entities on
the grid. The “Isometric” crosshairs can be con-
figured to Left, Top or Right to further aid in lo-
cating points on the grid.
Isometric drafting does require some techniques
unique to isometric projection and is beyond the
scope of the LibreCAD User Manual, but ad-
ditional resources and examples are available in
LibreCAD’s wiki or elsewhere on the web.
Command:
li
Specify first point
0,0
Specify next point
@10,0
Specify next point or [close/undo]
@0,10
Specify next point or [close/undo]
@-10,0
close
• In addition to the comma separated coordinates, relative coordinates can also be entered using the format
X..Y, i.e. typing 10..20 is equivalent to @10,20. For users who prefer entering numbers using the numeric
keypad, using the two decimals is faster than typing the comma.
• The Keycode Mode permits the use of two letter commands and eliminates the need to press [Enter] after
typing the command.
• Pressing the [Space-bar] is an alternative to pressing [Enter] after each command.
The available commands are shown in the Tools reference. Many of the commands have multiple forms. For example
the 2 Points line tools can be selected on the command line by typing l, li, or line. Many tools display the Tool
Options toolbar when selected. Some tools will also provide command line prompts in addition to the Tool Options.
For example the “Parallel” line tools displays:
• a command prompt: Specify Distance <10> or select entity or [through]
li
0,0
@10,0
@0,10
@-10,0
c
k
Save the file as multiCmd.txt. In LibreCAD select “Load Command File” from the the drop-down menu by clicking
the command line button. Locate the file and click the Open button. The above commands will draw a 10×10 square.
Multi-command input can be assigned to a variable and variables can also contain other variables (they are read recur-
sively):
a=ci;0,0;10
b=ci;10,0;10
c=\a;\b;kill
\c
Enter each line of the text above on the command line. When \c is entered, two overlapping circles with a radius of 10
units are drawn. The \ character is an escape character that allows the command line to interpret the variable name as
an action. In the above example, \c expands to ci;0,0;10;ci;10,0;10;kill.
A “variable file” can be set to load at startup via Application Preferences -> Paths -> Variable File. Save the first three
line of the above example to a text file and configure the path to the text file. Restart LibreCAD and when \c is entered
at the command line the two circles are drawn.
ò Note
The # character defines a comment, so everything following this will not be considered by LibreCAD.
...
l line
li line
...
Aliases can be added or modified to suit users’ preferences. The file is found in the following locations:
• Linux: $HOME/.local/share/LibreCAD/LibreCAD/librecad.alias
• Windows: C:\Users\ {UserName}\AppData\Local\LibreCAD\librecad.alias
• macOS: $HOME/Library/Application Support/LibreCAD/librecad.alias
s Important
Only change the alias and not the long untranslated form.
4.3.4 Calculator
LibreCAD includes a built-in calculator that uses the command line interface. Typing cal on the command line toggles
the calculator mode on and off. With the calculator mode on, math expressions typed on the command line will display
the results in the output window, e.g. typing 1+1 displays 1+1 = 2 in the output window. Some other examples are:
sqrt(3^2 + 4^2) = 5
sin(pi/6) = 0.5
6^5 = 7776
If the cal mode is off, entering a math expression will result in an error message such as Unknown command: 1+1.
A complete list of operators and functions can be found in the appendix.
ò Note
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
4.5 Blocks
Blocks are reusable drawings of commonly used objects such as bolts, furniture, electronic components, title blocks,
etc. Inserted blocks, also called instances or inserts, are composed of geometric shapes (lines, arcs, etc.), but can also
include text and dimensions. Blocks can be created in the current drawing, inserted from the block library, or imported
from a separate drawing file, Once inserted blocks can be used repeatedly within the drawing.
4.5. Blocks 81
LibreCAD User Manual, Release 2.2.x.y
Fig. 11: Example of the Doohickey drawing with blocks, including the page border from the Library Browser (“sheets
-> A4H”) and a block imported from a drawing file (isometric view).
s Important
Layer “0” has a special significance. It is the default layer for new drawings. More importantly in the context of
blocks, it is equivalent to “no layer”, similar in the way that color “By Block” is equal to “no specified color” or
line type “By Block” is equal to “no specified line type”. Generally layer “0” should only be used when creating
blocks and should be the only layer in a drawing for a block.
Pay particular attention to the Attributes when creating blocks. In addition to the specific attributes, pen attributes
(Color, Width, Line Type) also include “By Layer” and “By Block”.
• Blocks with specific attributes (e.g. color set to blue, width set to 0.18 mm, etc) will retain those attributes
when inserted into a drawing. The block needs to be edited to change any of the attributes.
• Blocks with the attributes set to “By Layer” will adopt the attributes of the layer they are inserted in to. The
block’s attributes will change if the layer’s attributes are changed.
• Blocks with the attributes set to “By Block” will initially adopt the attributes assigned to the layer. The
attributes can be changed with the Attribute tool.
Inserting Blocks
Blocks can be inserted from the Block List or from the Library Browser (see below). When inserting a block from
the Block List, the Block List Tool Options toolbar is displayed:
• Block can be rotated by the specified Angle and scaled by the Factor.
• A pattern of blocks can be created by specifying the number of columns and rows in the Array and Spacing
between the columns and rows.
4.5. Blocks 83
LibreCAD User Manual, Release 2.2.x.y
ò Note
When the Angle, Scale, Array size and Spacing are all applied to an array of blocks, the array is created as follows:
• the scale, number of columns / rows and spacing is applied to the blocks in the array, and then
• the entire array is rotated around the lower left corner of the array.
• The blocks are rotated as the array is rotated and the spacing remains as defined even if the block entities are
scaled.
Using an array will treat all blocks in the array as a single block instance. Selecting one entity of the array will
select the all blocks in the array. To keep instances separate, insert multiple instances from the block list or create
additional copies with the “Move / Copy” tool or normal edit commands (cut, copy, paste).
Editing a Block
1. Select a block in the Block List and click the Edit the active block in a separate window icon .
2. Edit the block as necessary.
3. Close the block’s drawing window and the block will be saved and all instances of the block will be updated in
the current drawing.
Saving Blocks
Blocks can be saved to a separate file and used in other drawings or added to a user-defined library. To save the block:
1. Select a block in the Block List.
2. Click the Save the active block to a file icon .
3. Select a file location, specify a file name and click Save.
ò Recommendation
When saving blocks to be added to the library it is recommended that the block’s entities be placed on layer “0”
and layer “0” is the only layer in the drawing. Any additional layers in the block’s drawing will be added to the
new drawing when the block is inserted. The additional layers may have unintended consequences.
Inserting Blocks
ò Recommendation
When using blocks from the library, insert a single insert from the Library Browser and then insert subsequent
instances from the Block List. Inserting the block from the Block List retains the link between instances of the
same block insert. If a block is edited from the Block List, all instances of the block will show the changes.
Only insert multiple inserts of a block from the Library Browser if they are to be independent.
To use blocks from the Block Library, select the block from the tree view and insert it in the drawing. Blocks inserted
from the library can be rotated and scaled through the Library Browser Tool Option toolbar:
The rotation angle and the scale factor behave as they do for a block inserted from the Block List.
To insert a block:
1. Select a layer for the inserted blocks.
2. Select a block in the Library Browser.
3. Click on the Insert button.
4. Set the rotation angle and scale as needed.
5. Place the block at the desired location within the drawing.
6. Adjust the options as needed and place additional copies of the block or press [Esc] to exit the command.
4.5. Blocks 85
LibreCAD User Manual, Release 2.2.x.y
The easiest method of installation, which does not require or Linux Root privileges or Windows Administrator
access, is to create a new directory such as “Parts_Library” in the home directory or “Documents” folder. The
path to this directory would be something similar to “/home/{Username}/Parts_Library/” or “C:\Users\ {User-
name}\Documents\Parts_Library\ “. Blocks and libraries can then be placed under the parent “Parts_Library” directory.
The sub-directories will create categories that will appear in the tree view of the Library Browser.
s Important
Do not place blocks directly in the parent directory of the parts library. Blocks must be placed in sub-directories to
the parent libraries directory to appear in the Library Browser.
To include the new blocks in the Library Browser tree view, edit LibreCAD’s Application Preferences to add the path
to the directory or folder with the user-defined blocks. From the menus, select Options -> Application Preferences
and select the Paths tab. Type the full path to the part library, e.g. /home/{Username}/PartsLibrary/ or C:\Users\
{Username}\Documents\PartsLibrary\ , into the text-box labelled “Part Libraries” and click “OK”. Click the Rebuild
button on the Library Browser dock and the new libraries will appear in the tree view.
ò Note
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
4.6.1 Dimensioning
Dimensions are used to define length, width, height, and/or angle of a line entity, the diameter of circle entity, or radius
of arc entity. A drawing’s dimensions must be:
• Accurate
• Legible
• Complete
Types of Dimensions
LibreCAD supports the following types of dimensions:
Type Description
Aligned Places the dimension parallel to a line between the two endpoints of the dimension.
Linear Dimension between two points from any angle of interest. The default is 0 (horizontal) and is
changed via Tool Options toolbar.
Horizontal Horizontal Dimension between two points.
Vertical Vertical Dimension between two points.
Radial Radius of an arc.
Diametric Diameter of a circle.
Angular Angle between two lines or linear parts of objects.
Leader Not a dimension per se, but used for notes in drawings.
Complete descriptions of the dimensioning tools and related options are found in Drawing Tools of the Reference
section.
Dimensioning Appearance
A dimension consists of several parts:
The appearance of the dimensions are configured in the Dimensions tab in the Drawing Preferences. As with many
other aspects of a drawing’s setup, there are some generally accepted values for dimensioning:
The size of each dimension component: “Text Height”, “Arrow size”, etc. should be set to the desired “real world”
size in the configuration. That is to say if the desired text height is 2.5 mm when printed, the “Text Height” should
remain set as 2.5 mm. If the drawing is printed full scale (1:1) the dimension text will appear correctly. However if
the drawing is scaled up or down the “General Scale” needs to be adjusted accordingly. The “General Scale” is set
to the inverse of the printing scale. For example, if the printed scale is determined to be 1:4, the “General Scale”
should be set to 4 (4:1).
The minimum spacing between dimension lines needs to be scaled with the drawing. For example, if the drawing
is 1:10, the spacing will need to be adjusted to 60 mm between dimension lines and 100 mm from the entity.
Additional information can be found in the Drawing Setup and Printing guides.
A few rules will help to ensure dimensions are accurate, legible and complete:
• There should be only one way to interpret any one dimension.
• Dimension and extension lines should not cross.
• Extension lines and entity lines should not overlap.
• Provide space between dimensions to ensure legibility.
• The view that best shows an entity is the view that should be dimensioned.
• Each entity on the drawing should be dimensioned and dimensioned only once.
• There should be no need to calculate or scale a dimension of an entity.
• A dimension should be referenced to a logical origin point.
• When there are multiple lines of dimensions, the longer dimensions are to be placed outside of shorter ones.
• Except for large circles and arcs, all dimensions should be placed outside the part and spaced 10mm / 3/8”
from the entity.
• Dimension circles with diameters and arcs with radiuses.
• Center lines or center marks should be used on all circles and arcs.
• Extended a circle’s or arc’s center lines and use as extensions line when possible.
• Multiple lines of dimensions are spaced uniformly with a minimum of 6mm / 1/4” between dimension lines
(see note above).
• Use arrow heads or slash marks at the end of the dimension lines.
To improve legiblity, make corrections, or make adjustments after scaling a drawing, dimension labels, dimension
lines and extension lines can be repositioned using Entity Handles.
Dimensioning drawings is beyond the scope of the LibreCAD User Manual, but additional resources and examples
are available in LibreCAD’s wiki or elsewhere on the web.
Dimensioning Example
Hint
Modifying a dimension label prohibits the automatic adjustment of the value when the dimension is changed.
There is the placeholder <> for dimension values, that can be used to keep this functionality.
Thus to add a unit to a dimension, you can modify the label via Properties and enter the label text <> mm. This
will show the label as 100 mm, and when the dimension is lengthen, it may show 120 mm automatically.
4.6.2 Leaders
While leaders do not dimension an entity, they are closely related to dimensioning as they are important for annotating
and adding clarity to entities. Leaders provide the ability to place pointers to identify a specific area of interest when
adding a note and linking it to a particulate object. Leaders take their settings from the dimension settings in Drawing
Preferences.
4.6.3 Text
Adding text to a drawing provides addition information; build notes, drawing title and related details, and so forth. Text
can be added using either of the two types of text tools:
Both tools proved several options for the appearance and placement of text, however a couple are unique to the single-
line Text tool as shown below:
Inactive X X
• Oblique
X X
• Width factor
X X
• Line spacing
Alignment:
Place text aligned to handle:
• top, left/center/right
• middle, left/center/right
• baseline, left/center/right X X
• bottom, left/center/right X X
X
X X
X X
• Fit
Places text between specified points while
maintaining set height
X X
• Aligned
Places text between specified points while
maintaining width to height ratio (scales text)
X X
• Middle
Places text with equidistant above and below, left and
right of text as defined by text box
Insert symbol X X
Insert predefined symbol (Diameter, Degree, Plus /
Minus, At, Hash, Dollar, Copyright, Registered,
Paragraph, Pi, Pound, Yen, Times, Division)
Insert Unicode:
Select Unicode page to select character from X X
• Page
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
Adding a border provides a finished look and title blocks include important information for the drawing. Title
blocks vary widely in content and layout, but can include:
• Drawing name
• Project name
• Scale
• Drawing perspective
• Date
• Revision
• Page number
• Paper size
• Name of organization
• Name of draftsperson, approvers, etc
• Others as required
Fig. 12: LibreCAD’s Print Preview window displaying the Doohickey drawing
The print preview window shows the virtual page as a white rectangle with a black border and a drop shadow. The black
border represents the paper format and orientation as it is configured on the “Paper” tab of the Drawing Preferences.
If margins are specified on the “Paper” tab, they are shown as a dark grey border.
4.7.2 Printing
While a drawing can be printed directly by clicking the Print icon or selecting File -> Print, the recommended
approach is to print drawings from the Print Preview window:
Starting with the drawing open in the drawing window:
1. Switch to print preview window by clicking the Print Preview icon .
2. Open the Drawing Preferences (Options -> Current Drawing Preferences) and check the paper layout (“For-
mat”, “Orientation” and “Margins”) for the current drawing: e.g. A4, Landscape, Top, Bottom Left and Right
Margins each at 10. Adjust the layout if necessary and click OK.
3. Click the Fit to Page icon on the toolbar. This will ensure the drawing is scaled to fit the current paper format
and centered on the page.
4. Click the Print icon or select File -> Print.
5. Select the printer on the Print dialogue and confirm the properties by clicking the Properties icon. Adjust the
properties if necessary and then click the Print button.
Tiled Printing
Tiled printing provides the ability to print a scaled drawing that is larger than a printer’s available paper format. Tiled
printing is useful where a drawing needs to be printed at a fixed scale that would otherwise require a large format
printer. The drawing is printed across several pages that can be assembled into a large single document.
Tile printing uses “Format” and “Orientation” found on the “Paper” tab of the Drawing Preferences. It lays out the
pages horizontally and vertically in a grid pattern to form a single large format page to accomodate a scaled drawing.
For example, a portrait A4 page with 2 pages horizontally and 1 vertically would result in a page 420 x 297 mm, or
a landscape A4 in a 2 x 2 pattern would be a page of 594 x 420 mm. Note that both examples use a margin of 0. If
margins are defined, the assembled document is reduced by the margin widths on the common edges of the paper where
they are assembled.
To print a tiled document, starting with the drawing open in the drawing window:
1. Switch to print preview window by clicking the Print Preview icon .
2. Click the Fit to Page icon on the toolbar. This will ensure the drawing displayed correctly in the print preview.
Note that “fixed” needs to be unchecked.
3. Open the Drawing Preferences (Options -> Current Drawing Preferences) and check the paper layout (“For-
mat”, “Orientation” and “Margins”) for the current drawing: e.g. A4, Landscape, Top, Bottom Left and Right
Margins each at 10. Adjust the values if necessary and click OK. (The “Number of Pages” will be calculated
below.)
4. Adjust the scale as desired. Change the print scale by:
1. Selecting a predefined scale ratio from the drop-down, or type the required scale ratio in the text-box and
press [Enter].
2. Lock the print scale by placing a checkmark in the “fixed” checkbox.
5. Click the Calculate number of pages. . . icon on the toolbar. The print preview will show a grid of pages with
the drawing placed in the center. The Number of pages on the “Paper” tab will be updated to reflect the number
of pages shown in the print preview.
6. Adjust the position of the drawing image on the page by repositioning the paper by dragging it as needed (the
drawing stays centered on the screen). Click and hold anywhere in the drawing space and drag the paper to the
desired position. Pressing [Shift] allows only horizontal movements of paper and pressing [Ctrl] allows only
vertical movements.
7. If necessary, adjust the dimensions “General Scale” and dimension line placement. Refer to Adjusting Dimen-
sions for Printing in Dimensioning and Text for details.
8. Click the Print icon or select File -> Print.
9. Select the printer on the Print dialogue and confirm the properties by clicking the Properties icon. Adjust the
properties if necessary and then click the Print button.
In case when a page has the margins (margins > 0) the print preview takes on a special look in that the margins between
a neighboring pages aren’t shown. It makes possible to represent the printable areas of all pages as one whole area and
to show an undivided drawing. Or, in other words, the print preview looks like the assembled drawing.
Set the margins to the printer’s minimum margins when using tiled printing to maximize the assemble print size.
Next example shows the print preview (left) and the output of tiled printing with the margins (right):
The sequence of the output is from bottom left page to top right page. In the picture above the order of the output is
marked by numbers.
s Important
This is the LibreCAD User Manual for latest pre release builds.
The manual is work in progress, and probably not up to date with the latest build application.
Any help is welcome to add new features and modifications to this documentation, to close the gap and make the
manual more complete.
FIVE
APPENDICES
MS Windows:
https://GitHub.com/LibreCAD/LibreCAD/releases
- GitHub
OSX:
https://GitHub.com/LibreCAD/LibreCAD/releases
- GitHub
Linux Distributions:
https://GitHub.com/LibreCAD/LibreCAD/releases
- AppImage (runs on most Linux)
https://packages.debian.org/stable/graphics/librecad
- Debian/Ubuntu (Stable)
https://packages.debian.org/unstable/graphics/librecad
- Debian/Ubuntu (UnStable)
https://www.archlinux.org/packages/community/x86_64/librecad/
- Arch Linux
https://apps.fedoraproject.org/packages/librecad
- Fedora
https://packages.gentoo.org/packages/media-gfx/librecad
- Gentoo
https://software.opensuse.org/package/librecad
- OpenSUSE
97
LibreCAD User Manual, Release 2.2.x.y
– FAQ: https://dokuwiki.librecad.org/doku.php/usage:faq
– Tutorials: https://dokuwiki.librecad.org/doku.php/usage:tutorials
– Part Libraries: https://wiki.librecad.org/index.php/Part_Libraries
98 Chapter 5. Appendices
LibreCAD User Manual, Release 2.2.x.y
5.3 Hatches
Unless shown otherwise, hatch patterns are shown at 1:1 scale (1x)
5.4 Fonts
*: These fonts are composed of single lines and are suitable for technical drawings.
ASCII character set render in each font:
5.6 Languages
LibreCAD supprts these languages to varying degrees:
ò Note
For more information about translations, to see the current status or to contribute, refer to https://translate.librecad.
org/projects/librecad/
*: Obtained from Wikipedia and Wiktionary and wildly interpreted by the author of this page.
Hint
Trigonometric functions expect angles in radians, they are identifiable by the function parameter (a) in the table!
(radians = degrees*pi/180)
This is not very comfortable for humans, but there is a simple solution to pass angles in degrees.
Append the affix d to the degree value; thus, sin(90d) is a valid expression and will return the sinus of 90°.
As the calculator accepts arithmetic expressions and constants, this term will work too: sin(90*pi/180)
The part 90*pi/180 will be internally calculated and results in 1.57079632679, which is 90° in radians.
And of course, arithmetic expressions can be used for other function parameters too, e.g. to convert imperial to
metric values and vice versa.
Functions
Constsants
Hint
Behind the scenes LibreCAD uses the muParser library for the command line and many input boxes. So the above
information describes basically the features of muParser, which are implemented in LibreCAD.
For advanced users or the courious ones, you can read more about muParser on the inventors website:
Reference: https://beltoforion.de/en/muparser/index.php#idStart
But, be aware, that LibreCAD probably does not use the latest version of muParser. Also, it is not fully implemented.
The muParser library has much more capabillities than LibreCAD uses.
s Important
The instructions are as complete as possible to provide the necessary steps to allow any user to build
LibreCAD from the source code, however some understanding of the operating system and installation
of the required tools and dependencies is required. The instructions are intended for users that want to
try the cutting-edge version of LibreCAD and are not intended to replace the instructions for building
packages or contributing to the LibreCAD project.
If you are a developer and want to contribute to LibreCAD see the Contributing section in the Appen-
dices.
ò Note
These instructions are for building LibreCAD on Debian and other derivatives. Further instructions for build-
ing LibreCAD on other Linux distributions (openSUSE, Red Hat, FreeBSD) and generic Unix can be found in
LibreCAD’s GitHub Developer’s wiki in the Build from source section.
You also have to either install the qt5-default package; apt install qt5-default, or use qtchooser prior to running
qmake; qtchooser -qt5.
Build LibreCAD
Create a development directory for the source code and related libraries; e.g ~/dev/. Extract the contents of the source
code zip file, LibreCAD-master.zip, to the development directory. When complete, a complete copy of the source code
will found in the ~/dev/LibreCAD-master directory. Compiled LibreCAD with the following commands:
$ cd ~/dev/LibreCAD-master/
$ qmake -r
$ make -j4
$ ./unix/librecad &
ò Note
Detailed instructions for building LibreCAD on Windows, including instructions for building LibreCAD in Visual
Studio 2013 and newer, can be found on the GitHub Developers wiki (https://github.com/LibreCAD/LibreCAD/
wiki) in the Build from source section.
The Windows version of Qt includes both the required framework library and the compiler. Download the open source
version of the Qt Online Installer from Qt download <https://www.qt.io/download>. Launch the installer accepting
the defaults. Install Qt to the default path prompted by the installer, e.g. C:\Qt. On the Select Components page expand
the tree view under the most recent version of Qt, e.g. Qt 5.12.3, and select the latest version of the MinGW compiler;
MinGW 7.3.0 (32-bit or 64 bit as required). No other components are needed.
Boost
Download the current release of the boost library “zip” file from Boost downloads <https://www.boost.org/users/
download/>. Click on the link to download the current Windows library, e.g. boost_1_70_0.zip and save the file.
muParser
muParser is not required to build LibreCAD on Windows as the library is now included with the LibreCAD source
code.
BOOST_DIR = C:/dev/boost_1_70_0/
BOOST_LIBDIR = C:/dev/boost_1_70_0/
After completing the required edit, launch Qt Creator (Start -> All Programs -> Qt -> Qt Creator) and open the
librecad.pro project file from the LibreCAD source folder (File -> Open File or Project and go to C:\dev\LibreCAD-
master\). The project should open to Configure Project. Ensure a “kit”, e.g. Desktop Qt 5.12.3 MinGW 32-bit is
checked and click the Configure Project button. It will take a few moments for the project to open and parse.
Click the Project icon on the left side of the Qt Creator window. Disable the “Shadow build” option in the Debug,
Profile and Release build configurations. Each build configuration can be selected from the drop down below Build
Settings. Save the project (File -> Save All).
With the configuration complete, run the build process in Qt Creator by clicking the Build icon on the lower left side.
If the build is successful an executable is created: .\LibreCAD-master\windows\librecad.exe.
s Important
Several Dynamic-link libraries (DLL) are required to run LibreCAD. The DLLs are found in the
C:\Qt\5.12.3\mingw73_32\bin folder (or mingw73_64) and need to be copied to the same directory as the exe-
cutable (or included in the path). The DLLs are:
• libgcc_s_dw2-1.dll
• libstdc++-6.dll
• libwinpthread-1.dll
• Qt5Core.dll
• Qt5Gui.dll
• Qt5PrintSupport.dll
• Qt5Svg.dll
• Qt5Widgets.dll
Once the DLLs have been copied to the executable folder, LibreCAD can be launched by Clicking Start -> Run and
typing:
> C:\dev\LibreCAD-master\windows\librecad.exe
Build LibreCAD
Create a development directory for the source code and related libraries; e.g ~/dev/. Extract the contents of the source
code zip file, LibreCAD-master.zip, to the development directory. When complete, a complete copy of the source code
will found in the ~/dev/LibreCAD-master directory. Change to the source code directory with:
cd ~/dev/LibreCAD-master/
Next build LibreCAD by running qmake. Note that during the installation step above, brew install qt5, the binaries
have not been linked to /usr/local. In order to use qmake, use the full path:
make -j4
If the previous steps were successful, an application named LibreCAD.app will be in the build directory. Run it at the
command prompt by typing either:
open LibreCAD.app, or
LibreCAD.app/Contents/MacOS/LibreCAD
ò Note
The macOS build section been revised, but not tested. Please provide any feedback on the build process on the
LibreCAD forum: http://forum.librecad.org/Help-wanted-to-build-on-MacOS-td5717273.html
5.10 Contributing
5.10.1 Code
If you are a developer, outstanding in C++, or a beginner we can use all the help. With a bit of determination, the
IRC channel, Zulip chat and the Libre-CAD-dev mailing list, we can help you get started and making progress. The
source code is hosted on GitHub (https://github.com/LibreCAD/LibreCAD). A good starting point for developers is
the LibreCAD Developer’s wiki on GitHub (https://github.com/LibreCAD/LibreCAD/wiki/Git-and-GitHub).
The Online Resource section provides links to further information on downloading and building LibreCAD.
5.10.2 Documentation
Developers are usually bad in making documentation, so if you like writing documentation your involvement in devel-
oping the User Manual would be greatly appreciated.
The documentation is hosted by Read the Docs. The most recent version of LibreCAD’s User Manual can be found at
https://librecad.readthedocs.io/. As with the source code, the documentation source is hosted GitHub (https://github.
com/LibreCAD/docs). The documentation is created using a markup language called reStructuredText (Refer to
http://docutils.sourceforge.net/rst.html). For those interested in contributing to the documentation, refer to LibreCAD
Documentation wiki on github (https://github.com/LibreCAD/docs/wiki).
5.10.3 Translation
Help localize LibreCAD, we currently support over 30 languages. Our translation server is at https://translate.librecad.
org/. You can contribute to a language already started or or request the creation of a translation for a new language in
the forum in the LibreCAD-translate section.
5.11 License
5.11.1 LibreCAD and the GPLv2
LibreCAD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 (GPLv2) as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
The GPLv2 can also be found in the licenses folder as gpl-2.0.txt.
• <https://github.com/LibreCAD/LibreCAD/tree/master/licenses>
• <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>
History
QCAD community edition version 2.0.5.0 was released under the GPLv2. > Copyright (C) 2001-2003 RibbonSoft.
All rights reserved.
• <http://www.ribbonsoft.com>
LibreCAD is a fork of QCAD community edition version 2.0.5.0; therefore, any modifications of or additions to the
program are also released under the GPLv2.
The project’s first commit on Github was Aug 16, 2010.
• <http://librecad.org/>
• <https://github.com/LibreCAD/LibreCAD>
Honorable mention
These are known contributors whose copyright notice could not be found.
• Claude Sylvain | <[email protected]>
• Scott Howard | <[email protected]>
• Lisandro Damián Nicanor Pérez Meyer | <[email protected]>
A list of contributors to the LibreCAD repository can be found at: <https://github.com/LibreCAD/LibreCAD/graphs/
contributors>