Table of Contents

Class UnitTypeExtensions

Namespace
RvtIO.BuiltIns
Assembly
RvtIO.dll

Lookups between RvtIO.BuiltIns.UnitType, catalog strings, groups and parameter types.

public static class UnitTypeExtensions

Inheritance

Inherited Members

Methods

TryGetCatalogString(UnitType, out string)

Gets the catalog string of unitType.

public static bool TryGetCatalogString(this UnitType unitType, out string catalogString)

Parameters

unitType UnitType
catalogString string

Returns

bool

TryGetGroup(UnitType, out UnitGroup)

Gets the group of unitType.

public static bool TryGetGroup(this UnitType unitType, out UnitGroup group)

Parameters

unitType UnitType
group UnitGroup

Returns

bool

TryGetParameterType(UnitType, out ParameterType)

Gets the parameter type that stores values of unitType.

public static bool TryGetParameterType(this UnitType unitType, out ParameterType parameterType)

Parameters

unitType UnitType
parameterType ParameterType

Returns

bool

TryGetUnitTypeFromCatalogString(string, out UnitType)

Finds the first unit type whose catalog string equals catalogString, ignoring case; otherwise RvtIO.BuiltIns.UnitType.UT_Undefined.

public static bool TryGetUnitTypeFromCatalogString(this string catalogString, out UnitType unitType)

Parameters

catalogString string
unitType UnitType

Returns

bool