AGI STK VGT 11Send comments on this topic.
Duplicate Method (IAgCrdn)
See Also  Example
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
);
[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

© 2018 Analytical Graphics, Inc. All Rights Reserved.