Method | Description | |
---|---|---|
CovertFromAPI ( DisplayUnitType to, double value ) : double |
Convert the value get from RevitAPI to the value indicated by DisplayUnitType
|
|
CovertToAPI ( double value, DisplayUnitType from ) : double |
Convert a value indicated by DisplayUnitType to the value used by RevitAPI
|
Method | Description | |
---|---|---|
ImperialDutRatio ( DisplayUnitType dut ) : double |
Get ratio between value in RevitAPI and value to display indicated by DisplayUnitType
|
public static CovertFromAPI ( DisplayUnitType to, double value ) : double | ||
to | DisplayUnitType | DisplayUnitType indicates unit of target value |
value | double | value get from RevitAPI |
return | double |
public static CovertToAPI ( double value, DisplayUnitType from ) : double | ||
value | double | Value to be converted |
from | DisplayUnitType | DisplayUnitType indicates the unit of the value to be converted |
return | double |