Part Ellipse/it: Difference between revisions

From FreeCAD Documentation
(Created page with "{{TitleProperty|Attachment}}")
(Created page with "L'oggetto ha le stesse proprietà di collegamento di un Part Part2DObject.")
Line 51: Line 51:
{{TitleProperty|Attachment}}
{{TitleProperty|Attachment}}


The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]].
L'oggetto ha le stesse proprietà di collegamento di un [[Part_Part2DObject/it#Dati|Part Part2DObject]].


{{TitleProperty|Base}}
{{TitleProperty|Base}}

Revision as of 19:33, 6 January 2024

Part Ellisse

Posizione nel menu
Parte → Crea primitive → Ellisse
Ambiente
Part, OpenSCAD
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Part Primitive

Descrizione

Una Part Ellisse è una forma parametrica che può essere creata con il comando Part Primitive. Nel sistema di coordinate definito dalla sua proprietà DatiPlacement, l'ellisse si trova sul piano XY con il centro nell'origine. Il suo asse maggiore è parallelo all'asse X.

Una Part Ellisse è infatti un arco ellittico chiuso in senso antiorario, può essere trasformato in un arco modificando le sue proprietà DatiAngle1 e/o DatiAngle2.

Utilizzo

Vedere Part Primitive.

Esempio

Part Ellisse dall'esempio di scripting

Qui viene mostrato un oggetto Part Ellisse creato con l'esempio di scripting riportato di seguito.

Proprietà

Vedere anche: Editor delle proprietà.

Un oggetto Part Ellisse deriva da un oggetto Funzione Part e ne eredita tutte le proprietà. Ha inoltre le seguenti proprietà aggiuntive:

Dati

Attachment

L'oggetto ha le stesse proprietà di collegamento di un Part Part2DObject.

Base

  • DatiMajorRadius (Length): The major radius of the ellipse or elliptical arc. The default is 4mm.
  • DatiMinorRadius (Length): The minor radius of the ellipse or elliptical arc. The default is 2mm.
  • DatiAngle1 (Angle): The start angle of the elliptical arc. Valid range: 0° < value <= 360°. The default is .
  • DatiAngle2 (Angle): The end angle of the elliptical arc. Valid range: 0° < value <= 360°. The default is 360°. If DatiAngle1 and DatiAngle2 are equal, or if one angle is and the other 360°, a full ellipse is created.

Scripting

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

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

ellipse = FreeCAD.ActiveDocument.addObject("Part::Ellipse", "myEllipse")
  • Where "myEllipse" is the name for the object.
  • The function returns the newly created object.

Example:

import FreeCAD as App

doc = App.activeDocument()

ellipse = doc.addObject("Part::Ellipse", "myEllipse")
ellipse.MajorRadius = 20
ellipse.MinorRadius = 10
ellipse.Angle1 = 45
ellipse.Angle2 = 135
ellipse.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(30, 45, 10))

doc.recompute()