AGI STK Objects 11 Send comments on this topic.
GetDataPrvTimeVarFromPath Method (IAgDataProviderCollection)
See Also  Example
DataProviderPath





Description

returns the time variable data provider specified by the data provider path.

Syntax

[Visual Basic .NET]
Public Function GetDataPrvTimeVarFromPath( _
   ByVal DataProviderPath As String _
) As IAgDataPrvTimeVar

[C#]
public IAgDataPrvTimeVar GetDataPrvTimeVarFromPath(
string DataProviderPath
);

[Managed C++]
public: IAgDataPrvTimeVar^ GetDataPrvTimeVarFromPath(
String __gc ^ DataProviderPath
);

[Java]
public IAgDataPrvTimeVar getDataPrvTimeVarFromPath(
String DataProviderPath
);

[Unmanaged C++]
public: HRESULT GetDataPrvTimeVarFromPath(
BSTR DataProviderPath,
IAgDataPrvTimeVar ** ReturnValue
);

Parameters

DataProviderPath

Example

Coarse grain approach to retrieving a time var data provider
[C#] Copy Code
IAgDataPrvTimeVar dp = facility.DataProviders.GetDataPrvTimeVarFromPath("Lighting AER"); 
IAgDrResult result = dp.Exec( 
    "1 Jan 2012 12:00:00.000"
    "1 Jan 2012 12:00:20.000"
    60.0); 
 

Coarse grain approach to retrieving a time var data provider
[Visual Basic .NET] Copy Code
Dim dp As IAgDataPrvTimeVar = facility.DataProviders.GetDataPrvTimeVarFromPath("Lighting AER")
Dim result As IAgDrResult = dp.Exec("1 Jan 2012 12:00:00.000", "1 Jan 2012 12:00:20.000", 60)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1