AGI STK VGT 11 Send comments on this topic.
Duplicate Method (IAgCrdn)
See Also  Example
NewName
Specify a name of the new component.
Description
Specify a description.





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
);

[Java]
public IAgCrdn duplicate(
String NewName,
String Description
);

[Unmanaged C++]
public: HRESULT Duplicate(
BSTR NewName,
BSTR Description,
IAgCrdn ** ReturnValue
);

Parameters

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

Example

Create a duplicate.
[C#] Copy Code
IAgCrdnPoint point = provider.Points.Factory.Create("OriginalPoint""description", AgECrdnPointType.eCrdnPointTypeAtTimeInstant); 
IAgCrdn duplicate = ((IAgCrdn)point).Duplicate("DuplicatePoint""description"); 
 

Create a duplicate.
[Visual Basic .NET] Copy Code
Dim point As IAgCrdnPoint = provider.Points.Factory.Create("OriginalPoint", "description", AgECrdnPointType.eCrdnPointTypeAtTimeInstant)
Dim duplicate As IAgCrdn = DirectCast(point, IAgCrdn).Duplicate("DuplicatePoint", "description")

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1