Create a model text in the Autodesk Revit family document.
Namespace: Autodesk.Revit.CreationAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
 Syntax
Syntax
Parameters
- text
- Type: System..::..String
 The text to be displayed.
- modelTextType
- Type: Autodesk.Revit.DB..::..ModelTextType
 The type of model text. If this parameter is nullNothingnullptra null reference (Nothing in Visual Basic), the default type will be used.
- sketchPlane
- Type: Autodesk.Revit.DB..::..SketchPlane
 The sketch plane of the model text. The direction of model text is determined by the normal of the sketch plane.
To extrude in the other direction set the depth value to negative.
- position
- Type: Autodesk.Revit.DB..::..XYZ
 The position of the model text. The position must lie in the sketch plane.
- horizontalAlign
- Type: Autodesk.Revit.DB..::..HorizontalAlign
 The horizontal alignment.
- depth
- Type: System..::..Double
 The depth of the model text.
Return Value
If successful, the newly created model text is returned, otherwise an
exception with error information will be thrown.
 Exceptions
Exceptions
 See Also
See Also