Creating a replica through the command line interface (Model Explorer)
Through the createreplica command you can create a replica of a model.
If you have installed Modeler to the default location, createreplica resides in the following location.
For 64-bit versions of Windows:
• C:\Program Files (x86)\PTC Integrity Modeler\Modeler\Exe
For 32-bit versions of Windows:
• C:\Program Files\PTC Integrity Modeler\Modeler\Exe
Syntax:
createreplica \\SQL\<server>@<instance>\<database>\<model>\<version>" -d -f "<folder containing exported files>"
Where:
• <server> specifies the name of the server on which the Database resides. The case of the name must be correct.
• <database> specifies the name of the Database that owns the Model that will be overridden by the replica. The case of the name must be correct.
• <model> specifies the name of the Model that will be overridden by the replica.
|
• The model’s name must not be the same as the replica.
• The case of the name must be correct.
• CreateReplica will set the correct name.
• You can use scfutils —addmodel to create the empty model.
|
• <version> specifies the version of the Model will be overridden by the replica. If the Model has not been versioned, the version is 0.
• <folder containing exported files>specifies the folder that contains the exported files, from which the replica is created.
Example:
createreplica "\\SQL\MyServer@MODELER\MyDatabase\MyModel\0" -d -f "c:\exported files"