ConvertFromInternalLength

double ConvertFromInternalLength(this Document doc, double internalValue)

Converts a length from internal database units (feet) to the document's display units.

Parameters

  • docDocument

    The Revit document instance.

  • internalValuedouble

    The length value in internal units (feet).

Returns: The converted length value in the document's display units.

Example

double internalLength = 10.0; // feet
double displayLength = doc.ConvertFromInternalLength(internalLength);
TaskDialog.Show("Length", displayLength.ToString());