|
|
|
|---|
Topsolid CAM online Help Index
Batch Computing
![]()
Since some calculation times can be particularly long, there are a number of operations that can be postponed to be performed during a period of low activity (lunch time, at night).
How to realize a batch computing operation ?

Run a Batch computing Operation from TopSolid'Cam.

Batch mode.
It is also possible to launch operations via a ‘batch’ mode. In such a case, TopSolid'Cam must not be activated (open)..
Step 1
Create a .bat file (for example : Mode_batch.bat) on disc C.
Edit it, then type the following lines by respecting the syntax to the letter :
C:
CD \MISSLER\V65\BIN
TOP65 -sD:\missler\v65\zmi\cam\3d\auto\l\execbatch -p%1 -p"X" -p%2
Line 1 : This line defines the TopSolid'Cam installation
Line 2 : This line shows the directory path leading to the Top65.exe file (TOPHOME\Bin), preceded by the "cd" command.
Line 3 :This line allows TopSolid'Cam to be launched in batch mode. The TopSolid'Cam file
name, a command line and parameters are included in the syntax used.
These are all separated with– (minus sign).).
Top65 : TopSolid'Cam file name
-sD:\missler\…\execbatch : TopSolid'Cam’s Execbatch file’s command line with complete path, preceded by the s command..
-p%1 : %1 is a command allowing the user to define the name of the file to be executed, in a location other than the current .bat file. %1 can be replaced by the name of the file to be executed, preceded by its complete path..
-p"X" : X can be :
- a number corresponding to the number of the operation to be calculated (-p"1").
- a star (“*”) to calculate all operations without specifying their number. (-p"*")
- a series (“1+ 2+ 3”) or (“1 > 4”).
An operation number is the number found in brackets after the operation’s wording.
-p“1+ 2+ 3” will calculate operations 1,2 and 3
-p"“1 > 4”" will calculate operation 1 until 4 (without 4)
With the number of the operation, we speak about the number that we can see inside bracket in the operations manager.
-p%2 : %2 is the command allowing the definition of the name of the file to be saved, in a location other than the current .bat file. %2 can be replaced by the name of the file to be saved, preceded by its complete path. The backup file’s name can be the same as that of the executed file..
Step 2
Create a new .bat file (for example, Fichiers.bat) on disk C. Edit it, then type the names of the files to be executed, then saved, in batch mode. Each file name must be preceded by its path. Each command line must begin with the .bat file name, allowing access to launch TopSolid'Cam in batch mode. The following example shows the syntax which must be entered to the letter to execute the Flasque and Adaptateur files in batch mode.
Mode_batch D:\Projets\Flasque.cam D:\Projets\Flasque_new.cam
Mode_batch D:\Projets\Adaptateur.cam D:\Projets\Adaptateur_new.cam
.
.
.
The ‘Zmi_batch.bat’ and ‘Zmi_files.bat’ files present in TopSolid'Cam’s installation directory can be moved to another location and edited to launch a postponed operation.
Topsolid CAM online Help Index