STK Vector Geometry ToolSend comments on this topic.
Create Method (IAgCrdnPointFactory)
See Also
PointName
Specify a component name.
Description
Specify a component description.
PointType
Specify a component type.
Windows





Windows & Linux

Description

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

Syntax

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

Parameters

PointName
Specify a component name.
Description
Specify a component description.
PointType
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 B-Plane point using selected target body.
[C#]
// Create a B-Plane point using selected target body
IAgCrdnPointBPlane point = (IAgCrdnPointBPlane)provider.Points.Factory.Create(
    "PointName", string.Empty, AgECrdnPointType.eCrdnPointTypeBPlane);
point.TargetBody.SetPath(TargetBody);
Create a B-Plane point using selected target body.
[Visual Basic .NET]
' Create a B-Plane point using selected target body
Dim point As IAgCrdnPointBPlane = DirectCast(provider.Points.Factory.Create("PointName", String.Empty, AgECrdnPointType.eCrdnPointTypeBPlane), IAgCrdnPointBPlane)
point.TargetBody.SetPath(TargetBody)
© 2024 Analytical Graphics, Inc. All Rights Reserved.