AGI STK Objects 11 Send comments on this topic.
UnitPreferences Property (IAgStkObjectRoot)
See Also  Example





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'); 
 
 

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1