Sketcher Contrainte point sur objet

From FreeCAD Documentation
Revision as of 15:18, 28 March 2020 by David69 (talk | contribs) (Replaced content with "==Utilisation==")

Sketcher Contrainte point sur objet

Emplacement du menu
Sketch → Contraintes d'esquisse → Contrainte point sur objet
Ateliers
Sketcher
Raccourci par défaut
Maj + O
Introduit dans la version
-
Voir aussi
Sketcher Constraint Coincident

Description

Appose un point sur un autre objet tel qu'une ligne, un arc ou un axe d'esquisse.

Utilisation

  1. Select the point you want to affix onto a line/arc/etc. (Result: Once selected the point will become green).
  2. Select the line you want affixed onto the point you have just selected (Result: Once selected the line becomes green).
  3. Invoke the Constrain point onto object tool using several methods:
    • Press the button in the toolbar.
    • Use the Shift + O keyboard shortcut.
    • Use the Sketch → Sketcher constraints → Constrain point onto object entry in the top menu.

Remarque: l'ordre dans lequel vous sélectionnez la ligne et le point n'a pas d'importance. Le point ira toujours à la ligne. La ligne reste fixe.

Scriptage

La contrainte peut être créée à partir de macros et de la console python en utilisant la commande suivante:

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

  • Esquisse est un objet d'esquisse
  • LineMoving est le nombre qui désigne la ligne, qui contient le point qui doit être déplacé sur le LineFixed (La ligne qui est fixée)
  • PointOfLineMoving est le numéro du sommet de la ligne LineMoving, qui doit être déplacé sur le LineFixed
  • LinedFixed est le numéro de la ligne à apposer sur le point PointOfLineMoving

Comment identifier le numéro qui désigne les lignes et les points? Veuillez vous référer à la partie script de Contrainte coïncidente.