STK Vector Geometry ToolSend comments on this topic.
Create Method (IAgCrdnVectorFactory)
See Also
VectorName
Specify a component name.
Description
Specify a component description.
VectorType
Specify a component type.
Windows





Windows & Linux

Description

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

Syntax

[Visual Basic .NET]
Public Function Create( _
    ByVal VectorName As String, _
    ByVal Description As String, _
    ByVal VectorType As AgECrdnVectorType _
) As IAgCrdnVector
[C#]
public IAgCrdnVector Create(
    string VectorName,
    string Description,
    AgECrdnVectorType VectorType
);
[Managed C++]
public: IAgCrdnVector^ Create(
    String __gc ^ VectorName,
    String __gc ^ Description,
    AgECrdnVectorType VectorType
);
[Unmanaged C++]
public: HRESULT Create(
    BSTR VectorName,
    BSTR Description,
    AgECrdnVectorType VectorType,
    IAgCrdnVector ** ppRetVal
);
[Java]
public IAgCrdnVector create(
    String VectorName,
    String Description,
    AgECrdnVectorType VectorType
);
[Python - STK API ]
def Create(self, VectorName:str, Description:str, VectorType:"AgECrdnVectorType") -> "IAgCrdnVector":

Parameters

VectorName
Specify a component name.
Description
Specify a component description.
VectorType
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 a vector.perpendicular to the plane in which the angle is defined.
[C#]
// Create a vector.perpendicular to the plane in which the angle is defined.
IAgCrdnVectorAngleRate vector = (IAgCrdnVectorAngleRate)provider.Vectors.Factory.Create(
    "myVector",
    "a vector.perpendicular to the plane in which the angle is defined.", AgECrdnVectorType.eCrdnVectorTypeAngleRate);
Create a vector.perpendicular to the plane in which the angle is defined.
[Visual Basic .NET]
' Create a vector.perpendicular to the plane in which the angle is defined.
Dim vector As IAgCrdnVectorAngleRate = DirectCast(provider.Vectors.Factory.Create("myVector", "a vector.perpendicular to the plane in which the angle is defined.", AgECrdnVectorType.eCrdnVectorTypeAngleRate), IAgCrdnVectorAngleRate)
© 2024 Analytical Graphics, Inc. All Rights Reserved.