Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / MassProperty Class / MassProperty Constructor / MassProperty Constructor(Double,Unit)
The value of mass.
The unit of mass value.
Example
In This Topic
    MassProperty Constructor(Double,Unit)
    In This Topic
    Creates a new instance of the MassProperty with the specified value and unit.
    Syntax
    public MassProperty( 
       double value,
       Unit unit
    )

    Parameters

    value
    The value of mass.
    unit
    The unit of mass value.
    Exceptions
    ExceptionDescription
    Thrown when the unit is not valid for this property.
    Example
    The following example shows how to create a new MassProperty.
    MassProperty massProperty = new MassProperty(42.0, Unit.Kilogram);
    See Also