2027 Method
Changes 8
M

NumberingSchema.SetMinimumNumberOfDigits

Description:
Sets a new value for the minimum number of digits to be used for formating the Number parameter of all numbered elements of the given document.
Remarks:

Valid values range from 1 to 10. Numbers with fewer digits than the minimum number will be padded with leading zeros.

The value affects all numbering schemas. Thus, once set, numbers for Rebar and Reinforcement Fabric will be formatted with the same minimum number of digits.

The current value can obtained by invoking the GetMinimumNumberOfDigits(Document) method.

[ObsoleteAttribute("This method is deprecated in Revit 2027 and may be removed in a later version of Revit. This function works only for Rebar, Reinforcement and Coupler elements, an exception will be generated if invoked on numbering schemas that scope other categories. <p>The generic functionality for this was moved in the NumberingFormatSettings.</p>")]
public static void SetMinimumNumberOfDigits(
	Document document,
	int value
)
  • document
    The document in which the new value will be in applied.
  • Int32
    value
    New value for the minimum number of digits.