STK Vector Geometry ToolSend comments on this topic.
Create Method (IAgCrdnPlaneFactory)
See Also
PlaneName
Specify a component name.
Description
Specify a component description.
PlaneType
Specify a component type.
Windows





Windows & Linux

Description

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

Syntax

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

Parameters

PlaneName
Specify a component name.
Description
Specify a component description.
PlaneType
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 plane normal to vector.
[C#]
// Create a plane normal to vector.
IAgCrdnPlaneNormal p = (IAgCrdnPlaneNormal)provider.Planes.Factory.Create(
    "PlaneName", "A plane normal to vector.", AgECrdnPlaneType.eCrdnPlaneTypeNormal);
Create a plane normal to vector.
[Visual Basic .NET]
' Create a plane normal to vector.
Dim p As IAgCrdnPlaneNormal = DirectCast(provider.Planes.Factory.Create("PlaneName", "A plane normal to vector.", AgECrdnPlaneType.eCrdnPlaneTypeNormal), IAgCrdnPlaneNormal)
© 2024 Analytical Graphics, Inc. All Rights Reserved.