Draft Wire/ro: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
{{Docnav |
||
|[[Draft_Line|Line]] |
|[[Draft_Line|Line]] |
||
|[[Draft_Fillet|Fillet]] |
|[[Draft_Fillet|Fillet]] |
||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL=Draft_Line.svg |
|IconL=Draft_Line.svg |
||
|IconC=Workbench_Draft.svg |
|||
|IconR=Draft_Fillet.svg |
|IconR=Draft_Fillet.svg |
||
|IconC=Workbench_Draft.svg |
|||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
{{GuiCommand/ro |
|||
{{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]]}} |
|||
|Name=Draft Wire |
|||
|Name/ro=Draft Wire |
|||
|MenuLocation=Draft → Wire |
|||
|Workbenches=[[Draft_Workbench/ro|Draft]], [[Arch_Workbench/ro|Arch]] |
|||
|Shortcut={{KEY|P}} {{KEY|L}} |
|||
|SeeAlso=[[Draft Line/ro|Draft Line]], [[Draft BSpline/ro|Draft BSpline]] |
|||
}} |
|||
</div> |
</div> |
||
==Description== |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 18: | Line 28: | ||
</div> |
</div> |
||
The corners of a Draft Wire can be filleted (rounded) or chamfered by changing its {{PropertyData|Fillet Radius}} or {{PropertyData|Chamfer Size}} respectively. It is also possible to subdivide the edges of a Draft Wire by changing its {{PropertyData|Subdivisions}} property. |
|||
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]] |
||
Line 24: | Line 34: | ||
[[Image:Draft_Polyline_example.jpg|400px]] |
[[Image:Draft_Polyline_example.jpg|400px]] |
||
</div> |
</div> |
||
==Create== |
|||
===Usage=== |
|||
See also: [[Draft_Tray|Draft Tray]], [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]]. |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
==Cum se foloseşte== |
==Cum se foloseşte== |
||
# 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}} |
# 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}} |
||
# Faceți clic pe un prim punct din vizualizarea 3D sau tastați un |
# Faceți clic pe un prim punct din vizualizarea 3D sau tastați un coordinate |
||
# Faceți clic pe un punct suplimentar în vizualizarea 3D sau tastați un |
# Faceți clic pe un punct suplimentar în vizualizarea 3D sau tastați un coordinate |
||
# 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. |
# 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> |
</div> |
||
===Options=== |
|||
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. |
|||
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). |
|||
=== Fuse single lines === |
|||
If several connected [[Draft Line|Draft Line]]s are selected when pressing the {{Button|[[Image:Draft Wire.svg|16px]] [[Draft Wire|Draft Polyline]]}} button, they will be turned into a wire and the command will exit. {{Version|0.17}} |
|||
{{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. |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
== Opțiuni == |
== Opțiuni == |
||
* 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}} |
* 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}} |
||
* Apăsați butonul {{KEY|F}} sau butonul {{KEY|[[Image: Draft FinishLine.png|12px]] ''' |
* Apăsați butonul {{KEY|F}} sau butonul {{KEY|[[Image: Draft FinishLine.png|12px]] '''Finish'''}} pentru a finalize firul și a-l lăsa deschis |
||
* Apăsați butonul {{KEY|C}} or the {{KEY|[[Image:Draft CloseLine.png|12px]] ''' |
* Apăsați butonul {{KEY|C}} or the {{KEY|[[Image:Draft CloseLine.png|12px]] '''Close'''}} terminați firul, dar închizându-l prin adăugarea unui ultim segment între ultimul punct și primul. |
||
* Apăsați {{KEY|X}}, {{KEY|Y}} sau {{KEY|Z}} după un punct pentru a restrânge următorul punct de pe axa dată. |
* Apăsați {{KEY|X}}, {{KEY|Y}} sau {{KEY|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 {{KEY|ENTER}} între fiecare componentă X, Y și Z. |
* Pentru a introduce manual coordonatele, pur și simplu introduceți numerele, apoi apăsați {{KEY|ENTER}} între fiecare componentă X, Y și Z. |
||
Line 52: | Line 65: | ||
* 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 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 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]] ''' |
* Apăsați tasta {{KEY|CTRL}} + {{KEY|Z}} sau apăsați pe {{KEY|[[Image: Draft UndoLine.png|12px]] '''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|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ă. |
* Apăsați butonul {{KEY|ESC}} sau butonul {{KEY|'''Cancel'''}} pentru a întrerupe comanda curentă. |
||
Line 58: | Line 71: | ||
</div> |
</div> |
||
==Join== |
|||
<div class="mw-translate-fuzzy"> |
|||
== Proprietăți == |
|||
===Usage=== |
|||
* {{PropertyData/ro|Closed}}: Specifică dacă firul este închis sau nu |
|||
* {{PropertyData/ro|Chamfer Size}}: Specifică dimensiunea colțurilor zimțate |
|||
# The end points of the [[Draft_Line|Draft Lines]] and/or Draft Wires to be joined must be exactly coincident. If required first adjust points to ensure that this is the case. |
|||
* {{PropertyData/ro|Fillet Radius}}: Specifică o rază de curbură pentru a da nodurilor sârmei |
|||
# Select two or more [[Draft_Line|Draft Lines]] and/or Draft Wires. |
|||
* {{PropertyData/ro|Subdivisions}}: Separă segmentele firului cu numărul de subdiviziuni date {{version/ro|0.16/ro}} |
|||
# There are several ways to invoke the command: |
|||
* {{PropertyData/ro|Make Face}}: Umple firul cu o față dacă este închis |
|||
#* Press the {{Button|[[Image:Draft_Wire.svg|16px]] [[Draft_Wire|Draft Wire]]}} button. |
|||
* {{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 |
|||
#* Select the {{MenuCommand|Drafting → [[Image:Draft_Wire.svg|16px]] Polyline}} option from the menu. |
|||
* {{PropertyView/ro|Pattern}}: Specifică un model de trasare pentru a umple firul cu (Sârmă închisă) |
|||
#* Use the keyboard shortcut: {{KEY|P}} then {{KEY|L}}. |
|||
* {{PropertyView/ro|Pattern Size}}: Specifică dimensiunea șablonului de trasare |
|||
</div> |
|||
==Notes== |
|||
* A Draft Wire can be edited with the [[Draft_Edit|Draft Edit]] command. |
|||
* A Draft Wire can be converted to a [[Draft_BSpline|Draft BSpline]] with the [[Draft_WireToBSpline|Draft WireToBSpline]] command. |
|||
* [[Draft_Line|Draft Lines]] and Draft Wires can also be joined with the [[Draft_Join|Draft Join]] command or the [[Draft_Upgrade|Draft Upgrade]] command. |
|||
==Properties== |
|||
See also: [[Property_editor|Property editor]]. |
|||
A Draft Wire object is derived from a [[Part_Part2DObject|Part Part2DObject]] and inherits all its properties. It also has the following additional properties: |
|||
===Data=== |
===Data=== |
||
* {{PropertyData|Start}}: specifies the first point in the wire. |
|||
{{TitleProperty|Draft}} |
|||
* {{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| |
* {{PropertyData|Area|Area}}: (read-only) specifies the area of the face of the wire. The value will be {{value|0.0}} if {{PropertyData|Make Face}} is {{FALSE}} or the face cannot be created. |
||
* {{PropertyData|Base|Link}} |
|||
* {{PropertyData|Fillet Radius}}: specifies the radius of the fillets (arc segments) created on the corners of the wire. |
|||
* {{PropertyData| |
* {{PropertyData|Chamfer Size|Length}}: specifies the length of the chamfers at the corners of the wire. |
||
* {{PropertyData|Closed|Bool}}: 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. |
|||
:{{Emphasis|Note:}} do not set {{PropertyData|Make Face}} to {{TRUE}} if the wire intersects itself, as it won't create a proper face. |
|||
* {{PropertyData| |
* {{PropertyData|End|VectorDistance}}: specifies the end point of the wire. |
||
* {{PropertyData|Length}}: |
* {{PropertyData|Fillet Radius|Length}}: specifies the radius of the fillets at the corners of the wire. |
||
* {{PropertyData|Length|Length}}: (read-only) specifies the total length of the wire. |
|||
* {{PropertyData|Make Face|Bool}}: 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}} and if the wire does not self-intersect. |
|||
* {{PropertyData|Points|VectorList}}: specifies the points of the wire in its local coordinate system. |
|||
* {{PropertyData|Start|VectorDistance}}: specifies the start point of the wire. |
|||
* {{PropertyData|Subdivisions|Integer}}: specifies the number of subdivisions for each edge of the wire. If it is {{value|1}} each edge will be divided into {{value|2}} equal segments. Subdivisions are applied before chamfers and fillets. |
|||
* {{PropertyData|Tool|Link}} |
|||
===View=== |
===View=== |
||
* {{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]]. |
|||
{{TitleProperty|Draft}} |
|||
* {{PropertyView|Arrow Size|Length}}: specifies the size of the symbol displayed at the end of the wire. |
|||
* {{PropertyView|Arrow Type|Enumeration}}: specifies the type of symbol displayed at the end of the wire, which can be {{value|Dot}}, {{value|Circle}}, {{value|Arrow}}, {{value|Tick}} or {{value|Tick-2}}. |
|||
* {{PropertyView|End Arrow|Bool}}: specifies whether to show a symbol at the end of the wire, so it can be used as an annotation line. |
|||
* {{PropertyView|Pattern|Enumeration}}: specifies the [[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 {{value|Flat Lines}}. |
|||
* {{PropertyView|Pattern Size|Float}}: specifies the size of the [[Draft_Pattern|Draft Pattern]]. |
|||
<span id="Scripting"></span> |
|||
==Script-Programare== |
==Script-Programare== |
||
Line 99: | Line 133: | ||
{{Code|code= |
{{Code|code= |
||
wire = make_wire(pointslist, closed=False, placement=None, face=None, support=None) |
|||
wire = make_wire(Part.Wire, closed=False, placement=None, face=None, support=None) |
|||
}} |
}} |
||
Line 116: | Line 150: | ||
{{Code|code= |
{{Code|code= |
||
import FreeCAD |
import FreeCAD as App |
||
import Draft |
|||
doc = App.newDocument() |
|||
p1 = FreeCAD.Vector(0, 0, 0) |
|||
p2 = FreeCAD.Vector(1000, 1000, 0) |
|||
p3 = FreeCAD.Vector(2000, 0, 0) |
|||
p1 = App.Vector(0, 0, 0) |
|||
p2 = App.Vector(1000, 1000, 0) |
|||
Wire2 = Draft.makeWire([p1, 2*p3, 1.3*p2], closed=True) |
|||
p3 = App.Vector(2000, 0, 0) |
|||
Wire3 = Draft.makeWire([1.3*p3, p1, -1.7*p2], closed=True) |
|||
wire1 = Draft.make_wire([p1, p2, p3], closed=True) |
|||
wire2 = Draft.make_wire([p1, 2*p3, 1.3*p2], closed=True) |
|||
wire3 = Draft.make_wire([1.3*p3, p1, -1.7*p2], closed=True) |
|||
doc.recompute() |
|||
}} |
}} |
||
{{Docnav |
{{Docnav |
||
|[[Draft_Line|Line]] |
|[[Draft_Line|Line]] |
||
|[[Draft_Fillet|Fillet]] |
|[[Draft_Fillet|Fillet]] |
||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL=Draft_Line.svg |
|IconL=Draft_Line.svg |
||
|IconC=Workbench_Draft.svg |
|||
|IconR=Draft_Fillet.svg |
|IconR=Draft_Fillet.svg |
||
|IconC=Workbench_Draft.svg |
|||
}} |
}} |
||
{{Draft Tools navi}} |
{{Draft Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
|||
{{Userdocnavi}} |
|||
{{clear}} |
Latest revision as of 05:06, 9 January 2024
Draft Wire |
poziția meniului |
---|
Draft → Wire |
Ateliere |
Draft, Arch |
scurtătură |
P L |
Prezentat în versiune |
- |
A se vedea, de asemenea, |
Draft Line, Draft BSpline |
Description
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 corners of a Draft Wire can be filleted (rounded) or chamfered by changing its DateFillet Radius or DateChamfer Size respectively. It is also possible to subdivide the edges of a Draft Wire by changing its DateSubdivisions property.
Create
Usage
See also: Draft Tray, Draft Snap and Draft Constrain.
Cum se foloseşte
- Apăsați tasta Draft Wire button, or press W then I sau apăsați W apoi tastele I
- Faceți clic pe un prim punct din vizualizarea 3D sau tastați un coordinate
- Faceți clic pe un punct suplimentar în vizualizarea 3D sau tastați un coordinate
- 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.
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
- 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.
Join
Usage
- The end points of the Draft Lines and/or Draft Wires to be joined must be exactly coincident. If required first adjust points to ensure that this is the case.
- Select two or more Draft Lines and/or Draft Wires.
- There are several ways to invoke the command:
- Press the Draft Wire button.
- Select the Drafting → Polyline option from the menu.
- Use the keyboard shortcut: P then L.
Notes
- A Draft Wire can be edited with the Draft Edit command.
- A Draft Wire can be converted to a Draft BSpline with the Draft WireToBSpline command.
- Draft Lines and Draft Wires can also be joined with the Draft Join command or the Draft Upgrade command.
Properties
See also: Property editor.
A Draft Wire object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:
Data
Draft
- DateArea (
Area
): (read-only) specifies the area of the face of the wire. The value will be0.0
if DateMake Face isfalse
or the face cannot be created. - DateBase (
Link
) - DateChamfer Size (
Length
): specifies the length of the chamfers at the corners of the wire. - DateClosed (
Bool
): specifies if the wire is closed or not. If the wire is initially open this value isfalse
, setting it totrue
will draw a line segment to close the wire. If the wire is initially closed this value istrue
, setting it tofalse
will remove the last line segment and make the wire open. - DateEnd (
VectorDistance
): specifies the end point of the wire. - DateFillet Radius (
Length
): specifies the radius of the fillets at the corners of the wire. - DateLength (
Length
): (read-only) specifies the total length of the wire. - DateMake Face (
Bool
): specifies if the wire makes a face or not. If it istrue
a face is created, otherwise only the edges are considered part of the object. This property only works if DateClosed istrue
and if the wire does not self-intersect. - DatePoints (
VectorList
): specifies the points of the wire in its local coordinate system. - DateStart (
VectorDistance
): specifies the start point of the wire. - DateSubdivisions (
Integer
): specifies the number of subdivisions for each edge of the wire. If it is1
each edge will be divided into2
equal segments. Subdivisions are applied before chamfers and fillets. - DateTool (
Link
)
View
Draft
- VizualizareArrow Size (
Length
): specifies the size of the symbol displayed at the end of the wire. - VizualizareArrow Type (
Enumeration
): specifies the type of symbol displayed at the end of the wire, which can beDot
,Circle
,Arrow
,Tick
orTick-2
. - VizualizareEnd Arrow (
Bool
): specifies whether to show a symbol at the end of the wire, so it can be used as an annotation line. - VizualizarePattern (
Enumeration
): specifies the Draft Pattern with which to fill the face of the closed wire. This property only works if DateMake Face istrue
and if VizualizareDisplay Mode isFlat Lines
. - VizualizarePattern Size (
Float
): 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 = make_wire(pointslist, closed=False, placement=None, face=None, support=None)
wire = make_wire(Part.Wire, closed=False, placement=None, face=None, support=None)
- Creează un obiect
Wire
din lista dată de vectori sau din lista de puncte datepointslist
.- 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
esteTrue
(și firul este închis, (primul și ultimul punct sunt identice)), firul va forma o fațetă.
- Alternatively, the input can be a
- Se va folosi versiunea curentă de linie și culoareDraft Linestyle.
- Returnează obiectul nou creat.
Exempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 1000, 0)
p3 = App.Vector(2000, 0, 0)
wire1 = Draft.make_wire([p1, p2, p3], closed=True)
wire2 = Draft.make_wire([p1, 2*p3, 1.3*p2], closed=True)
wire3 = Draft.make_wire([1.3*p3, p1, -1.7*p2], closed=True)
doc.recompute()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub