STK Vector Geometry ToolSend comments on this topic.
Create Method (IAgCrdnAngleFactory)
See Also
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
);
[Unmanaged C++]
public: HRESULT Create(
    BSTR AngleName,
    BSTR Description,
    AgECrdnAngleType AngleType,
    IAgCrdnAngle ** ppRetVal
);
[Java]
public IAgCrdnAngle create(
    String AngleName,
    String Description,
    AgECrdnAngleType AngleType
);
[Python - STK API ]
def Create(self, AngleName:str, Description:str, AngleType:"AgECrdnAngleType") -> "IAgCrdnAngle":

Parameters

AngleName
Specify a component name.
Description
Specify a component description.
AngleType
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.

See Also

Example

Create an angle between two planes.
[C#]
//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]
'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)
© 2024 Analytical Graphics, Inc. All Rights Reserved.