C# 클래스 Revit.SDK.Samples.ImportExport.CS.Unit

Provides static functions to convert unit
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ImperialDutRatio ( DisplayUnitType dut ) : double

Get ratio between value in RevitAPI and value to display indicated by DisplayUnitType

메소드 상세

CovertFromAPI() 공개 정적인 메소드

Convert the value get from RevitAPI to the value 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
리턴 double

CovertToAPI() 공개 정적인 메소드

Convert a value indicated by DisplayUnitType to the value used by RevitAPI
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
리턴 double