Vazba Bod na objekt

From FreeCAD Documentation
This page is a translated version of the page Sketcher ConstrainPointOnObject and the translation is 0% complete.
Outdated translations are marked like this.

Constraint PointOnObject

Umístění Menu
Sketch → Sketcher constraints → Constrain point onto object
Pracovní stoly
Náčrt, Návrh dílu
Výchozí zástupce
Nikdo
Představen ve verzi
-
Viz také
Vazba totožnosti

Description

Popis

introduced in version 1.0: This tool is replaced by the Sketcher ConstrainCoincidentUnified tool if the Unify Coincident and PointOnObject option is selected in the preferences.

Použití

See also: Drawing aids.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • Press the Constrain point on object button.
    • Select the Sketch → Sketcher constraints → Constrain point on object option from the menu.
    • Use the keyboard shortcut: O.
  3. The cursor changes to a cross with the tool icon.
  4. Select a single point and a single edge (in any order).
  5. A constraint is added.
  6. Optionally keep creating constraints.
  7. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Do one of the following:
    • Select a single point and a single edge (in any order).
    • Select several points and a single edge (idem).
    • Select a single point and several edges (idem).
  2. Invoke the tool as explained above.
  3. Depending on the selection one or more constraints are added.

Scripting

The constraint can be created from macros and from the Python console by using the following command:

Sketch.addConstraint(Sketcher.Constraint('PointOnObject',LineMoving,PointOfLineMoving,LineFixed))

  • Sketch is a sketch object.
  • LineMoving is the number that designates the line, which contains the point that has to be moved on the LineFixed (the line which is fixed).
  • PointOfLineMoving is the number of the vertex of line LineMoving, that has to be moved on the LineFixed.
  • LinedFixed is the number of the line to be affixed on the point PointOfLineMoving.

The Sketcher scripting page explains how to identify the numbers that designate lines and points.