ViewObject API/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Quando la GUI è attiva, a ogni oggetto del documento FreeCAD è associato un ViewObject, che risiede nella controparte FreeCADGui del documento. Un oggetto della vista può e...") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
Quando la GUI è attiva, a ogni oggetto del documento FreeCAD è associato un ViewObject, che risiede nella controparte FreeCADGui del documento. Un oggetto della vista può essere recuperato in due modi. Esempio: |
Quando la GUI è attiva, a ogni oggetto del documento FreeCAD è associato un ViewObject, che risiede nella controparte FreeCADGui del documento. Un oggetto della vista può essere recuperato in due modi. Esempio: |
||
{{Code|code= |
|||
⚫ | |||
myViewObj = FreeCAD.ActiveDocument.myObjectName.ViewObject |
|||
⚫ | |||
print myViewObj.IV |
|||
}} |
|||
Revision as of 23:05, 23 December 2014
Quando la GUI è attiva, a ogni oggetto del documento FreeCAD è associato un ViewObject, che risiede nella controparte FreeCADGui del documento. Un oggetto della vista può essere recuperato in due modi. Esempio:
myViewObj = FreeCAD.ActiveDocument.myObjectName.ViewObject
myViewObj = FreeCADGui.ActiveDocument.myObjectName
print myViewObj.IV
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.
Description: Checks if this object is derived from the given object type
Returns: True if given type is a father
Description: Sets a transformation on the Inventor node
Returns: nothing