## CopyCacheFiles

### Introduced

v7.0

### Deprecated

v9.0 (2011)--see CopyCacheFiles2

### Description

Copies the simulation environment cache files under the current project.

### Scripting Syntax

    CopyCacheFiles( [ObjectsToCache], SourcePathID, TargetPathID, [Overwrite], [ShowProgressbar], [Version] );

### Parameters

Parameter | Type | Description
--- | --- | ---
ObjectsToCache | String or XSICollection | The list of objects for which we will copy the cache. You can use X3DObjects as well as SimulationEnvironments. Default Value: Selected objects
SourcePathID | Integer | The index of the source path template Default Value: -1
TargetPathID | Integer | The index of the target path template Default Value: -1
Overwrite | Boolean | True to overwrite the file if it exists Default Value: False
ShowProgressbar | Boolean | True to display a ProgressBar during this operation Default Value: True
Version | String | Version letter Default Value: A

### See Also

CopyExtFilesIntoProject CacheObjectsIntoFile CacheObjectsIntoFileDialog SimulationEnvironment ProgressBar