Part Prism/de: Difference between revisions

From FreeCAD Documentation
(Created page with "==Beispiel==")
(Updating to match new version of source page)
 
(8 intermediate revisions by one other user not shown)
Line 19: Line 19:
}}
}}


<span id="Description"></span>
== Beschreibung ==
== Beschreibung ==


Line 25: Line 26:
[[Image:Part_Prism_Example.png|400px]]
[[Image:Part_Prism_Example.png|400px]]


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


Siehe [[Part_Primitives/de#Anwendung|Part Grundelemente]].
Siehe [[Part_Primitives/de#Anwendung|Part Grundelemente]].


<span id="Example"></span>
==Beispiel==
==Beispiel==


[[Image:Part_Prism_Scripting_Example.png|thumb|Part Prism from the scripting example]]
[[Image:Part_Prism_Scripting_Example.png|thumb|Part-Prisma aus dem Skriptbeispiel]]


Ein Part-Prisma-Objekt, das mit dem [[#Skripten|Skriptbeispiel]] weiter unten erzeugt wurde, wird hier dargestellt.
A Part Prism object created with the [[#Scripting|scripting example]] below is shown here.


<span id="Properties"></span>
<div class="mw-translate-fuzzy">
== Parameter ==
==Eigenschaften==
* Polygon - Die Anzahl der Seiten des Polygons, das den Querschnitt des Part Prisma beschreibt
* Umkreisradius - Der Umkreisradius ist der Abstand vom Zentrum des Polygons zu einem Eckpunkt (vertex).
* Höhe - Die Höhe des Part Prisma.
</div>


See also: [[Property_editor|Property editor]].
Siehe auch: [[Property_editor/de|Eigenschafteneditor]].


A Part Prism object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties:
Ein Part-Prism-Objekt wird von einem [[Part_Feature/de|Part-Formelement]] abgeleitet und erbt alle seine Eigenschaften. Außerdem hat es die folgenden zusätzlichen Eigenschaften:


<span id="Data"></span>
=== Data ===
===Daten===


{{TitleProperty|Attachment}}
{{TitleProperty|Attachment}}
Line 57: Line 57:
* {{PropertyData|Circumradius|Length}}: The radius of the circle that circumscribes the polygon, the distance from the center of the polygon to one of its vertices. The default is {{Value|2mm}}.
* {{PropertyData|Circumradius|Length}}: The radius of the circle that circumscribes the polygon, the distance from the center of the polygon to one of its vertices. The default is {{Value|2mm}}.
* {{PropertyData|Height|Length}}: The height of the prism. The default is {{Value|10mm}}.
* {{PropertyData|Height|Length}}: The height of the prism. The default is {{Value|10mm}}.
* {{PropertyData|First Angle|Angle}}: The angle between the extrusion direction of the prism and its positive Z axis, measured around its Y axis. The angle is positive towards its positive X axis. Valid range: {{Value|0° &lt;&#61; value &lt; 90°}}. The default is {{Value|0°}}. {{Version|0.19}}
* {{PropertyData|First Angle|Angle}}: The angle between the extrusion direction of the prism and its positive Z axis, measured around its Y axis. The angle is positive towards its positive X axis. Valid range: {{Value|0° &lt;&#61; value &lt; 90°}}. The default is {{Value|0°}}.
* {{PropertyData|Second Angle|Angle}}: The angle between the extrusion direction of the prism and its positive Z axis, measured around its X axis. The angle is positive towards its positive Y axis. Valid range: {{Value|0° &lt;&#61; value &lt; 90°}}. The default is {{Value|0°}}. {{Version|0.19}}
* {{PropertyData|Second Angle|Angle}}: The angle between the extrusion direction of the prism and its positive Z axis, measured around its X axis. The angle is positive towards its positive Y axis. Valid range: {{Value|0° &lt;&#61; value &lt; 90°}}. The default is {{Value|0°}}.


== Scripting ==
<span id="Scripting"></span>
==Skripten==


See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
Line 73: Line 74:
* The function returns the newly created object.
* The function returns the newly created object.


Beispiel:
Example:


{{Code|code=
{{Code|code=

Latest revision as of 15:41, 20 May 2023

Part Prisma

Menüeintrag
Formteil → Grundkörper erzeugen... → Prisma
Arbeitsbereich
Part, OpenSCAD
Standardtastenkürzel
Keiner
Eingeführt in Version
0.14
Siehe auch
Part Primitives

Beschreibung

Ein Part Prisma ist ein parametrischer Volumenkörper, der mit dem Befehl Part Grundelemente erstellt werden kann. Im Koordinatensystem durch seine Daten-EigenschaftPlacement festgelegt, liegt die Unterseite des Prismas auf der XY-Ebene mit seinem Mittelpunkt im Ursprung und einem seiner Eckpunkte auf der X-Achse.

Anwendung

Siehe Part Grundelemente.

Beispiel

Part-Prisma aus dem Skriptbeispiel

Ein Part-Prisma-Objekt, das mit dem Skriptbeispiel weiter unten erzeugt wurde, wird hier dargestellt.

Eigenschaften

Siehe auch: Eigenschafteneditor.

Ein Part-Prism-Objekt wird von einem Part-Formelement abgeleitet und erbt alle seine Eigenschaften. Außerdem hat es die folgenden zusätzlichen Eigenschaften:

Daten

Attachment

The object has the same attachment properties as a Part Part2DObject.

Prism

  • DatenPolygon (IntegerConstraint): The number of sides of the polygon. The default is 6.
  • DatenCircumradius (Length): The radius of the circle that circumscribes the polygon, the distance from the center of the polygon to one of its vertices. The default is 2mm.
  • DatenHeight (Length): The height of the prism. The default is 10mm.
  • DatenFirst Angle (Angle): The angle between the extrusion direction of the prism and its positive Z axis, measured around its Y axis. The angle is positive towards its positive X axis. Valid range: 0° <= value < 90°. The default is .
  • DatenSecond Angle (Angle): The angle between the extrusion direction of the prism and its positive Z axis, measured around its X axis. The angle is positive towards its positive Y axis. Valid range: 0° <= value < 90°. The default is .

Skripten

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

A Part Prism can be created with the addObject() method of the document:

prism = FreeCAD.ActiveDocument.addObject("Part::Prism", "myPrism")
  • Where "myPrism" is the name for the object.
  • The function returns the newly created object.

Beispiel:

import FreeCAD as App

doc = App.activeDocument()

prism = doc.addObject("Part::Prism", "myPrism")
prism.Polygon = 5
prism.Circumradius = 10
prism.Height = 50
prism.FirstAngle = 22.5
prism.SecondAngle = 45
prism.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(60, 75, 30))

doc.recompute()