API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

UnitAttributes Class

The UnitAttributes class handles attributes related to units and formatting of values.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Drawing
Assembly:  Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2019.0.0.0 (2019.0.0.0)
Syntax
[SerializableAttribute]
public sealed class UnitAttributes : GenericAttributesBase, 
	ICloneable

The UnitAttributes type exposes the following members.

Constructors
  Name Description
Public method UnitAttributes
Creates a new default UnitAttributes attributes instance. The default values are Units.Automatic, FormatTypes.Automatic.
Public method UnitAttributes(Units, FormatTypes)
Creates a new UnitAttributes attributes instance with the given parameters.
Top
Properties
  Name Description
Public property Format
Gets or sets the format to use.
Public property Unit
Gets or sets the unit to use.
Top
Methods
  Name Description
Public method Clone
Clones the object.
Public method IsEqual
Compares the current object with an object of the same type.
(Overrides GenericAttributesBaseIsEqual(Object).)
Top
See Also