Object API: Difference between revisions
((November 2018) This information may be incomplete and outdated. For the latest API, see the autogenerated API documentation) |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:5--> |
|||
{{VeryImportantMessage|(November 2018) This information may be incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation].}} |
{{VeryImportantMessage|(November 2018) This information may be incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation].}} |
||
Revision as of 10:14, 27 February 2019
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 are sorted in different named groups for convenience.
Description:
Returns: The type of a named property. This can be (Hidden,ReadOnly,Output) or any combination.