Description
Returns the Current Unit for a Dimension.
Syntax
[Visual Basic .NET] |
---|
Public Function GetCurrentUnitAbbrv( _
ByVal IndexOrDimName As System.Object _
) As String
|
[C#] |
---|
public string GetCurrentUnitAbbrv(
System.Object IndexOrDimName
);
|
[Managed C++] |
---|
public: String __gc ^ GetCurrentUnitAbbrv(
VARIANT IndexOrDimName
);
|
[Python - STK API ] |
---|
def GetCurrentUnitAbbrv(self, IndexOrDimName:typing.Any) -> str:
|
Parameters
Return Type
Returns the current unit abbreviation for the given index.
See Also
Example
Get a current unit preference
[C#] |
---|
// DistanceUnit
string dimensionName = "Distance";
string unitAbbreviation = root.UnitPreferences.GetCurrentUnitAbbrv(dimensionName);
|
|
Get a current unit preference
[Visual Basic .NET] |
---|
' DistanceUnit
Dim dimensionName As String = "Distance"
Dim unitAbbreviation As String = root.UnitPreferences.GetCurrentUnitAbbrv(dimensionName)
|
|