Draft Wire/cs: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(One intermediate revision by the same user not shown)
Line 12: Line 12:
{{GuiCommand/cs|Name=Draft_Wire|Name/cs=Kreslení Drát|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|Shortcut=W I|MenuLocation=Kreslení -> Drát|SeeAlso=[[Draft Line/cs|Kreslení Přímka]], [[Draft BSpline/cs|Kreslení B-křivka]]}}
{{GuiCommand/cs|Name=Draft_Wire|Name/cs=Kreslení Drát|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|Shortcut=W I|MenuLocation=Kreslení -> Drát|SeeAlso=[[Draft Line/cs|Kreslení Přímka]], [[Draft BSpline/cs|Kreslení B-křivka]]}}
</div>
</div>

==Description==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 22: Line 24:
[[Image:Draft_Polyline_example.jpg|400px]]
[[Image:Draft_Polyline_example.jpg|400px]]
{{Caption|Wire defined by multiple points}}
{{Caption|Wire defined by multiple points}}

==Usage==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 31: Line 35:
</div>
</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.
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.


=== Fuse single lines ===
=== Fuse single lines ===
Line 37: Line 41:


{{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.
{{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.

==Options==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 124: Line 130:
}}
}}


{{Draft Tools navi}}

{{Userdocnavi}}


{{clear}}
{{clear}}

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

Revision as of 21:45, 21 February 2020

Kreslení Drát

Umístění Menu
Kreslení -> Drát
Pracovní stoly
Kreslení, Architektura
Výchozí zástupce
W I
Představen ve verzi
-
Viz také
Kreslení Přímka, Kreslení B-křivka

Description

Popis

Nástroj Drát vytváří lomenou čáru (sekvenci přímek z několika segmentů) v aktuální pracovní rovině. Použije se tloušťka čáry a barva předem zadaná v záložce Nástrojů. Nástroj Drát se chová přesně stejně jako nástroj Přímka kromě toho, že nekončí po zadání dvou bodů.

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.

Wire defined by multiple points

Usage

Použití

  1. Stiskněte tlačítko Drát nebo klávesy W potom I
  2. Klikněte na první bod ve 3D pohledu nebo zadejte jeho souřadnice
  3. Klikněte na další bod ve 3D pohledu nebo zadejte jeho souřadnice
  4. Stiskněte klávesu F nebo C nebo dvojklikněte na poslední bod pro ukončení nebo uzavření drátu. Je-li drát uzavřen, bude zároveň i povrchem i když se jeví jako drátový model.

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 Polyline 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.

Options

Volby

  • Stiskněte klávesu F nebo tlačítko UkončitČáru pro ukončení drátu a ponechání jej otevřený
  • Stiskněte klávesu C nebo tlačítko UzavřítČáru nebo klikněte na první bod drátu. Tím se drát ukončí a uzavře se doplněním posledního (uzavíracího) segmentu mezi posledním a počátečním bodem.
  • Stisknutím klávesy X, Y nebo Z po zadání bodu zajistíte, že následující bod bude ležet na dané ose.
  • Pro ruční zadávání souřadnic jednoduše zadávejte čísla a mezi každou komponentou X, Y a Z stiskněte ENTER
  • Stiskněte klávesu R nebo klikněte/odklikněte zaklikávací políčko Relativní. Je-li nastaven relativní mód jsou souřadnice následujícího bodu relativní k předchozímu bodu. Je-li mód absolutní souřadnice jsou vztaženy k počátečnímu bodu (0,0,0).
  • Stiskněte klávesu T nebo klikněte/odklikněte zaklikávací políčko Pokračovat. Je-li nastaven pokračovací mód, nástroj Drát bude po ukončení drátu restartován a připraven ke kreslení dalšího drátu bez nutnosti znovu jej spouštět klikáním na tlačítko Drát.
  • Stiskněte při kreslení klávesu CTRL pro přichycení Vašeho bodu k nejbližšímu uchopovacímu místu, nezávisle na vzdálenosti od něho.
  • Stiskněte při kreslení klávesu SHIFT pro nastavení vazby Vašeho dalšího bodu vodorovně nebo svisle v relaci k předchozímu bodu.
  • Stiskněte klávesu W nebo stiskněte tlačítko Smaž pro odstranění existujících segmentů a začněte křivku z posledního bodu.
  • Stiskněte klávesy CTRL+Z nebo tlačítko Undo k návratu na poslední bod.
  • Stiskněte klávesu I nebo tlačítko Filled aby se drát po jeho uzavření zobrazoval jako plocha. To jednoduše nastavuje Pohled->Vlastnost Drát na "Otevřené čáry" nebo "Drátový model", toto také může být snadno změněno později.
  • Stiskněte klávesu ESC nebo tlačítko Cancel pro ukončení aktuálního příkazu Drát.

Vlastnosti

  • ÚdajeUzavřen: Specifikuje zda je drát uzavřen nebo ne
  • ÚdajePoloměr zaoblení: Specifikuje poloměr zaoblení ve spojích drátu
  • PohledKoncová šipka: Ukazuje symbol šipky na koncovém bodě drátu, takže ten může být použit jako linka pro vysvělivku

Data

  • ÚdajeStart: specifies the first point in the wire.
  • ÚdajeEnd: specifies the last point in the wire, not counting the initial point if the wire is closed.
  • ÚdajeClosed: 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.
  • ÚdajeChamfer Size: specifies the size of the chamfers (straight segments) created on the corners of the wire.
  • ÚdajeFillet Radius: specifies the radius of the fillets (arc segments) created on the corners of the wire.
  • ÚdajeMake 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 ÚdajeClosed is true.
Note: do not set ÚdajeMake Face to true if the wire intersects itself, as it won't create a proper face.
  • ÚdajeSubdivisions: specifies the number of interior nodes in each segment of the wire. introduced in version 0.16
  • ÚdajeLength: (read-only) specifies the length of the entire wire.

View

  • PohledEnd 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.
  • PohledArrow Size: specifies the size of the symbol displayed at the end of the wire.
  • PohledArrow Type: specifies the type of symbol displayed at the end of the wire, which can be "Dot", "Circle", "Arrow", or "Tick".
  • PohledPattern: specifies a Draft Pattern with which to fill the face of the closed wire. This property only works if ÚdajeMake Face is true, and if PohledDisplay Mode is "Flat Lines".
  • PohledPattern Size: specifies the size of the Draft Pattern.

Skriptování

Nástroj Drát může být využit v makrech a z konzoly Pythonu použitím následující funkce:

See also: Draft API and FreeCAD Scripting Basics.

The Wire tool can be used in macros and from the Python console by using the following function:

Wire = makeWire(pointslist, closed=False, placement=None, face=None, support=None)
Wire = makeWire(Part.Wire, closed=False, placement=None, face=None, support=None)
  • Vytvoří objekt Drát podle zadaného seznamu vektorů bodů nebo podle Drát (Part Wire).
  • Je-li closed True nebo jsou-li první a poslední bod identické, drát je uzavřen.
  • Je-li face (plocha) True (a drát je uzavřen), bude se drát jevit jako vyplněná plocha.
  • Je použita aktuálně nastavená tloušťka čáry a barva čáry.
  • Vrací nově vytvořený objekt.

Příklad:

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)