Show / Hide Table of Contents

Class DimensionStyleAlternateUnits

Represents the way alternate units are formatted in dimension entities.

Inheritance
System.Object
DimensionStyleAlternateUnits
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: netDxf.Tables
Assembly: CADability.dll
Syntax
public class DimensionStyleAlternateUnits : ICloneable
Remarks

Alternative units are not applicable for angular dimensions.

Constructors

| Improve this Doc View Source

DimensionStyleAlternateUnits()

Initializes a new instance of the DimensionStyleUnitsFormat class.

Declaration
public DimensionStyleAlternateUnits()

Properties

| Improve this Doc View Source

Enabled

Gets or sets if the alternate measurement units are added to the dimension text. (DIMALT)

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

LengthPrecision

Sets the number of decimal places displayed for the alternate units of a dimension. (DIMALTD)

Declaration
public short LengthPrecision { get; set; }
Property Value
Type Description
System.Int16
Remarks

Default: 4
It is recommended to use values in the range 0 to 8.
For architectural and fractional the precision used for the minimum fraction is 1/2^LinearDecimalPlaces.

| Improve this Doc View Source

LengthUnits

Gets or sets the alternate units for all dimension types except angular. (DIMALTU)

Declaration
public LinearUnitType LengthUnits { get; set; }
Property Value
Type Description
LinearUnitType
Remarks

Scientific
Decimal
Engineering
Architectural
Fractional

| Improve this Doc View Source

Multiplier

Gets or sets the multiplier used as the conversion factor between primary and alternate units. (DIMALTF)

Declaration
public double Multiplier { get; set; }
Property Value
Type Description
System.Double
Remarks

to convert inches to millimeters, enter 25.4. The value has no effect on angular dimensions, and it is not applied to the rounding value or the plus or minus tolerance values.

| Improve this Doc View Source

Prefix

Specifies the text prefix for the dimension. (DIMAPOST)

Declaration
public string Prefix { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Roundoff

Gets or sets the value to round all dimensioning distances. (DIMALTRND)

Declaration
public double Roundoff { get; set; }
Property Value
Type Description
System.Double
Remarks

Default: 0 (no rounding off).
If DIMRND is set to 0.25, all distances round to the nearest 0.25 unit. If you set DIMRND to 1.0, all distances round to the nearest integer. Note that the number of digits edited after the decimal point depends on the precision set by DIMDEC. DIMRND does not apply to angular dimensions.

| Improve this Doc View Source

StackUnits

Gets or set if the Architectural or Fractional linear units will be shown stacked or not. (DIMALTU)

Declaration
public bool StackUnits { get; set; }
Property Value
Type Description
System.Boolean
Remarks

This value only is applicable if the DimLengthUnits property has been set to Architectural or Fractional, for any other value this parameter is not applicable.

| Improve this Doc View Source

Suffix

Specifies the text suffix for the dimension. (DIMAPOST)

Declaration
public string Suffix { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SuppressLinearLeadingZeros

Suppresses leading zeros in linear decimal alternate units. (DIMALTZ)

Declaration
public bool SuppressLinearLeadingZeros { get; set; }
Property Value
Type Description
System.Boolean
Remarks

This value is part of the DIMALTZ variable.

| Improve this Doc View Source

SuppressLinearTrailingZeros

Suppresses trailing zeros in linear decimal alternate units. (DIMALTZ)

Declaration
public bool SuppressLinearTrailingZeros { get; set; }
Property Value
Type Description
System.Boolean
Remarks

This value is part of the DIMALTZ variable.

| Improve this Doc View Source

SuppressZeroFeet

Suppresses zero feet in architectural alternate units. (DIMALTZ)

Declaration
public bool SuppressZeroFeet { get; set; }
Property Value
Type Description
System.Boolean
Remarks

This value is part of the DIMALTZ variable.

| Improve this Doc View Source

SuppressZeroInches

Suppresses zero inches in architectural alternate units. (DIMALTZ)

Declaration
public bool SuppressZeroInches { get; set; }
Property Value
Type Description
System.Boolean
Remarks

This value is part of the DIMALTZ variable.

Methods

| Improve this Doc View Source

Clone()

Creates a new DimensionStyle.DimensionStyleAlternateUnits that is a copy of the current instance.

Declaration
public object Clone()
Returns
Type Description
System.Object

A new DimensionStyle.DimensionStyleAlternateUnits that is a copy of this instance.

Implements

System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX