Std TextDocument

Description
The Std TextDocument command creates an object capable of holding arbitrary text. This element can be used to write general information or documentation about the model.

Usage

 * 1) Select the  option from the menu.
 * 2) Double-click the newly created object in the tree view to open a tab in which to write text.
 * 3) Add text.
 * 4) Close the tab and save the file when asked.

View

 * : a font name provided by the system, for example,.
 * : a font size in points, for example,.
 * : it defaults to . If it is the text cannot be edited until this property is set to.
 * : it defaults to . If it is set to, it will highlight the text like the Python console.

Scripting
FreeCAD Scripting Basics, and scripted objects.

See Part Feature for the general information on adding objects to a document.

An object is created with the  method of the document. Once a TextDocument exists, its textual information is stored in its attribute. This attribute can be used in other objects, for example, as the string in a.