AGI STK Objects 11Send comments on this topic.
UnitPreferences Property (IAgStkObjectRoot)
See Also  Example
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 ** ppRetVal
);
[Java]
public IAgUnitPrefsDimCollection getUnitPreferences();

Example

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

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.