ACadSharp.Types.Units.UnitStyleFormat

class · ACadSharp · CLR name: ACadSharp.Types.Units.UnitStyleFormat

Represents the parameters to convert linear and angular units to its string representation.

Base type: System.Object. Inherited members are documented on their declaring type.

import acadsharp
Type = acadsharp.get_type('ACadSharp.Types.Units.UnitStyleFormat')

Declared public members

Signatures retain CLR types and names. Python.NET resolves overloads and converts compatible Python values at call time. Property setters are shown only when public. Operators retain their CLR names; Python.NET also maps supported operators to Python syntax.

.ctor

ACadSharp.Types.Units.UnitStyleFormat()

Initializes a new instance of the UnitStyleFormat class.

GetZeroHandlingFormat

System.String GetZeroHandlingFormat(System.Boolean isAngular = False)

Get the string format based on the zero handling of the style.

  • isAngular:

ToArchitectural

System.String ToArchitectural(System.Double value)

Converts a value into its feet and fractional inches string representation.

Returns: A string that represents the value in feet and fractional inches.

  • value:

ToDecimal

System.String ToDecimal(System.Double value, System.Boolean isAngular = False)

Converts a value into its decimal string representation.

Returns: A string that represents the value in decimal units.

  • value:
  • isAngular:

ToDegrees

System.String ToDegrees(System.Double angle)

Converts an angle value in degrees string representation.

Returns: A string that represents the value in degrees

  • angle: Angle value in radians.

ToDegreesMinutesSeconds

System.String ToDegreesMinutesSeconds(System.Double angle)

Converts an angle value in degrees into its degrees, minutes and seconds string representation.

Returns: A string that represents the value in degrees, minutes and seconds

  • angle: Angle value in radians.

ToEngineering

System.String ToEngineering(System.Double value)

Converts a value into its feet and decimal inches string representation.

Returns: A string that represents the value in feet and decimal inches.

  • value: Must be in inches.

ToFractional

System.String ToFractional(System.Double value)

Converts a value into its fractional string representation.

Returns: A string that represents the value in fractional units.

  • value:

ToGradians

System.String ToGradians(System.Double angle)

Converts an angle value in radians into its gradians string representation.

Returns: A string that represents the angle in gradians.

  • angle: The angle value in radians.

ToRadians

System.String ToRadians(System.Double angle)

Converts an angle value in radians into its string representation.

Returns: A string that represents the angle in radians.

  • angle: The angle value in radians.

ToScientific

System.String ToScientific(System.Double value)

Converts a value into its scientific string representation.

Returns: A string that represents the length in scientific units.

  • value: The length value.

AngularDecimalPlaces

System.Int16 AngularDecimalPlaces { get; set; }

Gets or sets the number of decimal places for angular units.

AngularZeroHandling

ACadSharp.Tables.AngularZeroHandling AngularZeroHandling { get; set; }

Gets or sets the suppression of zeros in the angular values.

DecimalSeparator

System.String DecimalSeparator { get; set; }

Gets or set the decimal separator.

DegreesSymbol

System.String DegreesSymbol { get; set; }

Gets or set the angle degrees symbol.

FeetInchesSeparator

System.String FeetInchesSeparator { get; set; }

Gets or sets the separator between feet and inches.

FeetSymbol

System.String FeetSymbol { get; set; }

Gets or set the feet symbol.

FractionHeightScale

System.Double FractionHeightScale { get; set; }

Gets or sets the scale of fractions relative to dimension text height.

FractionType

ACadSharp.Tables.FractionFormat FractionType { get; set; }

Gets or sets the fraction format for architectural or fractional units.

Remarks: Horizontal stacking Diagonal stacking Not stacked (for example, 1/2)

GradiansSymbol

System.String GradiansSymbol { get; set; }

Gets or set the angle gradians symbol.

InchesSymbol

System.String InchesSymbol { get; set; }

Gets or set the inches symbol.

LinearDecimalPlaces

System.Int16 LinearDecimalPlaces { get; set; }

Gets or sets the number of decimal places for linear units.

Remarks: For architectural and fractional the precision used for the minimum fraction is 1/2^LinearDecimalPlaces.

LinearZeroHandling

ACadSharp.Tables.ZeroHandling LinearZeroHandling { get; set; }

Gets or sets the suppression of zeros in the linear values.

MinutesSymbol

System.String MinutesSymbol { get; set; }

Gets or set the angle minutes symbol.

RadiansSymbol

System.String RadiansSymbol { get; set; }

Gets or set the angle radians symbol.

SecondsSymbol

System.String SecondsSymbol { get; set; }

Gets or set the angle seconds symbol.

SuppressAngularLeadingZeros

System.Boolean SuppressAngularLeadingZeros { get; }

Suppresses leading zeros in angular decimal dimensions (for example, 0.5000 becomes .5000).

SuppressAngularTrailingZeros

System.Boolean SuppressAngularTrailingZeros { get; }

Suppresses trailing zeros in angular decimal dimensions (for example, 12.5000 becomes 12.5).

SuppressLinearLeadingZeros

System.Boolean SuppressLinearLeadingZeros { get; }

Suppresses leading zeros in linear decimal dimensions (for example, 0.5000 becomes .5000).

SuppressLinearTrailingZeros

System.Boolean SuppressLinearTrailingZeros { get; }

Suppresses trailing zeros in linear decimal dimensions (for example, 12.5000 becomes 12.5).

SuppressZeroFeet

System.Boolean SuppressZeroFeet { get; }

Suppresses zero feet in architectural dimensions.

SuppressZeroInches

System.Boolean SuppressZeroInches { get; }

Suppresses zero inches in architectural dimensions.