Object API/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Created page with "{{APIProperty|Content|Una rappresentazione XML delle proprietà di un oggetto.}} {{APIProperty|Label|Ottiene / imposta l'etichetta degli oggetti. La stringa può essere unicod...")
Line 6: Line 6:




{{APIProperty|Content|An XML representation of the properties of an object.}}
{{APIProperty|Content|Una rappresentazione XML delle proprietà di un oggetto.}}
{{APIProperty|Label|Gets/sets the objects label. The string can be unicode.}}
{{APIProperty|Label|Ottiene / imposta l'etichetta degli oggetti. La stringa può essere unicode.}}
{{APIProperty|Name|The unique name of an object.}}
{{APIProperty|Name|Il nome univoco di un oggetto.}}
{{APIProperty|Placement|Gets/sets the Placement of an object. A placement defines an orientation (rotation) and a position (base) in 3D space. It is used when no scaling or other distortion is needed.}}
{{APIProperty|Placement|Ottiene / imposta il posizionamento di un oggetto. Un posizionamento definisce un orientamento (rotazione) ed una posizione (base) nello spazio 3D. Viene utilizzato quando non è necessario alcun ridimensionamento o altro tipo di distorsione.}}
{{APIProperty|PropertiesList|A list of the properties of an object}}
{{APIProperty|PropertiesList|Un elenco delle proprietà di un oggetto}}
{{APIProperty|State|The FreeCAD state of an object (ie. if it needs to be recomputed)}}
{{APIProperty|State| Lo stato di FreeCAD di un oggetto (ad esempio se deve essere ricalcolato)}}
{{APIProperty|Type|A string describing the type of an object}}
{{APIProperty|Type|Una stringa che descrive il tipo di oggetto}}
{{APIProperty|ViewObject|The associated View Provider (FreeCADGUI object) of an object}}
{{APIProperty|ViewObject|Il View Provider associato (oggetto FreeCADGUI) a un oggetto}}
{{APIFunction|getAllDerivedFrom| | |All descendants of this object}}
{{APIFunction|getAllDerivedFrom| | |Tutti i discendenti di questo oggetto}}
{{APIFunction|getDocumentationOfProperty| | |The documentation string of the property of this class.}}
{{APIFunction|getDocumentationOfProperty| | |La stringa di documentazione della proprietà di questa classe.}}
{{APIFunction|getGroupOfProperty| | |The name of the group which the property belongs to in this class. The properties are sorted in different named groups for convenience.}}
{{APIFunction|getGroupOfProperty| | |Il nome del gruppo a cui appartiene la proprietà in questa categoria. Le proprietà sono ordinate in gruppi diversi denominati secondo convenienza.}}
{{APIFunction|getPropertyByName| | |The value of a named property.}}
{{APIFunction|getPropertyByName| | |Il valore di una proprietà denominata.}}
{{APIFunction|getTypeOfProperty| | |The type of a named property. This can be (Hidden,ReadOnly,Output) or any combination.}}
{{APIFunction|getTypeOfProperty| | |Il tipo di una proprietà denominata. Questo può essere (Hidden,ReadOnly,Output) o qualsiasi combinazione.}}
{{APIFunction|isDerivedFrom| | |True if given type is a father}}
{{APIFunction|isDerivedFrom| | |True se il tipo dato è un padre}}
{{APIFunction|purgeTouched| |Marks the object as unchanged| }}
{{APIFunction|purgeTouched| |Contrassegna l'oggetto come unchanged (invariato)| }}
{{APIFunction|touch| |Marks the object as changed (touched)| }}
{{APIFunction|touch| |Contrassegna l'oggetto come changed (modificato, toccato)| }}


[[Category:API/it]]
[[Category:API/it]]

Revision as of 20:17, 13 October 2014

Essendo parametrici, in FreeCAD gli oggetti del documento possono avere un sacco di altre proprietà. Queste sono quelle di base, presenti in ogni FreeCAD Document Object. Gli oggetti possono essere recuperati semplicemente con il loro nome. Esempio:

myObj = FreeCAD.ActiveDocument.myObjectName
 print myObj.PropertiesList


Content

Returns: Una rappresentazione XML delle proprietà di un oggetto.

Label

Returns: Ottiene / imposta l'etichetta degli oggetti. La stringa può essere unicode.

Name

Returns: Il nome univoco di un oggetto.

Placement

Returns: Ottiene / imposta il posizionamento di un oggetto. Un posizionamento definisce un orientamento (rotazione) ed una posizione (base) nello spazio 3D. Viene utilizzato quando non è necessario alcun ridimensionamento o altro tipo di distorsione.

PropertiesList

Returns: Un elenco delle proprietà di un oggetto

State

Returns: Lo stato di FreeCAD di un oggetto (ad esempio se deve essere ricalcolato)

Type

Returns: Una stringa che descrive il tipo di oggetto

ViewObject

Returns: Il View Provider associato (oggetto FreeCADGUI) a un oggetto

getAllDerivedFrom( )

Description:

Returns: Tutti i discendenti di questo oggetto

getDocumentationOfProperty( )

Description:

Returns: La stringa di documentazione della proprietà di questa classe.

getGroupOfProperty( )

Description:

Returns: Il nome del gruppo a cui appartiene la proprietà in questa categoria. Le proprietà sono ordinate in gruppi diversi denominati secondo convenienza.

getPropertyByName( )

Description:

Returns: Il valore di una proprietà denominata.

getTypeOfProperty( )

Description:

Returns: Il tipo di una proprietà denominata. Questo può essere (Hidden,ReadOnly,Output) o qualsiasi combinazione.

isDerivedFrom( )

Description:

Returns: True se il tipo dato è un padre

purgeTouched( )

Description: Contrassegna l'oggetto come unchanged (invariato)

Returns:

touch( )

Description: Contrassegna l'oggetto come changed (modificato, toccato)

Returns:

Other languages: