Draft SelectPlane/cs: Difference between revisions

From FreeCAD Documentation
(New image)
(Updating to match new version of source page)
Line 4: Line 4:
</div>
</div>


<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 10: Line 11:
* 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>


[[Image:WorkingPlane_example.png|400px]]
[[Image:WorkingPlane_example.png|400px]]
{{Caption|Different working planes can be set on which to draw shapes}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 17: Line 20:
# 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/cs|poznámku]].
# 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/cs|poznámku]].
</div>
</div>

The {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane|SelectPlane]]}} button is present in the [[Draft Tray]] toolbar, which only appears in the [[Draft Workbench|Draft]] and [[Arch Workbench]]es.

=== Without element selected ===

# Press the {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane|SelectPlane]]}} button.
# Select the offset, the grid spacing, and the main lines
# Select one of the presets: {{Button|[[Image:View-top.svg|16px]] XY (top)}}, {{Button|[[Image:View-front.svg|16px]] XZ (front)}}, {{Button|[[Image:View-right.svg|16px]] YZ (side)}}, {{Button|[[Image:View-isometric.svg|16px]] View}}, or {{Button|[[Image:View-axonometric.svg|16px]] Auto}}.

Once the plane is set, the button will change to indicate the active plane {{Button|[[Image:Draft SelectPlane.png|16px]] Top}}, {{Button|[[Image:Draft SelectPlane.svg|16px]] Front}}, {{Button|[[Image:Draft SelectPlane.svg|16px]] Side}}, {{Button|[[Image:Draft SelectPlane.png|16px]] Auto}}, {{Button|[[Image:Draft SelectPlane.svg|16px]] d(0.0,-1.0,0.0)}}.

You can show and hide the grid with the shortcut {{KEY|G}} {{KEY|R}}.

=== With element selected ===

# Select a face of an existing object in the 3D view, or hold {{KEY|Ctrl}} and select three vertices of any object. {{Version|0.17}}
# Press the {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane|SelectPlane]]}} button, or right click and select {{MenuCommand|Utilities → [[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane|SelectPlane]]}}.

The plane will be created aligned to the face of the object, or to the plane defined by the three vertices.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 26: Line 48:
</div>
</div>


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


Working plane objects can easily be created and manipulated in [[macros]] and from the [[Python]] console.
Příklad:
{{Code|code=
import WorkingPlane
myPlane = WorkingPlane.plane()
}}


<div class="mw-translate-fuzzy">
Můžete také přistupovat na aktuální pracovní rovinu Kreslení:
Můžete také přistupovat na aktuální pracovní rovinu Kreslení:
</div>
{{Code|code=
{{Code|code=
import FreeCAD
import FreeCAD

draftPlane = FreeCAD.DraftWorkingPlane
Workplane = FreeCAD.DraftWorkingPlane

v1 = FreeCAD.Vector(0, 0, 0)
v2 = FreeCAD.Vector(1, 1, 1).normalize()

Workplane.alignToPointAndAxis(v1, v2, 17)
}}
}}

A Draft command must be issued after changing the working plane to update the visible grid.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Příklad:
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í.
</div>
</div>
{{Code|code=
{{Code|code=
import FreeCAD
import WorkingPlane
from FreeCAD import Vector
FreeCAD.DraftWorkingPlane.alignToPointAndAxis(Vector(0,0,0), Vector(1,1,1).normalize(), 17)
}}
(note: a Draft command must have been issued to make grid adopt changes)


Plane = WorkingPlane.plane()
The working plane has a complete [http://www.freecadweb.org/api/DraftWorkingPlane.html scripting API] on its own, with convenience functions to position it and convert to/from placements.
}}


{{Draft Tools navi}}
{{Userdocnavi}}
{{clear}}
{{clear}}

Revision as of 20:56, 15 December 2018

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

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.

Different working planes can be set on which to draw shapes

Použití

  1. Stiskněte tlačítko VýběrRoviny. Pokud tlačítko nevypadá takto, podívejte se na tuto poznámku.

The SelectPlane button is present in the Draft Tray toolbar, which only appears in the Draft and Arch Workbenches.

Without element selected

  1. Press the SelectPlane button.
  2. Select the offset, the grid spacing, and the main lines
  3. Select one of the presets: XY (top), XZ (front), YZ (side), View, or Auto.

Once the plane is set, the button will change to indicate the active plane Top, Front, Side, Auto, d(0.0,-1.0,0.0).

You can show and hide the grid with the shortcut G R.

With element selected

  1. Select a face of an existing object in the 3D view, or hold Ctrl and select three vertices of any object. introduced in version 0.17
  2. Press the SelectPlane button, or right click and select Utilities → SelectPlane.

The plane will be created aligned to the face of the object, or to the plane defined by the three vertices.

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.

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

Working plane objects can easily be created and manipulated in macros and from the Python console.

Můžete také přistupovat na aktuální pracovní rovinu Kreslení:

import FreeCAD

Workplane = FreeCAD.DraftWorkingPlane

v1 = FreeCAD.Vector(0, 0, 0)
v2 = FreeCAD.Vector(1, 1, 1).normalize()

Workplane.alignToPointAndAxis(v1, v2, 17)

A Draft command must be issued after changing the working plane to update the visible grid.

Příklad:

import WorkingPlane

Plane = WorkingPlane.plane()