Object API/es: Difference between revisions
(Updating to match new version of source page) |
m (Created page with "Siendo paramétricos, los objetos del documento en FreeCAD pueden tener diversas propiedades adicionales, pero éstas son las básicas, presentes en cada objeto del documento ...") |
||
Line 1: | Line 1: | ||
Siendo paramétricos, los objetos del documento en FreeCAD pueden tener diversas propiedades adicionales, pero éstas son las básicas, presentes en cada objeto del documento de FreeCAD. Los objetos se pueden recuperar fácilmente por su nombre. Por ejemplo: |
|||
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 |
myObj = FreeCAD.ActiveDocument.myObjectName |
Revision as of 03:08, 28 September 2014
Siendo paramétricos, los objetos del documento en FreeCAD pueden tener diversas propiedades adicionales, pero éstas son las básicas, presentes en cada objeto del documento de FreeCAD. Los objetos se pueden recuperar fácilmente por su nombre. Por ejemplo:
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.