TechDraw LeaderLine/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/fr |Name=TechDraw LeaderLine |Name/fr=TechDraw LeaderLine |Icon=techdraw-mline.svg |MenuLocation=TechDraw → LeaderLine |Workbenches=TechDraw Module/fr|TechDra...")
(Updating to match new version of source page)
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav/fr
{{Docnav/fr|[[TechDraw_Redraw/fr|Redraw]]|[[TechDraw_RichTextBlock/fr|RichTextBlock]]|[[TechDraw_Module/fr|TechDraw]]|IconL=TechDraw_Tree_Page_Sync.png|IconC=Workbench_TechDraw.svg|IconR=}}
|[[TechDraw_Annotation/fr|Nouvelle annotation]]
|[[TechDraw_RichTextAnnotation/fr|Annotation en texte enrichi]]
|[[TechDraw_Module/fr|Atelier TechDraw]]
|IconL=TechDraw_Annotation.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_RichTextAnnotation.svg
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/fr
{{GuiCommand/fr
|Name=TechDraw LeaderLine
|Name=TechDraw LeaderLine
|Name/fr=TechDraw LeaderLine
|Name/fr=TechDraw Ajout d'une ligne à une vue
|Icon=techdraw-mline.svg
|Icon=techdraw-mline.svg
|MenuLocation=TechDraw → LeaderLine
|MenuLocation=TechDraw → Ajout d'une ligne à une vue
|Workbenches=[[TechDraw Module/fr|TechDraw]]
|Workbenches=[[TechDraw Module/fr|Atelier TechDraw]]
|Version=0.19
|SeeAlso=[[TechDraw Templates/fr|TechDraw Templates]], [[Draft SVG/fr|Draft SVG]], [[TechDraw_RichTextBlock/fr|RichTextBlock]]
|SeeAlso=[[TechDraw Templates/fr|TechDraw Modèles]], [[Draft SVG/fr|Draft SVG]], [[TechDraw_RichTextAnnotation/fr|TechDraw Annotation en texte enrichi]]
}}
}}
</div>


==Description==
==Description==


The LeaderLine tool adds a line to a View. Other annotation objects (such as [[TechDraw_RichTextBlock|RichTextBlock]]) can be connected to the LeaderLine to form complex annotations.
L'outil Ajout d'une ligne à une vue (LeaderLine) ajoute une ligne à une vue. D'autres objets d'annotation (tels que [[TechDraw_RichTextAnnotation/fr|Annotation en texte enrichi]]) peuvent être connectés à LeaderLine pour former des annotations complexes.


[[Image:TechDraw_LeaderLine_sample.png]]
[[Image:TechDraw_LeaderLine_sample.png]]
{{Caption|Leader line added to View001}}
{{Caption|Ligne maîtresse ajoutée à View001}}


<div class="mw-translate-fuzzy">
==How to use==
==Utilisation==
</div>


<div class="mw-translate-fuzzy">
# Press the {{Button|[[Image:techdraw-mline.svg|16px]] [[TechDraw LeaderLine|LeaderLine]]}} button
# Appuyez sur le bouton {{Button|[[Image:TechDraw_LeaderLine.svg|16px]] [[TechDraw_LeaderLine/fr|LeaderLine]]}}.
# A Task dialog will open. The dialog allows drawing of the leader line and assigning end symbols to the line.
# Une boîte de dialogue de tâche va s'ouvrir. La boîte de dialogue permet de tracer la ligne de repère et d’affecter des symboles de fin à la ligne.
# The Pick points button starts a line drawing function. Line drawing always starts at the point the line is to be attached to the View.
# Le bouton Choisir des points lance une fonction de dessin au trait. Le dessin au trait commence toujours au point où la ligne doit être attachée à la vue.
# Click to add a point, move the mouse to draw a line segment.
# Cliquez pour ajouter un point, déplacez la souris pour dessiner un segment de ligne.
# To exit the line editor, double click, press Right Mouse Button or press the Escape Edit button in the dialog.
# Pour quitter l'éditeur de lignes, appuyez sur le bouton Enregistrer les modifications.
# After the line is created, it can be edited by double clicking the LeaderLine in the Tree.
# Pour quitter l'éditeur de lignes sans enregistrer, appuyez sur le bouton Annuler les modifications.
# Une fois la ligne créée, vous pouvez la modifier en double-cliquant sur la ligne de repère dans l'arborescence.
</div>


'''Note:''' If you did not define any points when creating the leader line, a short line will be placed at the center of the view. You can later not add further points.


==Properties==
==Propriétés==


<div class="mw-translate-fuzzy">
* {{PropertyData|X,Y}}: The point at which the leader line is connected to the View.
* {{PropertyData|Leader Parent}}: The View to which the leader is attached.
* {{PropertyData/fr|X, Y}}: Le point auquel la ligne de repère est connectée à la vue.
* {{PropertyData|Start Symbol}}: The line end symbol (arrowhead) at the View end.
* {{PropertyData/fr|Leader Parent}}: la vue à laquelle la ligne est attachée.
* {{PropertyData|End Symbol}}: The line end symbol at the annotation block end.
* {{PropertyData/fr|Start Symbol}}: symbole de fin de ligne (pointe de flèche) à la fin de la vue.
* {{PropertyData|WayPoints}}: Nodes on the leader line.
* {{PropertyData/fr|End Symbol}}: le symbole de fin de ligne à l'autre extrémité.
* {{PropertyData|Scalable}}: Leader scales with Leader Parent.
* {{PropertyData/fr|WayPoints}}: Noeuds sur la ligne de repère.
* {{PropertyData/fr|Scalable}}: LeaderLine évolue avec LeaderLine Parent.
* {{PropertyView|Color}}: Pen colour for the leader line.
* {{PropertyView|Line Style}}: 0 - No Line, 1 - Solid Line, ...
* {{PropertyView/fr|Color}}: Couleur de stylo pour la LeaderLine.
* {{PropertyView|Line Width}}: Weight of leader line.
* {{PropertyView/fr|Line Style}}: 0 - Pas de ligne, 1 - Ligne continue, ...
* {{PropertyView/fr|Line Width}}: poids de la ligne principale.
</div>


==Scripting==
==Script==


{{Emphasis|See also:}} [[TechDraw API]] and [[FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[TechDraw API/fr|TechDraw API]] et [[FreeCAD Scripting Basics/fr|FreeCAD Scripts de Base]].


The LeaderLine tool can be used in [[macros]] and from the [[Python]] console by using the following functions:
L'outil LeaderLine peut être utilisée dans une [[macros/fr|macro]] et dans la console [[Python/fr|Python]] en utilisant la fonction suivante:


{{Code|code=
{{Code|code=
Line 59: Line 77:
}}
}}


<div class="mw-translate-fuzzy">
== Notes ==
* Vous pouvez modifier votre LeaderLine en double-cliquant dessus dans l'arborescence. Un double clic dans la zone graphique n’est pas encore supporté.
* La ligne de repère peut être modifiée en appuyant sur "Modifier les points" en mode édition. Pour quitter l'édition de point: appuyez sur "Enregistrer les modifications" ou "Annuler les modifications".
</div>


{{Docnav/fr
==Notes==
|[[TechDraw_Annotation/fr|Nouvelle annotation]]
* This feature was added in v0.19
|[[TechDraw_RichTextAnnotation/fr|Annotation en texte enrichi]]
* You can edit your LeaderLine by double clicking on it in the tree view. Double clicking in the graphics area is not yet supported.
|[[TechDraw_Module/fr|Atelier TechDraw]]
* The leader line can be edited by pressing "Edit points" while in edit mode. To exit point editing: press "Escape editing", press ESC or press RightMouseButton (RMB).
|IconL=TechDraw_Annotation.svg

|IconC=Workbench_TechDraw.svg
{{Docnav/fr|[[TechDraw_Redraw/fr|Redraw]]|[[TechDraw_RichTextBlock/fr|RichTextBlock]]|[[TechDraw_Module/fr|TechDraw]]|IconL=TechDraw_Tree_Page_Sync.png|IconC=Workbench_TechDraw.svg|IconR=}}
|IconR=TechDraw_RichTextAnnotation.svg
}}


{{TechDraw Tools navi/fr}}
{{TechDraw Tools navi/fr}}

Revision as of 21:54, 18 February 2020

Other languages:

File:Techdraw-mline.svg TechDraw Ajout d'une ligne à une vue

Emplacement du menu
TechDraw → Ajout d'une ligne à une vue
Ateliers
Atelier TechDraw
Raccourci par défaut
Aucun
Introduit dans la version
0.19
Voir aussi
TechDraw Modèles, Draft SVG, TechDraw Annotation en texte enrichi

Description

L'outil Ajout d'une ligne à une vue (LeaderLine) ajoute une ligne à une vue. D'autres objets d'annotation (tels que Annotation en texte enrichi) peuvent être connectés à LeaderLine pour former des annotations complexes.

Ligne maîtresse ajoutée à View001

Utilisation

  1. Appuyez sur le bouton LeaderLine.
  2. Une boîte de dialogue de tâche va s'ouvrir. La boîte de dialogue permet de tracer la ligne de repère et d’affecter des symboles de fin à la ligne.
  3. Le bouton Choisir des points lance une fonction de dessin au trait. Le dessin au trait commence toujours au point où la ligne doit être attachée à la vue.
  4. Cliquez pour ajouter un point, déplacez la souris pour dessiner un segment de ligne.
  5. Pour quitter l'éditeur de lignes, appuyez sur le bouton Enregistrer les modifications.
  6. Pour quitter l'éditeur de lignes sans enregistrer, appuyez sur le bouton Annuler les modifications.
  7. Une fois la ligne créée, vous pouvez la modifier en double-cliquant sur la ligne de repère dans l'arborescence.

Note: If you did not define any points when creating the leader line, a short line will be placed at the center of the view. You can later not add further points.

Propriétés

  • DonnéesX, Y: Le point auquel la ligne de repère est connectée à la vue.
  • DonnéesLeader Parent: la vue à laquelle la ligne est attachée.
  • DonnéesStart Symbol: symbole de fin de ligne (pointe de flèche) à la fin de la vue.
  • DonnéesEnd Symbol: le symbole de fin de ligne à l'autre extrémité.
  • DonnéesWayPoints: Noeuds sur la ligne de repère.
  • DonnéesScalable: LeaderLine évolue avec LeaderLine Parent.
  • VueColor: Couleur de stylo pour la LeaderLine.
  • VueLine Style: 0 - Pas de ligne, 1 - Ligne continue, ...
  • VueLine Width: poids de la ligne principale.

Script

See also: TechDraw API et FreeCAD Scripts de Base.

L'outil LeaderLine peut être utilisée dans une macro et dans la console Python en utilisant la fonction suivante:

myPage = FreeCAD.ActiveDocument().Page
myBase = FreeCAD.ActiveDocument().View
leaderObj = FreeCAD.ActiveDocument.addObject('TechDraw::DrawLeaderLine','DrawLeaderLine')
FreeCAD.activeDocument().myPage.addView(leaderObj)
FreeCAD.activeDocument().leaderObj.LeaderParent = myBase
#first waypoint is always (0,0,0)  
#rest of waypoints are positions relative to (0,0,0)
leaderObj.WayPoints = [p0,p1,p2]
leaderObj.X = 5
leaderObj.Y = 5

Notes

  • Vous pouvez modifier votre LeaderLine en double-cliquant dessus dans l'arborescence. Un double clic dans la zone graphique n’est pas encore supporté.
  • La ligne de repère peut être modifiée en appuyant sur "Modifier les points" en mode édition. Pour quitter l'édition de point: appuyez sur "Enregistrer les modifications" ou "Annuler les modifications".