Revit 2026 API
Text |
Returns the minimum width a text element can be created with.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static double GetMinimumAllowedWidth( Document cdda, ElementId typeId )
Public Shared Function GetMinimumAllowedWidth ( cdda As Document, typeId As ElementId ) As Double
public: static double GetMinimumAllowedWidth( Document^ cdda, ElementId^ typeId )
static member GetMinimumAllowedWidth : cdda : Document * typeId : ElementId -> float
Parameters
- cdda Document
- A document containing the new text element's type
- typeId ElementId
- Id of the text type
Return Value
DoubleThe minimum allowed width in paper space [ft].

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |

Note that it is not necessarily a constant; it can be affected
by properties of the text type, such as the width factor.
See Also