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






Windows & Linux

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
MemberValueDescription
eCrdnParameterSetTypeUnknown-1Unknown or unsupported parameter set
eCrdnParameterSetTypeAttitude0A parameter set type is defined by identifying one set of axes in reference to another.
eCrdnParameterSetTypeGroundTrajectory1A parameter set type is defined by identifying location in reference central body.
eCrdnParameterSetTypeTrajectory2A parameter set type is defined by identifying location in reference coordinate system.
eCrdnParameterSetTypeOrbit3A parameter set type is defined by identifying orbiting point and its central body.
eCrdnParameterSetTypeVector4A 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

© 2019 Analytical Graphics, Inc. All Rights Reserved.