Skip to content
LiberoDraft LiberoDraft Help
Deutsch
Start › D Command reference › Constraints

Constraints

Purpose

A constraint fixes a geometric relationship — a line stays horizontal, two lines stay parallel, two circles concentric. When set, the program aligns the second element to the first at once; afterwards a solver restores the relationship after every edit. It calculates per connected set of constraints and detects conflicts (Conflict and red marking). If you drag an element, the reference (the first click when setting) stays put and the dependent element follows. Elements with “Fixed” and elements on locked layers are never moved by the solver. Every constraint appears as a small symbol at all elements involved.

Example: line a horizontal, b parallel to a, c perpendicular to a; the circles concentric, the outer one fixed — every symbol sits at its element
Example: line a horizontal, b parallel to a, c perpendicular to a; the circles concentric, the outer one fixed — every symbol sits at its element

Step by step: Set and release constraints. Field by field: “Constraints” section.

Access

  • Ribbon: group “Constraints” — the split button Constraints opens the list of all eleven constraints with its triangle (1–11); the button itself starts “Horizontal”.
  • Classic toolbar: group “Constraints” as a drop-down button. If the window is not wide enough, the group sits in the menu “☰” (“Menu / more tools”) at the left of the toolbar (1) and unfolds there (2).
  • Tool window, section “Constraints”: “Fix horizontal”, “Fix vertical”, “Fix position” (1–3) — with several selected lines, each one gets its own constraint.
  • Command search : “constraint” — entries “Constraint: Horizontal” etc.
  • While drawing: with the switch “⛓ Live constraints” in the header bar, line, rectangle, slot and curved slot get the matching constraints as soon as they are drawn (Live constraints while drawing).
Ribbon, list under the button “Constraints” (heading “Related tools”): (1) Horizontal — the entry is labelled “Constraints” —, (2) Vertical, (3) Perpendicular, (4) Parallel, (5) Equal, (6) Coincident, (7) Concentric, (8) Tangent, (9) Collinear, (10) Fixed, (11) Point on intersection
Ribbon, list under the button “Constraints” (heading “Related tools”): (1) Horizontal — the entry is labelled “Constraints” —, (2) Vertical, (3) Perpendicular, (4) Parallel, (5) Equal, (6) Coincident, (7) Concentric, (8) Tangent, (9) Collinear, (10) Fixed, (11) Point on intersection
Classic toolbar at 1400 px width: (1) menu “☰”, inside (2) the unfolded group “Constraints”
Classic toolbar at 1400 px width: (1) menu “☰”, inside (2) the unfolded group “Constraints”
Tool window: (1) Fix horizontal, (2) Fix vertical, (3) Fix position
Tool window: (1) Fix horizontal, (2) Fix vertical, (3) Fix position
Command search with “constraint”
Command search with “constraint”

Procedure

With the tool the snap mode switches to Free. The floating tooltip names what to click at each step; the first clicked element is always the reference and stays unchanged, the second is adapted. After the last click the status bar reports “Constraint: … applied”, the tool stays active for the next constraint. If the selection does not fit, the reason appears with “⚠” in the status bar and the clicks are discarded (Messages).

Tool “Parallel”, first step: the tooltip asks for the reference line
Tool “Parallel”, first step: the tooltip asks for the reference line
Second step: the reference is chosen (light), the second line is aligned parallel
Second step: the reference is chosen (light), the second line is aligned parallel

The eleven constraints

Horizontal

One click on a line. The line is rotated horizontal — about its midpoint, so both endpoints share the change; the direction is kept (no flipping). Not combinable with “Vertical” (“The line is already vertical — it cannot also be horizontal”).

Vertical

One click on a line: it becomes vertical, rotated about the midpoint as well.

Perpendicular

1st click reference line, 2nd click second line → it is rotated perpendicular to the reference, on the side where it already lies (no flipping). Not combinable with “Collinear” on the same pair.

Parallel

1st click reference line, 2nd click second line → it is aligned parallel. Then a browser window asks “Distance between parallel lines:” with the current distance as proposal; a new value shifts the second line perpendicularly to that distance, “Cancel” leaves it. The distance is set only once; “Parallel” keeps the direction afterwards. A distance that the solver holds for good is set by a driving distance dimension.

Equal

1st click reference, 2nd click target → two lines get the same length (the target is adjusted from its start point along its direction), two circles or two arcs the same radius.

Coincident

1st click on an element near the endpoint that should move; 2nd click on the target: on an endpoint → point-to-point (“Coincident: points joined”), anywhere on a line or arc → the point lies on the element and slides along it (“Coincident: the point lies on the element”).

Concentric

1st click reference circle or arc, 2nd click second circle or arc → it takes the centre of the reference. Needs two circles or arcs (“Concentric needs two circles or arcs”).

Tangent

1st click circle or arc (its centre stays), 2nd click line or circle → the line is shifted perpendicular to itself to the distance “radius”; a second circle is shifted so the circles touch — inside or outside, whichever is closer to the current position. Allowed: circle/arc + line or two circles (“Tangent needs a circle/arc + line, or two circles”).

Collinear

1st click reference line, 2nd click second line → its endpoints are projected onto the reference's straight line; both then lie on the same straight line.

Fixed

One click on an element freezes its complete geometry: it can neither be moved nor resized — the solver restores the stored state on every change. In the tool window also as “Fix position”.

Point on intersection

Three clicks: 1st a point element (is positioned), 2nd element A, 3rd element B → the point moves to the intersection of A and B; if the elements do not intersect directly, to the extended intersection. A and B must be a line, circle, arc or polyline; parallel lines have no intersection (“The elements do not intersect even when extended (parallel lines?)”).

Live constraints while drawing

The switch “⛓ Live constraints” in the header bar above the drawing area (to the right of “Pick up”) adds constraints while you draw. It is off by factory default. A click switches it on — it gets a blue background, and the status bar reports “Live constraints ON — line, rectangle, slot and curved slot get the constraints they already satisfy while drawing”; the next click switches it off (“Live constraints OFF”). The setting is saved and stored with the drawing: a drawing brings it along when it is opened, like ORTHO.

Rotated rectangle with live constraints: (1) Live constraints switch, (2) status bar “4 live constraints”
Rotated rectangle from “Rectangle (3 points)” as separate lines: (1) switch ⛓ Live constraints on, (2) status bar 4 live constraints — the symbol for Perpendicular at each corner

Only what the drawn shape satisfies exactly is added; the geometry does not move.

ToolConstraints
Line“Horizontal” for an exactly horizontal line, “Vertical” for an exactly vertical one — as you get it with “ORTHO”, with grid snap or with a typed angle of 0° or 90°. A slanted line gets nothing. This applies to every line of a line chain.
Rectangle and Rectangle (3 points) with the option “As separate lines (exploded)”Axis-parallel: “Horizontal” or “Vertical” on each side. Rotated: “Perpendicular” at all four corners — if not all four corners are exactly right-angled, none is added. The diagonals (“Diagonals crosswise”) stay free.
Slot“Tangent” at the four transitions between the straights and the rounded ends, “Parallel” for the two straights — five constraints.
Curved slot“Tangent” at the four transitions, “Concentric” for the outer and inner arc — five constraints.

The constraints belong to the undo step of the shape: Ctrl + Z takes back shape and constraints together. Only the elements of the drawn shape are bound to each other, never to existing elements, and no constraint is added twice. The status bar names the number — for the rectangle “4 live constraints”, for slot and curved slot at the end of the message, for example “Slot drawn — group “Slot 1” (width 10.00) · 5 live constraints”; for a line only the symbol appears (Messages). Circle, arc, polyline and a rectangle as one element get nothing; neither is “Tangent” added to existing lines, “Equal” to sides of the same length, nor any constraint to a double line or a polygon.

If you then drag a corner of a rectangle drawn this way by its grip, it stays a rectangle; with ordinary mouse movement the opposite corner stays put to within hundredths of a millimetre. Without the constraints the same drag distorts the rectangle.

Symbols, visibility and panel

Every constraint is drawn as a symbol at every element involved; several symbols at one element stack. The symbols are construction aids: they appear neither in the viewports of a sheet nor in print. The system layer “Constraints” hides them — the constraints stay in force. The model and each sheet keep their own constraints: the symbols appear only in their own area, and Ctrl + Z / Ctrl + Y on a sheet take that sheet's constraints along. A constraint that is not satisfied is marked red.

System layer “Constraints” off: the same geometry without symbols
System layer “Constraints” off: the same geometry without symbols
The switch (1) below the layer list
The switch (1) below the layer list

The “Constraints” section in the panel on the right lists the constraints of the one selected element as tags; ✕ on a tag deletes the constraint.

Deleting a constraint

  • Right-click on a symbol in the drawing opens a mini menu with the name of the constraint and “🗑 Delete constraint” (status bar “Constraint deleted”).
  • “Constraints” section: ✕ on the tag of the selected element.
  • Deleting an element involved removes the constraint too; “Check & clean drawing” in the file menu finds constraints without an element.
Right-click on the symbol “Perpendicular”
Right-click on the symbol “Perpendicular”

Conflict and red marking

A new constraint that does not agree with the existing ones is refused: the geometry stays as it was and the status bar names the conflict in red — for example ⚠ Conflict: “Vertical” contradicts “Horizontal”, “Parallel” — not added or Conflict: “…” cannot be satisfied together with the existing constraints — not added. A value of a driving dimension that contradicts the constraints is refused in the same way — for a driving distance or point-to-point dimension also if the solver could satisfy it only by moving the reference.

(1) lower line Horizontal, upper line Parallel to it; Vertical on the upper line is refused, (2) message in the status bar
(1) the lower line is “Horizontal”, the upper one “Parallel” to it; “Vertical” on the upper line is refused — (2) message in the status bar

Opening shows a drawing as it was saved. If a constraint in it is not satisfied (for example from an older program version), it is marked red and the status bar reports n constraint(s) not satisfied — marked red; they are solved when you edit the elements. Solving happens only when you edit one of the elements. If constraints still contradict each other then, the program solves what can be solved, leaves the rest red and reports Conflict: … cannot be satisfied together — marked red; delete one of them.

Constraints when the geometry changes

  • The constraints of an element are removed by Create block, Rotate, Scale, Explode and Split; the status bar says so where the tool reports.
  • Trim and Break pass the constraints on to the remaining piece or the pieces. Only a binding at a removed point (“Coincident”) is dropped, with a message. When breaking in the middle, “Horizontal”, “Vertical”, “Parallel”, “Perpendicular”, “Collinear” and “Concentric” go to both pieces, “Tangent” to the piece with the point of contact; “Equal” is dropped with a message.
  • Trim one/two elements changes the element in place; a partner bound by “Coincident” or a weld is pulled along.
  • Chamfer transfers a binding at the corner to the chamfer line.
  • An element with “Fixed” that would change is not trimmed, broken or chamfered — red message, no undo step.

Rules

  • Every constraint is one undo step (Ctrl + Z), including the distance after “Parallel”. Live constraints belong to the step of the drawn shape.
  • The same constraint can be set only once per element or pair (“This constraint already exists on the element”, “The same constraint already exists on this pair”); elements A and B must be different.
  • Obviously contradicting combinations are already rejected at selection (horizontal/vertical, perpendicular/collinear, two lines already parallel or perpendicular); all other conflicts are detected by the solver (Conflict).
  • Constraints are saved with the drawing, copied via the clipboard, and taken along when copying layer contents or a group.
  • Solving happens after an edit, not continuously in every frame.
  • Driving dimensions act like constraints: the solver keeps their value while the elements are edited. For a driving distance or point-to-point dimension the reference (what was clicked first) stays put and the second element is moved; welded elements and existing constraints follow (Driving distance and point-to-point dimensions). These dimensions do not appear in the Constraints section of the panel.
  • Weld can additionally set “Coincident” on request (check box in the window ⊕ Weld — tolerance).

Related commands

Related topics