AGI STK VGT 11 Send comments on this topic.
Create Method (IAgCrdnParameterSetFactory)
See Also  Example
Name
Description
Type





Description

Creates and registers a parameter set using specified name and description.

Syntax

[Visual Basic .NET]
Public Function Create( _
   ByVal Name As String, _
   ByVal Description As String, _
   ByVal Type As AgECrdnParameterSetType _
) As IAgCrdnParameterSet

[C#]
public IAgCrdnParameterSet Create(
string Name,
string Description,
AgECrdnParameterSetType Type
);

[Managed C++]
public: IAgCrdnParameterSet^ Create(
String __gc ^ Name,
String __gc ^ Description,
AgECrdnParameterSetType Type
);

[Java]
public IAgCrdnParameterSet create(
String Name,
String Description,
AgECrdnParameterSetType Type
);

[Unmanaged C++]
public: HRESULT Create(
BSTR Name,
BSTR Description,
AgECrdnParameterSetType Type,
IAgCrdnParameterSet ** ReturnValue
);

Parameters

Name
Description
Type
Member Value Description
eCrdnParameterSetTypeUnknown -1 Unknown or unsupported parameter set
eCrdnParameterSetTypeAttitude 0 A parameter set type is defined by identifying one set of axes in reference to another.
eCrdnParameterSetTypeGroundTrajectory 1 A parameter set type is defined by identifying location in reference central body.
eCrdnParameterSetTypeTrajectory 2 A parameter set type is defined by identifying location in reference coordinate system.
eCrdnParameterSetTypeOrbit 3 A parameter set type is defined by identifying orbiting point and its central body.
eCrdnParameterSetTypeVector 4 A parameter set type is defined by identifying vector in reference axes.

Remarks

Spaces and most punctuation ( except for "-_().") cannot be used as a part of a component name when creating new components via VGT API.

Example

Create an attitude parameter set.
[C#] Copy Code
//Create an attitude parameter set. 
IAgCrdnParameterSetAttitude parameterSet = (IAgCrdnParameterSetAttitude)provider.ParameterSets.Factory.Create( 
    "ParameterSetName""Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude); 
 

Create an attitude parameter set.
[Visual Basic .NET] Copy Code
'Create an attitude parameter set.
Dim parameterSet As IAgCrdnParameterSetAttitude = DirectCast(provider.ParameterSets.Factory.Create("ParameterSetName", "Attitude parameter set.", AgECrdnParameterSetType.eCrdnParameterSetTypeAttitude), IAgCrdnParameterSetAttitude)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1