Object API/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "=API degli Oggetti= Essendo parametrici, in FreeCAD gli oggetti del documento possono avere un sacco di altre proprietà. Queste sono quelle di base, presenti in ogni FreeCAD ...") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
Being parametric, document objects in FreeCAD can have a lot of additional properties, but these are the basic ones, present in every FreeCAD Document Object. Objects can be retrieved simply by their name. Example: |
|||
=API degli Oggetti= |
|||
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 |
myObj = FreeCAD.ActiveDocument.myObjectName |
||
Line 22: | Line 21: | ||
{{APIFunction|touch| |Marks the object as changed (touched)| }} |
{{APIFunction|touch| |Marks the object as changed (touched)| }} |
||
⚫ | |||
{{languages/it | {{en|Object_API}} {{es|Object_API/es}} }} |
|||
<languages/> |
|||
⚫ |
Revision as of 03:01, 28 September 2014
Being parametric, document objects in FreeCAD can have a lot of additional properties, but these are the basic ones, present in every FreeCAD Document Object. Objects can be retrieved simply by their name. Example:
myObj = FreeCAD.ActiveDocument.myObjectName print myObj.PropertiesList
Returns: 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.
Description:
Returns: the documentation string of the property of this class.
Description:
Returns: the name of the group which the property belongs to in this class. The properties sorted in differnt named groups for convenience.
Description:
Returns: the type of a named property. This can be (Hidden,ReadOnly,Output) or any combination.