Part Primitives/es: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav
|[[Part_Tube/es|Tubo]]
|[[Part_Tube/es|Tubo]]
|[[Part_Plane/es|Plano]]
|[[Part_Plane/es|Plano]]
|[[Part_Module/es|Part]]
|[[Part_Workbench/es|Part]]
|IconL=Part_Tube.svg
|IconL=Part_Tube.svg
|IconR=Part_Plane.svg
|IconR=Part_Plane.svg
|IconC=Workbench_Part.svg
|IconC=Workbench_Part.svg
}}
}}
</div>


<div class="mw-translate-fuzzy">
{{GuiCommand/es
{{GuiCommand/es
|Name=Part Primitives
|Name=Part Primitives
|Name/es=Part Crear Primitivas
|Name/es=Part Crear Primitivas
|MenuLocation=Pieza → Crear primitivas...
|MenuLocation=Pieza → Crear primitivas...
||Workbenches=[[Part_Module/es|Part]]
||Workbenches=[[Part_Workbench/es|Part]]
|SeeAlso=[[Part_Builder|Part Shapebuilder]]
|SeeAlso=[[Part_Builder|Part Shapebuilder]]
}}
}}
</div>


<span id="Description"></span>
== Descripción ==
== Descripción ==


<div class="mw-translate-fuzzy">
[[Part_Primitives/es|Part Primitivas]] Abre una caja de diálogo para crear cualquiera de las primitivas geométricas paramétricas definidas en el [[Image:Workbench_Part.svg|24px|link=Part_Workbench]] [[Part_Workbench/es|Banco de trabajo Part]].
[[Part_Primitives/es|Part Primitivas]] Abre una caja de diálogo para crear cualquiera de las primitivas geométricas paramétricas definidas en el [[Image:Workbench_Part.svg|24px|link=Part_Workbench]] [[Part_Workbench/es|Banco de trabajo Part]].
</div>


[[File:Part_Primitives_example.png|800px]]
[[File:Part_Primitives_example.png|600px]]
<div class="mw-translate-fuzzy">
{{Caption|Primitive shapes that can be created with the [[Part_Workbench|Part Workbench]].}}
{{Caption|Las formas Primitivas que pueden ser creadas con el [[Part_Workbench/es|Banco de trabajo Part]].}}
</div>


== Usage ==
<span id="Usage"></span>
== Uso ==


=== Create ===
To create a primitive, either
#* press the {{Button|[[Image:Part_Primitives.svg|24px]] '''Create primitives'''}} button in the toolbar.
#* select the {{MenuCommand|Part → Create primitives...}} from the menu bar.
# In the appearing dialog select primitive type, set its parameters and location, finally press {{Button|Create}}
The dialog keeps open so that you can subsequently create further primitives.


<div class="mw-translate-fuzzy">
To edit a primitives there are 2 ways:
Se puede crear una Primitiva de las siguientes maneras:
#* Presionando el botón {{Button|[[Image:Part_Primitives.svg|24px]] '''Crear Primitivas'''}} en la barra de herramientas.
#* Seleccionando {{MenuCommand|Pieza → Crear primitivas...}} desde la barra de menú.
# Se abre una ventana en la que se puede seleccionar el tipo de Primitiva, sus parámetros y emplazamiento, tras lo cual, pulsar sobre el botón {{Button|Crear}}
La ventana de diálogo se mantiene abierta para poder seguir creando más Primitivas.
Al finalizar, cerrar la ventana pulsando sobre el botón {{Button|Close}}
</div>

=== Edit ===

<div class="mw-translate-fuzzy">
En la pestaña Modelo: {{Version/es|0.19}}
# Seleccionando la Primitiva y pinchando sobre ella con doble clic con el ratón, o pinchando con el botón derecho y seleccionando '''Editar + Nombre de primitiva''' en el menú contextual.
# Se abrirá la misma ventana que se utilizó para crear la Primitiva, en la que se pueden editar los parámetros deseados, pudiendo observarse los cambios en tiempo real.
# Aceptar los cambios pulsando el botón {{Button|OK}}.
</div>


The properties of a Part Primitive can also be changed in the [[Property_editor|Property editor]], and its {{PropertyData|Placement}} can also be changed with the [[Image:Std_TransformManip.svg|16px]] [[Std_TransformManip|Std TransformManip]] command.
Using the dialog: {{Version|0.19}}
# Select the primitive in the tree and double-click on it.
# The same dialog will open that was also used to create the primitive. Change there the parameters and you get a live preview of the changed primitive.
# To finish the editing press {{Button|OK}}.


<span id="Geometric_Primitives"></span>
Using the [[Property_editor|property editor]]:
== Primitivas geométricas paramétricas ==
# Select the primitive in the tree.
# Edits its properties in the Properties table.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Se pueden crear las siguientes Primitivas:
* Actualmente esta herramienta puede crear una paramétrica
**[[Part_Plane/es|Plane]]
*[[Image:Part_Plane.svg|32px]] [[Part_Plane/es|Plano]]: Crea un Plano.
*[[Image:Tree_Part_Box_Parametric.svg|32px]] [[Part_Box/es|Caja]]: Crea una Caja. Este objeto puede ser creado también con la herramienta [[Image:Part_Box.svg|32px]] [[Part_Box/es|Cubo]] .
**[[Part_Box/es|Box]]
*[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder/es|Cilindro]]: Este objeto puede ser creado también con la herramienta [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder/es|Cilindro]] .
**[[Part_Cylinder/es|Cylinder]]
*[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone/es|Cono]]: Crea un Cono. Este objeto puede ser creado también con la herramienta [[Image:Part_Cone.svg|32px]] [[Part_Cone/es|Cono]] .
**[[Part_Cone/es|Cone]]
*[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere/es|Esfera]]: Crea una Esfera. Este objeto puede ser creado también con la herramienta [[Image:Part_Sphere.svg|32px]] [[Part_Sphere/es|Esfera]] .
**[[Part_Sphere/es|Sphere]]
**[[Part_Ellipsoid/es|Ellipsoid]]
*[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid/es|Elipsoide]]: Crea un Elipsoide.
*[[Image:Tree_Part_Torus_Parametric.svg|32px]] [[Part_Torus/es|Toro]]: Crea un Toro. Este objeto puede ser creado también con la herramienta [[Image:Part_Torus.svg|32px]] [[Part_Torus/es|Toro]] .
**[[Part_Torus/es|Torus]]
**[[Part_Prism/es|Prism]] {{Version|0.14}}*:
*[[Image:Part_Prism.svg|32px]] [[Part_Prism/es|Prisma]]: Crea un Prisma.
**[[Part_Wedge/es|Wedge]]
*[[Image:Part_Wedge.svg|32px]] [[Part_Wedge/es|Cuña]]: Crea una Cuña.
**[[Part_Helix/es|Helix]]
*[[Image:Part_Helix.svg|32px]] [[Part_Helix/es|Hélice]]: Crea una Hélice.
**[[Part_Spiral/es|Spiral]] {{Version|0.14}}*:
*[[Image:Part_Spiral.svg|32px]] [[Part_Spiral/es|Espiral]]: Crea una Espiral.
*[[Image:Part_Circle.svg|32px]] [[Part_Circle/es|Círculo]]: Crea una Circunferencia (Arista circular).
**[[Part_Circle/es|Circle]]
**[[Part_Ellipse/es|Ellipse]]
*[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse/es|Elipse]]: Crea una Elipse (Arista elíptica).
*[[Image:Part_Point.svg|32px]] [[Part_Point/es|Punto]]: Crea un Punto (Vértice).
**[[Part_Line/es|Line]] (Edge)
*[[Image:Part_Line.svg|32px]] [[Part_Line/es|Línea]]: Crea una Línea (Arista).
**[[Part_Point/es|Point]] (Vertex)
**[[Part_RegularPolygon/es|Regular Polygon]] {{Version|0.14}}*:
*[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon/es|Polígono regular]]: Crea un Polígono regular.
</div>
</div>


== Notes ==
The following primitives can be created:
*[[Image:Part_Plane.svg|32px]] [[Part_Plane|Plane]]: Creates a plane.
*[[Image:Tree_Part_Box_Parametric.svg|32px]] [[Part_Box|Box]]: Creates a box. This object can also be created with the [[Image:Part_Box.svg|32px]] [[Part_Box|Box]] tool.
*[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder|Cylinder]]: Creates a cylinder. This object can also be created with the [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder|Cylinder]] tool.
*[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone|Cone]]: Creates a cone. This object can also be created with the [[Image:Part_Cone.svg|32px]] [[Part_Cone|Cone]] tool.
*[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere|Sphere]]: Creates a sphere. This object can also be created with the [[Image:Part_Sphere.svg|32px]] [[Part_Sphere|Sphere]] tool.
*[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid|Ellipsoid]]: Creates a ellipsoid.
*[[Image:Tree_Part_Torus_Parametric.svg|32px]] [[Part_Torus|Torus]]: Creates a torus. This object can also be created with the [[Image:Part_Torus.svg|32px]] [[Part_Torus|Torus]] tool.
*[[Image:Part_Prism.svg|32px]] [[Part_Prism|Prism]]: Creates a prism.
*[[Image:Part_Wedge.svg|32px]] [[Part_Wedge|Wedge]]: Creates a wedge.
*[[Image:Part_Helix.svg|32px]] [[Part_Helix|Helix]]: Creates a helix.
*[[Image:Part_Spiral.svg|32px]] [[Part_Spiral|Spiral]]: Creates a spiral.
*[[Image:Part_Circle.svg|32px]] [[Part_Circle|Circle]]: Creates a circular edge.
*[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse|Ellipse]]: Creates an elliptical edge.
*[[Image:Part_Point.svg|32px]] [[Part_Point|Point]]: Creates a point (vertex).
*[[Image:Part_Line.svg|32px]] [[Part_Line|Line]]: Creates a line (edge).
*[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon|Regular Polygon]]: Creates a regular polygon.


* The Part Primitives command cannot create a [[Image:Part_Tube.svg|16px]] [[Part_Tube|Part Tube]].
== Scripting ==


<span id="Scripting"></span>
{{Emphasis|See also:}} [[Part_scripting|Part scripting]]
== Programación ==


See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
Test the creation of the primitives with a script. {{Version|0.19}}

<div class="mw-translate-fuzzy">
Comprobación de la creación de las Primitivas con una secuencia de comandos. {{Version/es|0.19}}
</div>


This can be run from the [[Python_console|Python console]].
{{Code|code=
{{Code|code=
import parttests.part_test_objects as pto
import parttests.part_test_objects as pto
Line 94: Line 100:
}}
}}


<div class="mw-translate-fuzzy">
This script is located in the installation directory of the program, and can be examined to see how the basic primitives are built.
Ese comando está localizado en el directorio de la instalación del programa, y puede ser examinado para ver como están construidas las Primitivas básicas.
</div>

{{Code|code=
{{Code|code=
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
}}
}}


<div class="mw-translate-fuzzy">
It can be used as input to the program as well.
Se puede utilizar también como entrada de datos al programa.
</div>

{{Code|code=
{{Code|code=
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
Line 105: Line 117:




<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav/es
|[[Part_Tube|Tube]]
|[[Part_Plane|Plane]]
|[[Part_Tube/es|Tubo]]
|[[Part_Module|Part]]
|[[Part_Plane/es|Plano]]
|[[Part_Workbench/es|Part]]
|IconL=Part_Tube.svg
|IconL=Part_Tube.svg
|IconR=Part_Plane.svg
|IconR=Part_Plane.svg
|IconC=Workbench_Part.svg
|IconC=Workbench_Part.svg
}}
}}
</div>


{{Part Tools navi{{#translation:}}}}
{{Part_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 11:47, 21 January 2023

Part Crear Primitivas

Ubicación en el Menú
Pieza → Crear primitivas...
Entornos de trabajo
Part
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Part Shapebuilder

Descripción

Part Primitivas Abre una caja de diálogo para crear cualquiera de las primitivas geométricas paramétricas definidas en el Banco de trabajo Part.

Las formas Primitivas que pueden ser creadas con el Banco de trabajo Part.

Uso

Create

Se puede crear una Primitiva de las siguientes maneras:

    • Presionando el botón Crear Primitivas en la barra de herramientas.
    • Seleccionando Pieza → Crear primitivas... desde la barra de menú.
  1. Se abre una ventana en la que se puede seleccionar el tipo de Primitiva, sus parámetros y emplazamiento, tras lo cual, pulsar sobre el botón Crear

La ventana de diálogo se mantiene abierta para poder seguir creando más Primitivas. Al finalizar, cerrar la ventana pulsando sobre el botón Close

Edit

En la pestaña Modelo: introducido en la versión 0.19

  1. Seleccionando la Primitiva y pinchando sobre ella con doble clic con el ratón, o pinchando con el botón derecho y seleccionando Editar + Nombre de primitiva en el menú contextual.
  2. Se abrirá la misma ventana que se utilizó para crear la Primitiva, en la que se pueden editar los parámetros deseados, pudiendo observarse los cambios en tiempo real.
  3. Aceptar los cambios pulsando el botón OK.

The properties of a Part Primitive can also be changed in the Property editor, and its DatosPlacement can also be changed with the Std TransformManip command.

Primitivas geométricas paramétricas

Se pueden crear las siguientes Primitivas:

  • Plano: Crea un Plano.
  • Caja: Crea una Caja. Este objeto puede ser creado también con la herramienta Cubo .
  • Cilindro: Este objeto puede ser creado también con la herramienta Cilindro .
  • Cono: Crea un Cono. Este objeto puede ser creado también con la herramienta Cono .
  • Esfera: Crea una Esfera. Este objeto puede ser creado también con la herramienta Esfera .
  • Elipsoide: Crea un Elipsoide.
  • Toro: Crea un Toro. Este objeto puede ser creado también con la herramienta Toro .
  • Prisma: Crea un Prisma.
  • Cuña: Crea una Cuña.
  • Hélice: Crea una Hélice.
  • Espiral: Crea una Espiral.
  • Círculo: Crea una Circunferencia (Arista circular).
  • Elipse: Crea una Elipse (Arista elíptica).
  • Punto: Crea un Punto (Vértice).
  • Línea: Crea una Línea (Arista).
  • Polígono regular: Crea un Polígono regular.

Notes

  • The Part Primitives command cannot create a Part Tube.

Programación

See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.

Comprobación de la creación de las Primitivas con una secuencia de comandos. introducido en la versión 0.19

import parttests.part_test_objects as pto
pto.create_test_file("example_file")

Ese comando está localizado en el directorio de la instalación del programa, y puede ser examinado para ver como están construidas las Primitivas básicas.

$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py

Se puede utilizar también como entrada de datos al programa.

freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py