Part Wedge/cs: Difference between revisions

From FreeCAD Documentation
(Created page with "'''Umístění:''' Defaultně je základ v rovině XY a vršek vznikne ve směru osy Z. Roh základny je v počátku 0,0,0.")
(Updating to match new version of source page)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand/cs|Name=Part Wedge|Name/cs=Díl_Klín|MenuLocation=Díl -> [[Part_CreatePrimitives/cs|Díl Vytváření zákl.geom.tvarů]] -> Klín||Workbenches=[[Part_Module/cs|Modul Díl]]|SeeAlso=[[Part_CreatePrimitives/cs|Díl Vytváření zákl.geom.tvarů]]}}


{{Docnav
Vytváří parametrický objekt Klín. This Wedge defaults to a larger square base and a smaller square top.
|[[Part_Prism|Prism]]
|[[Part_Helix|Helix]]
|[[Part_Workbench|Part]]
|IconL=Part_Prism.svg
|IconR=Part_Helix.svg
|IconC=Workbench_Part.svg
}}


<div class="mw-translate-fuzzy">
=== Defaultní rozměr a umístění ===
{{GuiCommand/cs|Name=Part Wedge|Name/cs=Díl_Klín|MenuLocation=Díl -> [[Part_CreatePrimitives/cs|Díl Vytváření zákl.geom.tvarů]] -> Klín||Workbenches=[[Part_Workbench/cs|Modul Díl]]|SeeAlso=[[Part_CreatePrimitives/cs|Díl Vytváření zákl.geom.tvarů]]}}
</div>


==Description==
'''Umístění:'''
Defaultně je základ v rovině XY a vršek vznikne ve směru osy Z. Roh základny je v počátku 0,0,0.


<div class="mw-translate-fuzzy">
'''Base Face:'''
Vytváří parametrický objekt Klín. Defaultně se za základnu považuje větší plocha a menší je vrchol.
*X : 10 mm
</div>
*Z : 10 mm


[[Image:Part_Wedge_Example.png|400px]]
'''Height:'''
*Y : 0-10 mm


==Usage==
'''Top Face:'''
*X : 2-8 mm
*Z : 2-8 mm


See [[Part_Primitives#Usage|Part Primitives]].


== Example ==
[[File:PartWedgeProperty.png|left]]
{{clear}}


[[Image:Part_Wedge_Scripting_Example.png|thumb|Part Wedge from the scripting example]]
=== Parametric Inputs ===
{|
| [[File:PartWedgeProperty_Inputs.png]]
|
Using the default placement, the below inputs are:
*{{PropertyData|X min/max}} : Base face X axis span
*{{PropertyData|Y min/max}}: Wedge height span
*{{PropertyData|Z min/max}} : Base face Z axis span
*{{PropertyData|X2 min/max}} : Top face X axis span
*{{PropertyData|Z2 min/max}} : Top face Z axis span
|}


A Part Wedge object created with the [[#Scripting|scripting example]] below is shown here.
{{clear}}

<languages/>
== Notes ==

* The values of the coordinates of the wedge must be such that a valid solid can be create. This means that the front and rear base shapes can both be single edges, but not if they are parallel. And if one of the base shapes is a vertex the other shape must be a rectangular face.

== Properties ==

See also: [[Property_editor|Property editor]].

A Part Wedge object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties:

=== Data ===

{{TitleProperty|Attachment}}

The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]].

{{TitleProperty|Wedge}}

* {{PropertyData|Xmin|Distance}}: The lowest X coordinate of the front face of the wedge. The default is {{Value|0mm}}.
* {{PropertyData|Ymin|Distance}}: The Y coordinate of the front face of the wedge. The default is {{Value|0mm}}.
* {{PropertyData|Zmin|Distance}}: The lowest Z coordinate of the front face of the wedge. The default is {{Value|0mm}}.
* {{PropertyData|X2min|Distance}}: The lowest X coordinate of the rear face of the wedge. The default is {{Value|2mm}}.
* {{PropertyData|Z2min|Distance}}: The lowest Z coordinate of the rear face of the wedge. The default is {{Value|2mm}}.
* {{PropertyData|Xmax|Distance}}: The highest X coordinate of the front face of the wedge. The default is {{Value|10mm}}.
* {{PropertyData|Ymax|Distance}}: The Y coordinate of the rear face of the wedge. The default is {{Value|10mm}}.
* {{PropertyData|Zmax|Distance}}: The highest Z coordinate of the front face of the wedge. The default is {{Value|10mm}}.
* {{PropertyData|X2max|Distance}}: The highest X coordinate of the rear face of the wedge. The default is {{Value|8mm}}.
* {{PropertyData|Z2max|Distance}}: The highest Z coordinate of the rear face of the wedge. The default is {{Value|8mm}}.

== Scripting ==

See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

A Part Wedge can be created with the {{Incode|addObject()}} method of the document:

{{Code|code=
wedge = FreeCAD.ActiveDocument.addObject("Part::Wedge", "myWedge")
}}

* Where {{Incode|"myWedge"}} is the name for the object.
* The function returns the newly created object.

Example:

{{Code|code=
import FreeCAD as App

doc = App.activeDocument()

wedge = doc.addObject("Part::Wedge", "myWedge")
wedge.Xmin = 1
wedge.Ymin = 2
wedge.Zmin = 3
wedge.X2min = 4
wedge.Z2min = 6
wedge.Xmax = 15
wedge.Ymax = 20
wedge.Zmax = 55
wedge.X2max = 10
wedge.Z2max = 12
wedge.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(75, 60, 30))

doc.recompute()
}}


{{Docnav
|[[Part_Prism|Prism]]
|[[Part_Helix|Helix]]
|[[Part_Workbench|Part]]
|IconL=Part_Prism.svg
|IconR=Part_Helix.svg
|IconC=Workbench_Part.svg
}}

{{Part_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 10:15, 3 March 2022

Díl_Klín

Umístění Menu
Díl -> Díl Vytváření zákl.geom.tvarů -> Klín
Pracovní stoly
Modul Díl
Výchozí zástupce
Nikdo
Představen ve verzi
-
Viz také
Díl Vytváření zákl.geom.tvarů

Description

Vytváří parametrický objekt Klín. Defaultně se za základnu považuje větší plocha a menší je vrchol.

Usage

See Part Primitives.

Example

Part Wedge from the scripting example

A Part Wedge object created with the scripting example below is shown here.

Notes

  • The values of the coordinates of the wedge must be such that a valid solid can be create. This means that the front and rear base shapes can both be single edges, but not if they are parallel. And if one of the base shapes is a vertex the other shape must be a rectangular face.

Properties

See also: Property editor.

A Part Wedge object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Data

Attachment

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

Wedge

  • ÚdajeXmin (Distance): The lowest X coordinate of the front face of the wedge. The default is 0mm.
  • ÚdajeYmin (Distance): The Y coordinate of the front face of the wedge. The default is 0mm.
  • ÚdajeZmin (Distance): The lowest Z coordinate of the front face of the wedge. The default is 0mm.
  • ÚdajeX2min (Distance): The lowest X coordinate of the rear face of the wedge. The default is 2mm.
  • ÚdajeZ2min (Distance): The lowest Z coordinate of the rear face of the wedge. The default is 2mm.
  • ÚdajeXmax (Distance): The highest X coordinate of the front face of the wedge. The default is 10mm.
  • ÚdajeYmax (Distance): The Y coordinate of the rear face of the wedge. The default is 10mm.
  • ÚdajeZmax (Distance): The highest Z coordinate of the front face of the wedge. The default is 10mm.
  • ÚdajeX2max (Distance): The highest X coordinate of the rear face of the wedge. The default is 8mm.
  • ÚdajeZ2max (Distance): The highest Z coordinate of the rear face of the wedge. The default is 8mm.

Scripting

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

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

wedge = FreeCAD.ActiveDocument.addObject("Part::Wedge", "myWedge")
  • Where "myWedge" is the name for the object.
  • The function returns the newly created object.

Example:

import FreeCAD as App

doc = App.activeDocument()

wedge = doc.addObject("Part::Wedge", "myWedge")
wedge.Xmin = 1
wedge.Ymin = 2
wedge.Zmin = 3
wedge.X2min = 4
wedge.Z2min = 6
wedge.Xmax = 15
wedge.Ymax = 20
wedge.Zmax = 55
wedge.X2max = 10
wedge.Z2max = 12
wedge.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(75, 60, 30))

doc.recompute()