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






Windows & Linux

Description

Creates a VGT angle using specified name, description and type.

Syntax

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

Parameters

AngleName
Specify a component name.
Description
Specify a component description.
AngleType
MemberValueDescription
eCrdnAngleTypeUnknown-1Unknown or unsupported type.
eCrdnAngleTypeBetweenVectors0An angle between two vectors.
eCrdnAngleTypeBetweenPlanes1An angle between two planes.
eCrdnAngleTypeDihedralAngle2An angle between two vectors about an axis.
eCrdnAngleTypeRotation3Angle of the shortest rotation between the two specified axes.
eCrdnAngleTypeToPlane4An angle between a vector and a plane.
eCrdnAngleTypeTemplate5Represents a VGT angle created from a template. This type of angle 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 an angle between two planes.
[C#]Copy Code
//Create an angle between two planes. 
IAgCrdnAngleBetweenPlanes angle = (IAgCrdnAngleBetweenPlanes)provider.Angles.Factory.Create( 
    "AngleName""Angle from one plane to another.", AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes); 
 

Create an angle between two planes.
[Visual Basic .NET]Copy Code
'Create an angle between two planes.
Dim angle As IAgCrdnAngleBetweenPlanes = DirectCast(provider.Angles.Factory.Create("AngleName", "Angle from one plane to another.", AgECrdnAngleType.eCrdnAngleTypeBetweenPlanes), IAgCrdnAngleBetweenPlanes)

See Also

© 2019 Analytical Graphics, Inc. All Rights Reserved.