STK ObjectsSend comments on this topic.
UnitPreferences Property (IAgStkObjectRoot)
See Also
Windows





Windows & Linux

Description

Provides access to the Global Unit table.

Property type

Read-only property

Syntax

[Visual Basic .NET]
Public Property UnitPreferences() As IAgUnitPrefsDimCollection
[C#]
public IAgUnitPrefsDimCollection UnitPreferences {get;}
[Managed C++]
public: __property IAgUnitPrefsDimCollection ^ get_UnitPreferences();
[Unmanaged C++]
public: HRESULT get_UnitPreferences(
    IAgUnitPrefsDimCollection ** ppVarResult
);
[Java]
public IAgUnitPrefsDimCollection getUnitPreferences();
[Python - STK API ]
@property
def UnitPreferences(self) -> "IAgUnitPrefsDimCollection":

See Also

Example

Set unit preferences for Object Model
[Python - STK API]
# IAgStkObjectRoot root: STK Object Model Root
root.UnitPreferences.Item('DateFormat').SetCurrentUnit('UTCG')
root.UnitPreferences.Item('Distance').SetCurrentUnit('km')

Set unit preferences for Object Model
[MATLAB]
% IAgStkObjectRoot root: STK Object Model Root
root.UnitPreferences.Item('DateFormat').SetCurrentUnit('UTCG');
root.UnitPreferences.Item('Distance').SetCurrentUnit('km');


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.