2027 Method
Changes 0
M

FamilyItemFactory.NewModelText

Description:
Create a model text in the Autodesk Revit family document.
public ModelText NewModelText(
	string text,
	ModelTextType modelTextType,
	SketchPlane sketchPlane,
	XYZ position,
	HorizontalAlign horizontalAlign,
	double depth
)
  • String
    text
    The text to be displayed.
  • modelTextType
    The type of model text. If this parameter is null, the default type will be used.
  • 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
    The position of the model text. The position must lie in the sketch plane.
  • horizontalAlign
    The horizontal alignment.
  • Double
    depth
    The depth of the model text.
Return Value ModelText If successful, the newly created model text is returned, otherwise an exception with error information will be thrown.