MaterialAsset.CopyTo Method
Parent Object: MaterialAssetDescription
Method that copies this asset to the specified target and returns the new asset. A failure will occur if you attempt to replace the asset itself..
Syntax
MaterialAsset.CopyTo( Target As Variant, [ReplaceExisting] As Variant ) As AssetParameters
Name | Type | Description |
Target | Variant | Input Variant value that specifies the target where the asset should be copied. Valid values are:
|
ReplaceExisting | Variant | Optional input Boolean that specifies whether replace the existing asset if an asset of the same name exists. If set to False, and an asset of the same name exists, this method creates a duplicate asset and returns the new asset. If the asset is a material asset that specify this value will either replace the existing material asset and its referenced appearance and physical assets, or duplicate all of them. This is an optional argument whose default value is null. |