Draft Line/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(48 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{GuiCommand/ro|Name=Draft Line|Name/ro=Draft Line|Workbenches=[[Draft Module/ro|Draft]], [[Arch Module/ro|Arch]]|MenuLocation=Draft → Line|Shortcut=L I|SeeAlso=[[Draft Wire/ro|Draft Wire]]}}


{{Docnav
==Description==
|
The Line tool creates a straight, two-points line in the current [[Draft SelectPlane|work plane]]. It takes the [[Draft Linestyle|linewidth and color]] previously set on the Tasks tab. The Line tool behaves exactly like the [[Draft Wire]] tool, except that it stops after two points.
|[[Draft_Wire|Wire]]
|[[Draft_Workbench|Draft]]
|IconL=
|IconR=Draft_Wire.svg
|IconC=Workbench_Draft.svg
}}

<div class="mw-translate-fuzzy">
{{GuiCommand/ro
|Name=Draft Line
|Name/ro=Draft Line
|MenuLocation=Draft → Line
|Workbenches=[[Draft_Workbench/ro|Draft]], [[Arch_Workbench/ro|Arch]]
|Shortcut={{KEY|L}} {{KEY|I}}
|SeeAlso=[[Draft Wire/ro|Draft Wire]]
}}
</div>

==Description==

<div class="mw-translate-fuzzy">
== Descriere ==
Instrumentul Linie creează o linie dreaptă, definită prin două puncte. Ea utilizează [[Draft Linestyle]] definită în bara de instrumente Draft. Instrumentul Linie se comportă exact ca instrumentul [[Draft Wire/ro|Draft Wire]] , cu excepția faptului că se oprește după două puncte.
</div>

A Draft Line is in fact a [[Draft_Wire|Draft Wire]] with only two points.


[[Image:Draft_Line_example.jpg|400px]]
[[Image:Draft_Line_example.jpg|400px]]
<div class="mw-translate-fuzzy">
[[Image:Draft_Line_example.jpg|400px]]
</div>


==How to use==
==Usage==

# Press the {{KEY|[[Image:Draft Line.png|16px]] [[Draft Line]]}} button, or press {{KEY|L}} then {{KEY|I}} keys
See also: [[Draft_Tray|Draft Tray]], [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]].
# Click a first point on the 3D view, or type a [[Draft_Coordinates|coordinate]]

# Click a second point on the 3D view, or type a [[Draft_Coordinates|coordinate]]
<div class="mw-translate-fuzzy">
== Cum se utilizează ==
# Apăsați butonul {{KEY|[[Image:Draft Line.png|16px]] [[Draft Line/ro|Draft Line]]}} sau apăsați tastele {{KEY|L}} apoi {{KEY|I}}
# Faceți clic pe un prim punct din vizualizarea 3D sau tastați un coordinate
# Faceți clic pe un al doilea punct din vizualizarea 3D sau tastați un coordinate
</div>


==Options==
==Options==

* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after the first point to constrain the second point on the given axis.
The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts (for version 0.22).
* To enter coordinates manually, simply enter the numbers, then press {{KEY|ENTER}} between each X, Y and Z component.

* Press {{KEY|R}} or click the checkbox to check/uncheck the {{KEY|'''Relative'''}} button. If relative mode is on, the coordinates of the second point are relative to the first one. If not, they are absolute, taken from the (0,0,0) origin point.
<div class="mw-translate-fuzzy">
* Press {{KEY|T}} or click the checkbox to check/uncheck the {{KEY|'''Continue'''}} button. If continue mode is on, the Line tool will restart after you give the second point, allowing you to draw another line segment without pressing the Line button again.
== Opțiuni ==
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* Apăsați {{KEY|X}}, {{KEY|Y}} sau {{KEY|Z}} după primul punct pentru a restrânge al doilea punct de pe axa dată.
* Press {{KEY|SHIFT}} while drawing to [[Draft_Constrain|constrain]] your second point horizontally or vertically in relation to the first one.
* Pentru a introduce manual coordonatele, pur și simplu introduceți numerele, apoi apăsați {{KEY|ENTER}} între fiecare componentă X, Y și Z.
* Press {{KEY|CTRL}}+{{KEY|Z}} or press the {{KEY|[[Image:Draft UndoLine.png|12px]] '''[[Draft_UndoLine|Undo]]'''}} button to undo the last point.
* Apăsați tasta {{KEY|R}} sau faceți clic pe caseta de selectare pentru a bifa/debifa butonul {{KEY|'''Relativ'''}}. Dacă modul relativ este activ, coordonatele celui de-al doilea punct sunt relative la prima. Dacă nu, ele sunt absolute, luate din punctul de origine (0,0,0).
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current Line command.
* Apăsați tasta {{KEY|T}} sau faceți clic pe caseta de selectare pentru a bifa/debifa butonul {{KEY|'''Continue'''}}. Dacă modul continuat este activat, instrumentul Linie se va reporni după ce dați cel de-al doilea punct, permițându-vă să desenați un alt segment de linie fără a apăsa din nou butonul Linie.
* If several connected [[Draft Line|Draft Lines]] are selected they can be transformed into a wire by pressing the '''Draft Upgrade''' Button.
* Apăsați {{KEY|CTRL}} în timp ce desenați pentru a forța ancorarea [[Draft_Snap|snapping]] punctul dvs. către cea mai apropiată locație, independent de distanța.
* Apăsați {{KEY|SHIFT}} în timp ce desenați [[Draft_Constrain|constrain]] al doilea punct pe orizontală sau pe verticală în raport cu primul punct.
* Apăsați tasta {{KEY|CTRL}} + {{KEY|Z}} sau apăsați pe {{KEY|['Image: Draft UndoLine.png|12px] }} pentru a anula ultimul punct.
* Apăsați butonul {{KEY|ESC}} sau butonul {{KEY|'''Anulare'''}} pentru a întrerupe comanda curentă.
* Dacă sunt selectate mai multe linii [[Draft Line/ro|Draft Lines]], ele pot fi transformate într-un filament prin apăsarea butonului '''Upgrade Draft'''.
</div>

==Notes==

* A Draft Line can be edited with the [[Draft_Edit|Draft Edit]] command.
* Draft Lines and [[Draft_Wire|Draft Wires]] can be joined with the [[Draft_Wire|Draft Wire]] command, the [[Draft_Join|Draft Join]] command or the [[Draft_Upgrade|Draft Upgrade]] command.

==Preferences==

See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].

* To change the initial focus of the task panel to the {{MenuCommand|Length}} input box: {{MenuCommand|Edit → Preferences... → Draft → General → Set focus on Length instead of X coordinate}}. Note that you must move the pointer in the [[3D_view|3D view]] for the change to take effect.
* If the {{MenuCommand|Edit → Preferences... → Draft → General → Create Part primitives if possible}} option is checked, the command will create a [[Part_Line|Part Line]] instead of a Draft Line.


==Properties==
==Properties==

<div class="mw-translate-fuzzy">
== Proprietăți ==
* {{PropertyData/ro|Start}}: Punctul de pornire
* {{PropertyData/ro|Start}}: Punctul de pornire
* {{PropertyData/ro|End}}: Punctul final
* {{PropertyData/ro|End}}: Punctul final
* {{PropertyData/ro|Subdivisions}}: Împarte linia cu numărul de subdiviziuni dat {{version|0.16}}
* {{PropertyData/ro|Subdivisions}}: Împărțirea liniei cu numărul de subdiviziuni dat {{version|0.16/ro}}
</div>


==Scripting==
==Scripting==

The Line tool can by used in [[macros]] and from the python console by using the following function:
<div class="mw-translate-fuzzy">
== Script-Programare ==
Instrumentul Linie poate fi utilizat în [[macros/ro|macros]] și din consola [[Python/ro|Python]] utilizând următoarea funcție:
</div>

To create a Draft Line use the {{incode|make_line}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makeLine}} method.

{{Code|code=
{{Code|code=
line = make_line(p1, p2)
makeLine (Vector, Vector)
line = make_line(LineSegment)
line = make_line(Shape)
}}
}}
* Creates a line between the two given vectors. The current draft linewidth and color will be used.
* Returns the newly created object.


<div class="mw-translate-fuzzy">
Example:
* Creează un obiect <code> Line </code> între cei două puncte punctele <code> p1 </code> și <code> p2 </code>, fiecare definit ca <code> FreeCAD.Vector </code>
* Creează un obiect <code> Line </code> dintr-un <code> Part.LineSegment </code>
* Creează un obiect <code> Line </code> de la primul vârf la ultimul vârf al <code> Shape </code> dată
* Se va folosi versiunea curentă [[Draft Linestyle/ro|Draft Linestyle]]
</div>

Exempluː

{{Code|code=
{{Code|code=
import FreeCAD, Draft
import FreeCAD as App
import Draft
Draft.makeLine(FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,0,0))

doc = App.newDocument()

p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 500, 0)
p3 = App.Vector(-250, -500, 0)
p4 = App.Vector(500, 1000, 0)

line1 = Draft.make_line(p1, p2)
line2 = Draft.make_line(p3, p4)

doc.recompute()
}}


{{Docnav
|
|[[Draft_Wire|Wire]]
|[[Draft_Workbench|Draft]]
|IconL=
|IconR=Draft_Wire.svg
|IconC=Workbench_Draft.svg
}}
}}


{{Draft Tools navi{{#translation:}}}}
{{clear}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 05:07, 9 January 2024

Draft Line

poziția meniului
Draft → Line
Ateliere
Draft, Arch
scurtătură
L I
Prezentat în versiune
-
A se vedea, de asemenea,
Draft Wire

Description

Descriere

Instrumentul Linie creează o linie dreaptă, definită prin două puncte. Ea utilizează Draft Linestyle definită în bara de instrumente Draft. Instrumentul Linie se comportă exact ca instrumentul Draft Wire , cu excepția faptului că se oprește după două puncte.

A Draft Line is in fact a Draft Wire with only two points.

Usage

See also: Draft Tray, Draft Snap and Draft Constrain.

Cum se utilizează

  1. Apăsați butonul Draft Line sau apăsați tastele L apoi I
  2. Faceți clic pe un prim punct din vizualizarea 3D sau tastați un coordinate
  3. Faceți clic pe un al doilea punct din vizualizarea 3D sau tastați un coordinate

Options

The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 0.22).

Opțiuni

  • Apăsați X, Y sau Z după primul punct pentru a restrânge al doilea punct de pe axa dată.
  • Pentru a introduce manual coordonatele, pur și simplu introduceți numerele, apoi apăsați ENTER între fiecare componentă X, Y și Z.
  • Apăsați tasta R sau faceți clic pe caseta de selectare pentru a bifa/debifa butonul Relativ. Dacă modul relativ este activ, coordonatele celui de-al doilea punct sunt relative la prima. Dacă nu, ele sunt absolute, luate din punctul de origine (0,0,0).
  • Apăsați tasta T sau faceți clic pe caseta de selectare pentru a bifa/debifa butonul Continue. Dacă modul continuat este activat, instrumentul Linie se va reporni după ce dați cel de-al doilea punct, permițându-vă să desenați un alt segment de linie fără a apăsa din nou butonul Linie.
  • Apăsați CTRL în timp ce desenați pentru a forța ancorarea snapping punctul dvs. către cea mai apropiată locație, independent de distanța.
  • Apăsați SHIFT în timp ce desenați constrain al doilea punct pe orizontală sau pe verticală în raport cu primul punct.
  • Apăsați tasta CTRL + Z sau apăsați pe ['Image: Draft UndoLine.png pentru a anula ultimul punct.
  • Apăsați butonul ESC sau butonul Anulare pentru a întrerupe comanda curentă.
  • Dacă sunt selectate mai multe linii Draft Lines, ele pot fi transformate într-un filament prin apăsarea butonului Upgrade Draft.

Notes

Preferences

See also: Preferences Editor and Draft Preferences.

  • To change the initial focus of the task panel to the Length input box: Edit → Preferences... → Draft → General → Set focus on Length instead of X coordinate. Note that you must move the pointer in the 3D view for the change to take effect.
  • If the Edit → Preferences... → Draft → General → Create Part primitives if possible option is checked, the command will create a Part Line instead of a Draft Line.

Properties

Proprietăți

  • DATEStart: Punctul de pornire
  • DATEEnd: Punctul final
  • DATESubdivisions: Împărțirea liniei cu numărul de subdiviziuni dat introduced in version 0.16/ro

Scripting

Script-Programare

Instrumentul Linie poate fi utilizat în macros și din consola Python utilizând următoarea funcție:

To create a Draft Line use the make_line method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeLine method.

line = make_line(p1, p2)
line = make_line(LineSegment)
line = make_line(Shape)
  • Creează un obiect Line între cei două puncte punctele p1 și p2 , fiecare definit ca FreeCAD.Vector
  • Creează un obiect Line dintr-un Part.LineSegment
  • Creează un obiect Line de la primul vârf la ultimul vârf al Shape dată
  • Se va folosi versiunea curentă Draft Linestyle

Exempluː

import FreeCAD as App
import Draft

doc = App.newDocument()

p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 500, 0)
p3 = App.Vector(-250, -500, 0)
p4 = App.Vector(500, 1000, 0)

line1 = Draft.make_line(p1, p2)
line2 = Draft.make_line(p3, p4)

doc.recompute()