Version: 13.0

    Show / Hide Table of Contents

    Class MeasurementSettings

    Inheritance
    System.Object
    System.MarshalByRefObject
    SMT.MastaAPIUtility.MarshalByRefObjectPermanent
    APIBase
    PersistentSingleton
    PerMachineSettings
    MeasurementSettings
    Implements
    System.IEquatable<APIBase>
    Inherited Members
    PerMachineSettings.ResetToDefaults()
    PersistentSingleton._parent
    PersistentSingleton.Save()
    PersistentSingleton.ReportNames
    PersistentSingleton.OutputDefaultReportTo(String)
    PersistentSingleton.GetDefaultReportWithEncodedImages()
    PersistentSingleton.OutputActiveReportTo(String)
    PersistentSingleton.OutputActiveReportAsTextTo(String)
    PersistentSingleton.GetActiveReportWithEncodedImages()
    PersistentSingleton.OutputNamedReportTo(String, String)
    PersistentSingleton.OutputNamedReportAsMastaReport(String, String)
    PersistentSingleton.OutputNamedReportAsTextTo(String, String)
    PersistentSingleton.GetNamedReportWithEncodedImages(String)
    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 MeasurementSettings : PerMachineSettings, IEquatable<APIBase>

    Properties

    CurrentSelectedMeasurement

    Declaration
    public MeasurementBase CurrentSelectedMeasurement { get; }
    Property Value
    Type Description
    MeasurementBase

    LargeNumberCutoff

    Numbers greater than this will be displayed in scientific notation

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

    NumberDecimalSeparator

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

    NumberGroupSeparator

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

    SampleInput

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

    SampleOutput

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

    SelectedMeasurement

    Declaration
    public ListWithSelectedItem<MeasurementBase> SelectedMeasurement { get; set; }
    Property Value
    Type Description
    ListWithSelectedItem<MeasurementBase>

    ShowTrailingZeros

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

    SmallNumberCutoff

    Declaration
    public Overridable<double> SmallNumberCutoff { get; set; }
    Property Value
    Type Description
    Overridable<System.Double>

    Methods

    DefaultToImperial()

    Declaration
    public void DefaultToImperial()

    DefaultToMetric()

    Declaration
    public void DefaultToMetric()

    FindMeasurementByName(String)

    Declaration
    public MeasurementBase FindMeasurementByName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    MeasurementBase

    GetMeasurement(MeasurementType)

    Declaration
    public MeasurementBase GetMeasurement(MeasurementType measurementType)
    Parameters
    Type Name Description
    SMT.MastaAPIUtility.UnitsAndMeasurements.MeasurementType measurementType
    Returns
    Type Description
    MeasurementBase

    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