Property: Difference between revisions

From FreeCAD Documentation
(The properties are fixed in English. They don't need translation.)
(Internally, the property name is prefixed with App::Property)
Line 43: Line 43:
}}
}}
<translate>
<translate>

Internally, the property name is prefixed with {{incode|App::Property}}:
</translate>
{{Code|code=
App::PropertyBoolean
App::PropertyFloat
App::PropertyFloatList
...
}}
<translate>

<!--T:2-->
<!--T:2-->
{{docnav|Interface Customization|Workbenches}}
{{docnav|Interface Customization|Workbenches}}

Revision as of 21:52, 22 September 2019

A property is a piece of information like a number or a text string that is attached to a FreeCAD document or an object in a document. Properties can be viewed and modified with the Property editor.

Properties play a very important part in FreeCAD, since it has been designed to work with parametric objects, which are objects defined only by their properties.

Custom scripted objects in FreeCAD can have properties of the following types:

Boolean
Float
FloatList
FloatConstraint
Angle
Distance
Integer
IntegerConstraint
Percent
Enumeration
IntegerList
String
StringList
Link
LinkList
Matrix
Vector
VectorList
Placement
PlacementLink
Color
ColorList
Material
Path
File
FileIncluded
PartShape
FilletContour
Circle

Internally, the property name is prefixed with App::Property:

App::PropertyBoolean
App::PropertyFloat
App::PropertyFloatList
...
Interface Customization
Workbenches