Draft SelectPlane/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(50 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav|[[Draft_Stretch|Stretch]]|[[Draft_FinishLine|Finish line]]|[[Draft_Module|Draft]]|IconL=Draft_Stretch.svg|IconC=Workbench_Draft.svg|IconR=Draft_FinishLine.png}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/es
{{GuiCommand/es|Name=Draft SelectPlane|Workbenches=[[Draft Module/es|Boceto]], [[Arch Module/es|Arquitectura]]|MenuLocation=Boceto -> Seleccionar plano}}
|[[Draft_Stretch/es|Estirar]]
|[[Draft_FinishLine/es|Acabar Línea]]
|[[Draft_Workbench/es|Borrador]]
|IconL=Draft_Stretch.svg
|IconR=Draft_FinishLine.svg
|IconC=Workbench_Draft.svg
}}
</div>
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/es
==Descripción==
|Name=Draft SelectPlane
|Name/es=Borrador SeleccionarPlano
|MenuLocation=Borrador -> Seleccionar Plano
|Workbenches=[[Draft_Workbench/es|Borrador]], [[Arch_Workbench/es|Arquitectura]]
|Shortcut={{KEY|W}} {{KEY|P}}
|SeeAlso=[[Draft_WorkingPlaneProxy/es|Borrador PlanoTrabajoProxy]], [[Draft_ToggleGrid/es|Borrador AlternarRejilla]]
}}
</div>


<span id="Description"></span>
El módulo de Croquis presenta un sistema de Plano de trabajo, que te permite especificar un plano en el espacio 3d en el cual se ejecutarán los siguientes comandos de Croquis. Existen diversos modos de definir el plano de trabajo:
==Descripción==


<div class="mw-translate-fuzzy">
El [[Image:Workbench_Draft.svg|24px]] [[Draft_Workbench/es|Ambiente de Trabajo Borrador]] cuenta con un sistema de planos de trabajo. Un plano en la [[3D_view/es|Vista 3D]] indica dónde se construirá una forma de Borrador. Hay varios métodos para definir el plano de trabajo:
* A partir de una cara seleccionada
* A partir de una cara seleccionada
* De tres vértices seleccionados.
* A partir de la vista actual
* A partir de la vista actual
* A partir de una vista predefinida: Planta, alzado o perfil
* A partir de una vista predefinida: Planta, alzado o perfil
* Ninguno, en cuyo caso el plano de trabajo se adapta automáticamente a la vista actual cuando se inicia un comando, o a una cara si comienzas dibujando sobre una cara existente.
* Ninguno, en cuyo caso el plano de trabajo se adapta automáticamente a la vista actual cuando se inicia un comando, o a una cara si comienzas dibujando sobre una cara existente.
</div>
</div>

{{Version|1.0}}: For each 3D view a separate working plane is stored.

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.


[[Image:WorkingPlane_example.png|400px]]
[[Image:WorkingPlane_example.png|400px]]
<div class="mw-translate-fuzzy">
{{Caption|Different working planes can be set on which to draw shapes}}
{{Caption|Se pueden establecer diferentes planos de trabajo en los que dibujar las formas}}
</div>

==Usage with pre-selection==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
# Selecciona una cara de un objeto existente en la [[3D_view/es|vista 3D]], o mantén pulsado {{KEY|Ctrl}} y selecciona tres vértices de cualquier objeto. {{Version/es|0.17}}
==Utilización==
# Pulse el {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft_SelectPlane/es|SeleccionarPlano]]}}, o haz clic con el botón derecho y selecciona {{MenuCommand|Utilidades → [[Image:Draft SelectPlane.svg|16px]] [[Draft_SelectPlane/es|SeleccionarPlano]]}}.
</div>


==Usage with post-selection==
# Presiona el botón {{KEY|[[Image:Draft SelectPlane.png|16px]] [[Draft SelectPlane/es|Seleccionar plano]]}}

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

<div class="mw-translate-fuzzy">
# Pulse el {{Button|[[Image:Draft_SelectPlane.svg|16px]] [[Draft_SelectPlane/es|SeleccinarPlano]]}}, o utilice {{KEY|Borrador}} → {{KEY|Utilidades}} → {{KEY|[[Image:Draft_SelectPlane.svg|16px]] [[Draft_SelectPlane/es|SeleccinarPlano]]}} del menú superior, o el atajo de teclado {{KEY|W}} y luego {{KEY|P}}
# Seleccione el desplazamiento, el espaciado de la cuadrícula y las líneas principales
# Seleccione uno de los preajustes: {{Button|[[Image:View-top.svg|16px]] XY (superior)}}, {{Button|[[Image:View-front.svg|16px]] XZ (frontal)}}, {{Button|[[Image:View-right.svg|16px]] YZ (lateral)}}, {{Button|[[Image:View-isometric.svg|16px]] View}}, o {{Button|[[Image:View-axonometric.svg|16px]] Auto}}.
</div>
</div>


<span id="Options"></span>
The {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft SelectPlane|SelectPlane]]}} button is present in the [[Draft Tray]] toolbar, which only appears in the [[Draft Module|Draft]] and [[Arch Module|Arch]] workbenches.
==Opciones==


<div class="mw-translate-fuzzy">
=== Without element selected ===
* Pulse el {{Button|[[Image:View-top.svg|16px]] XY (top)}} para establecer el plano de trabajo en el plano XY. Para dibujar fácilmente en este plano, debes establecer la vista en la parte superior o inferior (la normal está en la dirección Z positiva o negativa). Pulsa {{KEY|2}} o {{KEY|5}} para cambiar rápidamente a estas vistas.
* Pulse el {{Button|[[Image:View-front.svg|16px]] XZ (frontal)}} para establecer el plano de trabajo en el plano XZ. Para dibujar fácilmente en este plano, debes fijar la vista en la parte delantera o trasera (la normal está en la dirección Y negativa o positiva). Pulsa {{KEY|1}} o {{KEY|4}} para cambiar rápidamente a estas vistas.
* Pulse el {{Button|[[Image:View-right.svg|16px]] YZ (lateral)}} para establecer el plano de trabajo en el plano YZ. Para dibujar fácilmente en este plano, debes fijar la vista en el lado izquierdo o derecho (la normal está en la dirección X positiva o negativa). Pulsa {{KEY|3}} o {{KEY|6}} para cambiar rápidamente a estas vistas.
* Pulse el botón {{Button|[[Image:View-isometric.svg|16px]] Vista}} para establecer el plano de trabajo en la vista 3D actual, perpendicular al eje de la cámara y pasando por el origen (0,0,0).
* Pulse el botón {{Button|[[Image:View-axonometric.svg|16px]] Auto}} para desajustar cualquier plano de trabajo actual, y establecer automáticamente un plano de trabajo cuando se utiliza una herramienta. Cuando se selecciona una herramienta de dibujo, la rejilla se actualiza automáticamente a la vista actual; entonces, si la vista se gira, y se selecciona otra herramienta, la rejilla se redibuja en la nueva vista. Esto equivale a pulsar {{Button|[[Image:View-isometric.svg|16px]] Vista}} automáticamente antes de usar una herramienta.
* Establecer el valor de "Desplazamiento" para fijar el plano de trabajo a una determinada distancia perpendicular del plano seleccionado.
* Establezca el valor de "Espaciado de la rejilla" para definir el espacio entre cada línea de la rejilla.
* Ajuste el valor "Grid size" para definir la extensión total del plano de la cuadrícula.
* Ajuste el valor "Línea principal cada" para dibujar una línea ligeramente más gruesa en la cuadrícula en el valor establecido. Por ejemplo, si el espaciado de la cuadrícula es de 0,5 m, y hay una línea principal cada 20 líneas, habrá una línea ligeramente más gruesa cada 10 m.
* Haga clic en la casilla "Centrar el plano en la vista" para dibujar el plano y la cuadrícula más cerca de la vista de la cámara en la vista 3D.
* Pulse {{KEY|Esc}} o el botón {{Button|Close}} para abortar el comando actual.
* La rejilla muestra un borde adicional con el espacio de la línea principal indicado en la esquina inferior izquierda {{Version|0.19}}. Esto se puede desactivar a través de Edición->Preferencias->Borrador->Rejilla y ajuste->Mostrar borde de la rejilla
</div>


==Notes==
# 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}}.


* 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.
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)}}.
* 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==
You can show and hide the grid with the shortcut {{KEY|G}} {{KEY|R}}.


See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].
=== With element selected ===


* 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}}.
# 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}}
* 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}}.
# 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]]}}.


==Scripting==
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">
==Opciones==
==Guión==
{{emphasis|Ver también:}} [[FreeCAD Scripting Basics/es|Fundamentos de Guión FreeCAD]]. Véase la [http://www.freecadweb.org/api/DraftWorkingPlane.html WorkingPlane API].

* Para establecer el plano de trabajo en una cara existente: selecciona la cara de un objeto existente en la vista 3D, presiona el botón {{KEY|[[Image:Draft SelectPlane.png|16px]] [[Draft SelectPlane/es|Seleccionar plano]]}}
* Presionando el botón {{KEY|'''VISTA'''}} se establecerá el plano de trabajo de la vista, perpendicular al eje de la cámara y pasando por el origen de coordenadas (0,0,0).
* Presionando {{KEY|'''NINGUNO'''}} se eliminará la preselección de cualquier plano de trabajo actual. Las siguientes operaciones 2D serán dependientes de la vista.
* También puedes especificar un valor de equidistancia, el cual establece tu plano de trabajo a determinada distancia a partir del plano que selecciones.
</div>
</div>


{{Version|1.0}}:
<div class="mw-translate-fuzzy">
==Archivos de guió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.
Los objetos Plano de Trabajo se pueden crear de forma sencilla y manipular en archivos de guión y [[macros/es|macros]]. Puedes crear uno, y utilizarlo independientemente del plano de trabajo actual de Boceto.
</div>


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.
Working plane objects can easily be created and manipulated in [[macros]] and from the [[Python]] console.


<div class="mw-translate-fuzzy">
También puedes acceder al plano de trabajo de Boceto actual:
</div>
{{Code|code=
{{Code|code=
import FreeCAD
import FreeCAD as App
import WorkingPlane


wp = WorkingPlane.get_working_plane()
Workplane = FreeCAD.DraftWorkingPlane


v1 = FreeCAD.Vector(0, 0, 0)
origin = App.Vector(0, 0, 0)
v2 = FreeCAD.Vector(1, 1, 1).normalize()
normal = App.Vector(1, 1, 1).normalize()
offset = 17
wp.align_to_point_and_axis(origin, normal, offset)


point = App.Vector(10, 15, 2)
Workplane.alignToPointAndAxis(v1, v2, 17)
projection = wp.project_point(point)
print(projection)
}}
}}


A Draft command must be issued after changing the working plane to update the visible grid.
The {{incode|PlaneBase}} class can be used to create working planes independent of the GUI:


<div class="mw-translate-fuzzy">
Ejemplo:
</div>
{{Code|code=
{{Code|code=
import WorkingPlane
import WorkingPlane


Plane = WorkingPlane.plane()
wp = WorkingPlane.PlaneBase()
}}
}}


{{Docnav|[[Draft_Stretch|Stretch]]|[[Draft_FinishLine|Finish line]]|[[Draft_Module|Draft]]|IconL=Draft_Stretch.svg|IconC=Workbench_Draft.svg|IconR=Draft_FinishLine.png}}


<div class="mw-translate-fuzzy">
{{Draft Tools navi}}
{{Docnav/es
|[[Draft_Stretch/es|Estirar]]
|[[Draft_FinishLine/es|Acabar Línea]]
|[[Draft_Workbench/es|Borrador]]
|IconL=Draft_Stretch.svg
|IconR=Draft_FinishLine.svg
|IconC=Workbench_Draft.svg
}}
</div>


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

Latest revision as of 09:45, 21 April 2024

Borrador SeleccionarPlano

Ubicación en el Menú
Borrador -> Seleccionar Plano
Entornos de trabajo
Borrador, Arquitectura
Atajo de teclado por defecto
W P
Introducido en versión
-
Ver también
Borrador PlanoTrabajoProxy, Borrador AlternarRejilla

Descripción

El Ambiente de Trabajo Borrador cuenta con un sistema de planos de trabajo. Un plano en la Vista 3D indica dónde se construirá una forma de Borrador. Hay varios métodos para definir el plano de trabajo:

  • A partir de una cara seleccionada
  • De tres vértices seleccionados.
  • A partir de la vista actual
  • A partir de una vista predefinida: Planta, alzado o perfil
  • Ninguno, en cuyo caso el plano de trabajo se adapta automáticamente a la vista actual cuando se inicia un comando, o a una cara si comienzas dibujando sobre una cara existente.

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.

Se pueden establecer diferentes planos de trabajo en los que dibujar las formas

Usage with pre-selection

  1. Selecciona una cara de un objeto existente en la vista 3D, o mantén pulsado Ctrl y selecciona tres vértices de cualquier objeto. introducido en la versión 0.17
  2. Pulse el SeleccionarPlano, o haz clic con el botón derecho y selecciona Utilidades → SeleccionarPlano.

Usage with post-selection

  1. 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.
  2. The Working plane setup task panel opens. See Options for more information.
  3. Do one of the following:
  4. Click anywhere in the 3D view to confirm the selection and finish the command.
  5. The working plane and the button in the Draft Tray are updated.

Usage with presets

  1. Pulse el SeleccinarPlano, o utilice BorradorUtilidades SeleccinarPlano del menú superior, o el atajo de teclado W y luego P
  2. Seleccione el desplazamiento, el espaciado de la cuadrícula y las líneas principales
  3. Seleccione uno de los preajustes: XY (superior), XZ (frontal), YZ (lateral), View, o Auto.

Opciones

  • Pulse el XY (top) para establecer el plano de trabajo en el plano XY. Para dibujar fácilmente en este plano, debes establecer la vista en la parte superior o inferior (la normal está en la dirección Z positiva o negativa). Pulsa 2 o 5 para cambiar rápidamente a estas vistas.
  • Pulse el XZ (frontal) para establecer el plano de trabajo en el plano XZ. Para dibujar fácilmente en este plano, debes fijar la vista en la parte delantera o trasera (la normal está en la dirección Y negativa o positiva). Pulsa 1 o 4 para cambiar rápidamente a estas vistas.
  • Pulse el YZ (lateral) para establecer el plano de trabajo en el plano YZ. Para dibujar fácilmente en este plano, debes fijar la vista en el lado izquierdo o derecho (la normal está en la dirección X positiva o negativa). Pulsa 3 o 6 para cambiar rápidamente a estas vistas.
  • Pulse el botón Vista para establecer el plano de trabajo en la vista 3D actual, perpendicular al eje de la cámara y pasando por el origen (0,0,0).
  • Pulse el botón Auto para desajustar cualquier plano de trabajo actual, y establecer automáticamente un plano de trabajo cuando se utiliza una herramienta. Cuando se selecciona una herramienta de dibujo, la rejilla se actualiza automáticamente a la vista actual; entonces, si la vista se gira, y se selecciona otra herramienta, la rejilla se redibuja en la nueva vista. Esto equivale a pulsar Vista automáticamente antes de usar una herramienta.
  • Establecer el valor de "Desplazamiento" para fijar el plano de trabajo a una determinada distancia perpendicular del plano seleccionado.
  • Establezca el valor de "Espaciado de la rejilla" para definir el espacio entre cada línea de la rejilla.
  • Ajuste el valor "Grid size" para definir la extensión total del plano de la cuadrícula.
  • Ajuste el valor "Línea principal cada" para dibujar una línea ligeramente más gruesa en la cuadrícula en el valor establecido. Por ejemplo, si el espaciado de la cuadrícula es de 0,5 m, y hay una línea principal cada 20 líneas, habrá una línea ligeramente más gruesa cada 10 m.
  • Haga clic en la casilla "Centrar el plano en la vista" para dibujar el plano y la cuadrícula más cerca de la vista de la cámara en la vista 3D.
  • Pulse Esc o el botón Close para abortar el comando actual.
  • La rejilla muestra un borde adicional con el espacio de la línea principal indicado en la esquina inferior izquierda introduced in version 0.19. Esto se puede desactivar a través de Edición->Preferencias->Borrador->Rejilla y ajuste->Mostrar borde de la rejilla

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

Guión

Ver también: Fundamentos de Guión FreeCAD. Véase la WorkingPlane API.

introduced in version 1.0:

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