Asset.Duplicate Method

Parent Object: Asset

Description

Method that creates a copy of this asset within the document using a new name. This method is only valid when called on an asset that is owned by a document. A failure will occur if you attempt to copy an asset that isn’t owned by a document and if the name specified is not unique with respect to the other document assets of the same type.

Syntax

Asset.Duplicate( [NewName] As Variant ) As Asset

Parameters

Name Type Description
NewName Variant The name of the new asset. This name must be unique with respect to the other document assets of the same type. If a name is not provided, Inventor will create a unique name.

This is an optional argument whose default value is null.

Version

Introduced in version 2014