STK Vector Geometry ToolSend comments on this topic.
Create Method (IAgCrdnSystemFactory)
See Also
SystemName
Specify a component name.
Description
Specify a component description.
SystemType
Specify a component type.
Windows





Windows & Linux

Description

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

Syntax

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

Parameters

SystemName
Specify a component name.
Description
Specify a component description.
SystemType
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 system assembled from a point serving as its origin and a set of reference axes.
[C#]
IAgCrdnSystemAssembled system = (IAgCrdnSystemAssembled)provider.Systems.Factory.Create(
    "SystemName", string.Empty, AgECrdnSystemType.eCrdnSystemTypeAssembled);
// Set the system's origin point.
system.OriginPoint.SetPoint(OriginPoint);
// Set the system's reference axes.
system.ReferenceAxes.SetAxes(ReferenceAxes);
Create a system assembled from a point serving as its origin and a set of reference axes.
[Visual Basic .NET]
Dim system As IAgCrdnSystemAssembled = DirectCast(provider.Systems.Factory.Create("SystemName", String.Empty, AgECrdnSystemType.eCrdnSystemTypeAssembled), IAgCrdnSystemAssembled)
' Set the system's origin point.
system.OriginPoint.SetPoint(OriginPoint)
' Set the system's reference axes.
system.ReferenceAxes.SetAxes(ReferenceAxes)
© 2024 Analytical Graphics, Inc. All Rights Reserved.