Object API/it: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{VeryImportantMessage|(Ottobre 2019) Non modificare queste pagine. Le informazioni sono incomplete e obsolete. Per l'API più recente, consultare la [https://www.freecadweb.org/api documentazione API autogenerata] o generare la documentazione autonomamente. Vedere [[Source documentation/it|Documentazione del codice sorgente]].}} |
|||
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: |
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: |
||
{{Code|code= |
|||
<syntaxhighlight> |
|||
myObj = FreeCAD.ActiveDocument.myObjectName |
myObj = FreeCAD.ActiveDocument.myObjectName |
||
print myObj.PropertiesList |
|||
}} |
|||
</syntaxhighlight> |
|||
{{APIProperty|Content|Una rappresentazione XML delle proprietà di un oggetto.}} |
|||
{{APIProperty|Label|Ottiene / imposta l'etichetta degli oggetti. La stringa può essere unicode.}} |
|||
⚫ | |||
{{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|State| Lo stato di FreeCAD di un oggetto (ad esempio se deve essere ricalcolato)}} |
|||
{{APIProperty|Type|Una stringa che descrive il tipo di oggetto}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
{{APIFunction|getGroupOfProperty| | |Il nome del gruppo a cui appartiene la proprietà in questa categoria. Le proprietà sono ordinate in gruppi diversi denominati secondo convenienza.}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{Userdocnavi{{#translation:}}}} |
|||
{{APIProperty|Content|An XML representation of the properties of an object.}} |
|||
⚫ | |||
{{APIProperty|Label|Gets/sets the objects label. The string can be unicode.}} |
|||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
⚫ | |||
{{clear}} |
|||
{{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|State|The FreeCAD state of an object (ie. if it needs to be recomputed)}} |
|||
{{APIProperty|Type|A string describing the type of an object}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
{{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.}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |
Latest revision as of 21:03, 27 February 2020
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
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.
Description:
Returns: La stringa di documentazione della proprietà di questa classe.
Description:
Returns: Il nome del gruppo a cui appartiene la proprietà in questa categoria. Le proprietà sono ordinate in gruppi diversi denominati secondo convenienza.
Description:
Returns: Il tipo di una proprietà denominata. Questo può essere (Hidden,ReadOnly,Output) o qualsiasi combinazione.
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub