Difference between revisions of "Draft Line/cs"
(Created page with "{{GuiCommand|Name=Draft Line|Workbenches=Kreslení, Architektura|MenuLocation=Draft -> Line|Shortcut=L I|SeeAlso=Kreslení drát}}") |
(Updating to match new version of source page) |
||
(32 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <languages/> |
+ | {{Docnav | ||
+ | | | ||
+ | |[[Draft_Wire|Wire]] | ||
+ | |[[Draft_Module|Draft]] | ||
+ | |IconL= | ||
+ | |IconR=Draft_Wire.svg | ||
+ | |IconC=Workbench_Draft.svg | ||
+ | }} | ||
− | == | + | <div class="mw-translate-fuzzy"> |
− | + | {{GuiCommand/cs|Name=Draft Line|Name/cs=Kreslení Přímka|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|MenuLocation=Kreslení → Přímka|Shortcut=L I|SeeAlso=[[Draft Wire/cs|Kreslení drát]]}} | |
+ | </div> | ||
+ | ==Description== | ||
+ | |||
+ | <div class="mw-translate-fuzzy"> | ||
+ | ==Popis== | ||
+ | Nástroj Přímka vytváří rovnou dvoubodovou přímku v aktuální [[Draft SelectPlane/cs|pracovní rovině]]. Použije se [[Draft Linestyle/cs|tloušťka čáry a barva]] předem zadaná v záložce Nástrojů. Nástroj Přímka se chová přesně stejně jako nástroj [[Draft Wire/cs|Drát (lomená čára)]] kromě toho že končí po zadání dvou bodů. | ||
+ | </div> | ||
+ | |||
+ | [[Image:Draft_Line_example.jpg|400px]] | ||
+ | <div class="mw-translate-fuzzy"> | ||
[[Image:Draft_Line_example.jpg|400px]] | [[Image:Draft_Line_example.jpg|400px]] | ||
+ | </div> | ||
+ | |||
+ | ==Usage== | ||
− | == | + | <div class="mw-translate-fuzzy"> |
− | # | + | ==Použití== |
− | # | + | # Stiskněte tlačítko {{KEY|[[Image:Draft Line.png|16px]] [[Draft Line|Přímka]]}} nebo klávesy {{KEY|L}} pak {{KEY|I}} |
− | # | + | # Klikněte na první bod ve 3D pohledu nebo zadejte [[Draft_Coordinates|souřadnice]] |
+ | # Klikněte na druhý bod ve 3D pohledu nebo zadejte [[Draft_Coordinates|souřadnice]]. | ||
+ | </div> | ||
− | + | The line 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. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | + | ===Fusing single lines=== |
− | + | If several connected [[Draft Line|Draft Lines]] are selected they can be fused into a wire by pressing the {{Button|[[Image:Draft Upgrade.svg|16px]] [[Draft Upgrade|Draft Upgrade]]}} tool; '''however''', this wire will not be editable. '''To create an editable wire''', use {{Button|[[Image:Draft Upgrade.svg|16px]] [[Draft Upgrade|Draft Upgrade]]}} three more times on the new shapes (wire, closed wire, face). You can also fuse the original lines with the {{Button|[[Image:Draft Wire.svg|16px]] [[Draft Wire|Draft Wire]]}} tool. | |
− | |||
− | == | + | '''Note:''' A wire can also be created from a single line by adding another point anywhere along its length. To do this, press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button, and click anywhere on the line. |
− | The Line tool can | + | |
− | + | <div class="mw-translate-fuzzy"> | |
+ | ==Volby== | ||
+ | * Po zadání prvního bodu stiskněte {{KEY|X}}, {{KEY|Y}} nebo {{KEY|Z}} pro určení osy druhého bodu. | ||
+ | * Pro zadání souřadnic ručně, jednoduše zadejte číslo a stiskněte {{KEY|ENTER}} mezi každou z komponent X, Y a Z. | ||
+ | * Stiskněte klávesu {{KEY|R}} nebo klikněte/odklikněte zaklikávací políčko {{KEY|'''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 {{KEY|T}} nebo klikněte/odklikněte zaklikávací políčko {{KEY|'''Pokračovat'''}}. Je-li nastaven pokračovací mód, nástroj Přímka bude po ukončení křivky restartován a připraven ke kreslení další přímky bez nutnosti znovu jej spouštět klikáním na tlačítko Přímka. | ||
+ | * Stiskněte při kreslení klávesu {{KEY|CTRL}} pro [[Draft_Snap|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 {{KEY|SHIFT}} pro nastavení [[Draft_Constrain|vazby]] Vašeho dalšího bodu vodorovně nebo svisle v relaci k předchozímu bodu. | ||
+ | * Stiskněte klávesy {{KEY|CTRL}}+{{KEY|Z}} nebo tlačítko {{KEY|[[Image:Draft UndoLine.png|12px]] '''[[Draft_UndoLine|Undo]]'''}} ke zrušení posledního bodu. | ||
+ | * Stiskněte klávesu {{KEY|ESC}} nebo tlačítko {{KEY|'''Cancel'''}} pro ukončení aktuálního příkazu Přímka. | ||
+ | </div> | ||
+ | |||
+ | <div class="mw-translate-fuzzy"> | ||
+ | ==Vlastnosti== | ||
+ | * {{PropertyData/cs|Počátek}}: Počáteční bod | ||
+ | * {{PropertyData/cs|Konec}}: Koncový bod | ||
+ | * {{PropertyData/cs|Subdivisions}}: Divides the line with the given number of subdivisions {{version|0.16}} | ||
+ | </div> | ||
+ | |||
+ | ===Data=== | ||
+ | * {{PropertyData|Start}}: specifies the start point. | ||
+ | * {{PropertyData|End}}: specifies the end point. | ||
+ | * {{PropertyData|Subdivisions}}: specifies the number of interior nodes in the line. {{version|0.16}} | ||
+ | * {{PropertyData|Length}}: (read-only) specifies the length of the segment. | ||
+ | |||
+ | ===View=== | ||
+ | * {{PropertyView|End Arrow}}: if it is {{TRUE}} it will display a symbol at the last point of the line, so it can be used as an annotation line. | ||
+ | * {{PropertyView|Arrow Size}}: specifies the size of the symbol displayed at the end of the line. | ||
+ | * {{PropertyView|Arrow Type}}: specifies the type of symbol displayed at the end of the line, which can be "Dot", "Circle", "Arrow", or "Tick". | ||
+ | |||
+ | <div class="mw-translate-fuzzy"> | ||
+ | ==Skriptování== | ||
+ | Nástroj Přímka může být využit v [[macros|makrech]] a z konzoly Pythonu použitím následující funkce: | ||
+ | </div> | ||
+ | |||
+ | The Line tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function: | ||
{{Code|code= | {{Code|code= | ||
− | makeLine ( | + | Line = makeLine(p1, p2) |
+ | Line = makeLine(LineSegment) | ||
+ | Line = makeLine(Shape) | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | + | <div class="mw-translate-fuzzy"> | |
− | < | + | * Vytvoří přímku mezi dvěma zadanými vektory. Pro kreslení je použita aktuálně nastavená šířka a barva čáry. |
+ | * Vrací nově vytvořený objekt. | ||
+ | </div> | ||
+ | |||
+ | Příklad: | ||
{{Code|code= | {{Code|code= | ||
− | import FreeCAD | + | 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.makeLine(p1, p2) | ||
+ | Line2 = Draft.makeLine(p3, p4) | ||
+ | _doc.recompute() | ||
+ | }} | ||
+ | |||
+ | {{Docnav | ||
+ | | | ||
+ | |[[Draft_Wire|Wire]] | ||
+ | |[[Draft_Module|Draft]] | ||
+ | |IconL= | ||
+ | |IconR=Draft_Wire.svg | ||
+ | |IconC=Workbench_Draft.svg | ||
}} | }} | ||
− | |||
+ | {{Draft Tools navi{{#translation:}}}} | ||
+ | {{Userdocnavi{{#translation:}}}} | ||
{{clear}} | {{clear}} | ||
− |
Latest revision as of 13:58, 1 December 2020
Umístění Menu |
---|
Kreslení → Přímka |
Pracovní stoly |
Kreslení, Architektura |
Výchozí zástupce |
L I |
Představen ve verzi |
- |
Viz také |
Kreslení drát |
Description
Popis
Nástroj Přímka vytváří rovnou dvoubodovou přímku v aktuální pracovní rovině. Použije se tloušťka čáry a barva předem zadaná v záložce Nástrojů. Nástroj Přímka se chová přesně stejně jako nástroj Drát (lomená čára) kromě toho že končí po zadání dvou bodů.
Usage
Použití
- Stiskněte tlačítko
Přímka nebo klávesy L pak I
- Klikněte na první bod ve 3D pohledu nebo zadejte souřadnice
- Klikněte na druhý bod ve 3D pohledu nebo zadejte souřadnice.
The line 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.
Fusing single lines
If several connected Draft Lines are selected they can be fused into a wire by pressing the Draft Upgrade tool; however, this wire will not be editable. To create an editable wire, use
Draft Upgrade three more times on the new shapes (wire, closed wire, face). You can also fuse the original lines with the
Draft Wire tool.
Note: A wire can also be created from a single line by adding another point anywhere along its length. To do this, press the add point button, and click anywhere on the line.
Volby
- Po zadání prvního bodu stiskněte X, Y nebo Z pro určení osy druhého bodu.
- Pro zadání souřadnic ručně, jednoduše zadejte číslo a stiskněte ENTER mezi každou z komponent X, Y a Z.
- 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 Přímka bude po ukončení křivky restartován a připraven ke kreslení další přímky bez nutnosti znovu jej spouštět klikáním na tlačítko Přímka.
- 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ávesy CTRL+Z nebo tlačítko
Undo ke zrušení posledního bodu.
- Stiskněte klávesu ESC nebo tlačítko Cancel pro ukončení aktuálního příkazu Přímka.
Vlastnosti
- DATAPočátek: Počáteční bod
- DATAKonec: Koncový bod
- DATASubdivisions: Divides the line with the given number of subdivisions introduced in version 0.16
Data
- DataStart: specifies the start point.
- DataEnd: specifies the end point.
- DataSubdivisions: specifies the number of interior nodes in the line. introduced in version 0.16
- DataLength: (read-only) specifies the length of the segment.
View
- ViewEnd Arrow: if it is
true
it will display a symbol at the last point of the line, so it can be used as an annotation line. - ViewArrow Size: specifies the size of the symbol displayed at the end of the line.
- ViewArrow Type: specifies the type of symbol displayed at the end of the line, which can be "Dot", "Circle", "Arrow", or "Tick".
Skriptování
Nástroj Přímka může být využit v makrech a z konzoly Pythonu použitím následující funkce:
The Line tool can be used in macros and from the Python console by using the following function:
Line = makeLine(p1, p2)
Line = makeLine(LineSegment)
Line = makeLine(Shape)
- Vytvoří přímku mezi dvěma zadanými vektory. Pro kreslení je použita aktuálně nastavená šířka a barva čáry.
- Vrací nově vytvořený objekt.
Příklad:
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.makeLine(p1, p2)
Line2 = Draft.makeLine(p3, p4)
_doc.recompute()
- Basics: Coordinates, Constraining, Snapping (Near, Extension, Parallel, Grid, Endpoint, Midpoint, Perpendicular, Angle, Center, Ortho, Intersection, Special, Dimensions, Working plane)
- Drawing: Line, Wire, Circle, Arc, Ellipse, Polygon, Rectangle, Text, Dimension, BSpline, Point, ShapeString, Facebinder, Bezier Curve, Label
- Modifying: Move, Rotate, Offset, Trimex, Upgrade, Downgrade, Scale, Edit, Wire to BSpline, Add point, Delete point, Shape 2D View, Draft to Sketch, Array, Path Array, Point Array, Clone, Drawing, Mirror, Stretch
- Utilities: Set working plane, Finish line, Close line, Undo line, Toggle construction mode, Toggle continue mode, Apply style, Toggle display mode, Add to group, Select group contents, Toggle snap, Toggle grid, Show snap bar, Heal, Flip Dimension, VisGroup, Slope, AutoGroup, Set Working Plane Proxy, Add to Construction group
- Additional: Preferences, Import-Export Preferences (DXF/DWG, SVG, OCA, DAT); Draft API

- Installation: Windows, Linux, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting