STK Vector Geometry ToolSend comments on this topic.
Duplicate Method (IAgCrdn)
See Also
NewName
Specify a name of the new component.
Description
Specify a description.
Windows





Windows & Linux

Description

Creates a copy of the instance of a VGT component. The new component is automatically registered and will be persisted or restored when a scenario is saved or loaded.

Syntax

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

Parameters

NewName
Specify a name of the new component.
Description
Specify a description.

See Also

Example

Create a duplicate.
[C#]
IAgCrdnPoint point = provider.Points.Factory.Create("OriginalPoint", "description", AgECrdnPointType.eCrdnPointTypeAtTimeInstant);
IAgCrdn duplicate = ((IAgCrdn)point).Duplicate("DuplicatePoint", "description");
Create a duplicate.
[Visual Basic .NET]
Dim point As IAgCrdnPoint = provider.Points.Factory.Create("OriginalPoint", "description", AgECrdnPointType.eCrdnPointTypeAtTimeInstant)
Dim duplicate As IAgCrdn = DirectCast(point, IAgCrdn).Duplicate("DuplicatePoint", "description")
© 2024 Analytical Graphics, Inc. All Rights Reserved.