Part Plane/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "==Użycie==")
No edit summary
Line 2: Line 2:


{{Docnav/pl
{{Docnav/pl
|[[Part_Primitives/pl|Geometrie pierwotne]]
|[[Part_Primitives/pl|Utwórz geometrię pierwotną]]
|[[Part_Ellipsoid/pl|Elipsoida]]
|[[Part_Ellipsoid/pl|Elipsoida]]
|[[Part_Workbench/pl|środowisko pracy Część]]
|[[Part_Workbench/pl|środowisko pracy Część]]
Line 18: Line 18:
}}
}}


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


Line 24: Line 25:
[[Image:Part_Plane_Example.png|400px]]
[[Image:Part_Plane_Example.png|400px]]


<span id="Usage"></span>
==Użycie==
==Użycie==



Revision as of 16:07, 23 June 2023

Część: Płaszczyzna

Lokalizacja w menu
Część → Geometrie pierwotne → Płaszczyzna
Środowisko pracy
Część, OpenSCAD
Domyślny skrót
brak
Wprowadzono w wersji
-
Zobacz także
Geometrie pierwotne

Opis

Płaszczyzna środowiska praczy Część to parametryczna prostokątna płaszczyzna, którą można utworzyć za pomocą polecenia Geometrie pierwotne. W układzie współrzędnych zdefiniowanym przez właściwość DANEUmiejscowienie, płaszczyzna leży na płaszczyźnie XY, z przednim lewym narożnikiem w punkcie początkowym i przednią krawędzią równoległą do osi X.

Użycie

See Part Primitives.

Example

Part Plane from the scripting example

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

Properties

See also: Property editor.

A Part Plane 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.

Plane

  • DANELength (Length): The length of the plane. This is the dimension in its X direction. The default is 10mm.
  • DANEWidth (Length): The width of the plane. This is the dimension in its Y direction. The default is 10mm.

Scripting

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

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

plane = FreeCAD.ActiveDocument.addObject("Part::Plane", "myPlane")
  • Where "myPlane" is the name for the object.
  • The function returns the newly created object.

Example:

import FreeCAD as App

doc = App.activeDocument()

plane = doc.addObject("Part::Plane", "myPlane")
plane.Length = 4
plane.Width = 8
plane.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(20, 75, 60))

doc.recompute()