Part Primitives/cs: Difference between revisions
(Updating to match new version of source page) |
|||
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
{{GuiCommand/cs|Name=Part_CreatePrimitives|Name=Díl Vytváření základních geometrických tvarů|MenuLocation=Díl -> Díl Vytváření zákl.geom.tvarů||Workbenches=[[Part_Module/cs|díl]]|SeeAlso=[[Part_Shapebuilder/cs|Díl Skládání tvarů]]}} |
|||
{{Docnav |
|||
Nástroj pro vytváření různých parametrických geometrických tvarů, |
|||
|[[Part_Tube|Tube]] |
|||
|[[Part_Plane|Plane]] |
|||
|[[Part_Workbench|Part]] |
|||
|IconL=Part_Tube.svg |
|||
|IconR=Part_Plane.svg |
|||
|IconC=Workbench_Part.svg |
|||
}} |
|||
{{GuiCommand |
|||
|Name=Part Primitives |
|||
|MenuLocation=Part → Create primitives... |
|||
|Workbenches=[[Part_Workbench|Part]], [[OpenSCAD_Workbench|OpenSCAD]] |
|||
|SeeAlso=[[Part_Builder|Part Builder]] |
|||
}} |
|||
== Description == |
|||
<div class="mw-translate-fuzzy"> |
|||
Nástroj pro vytváření různých parametrických geometrických tvarů, |
|||
</div> |
|||
[[File:Part_Primitives_example.png|600px]] |
|||
{{Caption|The primitives that can be created with the command}} |
|||
== Usage == |
|||
=== Create === |
|||
# There are several ways to invoke the command: |
|||
#* Press the {{Button|[[Image:Part_Primitives.svg|16px]] [[Part_Primitives|Part Primitives]]}} button. |
|||
#* Select the {{MenuCommand|Part → [[Image:Part_Primitives.svg|16px]] Create Primitives...}} option from the menu. |
|||
# The {{MenuCommand|Geometric Primitives}} task panel opens. |
|||
# Select a primitive type from the dropdown list. |
|||
# Specify the properties. |
|||
# Press the {{Button|Create}} button. |
|||
# The primitive object is created. |
|||
# Note that the task panel stays open. |
|||
# Optionally create additional primitives. |
|||
# Press the {{Button|Close}} button to close the task panel and finish the command. |
|||
=== Edit === |
|||
# Double-click the primitive object in the [[Tree_view|Tree view]]. |
|||
# The {{MenuCommand|Geometric Primitives}} task panel opens. |
|||
# Change one or more properties. |
|||
# The object is dynamically updated in the [[3D_view|3D view]]. |
|||
# Press the {{Button|OK}} button. |
|||
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. |
|||
<span id="Geometric_Primitives"></span> |
|||
<div class="mw-translate-fuzzy"> |
|||
*V současnosti může tento nástroj parametricky vytvářet |
*V současnosti může tento nástroj parametricky vytvářet |
||
**[[Part_Plane|Rovinu]] |
**[[Part_Plane/cs|Rovinu]] |
||
**[[Part_Box|Box]] |
**[[Part_Box/cs|Box]] |
||
**[[Part_Cylinder|Válec]] |
**[[Part_Cylinder/cs|Válec]] |
||
**[[Part_Cone|Kužel]] |
**[[Part_Cone/cs|Kužel]] |
||
**[[Part_Sphere|Kouli]] |
**[[Part_Sphere/cs|Kouli]] |
||
**[[Part_Ellipsoid|Elipsoid]] |
**[[Part_Ellipsoid/cs|Elipsoid]] |
||
**[[Part_Torus|Torus (vypadá jako nafouknutá duše z kola)]] |
**[[Part_Torus/cs|Torus (vypadá jako nafouknutá duše z kola)]] |
||
**[[Part_Prism|Hranol]] {{Version|0.14}}*: |
**[[Part_Prism/cs|Hranol]] {{Version|0.14}}*: |
||
**[[Part_Wedge|Klín]] |
**[[Part_Wedge/cs|Klín]] |
||
**[[Part_Helix|Šroubovice]] |
**[[Part_Helix/cs|Šroubovice]] |
||
**[[Part_Spiral|Spirála]] {{Version|0.14}}*: |
**[[Part_Spiral/cs|Spirála]] {{Version|0.14}}*: |
||
**[[Part_Circle|Kružnice]] |
**[[Part_Circle/cs|Kružnice]] |
||
**[[Part_Ellipse|Elipsa]] |
**[[Part_Ellipse/cs|Elipsa]] |
||
**[[Part_Line|Přímka]] (Hrana) |
**[[Part_Line/cs|Přímka]] (Hrana) |
||
**[[Part_Point|Bod]] (Vrchol) |
**[[Part_Point/cs|Bod]] (Vrchol) |
||
**[[Part_RegularPolygon|Pravidelný mnohoúhelník]] {{Version|0.14}}*: |
**[[Part_RegularPolygon/cs|Pravidelný mnohoúhelník]] {{Version|0.14}}*: |
||
</div> |
|||
The following primitives can be created: |
|||
[[File:Part_CreatePrimitives_example_FreeCAD_0_13.jpg]] |
|||
*[[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 arc. |
|||
*[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse|Ellipse]]: Creates an elliptical arc. |
|||
*[[Image:Part_Point.svg|32px]] [[Part_Point|Point]]: Creates a point. |
|||
*[[Image:Part_Line.svg|32px]] [[Part_Line|Line]]: Creates a line. |
|||
*[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon|Regular polygon]]: Creates a regular polygon. |
|||
== Notes == |
|||
{{clear}} |
|||
<languages/> |
|||
* The Part Primitives command cannot create a [[Image:Part_Tube.svg|16px]] [[Part_Tube|Part Tube]]. |
|||
== Scripting == |
|||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
There is a Python script to test the creation of the primitives. It can be run from the [[Python_console|Python console]]: |
|||
{{Code|code= |
|||
import parttests.part_test_objects as pto |
|||
pto.create_test_file("example_file") |
|||
}} |
|||
This script is located in the installation directory of the program, and can be examined to see how the basic primitives are built: |
|||
{{Code|code= |
|||
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py |
|||
}} |
|||
It can be used as input for the program as well: |
|||
{{Code|code= |
|||
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py |
|||
}} |
|||
{{Docnav |
|||
|[[Part_Tube|Tube]] |
|||
|[[Part_Plane|Plane]] |
|||
|[[Part_Workbench|Part]] |
|||
|IconL=Part_Tube.svg |
|||
|IconR=Part_Plane.svg |
|||
|IconC=Workbench_Part.svg |
|||
}} |
|||
{{Part_Tools_navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 11:47, 21 January 2023
Part Primitives |
Menu location |
---|
Part → Create primitives... |
Workbenches |
Part, OpenSCAD |
Default shortcut |
None |
Introduced in version |
- |
See also |
Part Builder |
Description
Nástroj pro vytváření různých parametrických geometrických tvarů,
The primitives that can be created with the command
Usage
Create
- There are several ways to invoke the command:
- Press the Part Primitives button.
- Select the Part → Create Primitives... option from the menu.
- The Geometric Primitives task panel opens.
- Select a primitive type from the dropdown list.
- Specify the properties.
- Press the Create button.
- The primitive object is created.
- Note that the task panel stays open.
- Optionally create additional primitives.
- Press the Close button to close the task panel and finish the command.
Edit
- Double-click the primitive object in the Tree view.
- The Geometric Primitives task panel opens.
- Change one or more properties.
- The object is dynamically updated in the 3D view.
- Press the OK button.
The properties of a Part Primitive can also be changed in the Property editor, and its ÚdajePlacement can also be changed with the Std TransformManip command.
- V současnosti může tento nástroj parametricky vytvářet
The following primitives can be created:
- Plane: Creates a plane.
- Box: Creates a box. This object can also be created with the Box tool.
- Cylinder: Creates a cylinder. This object can also be created with the Cylinder tool.
- Cone: Creates a cone. This object can also be created with the Cone tool.
- Sphere: Creates a sphere. This object can also be created with the Sphere tool.
- Ellipsoid: Creates a ellipsoid.
- Torus: Creates a torus. This object can also be created with the Torus tool.
- Prism: Creates a prism.
- Wedge: Creates a wedge.
- Helix: Creates a helix.
- Spiral: Creates a spiral.
- Circle: Creates a circular arc.
- Ellipse: Creates an elliptical arc.
- Point: Creates a point.
- Line: Creates a line.
- Regular polygon: Creates a regular polygon.
Notes
- The Part Primitives command cannot create a Part Tube.
Scripting
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
There is a Python script to test the creation of the primitives. It can be run from the Python console:
import parttests.part_test_objects as pto
pto.create_test_file("example_file")
This script is located in the installation directory of the program, and can be examined to see how the basic primitives are built:
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
It can be used as input for the program as well:
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
Part
- Primitives: Box, Cylinder, Sphere, Cone, Torus, Tube, Create primitives, Shape builder
- Creation and modification: Extrude, Revolve, Mirror, Fillet, Chamfer, Make face from wires, Ruled Surface, Loft, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Thickness, Projection on surface, Attachment
- Boolean: Make compound, Explode Compound, Compound Filter, Boolean, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Measure: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
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