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






Windows & Linux

Description

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

Syntax

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

Parameters

PlaneName
Specify a component name.
Description
Specify a component description.
PlaneType
MemberValueDescription
eCrdnPlaneTypeUnknown-1Unknown or unsupported type.
eCrdnPlaneTypeNormal0A plane normal to a vector at a given point.
eCrdnPlaneTypeQuadrant1A plane is defined by the quadrant from a Reference System (e.g., XY, XZ, YZ, YX, ZX, ZY). The reference point in all cases is the origin of the coordinate system.
eCrdnPlaneTypeTrajectory2A plane is defined on the basis of a trajectory of a selected point with respect to a reference point.
eCrdnPlaneTypeTriad3A plane is defined by the three points.
eCrdnPlaneTypeTemplate4Represents a VGT plane created from a template. This type of plane is not creatable.
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 plane normal to vector.
[C#]Copy Code
// Create a plane normal to vector. 
IAgCrdnPlaneNormal p = (IAgCrdnPlaneNormal)provider.Planes.Factory.Create( 
    "PlaneName""A plane normal to vector.", AgECrdnPlaneType.eCrdnPlaneTypeNormal); 
 

Create a plane normal to vector.
[Visual Basic .NET]Copy Code
' Create a plane normal to vector.
Dim p As IAgCrdnPlaneNormal = DirectCast(provider.Planes.Factory.Create("PlaneName", "A plane normal to vector.", AgECrdnPlaneType.eCrdnPlaneTypeNormal), IAgCrdnPlaneNormal)

See Also

© 2019 Analytical Graphics, Inc. All Rights Reserved.