Class DimensionStyleAlternateUnits
Represents the way alternate units are formatted in dimension entities.
Inheritance
Implements
Inherited Members
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 SourceDimensionStyleAlternateUnits()
Initializes a new instance of the DimensionStyleUnitsFormat class.
Declaration
public DimensionStyleAlternateUnits()
Properties
| Improve this Doc View SourceEnabled
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 |
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.
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
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.
Prefix
Specifies the text prefix for the dimension. (DIMAPOST)
Declaration
public string Prefix { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
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.
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.
Suffix
Specifies the text suffix for the dimension. (DIMAPOST)
Declaration
public string Suffix { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
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.
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.
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.
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 SourceClone()
Creates a new DimensionStyle.DimensionStyleAlternateUnits that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new |