Version: 13.0

    Show / Hide Table of Contents

    Class Unit

    Inheritance
    System.Object
    System.MarshalByRefObject
    SMT.MastaAPIUtility.MarshalByRefObjectPermanent
    APIBase
    Unit
    DegreesMinutesSeconds
    EnumUnit
    InverseUnit
    SafetyFactorUnit
    TimeUnit
    UnitGradient
    Implements
    System.IEquatable<APIBase>
    Inherited Members
    APIBase.DisconnectFromMASTA()
    APIBase.GetProperty<T>(String)
    APIBase.SetProperty(String, Object)
    APIBase.cacheRpds
    APIBase.clearCachedRpds()
    APIBase.getNamedObjectList<TElementType>(String)
    APIBase.getExpandableProperty<TReturnType>(String)
    APIBase.callPartialMethod(String, (T1, T2)<Type, Object>[])
    APIBase.callPartialMethod<T>(String, T)
    APIBase.callPartialMethod<T>(String, (T1, T2)<Type, Object>, T)
    APIBase.callPartialMethod<T>(String, (T1, T2)<Type, Object>, (T1, T2)<Type, Object>, T)
    APIBase.callPartialMethod<T>(String, (T1, T2)<Type, Object>, (T1, T2)<Type, Object>, (T1, T2)<Type, Object>, T)
    APIBase.callPartialMethod<T1, T2>(String, (T1, T2)<Type, Object>, T1, T2)
    APIBase.getPartialProperty(String)
    APIBase.setPartialProperty(String, Object)
    APIBase.IsValid(String)
    APIBase.IsReadOnly(String)
    APIBase.isInvalid
    APIBase.DocumentationUrl()
    APIBase.ToString()
    APIBase.RunPython<T>(String, String, Object)
    APIBase.RunPythonCode<T>(String, String, Object)
    APIBase.RunPythonCode<T>(String)
    APIBase.RunPython<T>(String, String)
    APIBase.CreateObjRef(Type)
    APIBase.RunPython(String, String, Object)
    APIBase.createWrappedRange(Double, Double)
    APIBase.createWrappedVector2D(Double, Double)
    APIBase.createWrappedPosition3D(Double, Double, Double)
    APIBase.Equals(APIBase)
    APIBase.GetHashCode()
    APIBase.Equals(Object)
    SMT.MastaAPIUtility.MarshalByRefObjectPermanent.InitializeLifetimeService()
    Namespace: SMT.MastaAPI.Utility.UnitsAndMeasurements
    Assembly: SMT.MastaAPI.13.0.dll
    Syntax
    public class Unit : APIBase, IEquatable<APIBase>

    Fields

    _parent

    Declaration
    protected readonly APIBase _parent
    Field Value
    Type Description
    APIBase

    Properties

    HTMLSymbol

    Declaration
    public string HTMLSymbol { get; }
    Property Value
    Type Description
    System.String

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Offset

    Declaration
    public double Offset { get; }
    Property Value
    Type Description
    System.Double

    Scale

    Declaration
    public double Scale { get; }
    Property Value
    Type Description
    System.Double

    Symbol

    Declaration
    public string Symbol { get; }
    Property Value
    Type Description
    System.String

    Methods

    ConvertFromSIUnit(Double)

    Declaration
    public double ConvertFromSIUnit(double d)
    Parameters
    Type Name Description
    System.Double d
    Returns
    Type Description
    System.Double

    ConvertToSIUnit(Double)

    Declaration
    public double ConvertToSIUnit(double d)
    Parameters
    Type Name Description
    System.Double d
    Returns
    Type Description
    System.Double

    Implements

    System.IEquatable<T>

    Extension Methods

    UtilityMethods.IsReadOnly<T>(T, Expression<Func<T, Object>>)
    UtilityMethods.IsValid<T>(T, Expression<Func<T, Object>>)
    UtilityMethods.IsMethodValid<T>(T, Expression<Func<T, Action>>)
    UtilityMethods.IsMethodReadOnly<T>(T, Expression<Func<T, Action>>)
    Back to top