Draft Offset/cs: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{docnav|[[Draft_Rotate|Rotate]]|[[Draft_Trimex|Trim/Extend (Trimex)]]|[[Draft_Module|Draft]]|IconL=Draft_Rotate.svg|IconC=Workbench_Draft.svg|IconR=Draft_Trimex.svg}} |
|||
{{Docnav |
|||
|[[Draft_Mirror|Mirror]] |
|||
|[[Draft_Trimex|Trimex]] |
|||
|[[Draft_Workbench|Draft]] |
|||
|IconL=Draft_Mirror.svg |
|||
|IconR=Draft_Trimex.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
{{GuiCommand/cs|Name=Draft Offset|Name/cs=Kreslení Odsadit|Workbenches=[[ |
{{GuiCommand/cs|Name=Draft Offset|Name/cs=Kreslení Odsadit|Workbenches=[[Draft_Workbench/cs|Kreslení]], [[Arch_Workbench/cs|Architektura]]|MenuLocation=Draft → Offset|Shortcut=O S|SeeAlso=[[Part_Offset2D/cs|Part 2D Offset]]}} |
||
</div> |
</div> |
||
<span id="Description"></span> |
|||
==Popis== |
==Popis== |
||
Line 11: | Line 20: | ||
Nástroj Odsadit odsadí vybrané objekty o zadanou vzdálenost v aktuální [[Draft SelectPlane/cs|pracovní rovině]]. Není-li vybrán žádný objekt, budete vyzváni k výběru objektu. |
Nástroj Odsadit odsadí vybrané objekty o zadanou vzdálenost v aktuální [[Draft SelectPlane/cs|pracovní rovině]]. Není-li vybrán žádný objekt, budete vyzváni k výběru objektu. |
||
</div> |
</div> |
||
Typically this tool is used in copy mode to create offset copies of a base wire while leaving this wire in the same place. The offset copies are scaled versions of the original object. To create other scaled copies use [[Draft Scale]]. To produce exact copies shifted a distance use [[Draft Move]]. |
|||
[[Image:Draft_Offset_example.jpg|400px]] |
[[Image:Draft_Offset_example.jpg|400px]] |
||
{{Caption|Offsetting a |
{{Caption|Offsetting a Draft Wire}} |
||
<span id="Usage"></span> |
|||
<div class="mw-translate-fuzzy"> |
|||
==Použití== |
==Použití== |
||
</div> |
|||
See also: [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]]. |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 25: | Line 37: | ||
</div> |
</div> |
||
<span id="Options"></span> |
|||
The distance used to create the offset is perpendicular to one of the edges of the original shape, depending on the position of the pointer. If the pointer is moved closer to another edge, this edge now becomes the reference for the distance. Hold the {{KEY|Shift}} key to keep the current reference edge despite moving the pointer closer to other edges. |
|||
==Volby== |
==Volby== |
||
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). |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 36: | Line 49: | ||
* Stisknutím tlačítka {{KEY|ESC}} nebo {{KEY|'''Cancel'''}} zrušíte právě probíhající příkaz. |
* Stisknutím tlačítka {{KEY|ESC}} nebo {{KEY|'''Cancel'''}} zrušíte právě probíhající příkaz. |
||
</div> |
</div> |
||
==Notes== |
|||
* To create an offset version of a [[Draft_BSpline|Draft BSpline]] its points are offset individually, and from the new points a new spline is calculated. This new spline is not parallel to the original spline. For an exact parallel offset of a [[Draft_BSpline|Draft BSpline]] the [[Part_Offset2D|Part Offset2D]] command should be used. |
|||
* The Draft Offset command cannot handle [[Draft_BezCurve|Draft BezCurves]]. Use the [[Part_Offset2D|Part Offset2D]] command instead. |
|||
==Scripting== |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 46: | Line 66: | ||
{{Code|code= |
{{Code|code= |
||
offset_obj = offset(obj, delta, copy=False, bind=False, sym=False, occ=False) |
|||
}} |
}} |
||
Line 60: | Line 80: | ||
{{Code|code= |
{{Code|code= |
||
import FreeCAD |
import FreeCAD as App |
||
import Draft |
|||
doc = App.newDocument() |
|||
⚫ | |||
⚫ | |||
⚫ | |||
p1 = App.Vector(0, 0, 0) |
|||
⚫ | |||
⚫ | |||
wire = Draft.make_wire([p1, p2, p3]) |
|||
doc.recompute() |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
offset1 = Draft.offset(wire, vector, copy=True, bind=True, sym=True) |
|||
offset2 = Draft.offset(wire, 3*vector, copy=True) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
doc.recompute() |
|||
}} |
}} |
||
{{docnav|[[Draft_Rotate|Rotate]]|[[Draft_Trimex|Trim/Extend (Trimex)]]|[[Draft_Module|Draft]]|IconL=Draft_Rotate.svg|IconC=Workbench_Draft.svg|IconR=Draft_Trimex.svg}} |
|||
{{Docnav |
|||
⚫ | |||
|[[Draft_Mirror|Mirror]] |
|||
|[[Draft_Trimex|Trimex]] |
|||
|[[Draft_Workbench|Draft]] |
|||
|IconL=Draft_Mirror.svg |
|||
|IconR=Draft_Trimex.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
⚫ | |||
{{Userdocnavi}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Latest revision as of 05:00, 9 January 2024
Kreslení Odsadit |
Umístění Menu |
---|
Draft → Offset |
Pracovní stoly |
Kreslení, Architektura |
Výchozí zástupce |
O S |
Představen ve verzi |
- |
Viz také |
Part 2D Offset |
Popis
Nástroj Odsadit odsadí vybrané objekty o zadanou vzdálenost v aktuální pracovní rovině. Není-li vybrán žádný objekt, budete vyzváni k výběru objektu.
Offsetting a Draft Wire
Použití
See also: Draft Snap and Draft Constrain.
- Vyberte objekty, které chcete odsadit
- Stiskněte tlačítko Kreslení Odsadit nebo klávesy O a potom S
- Klikněte na bod ve 3D pohledu nebo zadejte vzálenost.
Volby
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).
- Stiskněte klávesu T nebo zaklikněte/odklikněte políčko Pokračovat. Je-li nastaven pokračovací mód, bude nástroj Odsadit hned po ukončení připraven k odsazení nebo kopírování bez nutnosti stisknout znovu tlačítko Odsadit.
- Stisknutí klávesy ALT nebo C nebo kliknutí na tlačítko Kopie vytvoří kopii objektu místo jeho odsazení. Podržíte-li stisknutou klávesu ALT po kliknutí na druhý bod, budete moci umístit několik kopií, až dokud neuvolníte klávesu ALT.
- Stisknutím klávesy CTRL během kreslení vynutíte přichycení vašeho bodu k nejbližšímu uchopovacímu místu nezávisle na vzálenosti od něho.
- Stisknutím klávesy SHIFT během kreslení nastavíte vazbu na aktuální segment místo výběru nejbližšího.
- Stisknutím tlačítka ESC nebo Cancel zrušíte právě probíhající příkaz.
Notes
- To create an offset version of a Draft BSpline its points are offset individually, and from the new points a new spline is calculated. This new spline is not parallel to the original spline. For an exact parallel offset of a Draft BSpline the Part Offset2D command should be used.
- The Draft Offset command cannot handle Draft BezCurves. Use the Part Offset2D command instead.
Scripting
Skriptování
Nástroj Odsadit může být využit v makrech a z konzoly Pythonu použitím následující funkce:
offset_obj = offset(obj, delta, copy=False, bind=False, sym=False, occ=False)
- Odsadí zadaný drát aplikací údajů z Vectoru na první vrchol drátu .
- Je-li copymode True, je vytvořen další objekt, jinak je odsunut původní objekt.
- Je-li bind True a zadaný drát je otevřený, původní a odsunutý drát budou spojeny koncovými body a vytvoří plochu.
- Je-li sym True, je odsunutí provedeno symetricky na obou stranách s celkovou šířkou rovnou délce zadaného vektoru.
- Vrací odsunutý objekt (nebo jeho kopii, je-li copymode True).
Příklad:
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1500, 2000, 0)
p3 = App.Vector(4000, 0, 0)
wire = Draft.make_wire([p1, p2, p3])
doc.recompute()
vector = App.Vector(-200, 150, 0)
offset1 = Draft.offset(wire, vector, copy=True, bind=True, sym=True)
offset2 = Draft.offset(wire, 3*vector, copy=True)
offset3 = Draft.offset(wire, 6*vector, copy=True)
offset4 = Draft.offset(wire, 9*vector, copy=True)
offset5 = Draft.offset(wire, 1.5*vector, copy=True, occ=True)
doc.recompute()
Draft
- 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
User documentation
- 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