From FreeCAD Documentation
Cuando la interfaz gráfica de usuario GUI está iniciada, cada objeto en el documento de FreeCAD tiene un objeto de vista (ViewOject) asociado, este reside el documento homólogo FreeCADGui. Un objeto de vista puede ser recuperado de dos modos. Ejemplo:
myViewObj = FreeCAD.ActiveDocument.myObjectName.ViewObject
myViewObj = FreeCADGui.ActiveDocument.myObjectName
print myViewObj.IV
Annotation
Devuelve: the annotation node of a ViewObject
BoundingBox
Devuelve: the bounding box
Content
Devuelve: an XML representation of a ViewObject's properties
DisplayMode
Devuelve: the current display mode
IV
Devuelve: an Inventor representation of the ViewObject
Object
Devuelve: the associated FreeCAD Document Object of this ViewObject
PropertiesList
Devuelve: a list of properties of this ViewObject
RootNode
Devuelve: the Inventor node of this ViewObject (pivy.coin object)
Selectable
Devuelve: True if the object is selectable
Type
Devuelve: the type of this ViewObject
Visibility
Devuelve: True if the viewObject is visible
getAllDerivedFrom (
)
Descripción:
Devuelve: all descentences of this object
getDocumentationOfProperty (
)
Descripción:
Devuelve: the documentation string of the property of this class.
getGroupOfProperty (
)
Descripción:
Devuelve: the name of the group which the property belongs to in this class. The properties sorted in differnt named groups for convenience.
getPropertyByName (
)
Descripción:
Devuelve: the value of a named property.
getTypeOfProperty (
)
Descripción:
Devuelve: the type of a named property. This can be (Hidden,ReadOnly,Output) or any combination.
hide (
)
Descripción: Hides the object.
Devuelve:
isDerivedFrom (
string )
Descripción: Checks if this object is derived from the given object type
Devuelve: True if given type is a father
isVisible (
)
Descripción: Checks if the object is visible
Devuelve: a boolean
listDisplayModes (
)
Descripción: Shows a list of all display modes
Devuelve: a list
setTransformation (
coin.SoTransform )
Descripción: Sets a transformation on the Inventor node
Devuelve: nothing
show (
)
Descripción: Shows the object if hidden
Devuelve: nothing
toString (
)
Descripción:
Devuelve: a string representation of the Inventor node
update (
)
Descripción: Updates the view representation of the object
Devuelve:
Traducciones disponibles: