Draft SelectPlane/cs: Difference between revisions
No edit summary |
(Updating to match new version of source page) |
||
(34 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
{{GuiCommand/cs|Name=Draft SelectPlane|Name/cs=Kreslení VýběrRoviny|Workbenches=[[Draft Module/cs|Kreslení]], [[Arch Module/cs|Architektura]]|MenuLocation=Kreslení -> Utility -> Výběr roviny}} |
|||
{{Docnav |
|||
|[[Draft_Shape2DView|Shape2DView]] |
|||
|[[Draft_SetStyle|SetStyle]] |
|||
|[[Draft_Workbench|Draft]] |
|||
|IconL=Draft_Shape2DView.svg |
|||
|IconR=Draft_SetStyle.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/cs|Name=Draft SelectPlane|Name/cs=Kreslení VýběrRoviny|Workbenches=[[Draft_Workbench/cs|Kreslení]], [[Arch_Workbench/cs|Architektura]]|MenuLocation=Kreslení -> Utility -> Výběr roviny}} |
|||
</div> |
|||
==Description== |
|||
<div class="mw-translate-fuzzy"> |
|||
==Popis== |
==Popis== |
||
Modul kreslení má pracovní rovinu, která umožňuje specifikovat uživatelskou rovinu ve 3D, na které se bude realizovat následujíci kreslicí příkaz. Pro definování pracovní roviny existuje několik metod: |
Modul kreslení má pracovní rovinu, která umožňuje specifikovat uživatelskou rovinu ve 3D, na které se bude realizovat následujíci kreslicí příkaz. Pro definování pracovní roviny existuje několik metod: |
||
Line 7: | Line 23: | ||
* Z předvolby: horní, přední nebo boční |
* Z předvolby: horní, přední nebo boční |
||
* Žádná, v tomto případě je pracovní rovina automaticky adaptována podle aktuálního pohledu, kde spouštíte příkaz nebo na ploše, pokud začínáte kreslení na existující ploše. |
* Žádná, v tomto případě je pracovní rovina automaticky adaptována podle aktuálního pohledu, kde spouštíte příkaz nebo na ploše, pokud začínáte kreslení na existující ploše. |
||
</div> |
|||
{{Version|1.0}}: For each 3D view a separate working plane is stored. |
|||
[[Image:Workingplane_example.jpg|400px]] |
|||
The [[Image:Draft_tray_button_plane.png]] button in the [[Draft_Tray|Draft Tray]] changes depending on the current working plane. {{Version|1.0}}: If the working plane is not set to {{MenuCommand|Auto}} an asterisk ({{MenuCommand|*}}) is appended to the button label if the origin of the working plane does not match the global origin. |
|||
==Použití== |
|||
# Stiskněte tlačítko {{KEY|[[Image:Draft SelectPlane.png|16px]] [[Draft SelectPlane/cs|VýběrRoviny]]}}. Pokud tlačítko nevypadá takto, podívejte se na tuto [[Basic_modeling_tutorial#DraftPlaneButton|poznámku]]. |
|||
[[Image:WorkingPlane_example.png|400px]] |
|||
{{Caption|Shapes created on different working planes}} |
|||
==Usage with pre-selection== |
|||
# Do one of the following: |
|||
#* Select a single object. The following objects are supported: |
|||
#** [[Draft_WorkingPlaneProxy|Draft WorkingPlaneProxies]]: the {{PropertyView|View Data}} (the camera position) and the {{PropertyView|Visibility Map}} (the saved visibility of objects) of the working plane proxy are also restored. |
|||
#** [[Arch_Axis|Arch Axes]] ({{Version|1.0}}) |
|||
#** [[Arch_AxisSystem|Arch AxisSystems]] ({{Version|1.0}}) |
|||
#** [[Arch_BuildingPart|Arch BuildingParts]] |
|||
#** [[Arch_SectionPlane|Arch SectionPlanes]] |
|||
#** [[Std_Part|Std Parts]]: to avoid selecting subelements it is advisable to select these in the [[Tree_view|Tree view]]. |
|||
#** Non-solid objects that consist of a single flat face or a single curved edge, or ({{Version|1.0}}) that have three or more vertices. |
|||
#** Solid objects or objects without a shape that have a {{PropertyData|Placement}} property. ({{Version|1.0}}) |
|||
#* Select one or more subelements. You can select: |
|||
#** A flat face. |
|||
#** A curved edge. |
|||
#** Three vertices. |
|||
#** An edge and a vertex, or two edges. The combined vertices must define a plane. ({{Version|1.0}}) |
|||
# There are several ways to invoke the command: |
|||
#* Press the [[Image:Draft_tray_button_plane.png]] button in the [[Draft_Tray|Draft Tray]]. |
|||
#* Select the {{MenuCommand|Utilities → [[Image:Draft_SelectPlane.svg|16px]] Select plane}} option from the menu. |
|||
#* Use the keyboard shortcut: {{KEY|W}} then {{KEY|P}}. |
|||
# The working plane and the button in the [[Draft_Tray|Draft Tray]] are updated. |
|||
==Usage with post-selection== |
|||
# There are several ways to invoke the command: |
|||
#* Press the [[Image:Draft_tray_button_plane.png]] button in the [[Draft_Tray|Draft Tray]]. |
|||
#* Select the {{MenuCommand|Utilities → [[Image:Draft_SelectPlane.svg|16px]] Select plane}} option from the menu. |
|||
#* Use the keyboard shortcut: {{KEY|W}} then {{KEY|P}}. |
|||
# The {{MenuCommand|Working plane setup}} task panel opens. See [[#Options|Options]] for more information. |
|||
# Do one of the following: |
|||
#* Select a single object. See the [[#Usage_with_pre-selection|previous paragraph]]. |
|||
#* Select one or more subelements. See the [[#Usage_with_pre-selection|previous paragraph]]. |
|||
# Click anywhere in the [[3D_view|3D view]] to confirm the selection and finish the command. |
|||
# The working plane and the button in the [[Draft_Tray|Draft Tray]] are updated. |
|||
==Usage with presets== |
|||
# There are several ways to invoke the command: |
|||
#* Press the [[Image:Draft_tray_button_plane.png]] button in the [[Draft_Tray|Draft Tray]]. |
|||
#* Select the {{MenuCommand|Utilities → [[Image:Draft_SelectPlane.svg|16px]] Select plane}} option from the menu. |
|||
#* Use the keyboard shortcut: {{KEY|W}} then {{KEY|P}}. |
|||
# The {{MenuCommand|Working plane setup}} task panel opens. See [[#Options|Options]] for more information. |
|||
# Press any of the buttons to finish the command. |
|||
# The working plane and the button in the [[Draft_Tray|Draft Tray]] are updated. |
|||
==Options== |
|||
<div class="mw-translate-fuzzy"> |
|||
==Volby== |
==Volby== |
||
* Pro nastavení pracovní roviny na existující plochu: vyberte existující objekt ve 3D pohledu a potom stiskněte tlačítko {{KEY|[[Image:Draft SelectPlane.png|16px]] [[Draft SelectPlane/cs|VýběrRoviny]]}} |
* Pro nastavení pracovní roviny na existující plochu: vyberte existující objekt ve 3D pohledu a potom stiskněte tlačítko {{KEY|[[Image:Draft SelectPlane.png|16px]] [[Draft SelectPlane/cs|VýběrRoviny]]}} |
||
Line 18: | Line 86: | ||
* Stisknutí tlačítka {{KEY|'''ŽÁDNÁ'''}} zruší nastavení aktuální pracovní roviny. Následující 2D operace budou závislé na pohledu. |
* Stisknutí tlačítka {{KEY|'''ŽÁDNÁ'''}} zruší nastavení aktuální pracovní roviny. Následující 2D operace budou závislé na pohledu. |
||
* Múžete také specifikovat hodnotu odsunutí, což odsune pracovní rovinu o zadanou vzdálenost od vybrané roviny. |
* Múžete také specifikovat hodnotu odsunutí, což odsune pracovní rovinu o zadanou vzdálenost od vybrané roviny. |
||
</div> |
|||
==Notes== |
|||
* It can be useful to align the [[3D_view|3D view]] with the selected Draft working plane. For example after switching the working plane to Front you may want to switch to the [[Std_ViewFront|Front view]] as well. |
|||
* The grid can be toggled with the [[Draft_ToggleGrid|Draft ToggleGrid]] command. |
|||
* By double-clicking [[Draft_WorkingPlaneProxy|Draft WorkingPlaneProxies]] in the [[Tree_view|Tree view]] you can quickly switch between working planes. |
|||
==Preferences== |
|||
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]]. |
|||
* The grid settings in the task panel as well as several other grid settings are available as preferences: {{MenuCommand|Edit → Preferences... → Draft → Grid and snapping}}. |
|||
* The Snapping radius can also be changed on-the-fly (see [[Draft_Snap#Preferences|Draft Snap]]) or by changing: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → snapRange}}. |
|||
==Scripting== |
|||
<div class="mw-translate-fuzzy"> |
|||
==Skriptování== |
==Skriptování== |
||
Objekt pracovní roviny může být snadno vyvořen a manipulován ve skriptech a [[macros/cs|makrech]]. Můžete vytvářet vlastní a používat je nezávisle na aktuální pracovní ploše Kreslení. |
Objekt pracovní roviny může být snadno vyvořen a manipulován ve skriptech a [[macros/cs|makrech]]. Můžete vytvářet vlastní a používat je nezávisle na aktuální pracovní ploše Kreslení. |
||
</div> |
|||
{{Version|1.0}}: |
|||
Příklad: |
|||
<syntaxhighlight> |
|||
import WorkingPlane |
|||
myPlane = WorkingPlane.plane() |
|||
</syntaxhighlight> |
|||
Můžete také přistupovat na aktuální pracovní rovinu Kreslení: |
|||
<syntaxhighlight> |
|||
import FreeCAD |
|||
draftPlane = FreeCAD.DraftWorkingPlane |
|||
</syntaxhighlight> |
|||
Pracovní rovina má svoje vlastní kompletní [http://www.freecadweb.org/api/DraftWorkingPlane.html skriptovací API], s užitečnými funkcemi pro pozicování roviny a její konverze z/do různých umístění. |
|||
The WorkingPlane module offers two classes to create working plane objects: the {{incode|PlaneBase}} class and the {{incode|PlaneGui}} class. The second class inherits from the first. Objects of the {{incode|PlaneGui}} class interact with the GUI (the [[Draft_Tray|Draft Tray]] button), the [[3D_view|3D view]] and the [[Draft_Snap_Grid|grid]]. {{incode|PlaneBase}} objects do not. |
|||
{{clear}} |
|||
<languages/> |
|||
Use the {{incode|get_working_plane()}} method of the WorkingPlane module to get an instance of the {{incode|PlaneGui}} class linked to the current 3D view. The method either returns the existing working plane linked to the view or creates a new working plane if required. |
|||
{{Code|code= |
|||
import FreeCAD as App |
|||
import WorkingPlane |
|||
wp = WorkingPlane.get_working_plane() |
|||
origin = App.Vector(0, 0, 0) |
|||
normal = App.Vector(1, 1, 1).normalize() |
|||
offset = 17 |
|||
wp.align_to_point_and_axis(origin, normal, offset) |
|||
point = App.Vector(10, 15, 2) |
|||
projection = wp.project_point(point) |
|||
print(projection) |
|||
}} |
|||
The {{incode|PlaneBase}} class can be used to create working planes independent of the GUI: |
|||
{{Code|code= |
|||
import WorkingPlane |
|||
wp = WorkingPlane.PlaneBase() |
|||
}} |
|||
{{Docnav |
|||
|[[Draft_Shape2DView|Shape2DView]] |
|||
|[[Draft_SetStyle|SetStyle]] |
|||
|[[Draft_Workbench|Draft]] |
|||
|IconL=Draft_Shape2DView.svg |
|||
|IconR=Draft_SetStyle.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
{{Draft Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 09:45, 21 April 2024
Kreslení VýběrRoviny |
Umístění Menu |
---|
Kreslení -> Utility -> Výběr roviny |
Pracovní stoly |
Kreslení, Architektura |
Výchozí zástupce |
Nikdo |
Představen ve verzi |
- |
Viz také |
Nikdo |
Description
Popis
Modul kreslení má pracovní rovinu, která umožňuje specifikovat uživatelskou rovinu ve 3D, na které se bude realizovat následujíci kreslicí příkaz. Pro definování pracovní roviny existuje několik metod:
- Z vybrané plochy
- Z aktuálního pohledu
- Z předvolby: horní, přední nebo boční
- Žádná, v tomto případě je pracovní rovina automaticky adaptována podle aktuálního pohledu, kde spouštíte příkaz nebo na ploše, pokud začínáte kreslení na existující ploše.
introduced in version 1.0: For each 3D view a separate working plane is stored.
The button in the Draft Tray changes depending on the current working plane. introduced in version 1.0: If the working plane is not set to Auto an asterisk (*) is appended to the button label if the origin of the working plane does not match the global origin.
Shapes created on different working planes
Usage with pre-selection
- Do one of the following:
- Select a single object. The following objects are supported:
- Draft WorkingPlaneProxies: the PohledView Data (the camera position) and the PohledVisibility Map (the saved visibility of objects) of the working plane proxy are also restored.
- Arch Axes (introduced in version 1.0)
- Arch AxisSystems (introduced in version 1.0)
- Arch BuildingParts
- Arch SectionPlanes
- Std Parts: to avoid selecting subelements it is advisable to select these in the Tree view.
- Non-solid objects that consist of a single flat face or a single curved edge, or (introduced in version 1.0) that have three or more vertices.
- Solid objects or objects without a shape that have a ÚdajePlacement property. (introduced in version 1.0)
- Select one or more subelements. You can select:
- A flat face.
- A curved edge.
- Three vertices.
- An edge and a vertex, or two edges. The combined vertices must define a plane. (introduced in version 1.0)
- Select a single object. The following objects are supported:
- There are several ways to invoke the command:
- Press the button in the Draft Tray.
- Select the Utilities → Select plane option from the menu.
- Use the keyboard shortcut: W then P.
- The working plane and the button in the Draft Tray are updated.
Usage with post-selection
- There are several ways to invoke the command:
- Press the button in the Draft Tray.
- Select the Utilities → Select plane option from the menu.
- Use the keyboard shortcut: W then P.
- The Working plane setup task panel opens. See Options for more information.
- Do one of the following:
- Select a single object. See the previous paragraph.
- Select one or more subelements. See the previous paragraph.
- Click anywhere in the 3D view to confirm the selection and finish the command.
- The working plane and the button in the Draft Tray are updated.
Usage with presets
- There are several ways to invoke the command:
- Press the button in the Draft Tray.
- Select the Utilities → Select plane option from the menu.
- Use the keyboard shortcut: W then P.
- The Working plane setup task panel opens. See Options for more information.
- Press any of the buttons to finish the command.
- The working plane and the button in the Draft Tray are updated.
Options
Volby
- Pro nastavení pracovní roviny na existující plochu: vyberte existující objekt ve 3D pohledu a potom stiskněte tlačítko VýběrRoviny
- Stisknutí tlačítka POHLED nastaví pracovní rovinu jako je rovina pohledu, kolmo k osám kamery a procházející počátkem (0,0,0).
- Stisknutí tlačítka ŽÁDNÁ zruší nastavení aktuální pracovní roviny. Následující 2D operace budou závislé na pohledu.
- Múžete také specifikovat hodnotu odsunutí, což odsune pracovní rovinu o zadanou vzdálenost od vybrané roviny.
Notes
- It can be useful to align the 3D view with the selected Draft working plane. For example after switching the working plane to Front you may want to switch to the Front view as well.
- The grid can be toggled with the Draft ToggleGrid command.
- By double-clicking Draft WorkingPlaneProxies in the Tree view you can quickly switch between working planes.
Preferences
See also: Preferences Editor and Draft Preferences.
- The grid settings in the task panel as well as several other grid settings are available as preferences: Edit → Preferences... → Draft → Grid and snapping.
- The Snapping radius can also be changed on-the-fly (see Draft Snap) or by changing: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → snapRange.
Scripting
Skriptování
Objekt pracovní roviny může být snadno vyvořen a manipulován ve skriptech a makrech. Můžete vytvářet vlastní a používat je nezávisle na aktuální pracovní ploše Kreslení.
The WorkingPlane module offers two classes to create working plane objects: the PlaneBase
class and the PlaneGui
class. The second class inherits from the first. Objects of the PlaneGui
class interact with the GUI (the Draft Tray button), the 3D view and the grid. PlaneBase
objects do not.
Use the get_working_plane()
method of the WorkingPlane module to get an instance of the PlaneGui
class linked to the current 3D view. The method either returns the existing working plane linked to the view or creates a new working plane if required.
import FreeCAD as App
import WorkingPlane
wp = WorkingPlane.get_working_plane()
origin = App.Vector(0, 0, 0)
normal = App.Vector(1, 1, 1).normalize()
offset = 17
wp.align_to_point_and_axis(origin, normal, offset)
point = App.Vector(10, 15, 2)
projection = wp.project_point(point)
print(projection)
The PlaneBase
class can be used to create working planes independent of the GUI:
import WorkingPlane
wp = WorkingPlane.PlaneBase()
- 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, Assembly, BIM, 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