AGI STK VGT 11 Send 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.





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
Member Value Description
eCrdnAngleTypeUnknown -1 Unknown or unsupported type.
eCrdnAngleTypeBetweenVectors 0 An angle between two vectors.
eCrdnAngleTypeBetweenPlanes 1 An angle between two planes.
eCrdnAngleTypeDihedralAngle 2 An angle between two vectors about an axis.
eCrdnAngleTypeRotation 3 Angle of the shortest rotation between the two specified axes.
eCrdnAngleTypeToPlane 4 An angle between a vector and a plane.
eCrdnAngleTypeTemplate 5 Represents 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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1