AGI STK VGT 11Send comments on this topic.
Create Method (IAgCrdnPointFactory)
See Also  Example
PointName
Specify a component name.
Description
Specify a component description.
PointType
Specify a component type.
Windows






Windows & Linux

Description

Creates a VGT point using the specified name, description and type.

Syntax

[Visual Basic .NET]
Public Function Create( _
   ByVal PointName As String, _
   ByVal Description As String, _
   ByVal PointType As AgECrdnPointType _
) As IAgCrdnPoint
[C#]
public IAgCrdnPoint Create(
   string PointName,
   string Description,
   AgECrdnPointType PointType
);
[Managed C++]
public: IAgCrdnPoint^ Create(
   String __gc ^ PointName,
   String __gc ^ Description,
   AgECrdnPointType PointType
);
[Java]
public IAgCrdnPoint create(
   String PointName,
   String Description,
   AgECrdnPointType PointType
);
[Unmanaged C++]
public: HRESULT Create(
   BSTR PointName,
   BSTR Description,
   AgECrdnPointType PointType,
   IAgCrdnPoint ** ReturnValue
);

Parameters

PointName
Specify a component name.
Description
Specify a component description.
PointType
MemberValueDescription
eCrdnPointTypeUnknown-1Unknown or unsupported type.
eCrdnPointTypeBPlane0B-Plane point using the selected target body.
eCrdnPointTypeGrazing1The grazing point is the point of closest approach to the surface of the selected central body along a defined direction.
eCrdnPointTypeCovarianceGrazing2The point of closest approach to the surface of the specified position covariance ellipsoid surface along a defined direction. Position covariance must be available for a vehicle object to be considered a possible target for this option.
eCrdnPointTypeFromFile3This enumeration is deprecated. Use eCrdnPointTypeFile instead. Point specified by data from a file.
eCrdnPointTypeFixedInSystem4Point fixed in a reference coordinate system.
eCrdnPointTypeGlint5Point on central body surface that reflects from source to observer.
eCrdnPointTypePlaneIntersection6Point on a plane located along a given direction looking from a given origin.
eCrdnPointTypeModelAttachment7Point placed at the specified attachment point of the object's 3D model. The point follows the model as well as any articulations that affect the specified attachment point.
eCrdnPointTypePlaneProjection8The projection of a point onto a reference plane.
eCrdnPointTypeOnSurface9The detic subpoint of the reference point as projected onto the central body.
eCrdnPointTypeLagrangeLibration10Libration point using one primary and multiple secondary central bodies.
eCrdnPointTypeTemplate11Represents a VGT point created from a template. This type of point is not creatable.
eCrdnPointTypeCentralBodyIntersect12Point on central body surface along direction vector originating at source point.
eCrdnPointTypeAtTimeInstant13Point fixed relative to reference system based on another point evaluated at specified time instant.
eCrdnPointTypePlugin14A point plugin point.
eCrdnPointTypeFile3Point specified by data from a file.
eCrdnPointTypeFixedOnCentralBody15Point fixed on a central body.
Specify a component type.

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 a B-Plane point using selected target body.
[C#]Copy Code
// Create a B-Plane point using selected target body 
IAgCrdnPointBPlane point = (IAgCrdnPointBPlane)provider.Points.Factory.Create( 
    "PointName"string.Empty, AgECrdnPointType.eCrdnPointTypeBPlane); 
point.TargetBody.SetPath(TargetBody); 
 

Create a B-Plane point using selected target body.
[Visual Basic .NET]Copy Code
' Create a B-Plane point using selected target body
Dim point As IAgCrdnPointBPlane = DirectCast(provider.Points.Factory.Create("PointName", String.Empty, AgECrdnPointType.eCrdnPointTypeBPlane), IAgCrdnPointBPlane)
point.TargetBody.SetPath(TargetBody)

See Also

© 2019 Analytical Graphics, Inc. All Rights Reserved.