Draft Wire/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(38 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
{{Docnav|[[Draft_Line|Line]]|[[Draft_Fillet|Fillet]]|[[Draft_Module|Draft]]|IconL=Draft_Line.svg |IconC=Workbench_Draft.svg|IconR=Draft_Fillet.svg}}

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


<div class="mw-translate-fuzzy">
==Description==
==Descriere==
The Wire tool creates a polyline (sequence of lines made of several segments) in the current [[Draft SelectPlane|work plane]]. It takes the [[Draft Linestyle|linewidth and color]] previously set on the Tasks tab. The Wire tool behaves like the [[Draft Line]] tool, except that it doesn't stop after two points.
Unealta filament "Wire" creează o polilinie (o succesiune de segmente legate între ele) în [[Draft SelectPlane/ro|planul de lucru]] curent. Preia valorile pentru [[Draft Linestyle/ro|lăţimea și culoarea liniei]] setate în prealabil pe tab-ul "Sarcini" (Tasks). Unealta "Wire" se comportă ca şi unealta [[Draft Line/ro|linie din CIornă]], cu deosebirea că va continua şi după trasarea între primele două puncte.
</div>

The [[Draft BSpline|Draft BSpline]] tool behaves like the Wire tool, except that each of its segments is curved instead of being a straight line. Use [[Draft WireToBSpline|Draft WireToBSpline]] to convert one to the other.


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


<div class="mw-translate-fuzzy">
==How to use==
==Cum se foloseşte==
# Press the {{KEY|[[Image:Draft Wire.png|16px]] [[Draft Wire]]}} button, or press {{KEY|W}} then {{KEY|I}} keys
# Apăsați tasta {{KEY|[[Image:Draft Wire.png|16px]] [[Draft Wire/ro|Draft Wire]]}} button, or press {{KEY|W}} then {{KEY|I}} sau apăsați {{KEY|W}} apoi tastele {{KEY|I}}
# Click a first point on the 3D view, or type a [[Draft_Coordinates|coordinate]]
# Click additional point on the 3D view, or type a [[Draft_Coordinates|coordinate]]
# Faceți clic pe un prim punct din vizualizarea 3D sau tastați un [[Draft_Coordinates/ro|coordinate]]
# Faceți clic pe un punct suplimentar în vizualizarea 3D sau tastați un [[Draft_Coordinates/ro|coordinate]]
# Press {{KEY|F}} or {{KEY|C}}, or double-click the last point, or click on the first point to finish or close the wire. If the wire is closed, it will also be a face, even if it appears as wireframe.
# Apăsați {{KEY|F}} sau {{KEY|C}} sau faceți dublu clic pe ultimul punct sau faceți clic pe primul punct pentru a termina sau a închide filamentul/polilinia. Dacă filamentul este închis, acesta va fi, de asemenea, o fațetă, chiar dacă acesta apare ca o rețea wireframe.
</div>


The wire can be edited by double clicking on the element in the tree view, or by pressing the {{Button|[[Image:Draft Edit.svg|16px]] [[Draft Edit|Draft Edit]]}} button. Then you can move the points to a new position, or click {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} or {{Button|[[Image:Draft_DelPoint.svg|16px]] [[Draft_DelPoint|remove point]]}} and then click on the wire to add or remove points.
==Options==
* Press {{KEY|F}} or the {{KEY|[[Image:Draft FinishLine.png|12px]] '''[[Draft_FinishLine|Finish]]'''}} button to finish the wire, leaving it open
* Press {{KEY|C}} or the {{KEY|[[Image:Draft CloseLine.png|12px]] '''[[Draft_CloseLine|Close]]'''}} button or click on the first point to finish the wire, but making it closed by adding a last segment between the last point and the first one.
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after a point to constrain the next point on the given axis.
* 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 next point are relative to the last one. If not, they are absolute, taken from the (0,0,0) origin point.
* Press {{KEY|T}} or click the checkbox to check/uncheck the {{KEY|'''Continue'''}} button. If continue mode is on, the Wire tool will restart after you finish or close it, allowing you to draw another one without pressing the Wire button again.
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* Press {{KEY|SHIFT}} while drawing to [[Draft_Constrain|constrain]] your next point horizontally or vertically in relation to the last one.
* Press {{KEY|W}} or press the {{KEY|[[Image:Draft Wipe.png|12px]] '''Wipe'''}} button to remove the existing segments and start the wire from the last point.
* Press {{KEY|CTRL}}+{{KEY|Z}} or press the {{KEY|[[Image:Draft UndoLine.png|12px]] '''[[Draft_UndoLine|Undo]]'''}} button to undo the last point.
* Press {{KEY|I}} or the {{KEY|'''Filled'''}} button to have the wire to appear as a face after it has been closed. This simply sets the View->Property of the Wire to "Flat lines" or "Wireframe", so it can easily be changed later.
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current Line command.
* Closed wires, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property below.


=== Fuse single lines ===
==Properties==
If several connected [[Draft Line|Draft Line]]s are selected when pressing the {{Button|[[Image:Draft Wire.svg|16px]] [[Draft Wire|Draft Wire]]}} button, they will be turned into a wire and the command will exit. {{Version|0.17}}
* {{PropertyData|Closed}}: Specifies if the wire is closed or not
* {{PropertyData|Chamfer Size}}: Specifies the size of chamfered corners
* {{PropertyData|Fillet Radius}}: Specifies a curvature radius to give to the nodes of the wire
* {{PropertyView|End Arrow}}: Shows an arrow symbol at the last point of the wire, so it can be used as an annotation leader line
* {{PropertyView|Pattern}}: Specifies a hatch pattern to fill the wire with (Closed Wire)
* {{PropertyView|Pattern Size}}: Specifies the size of the hatch pattern


{{emphasis|Note:}} the end points of the lines must be exactly touching or they won't merge. If necessary, manually adjust the [[Draft Coordinates|Draft Coordinates]] of the start and end points of the lines, or use [[Draft Snap|Draft Snap]] with the [[Draft Endpoint|Draft Endpoint]] mode to make the nodes coincident.
See also [[Draft Pattern|Draft Pattern]] page.


<div class="mw-translate-fuzzy">
==Scripting==
== Opțiuni ==
The Wire tool can by used in [[macros]] and from the python console by using the following function:
* Dacă sunt selectate mai multe linii [[Draft Line/ro|Draft Lines]] atunci când apăsați butonul '''Draft Wire''', acestea vor fi transformate într-un fir și comanda va ieși. {{Version|0.17/ro}}
<syntaxhighlight>
* Apăsați butonul {{KEY|F}} sau butonul {{KEY|[[Image: Draft FinishLine.png|12px]] '''[[Draft_FinishLine/ro|Finish]]'''}} pentru a finalize firul și a-l lăsa deschis
makeWire (list or Part.Wire, [closed], [placement], [facemode])
* Apăsați butonul {{KEY|C}} or the {{KEY|[[Image:Draft CloseLine.png|12px]] '''[[Draft_CloseLine/ro|Close]]'''}} terminați firul, dar închizându-l prin adăugarea unui ultim segment între ultimul punct și primul.
</syntaxhighlight>
* Apăsați {{KEY|X}}, {{KEY|Y}} sau {{KEY|Z}} după un punct pentru a restrânge următorul punct de pe axa dată.
* Creates a Wire object from the given list of vectors or from the given wire.
* Pentru a introduce manual coordonatele, pur și simplu introduceți numerele, apoi apăsați {{KEY|ENTER}} între fiecare componentă X, Y și Z.
** If closed is True or if first and last points are identical, the wire is closed.
* 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 punctului următor sunt relative la ultimul. Dacă nu, ele sunt absolute, luate din punctul de origine (0,0,0).
** If facemode is True (and the wire is closed), the wire will appear filled.
* Apăsați tasta {{KEY|T}} sau faceți clic pe caseta de selectare pentru a bifa/debifa butonul {{KEY|'''Continue'''}}. Dacă funcția continuă este activată, instrumentul Wire se va reporni după ce terminați sau închideți-l, permițându-vă să desenați altul fără să apăsați din nou butonul Wire.
* The current Draft linewidth and color will be used.
* Apăsați {{KEY|CTRL}} în timp ce desenați pentru a forța ancorarea [[Draft_Snap/ro|snapping]] punctului dvs. către cea mai apropiată locație, independent de distanța.
* Returns the newly created object.
* Apăsați pe {{KEY|SHIFT}} în timp ce desenați [[Draft_Constrain/ro|constrain]] următorul punct pe orizontală sau pe verticală în raport cu ultimul.
* Apăsați butonul {{KEY|W}} sau apăsați butonul {{KEY|[[Image: Draft Wipe.png|12px]] '''Șterge'''}} pentru a elimina segmentele existente și a porni firul de la ultima punct.
* Apăsați tasta {{KEY|CTRL}} + {{KEY|Z}} sau apăsați pe {{KEY|[[Image: Draft UndoLine.png|12px]] '''[[Draft_UndoLine/ro|Undo]]'''}} pentru a anula ultimul punct.
* Apăsați butonul {{KEY|I}} sau butonul {{KEY|'''Fillet'''}} pentru a avea firul umplut cu o fațetă dacă este închis.
* Apăsați butonul {{KEY|ESC}} sau butonul {{KEY|'''Cancel'''}} pentru a întrerupe comanda curentă.
* Firele închise, atunci când sunt în modul de afișare "Flat Lines", pot afișa un model de hașură, prin setarea proprietății "Pattern" de mai jos.
</div>


<div class="mw-translate-fuzzy">
Example:
== Proprietăți ==
<syntaxhighlight>
* {{PropertyData/ro|Closed}}: Specifică dacă firul este închis sau nu
import FreeCAD,Draft
* {{PropertyData/ro|Chamfer Size}}: Specifică dimensiunea colțurilor zimțate
p1 = FreeCAD.Vector(0,0,0)
* {{PropertyData/ro|Fillet Radius}}: Specifică o rază de curbură pentru a da nodurilor sârmei
p2 = FreeCAD.Vector(1,1,0)
* {{PropertyData/ro|Subdivisions}}: Separă segmentele firului cu numărul de subdiviziuni date {{version/ro|0.16/ro}}
p3 = FreeCAD.Vector(2,0,0)
* {{PropertyData/ro|Make Face}}: Umple firul cu o față dacă este închis
Draft.makeWire([p1,p2,p3],closed=True)
* {{PropertyView/ro|End Arrow}}: Arată un simbol săgeată în ultimul punct al firului, astfel încât acesta poate fi folosit ca linie de lider de adnotări
* {{PropertyView/ro|Pattern}}: Specifică un model de trasare pentru a umple firul cu (Sârmă închisă)
* {{PropertyView/ro|Pattern Size}}: Specifică dimensiunea șablonului de trasare
</div>


===Data===
* {{PropertyData|Start}}: specifies the first point in the wire.
* {{PropertyData|End}}: specifies the last point in the wire, not counting the initial point if the wire is closed.
* {{PropertyData|Closed}}: specifies if the wire is closed or not. If the wire is initially open, this value is {{FALSE}}; setting it to {{TRUE}} will draw a line segment to close the wire. If the wire is initially closed, this value is {{TRUE}}; setting it to {{FALSE}} will remove the last line segment, and make the wire open.
* {{PropertyData|Chamfer Size}}: specifies the size of the chamfers (straight segments) created on the corners of the wire.
* {{PropertyData|Fillet Radius}}: specifies the radius of the fillets (arc segments) created on the corners of the wire.
* {{PropertyData|Make Face}}: specifies if the wire makes a face or not. If it is {{TRUE}} a face is created, otherwise only the edges are considered part of the object. This property only works if {{PropertyData|Closed}} is {{TRUE}}.
:{{Emphasis|Note:}} do not set {{PropertyData|Make Face}} to {{TRUE}} if the wire intersects itself, as it won't create a proper face.
* {{PropertyData|Subdivisions}}: specifies the number of interior nodes in each segment of the wire. {{version|0.16}}
* {{PropertyData|Length}}: (read-only) specifies the length of the entire wire.


===View===
</syntaxhighlight>
* {{PropertyView|End Arrow}}: if it is {{TRUE}} it will display a symbol at the last point of the wire, so it can be used as an annotation line.
* {{PropertyView|Arrow Size}}: specifies the size of the symbol displayed at the end of the wire.
* {{PropertyView|Arrow Type}}: specifies the type of symbol displayed at the end of the wire, which can be "Dot", "Circle", "Arrow", or "Tick".
* {{PropertyView|Pattern}}: specifies a [[Draft Pattern|Draft Pattern]] with which to fill the face of the closed wire. This property only works if {{PropertyData|Make Face}} is {{TRUE}}, and if {{PropertyView|Display Mode}} is "Flat Lines".
* {{PropertyView|Pattern Size}}: specifies the size of the [[Draft Pattern|Draft Pattern]].

==Script-Programare==

<div class="mw-translate-fuzzy">
''A se vedea [[FreeCAD Scripting Basics/ro|FreeCAD Scripting Basics]] pentru mai multe informații''
</div>

<div class="mw-translate-fuzzy">
Instrumentul Wire tool poate fi utilizat în [[macros/ro|macros]] și de la consola Python utilizând următoarele funcții:
</div>
{{Code|code=
Wire = makeWire(pointslist, closed=False, placement=None, face=None, support=None)
Wire = makeWire(Part.Wire, closed=False, placement=None, face=None, support=None)
}}

<div class="mw-translate-fuzzy">
* Creează un obiect <code>Wire</code> din lista dată de vectori sau din lista de puncte date <code>pointslist</code>.
** Dacă închis este Adevărat sau dacă primele și ultimul puncte sunt identice, firul este închis.
* Each point in the list is defined by its <code>FreeCAD.Vector</code>
** Alternatively, the input can be a <code>Part.Wire</code>, from which points are extracted
** Dacă <code>closed</code> este <code>True</code> (și firul este închis, (primul și ultimul punct sunt identice)), firul va forma o fațetă.
* Se va folosi versiunea curentă de linie și culoare[[Draft Linestyle]].
* Returnează obiectul nou creat.
</div>

Exempluː
{{Code|code=
import FreeCAD, Draft

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 1000, 0)
p3 = FreeCAD.Vector(2000, 0, 0)

Wire1 = Draft.makeWire([p1, p2, p3], closed=True)
Wire2 = Draft.makeWire([p1, 2*p3, 1.3*p2], closed=True)
Wire3 = Draft.makeWire([1.3*p3, p1, -1.7*p2], closed=True)
}}

{{Docnav|[[Draft_Line|Line]]|[[Draft_Fillet|Fillet]]|[[Draft_Module|Draft]]|IconL=Draft_Line.svg |IconC=Workbench_Draft.svg|IconR=Draft_Fillet.svg}}

{{Draft Tools navi}}

{{Userdocnavi}}
{{clear}}
{{clear}}
<languages/>

Revision as of 11:21, 6 September 2019

Draft Wire

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

Descriere

Unealta filament "Wire" creează o polilinie (o succesiune de segmente legate între ele) în planul de lucru curent. Preia valorile pentru lăţimea și culoarea liniei setate în prealabil pe tab-ul "Sarcini" (Tasks). Unealta "Wire" se comportă ca şi unealta linie din CIornă, cu deosebirea că va continua şi după trasarea între primele două puncte.

The Draft BSpline tool behaves like the Wire tool, except that each of its segments is curved instead of being a straight line. Use Draft WireToBSpline to convert one to the other.

Cum se foloseşte

  1. Apăsați tasta Draft Wire button, or press W then I sau apăsați W apoi tastele I
  2. Faceți clic pe un prim punct din vizualizarea 3D sau tastați un coordinate
  3. Faceți clic pe un punct suplimentar în vizualizarea 3D sau tastați un coordinate
  4. Apăsați F sau C sau faceți dublu clic pe ultimul punct sau faceți clic pe primul punct pentru a termina sau a închide filamentul/polilinia. Dacă filamentul este închis, acesta va fi, de asemenea, o fațetă, chiar dacă acesta apare ca o rețea wireframe.

The wire can be edited by double clicking on the element in the tree view, or by pressing the Draft Edit button. Then you can move the points to a new position, or click add point or remove point and then click on the wire to add or remove points.

Fuse single lines

If several connected Draft Lines are selected when pressing the Draft Wire button, they will be turned into a wire and the command will exit. introduced in version 0.17

Note: the end points of the lines must be exactly touching or they won't merge. If necessary, manually adjust the Draft Coordinates of the start and end points of the lines, or use Draft Snap with the Draft Endpoint mode to make the nodes coincident.

Opțiuni

  • Dacă sunt selectate mai multe linii Draft Lines atunci când apăsați butonul Draft Wire, acestea vor fi transformate într-un fir și comanda va ieși. introduced in version 0.17/ro
  • Apăsați butonul F sau butonul Finish pentru a finalize firul și a-l lăsa deschis
  • Apăsați butonul C or the Close terminați firul, dar închizându-l prin adăugarea unui ultim segment între ultimul punct și primul.
  • Apăsați X, Y sau Z după un punct pentru a restrânge următorul 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 punctului următor sunt relative la ultimul. 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ă funcția continuă este activată, instrumentul Wire se va reporni după ce terminați sau închideți-l, permițându-vă să desenați altul fără să apăsați din nou butonul Wire.
  • Apăsați CTRL în timp ce desenați pentru a forța ancorarea snapping punctului dvs. către cea mai apropiată locație, independent de distanța.
  • Apăsați pe SHIFT în timp ce desenați constrain următorul punct pe orizontală sau pe verticală în raport cu ultimul.
  • Apăsați butonul W sau apăsați butonul Șterge pentru a elimina segmentele existente și a porni firul de la ultima punct.
  • Apăsați tasta CTRL + Z sau apăsați pe Undo pentru a anula ultimul punct.
  • Apăsați butonul I sau butonul Fillet pentru a avea firul umplut cu o fațetă dacă este închis.
  • Apăsați butonul ESC sau butonul Cancel pentru a întrerupe comanda curentă.
  • Firele închise, atunci când sunt în modul de afișare "Flat Lines", pot afișa un model de hașură, prin setarea proprietății "Pattern" de mai jos.

Proprietăți

  • DATEClosed: Specifică dacă firul este închis sau nu
  • DATEChamfer Size: Specifică dimensiunea colțurilor zimțate
  • DATEFillet Radius: Specifică o rază de curbură pentru a da nodurilor sârmei
  • DATESubdivisions: Separă segmentele firului cu numărul de subdiviziuni date introduced in version 0.16/ro
  • DATEMake Face: Umple firul cu o față dacă este închis
  • VEDEREEnd Arrow: Arată un simbol săgeată în ultimul punct al firului, astfel încât acesta poate fi folosit ca linie de lider de adnotări
  • VEDEREPattern: Specifică un model de trasare pentru a umple firul cu (Sârmă închisă)
  • VEDEREPattern Size: Specifică dimensiunea șablonului de trasare

Data

  • DateStart: specifies the first point in the wire.
  • DateEnd: specifies the last point in the wire, not counting the initial point if the wire is closed.
  • DateClosed: specifies if the wire is closed or not. If the wire is initially open, this value is false; setting it to true will draw a line segment to close the wire. If the wire is initially closed, this value is true; setting it to false will remove the last line segment, and make the wire open.
  • DateChamfer Size: specifies the size of the chamfers (straight segments) created on the corners of the wire.
  • DateFillet Radius: specifies the radius of the fillets (arc segments) created on the corners of the wire.
  • DateMake Face: specifies if the wire makes a face or not. If it is true a face is created, otherwise only the edges are considered part of the object. This property only works if DateClosed is true.
Note: do not set DateMake Face to true if the wire intersects itself, as it won't create a proper face.
  • DateSubdivisions: specifies the number of interior nodes in each segment of the wire. introduced in version 0.16
  • DateLength: (read-only) specifies the length of the entire wire.

View

  • VizualizareEnd Arrow: if it is true it will display a symbol at the last point of the wire, so it can be used as an annotation line.
  • VizualizareArrow Size: specifies the size of the symbol displayed at the end of the wire.
  • VizualizareArrow Type: specifies the type of symbol displayed at the end of the wire, which can be "Dot", "Circle", "Arrow", or "Tick".
  • VizualizarePattern: specifies a Draft Pattern with which to fill the face of the closed wire. This property only works if DateMake Face is true, and if VizualizareDisplay Mode is "Flat Lines".
  • VizualizarePattern Size: specifies the size of the Draft Pattern.

Script-Programare

A se vedea FreeCAD Scripting Basics pentru mai multe informații

Instrumentul Wire tool poate fi utilizat în macros și de la consola Python utilizând următoarele funcții:

Wire = makeWire(pointslist, closed=False, placement=None, face=None, support=None)
Wire = makeWire(Part.Wire, closed=False, placement=None, face=None, support=None)
  • Creează un obiect Wire din lista dată de vectori sau din lista de puncte date pointslist.
    • Dacă închis este Adevărat sau dacă primele și ultimul puncte sunt identice, firul este închis.
  • Each point in the list is defined by its FreeCAD.Vector
    • Alternatively, the input can be a Part.Wire, from which points are extracted
    • Dacă closed este True (și firul este închis, (primul și ultimul punct sunt identice)), firul va forma o fațetă.
  • Se va folosi versiunea curentă de linie și culoareDraft Linestyle.
  • Returnează obiectul nou creat.

Exempluː

import FreeCAD, Draft

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 1000, 0)
p3 = FreeCAD.Vector(2000, 0, 0)

Wire1 = Draft.makeWire([p1, p2, p3], closed=True)
Wire2 = Draft.makeWire([p1, 2*p3, 1.3*p2], closed=True)
Wire3 = Draft.makeWire([1.3*p3, p1, -1.7*p2], closed=True)