Skip to main content

Discovery extensibility and add-ins developer guide 2026 R1

Outputting values

Last update: 09.03.2026

Window.Units.Length.Format produces a length string that can be presented to the user, which includes the units symbol. As well as performing units conversion, this method also formats the output according to whether the user is working in decimals or fractions.

Window.Units.Angle.Format provides the same functionality for angles.

Connect with Ansys