1.9.2. Batchconvert.exe

With this program you can convert 3D files and create preview images in batch mode.

You can use "Scheduled tasks" in Windows. (Hereto no GUI is needed; ActiveX is possible!)

(When you call up batchconvert.exe without parameter or with '--help' or with '-?', then the help with all possible parameters is displayed.

The file batchconvert.exe is found under:

C:\Program Files (x86)\cadenas\partsolutions\software\bin\x86\32\batchconvert.exe"

Call up happens in the following form:

batchconvert sourceDirName
                [--targetdir targetDirName]
                [--logfile logFileName]
                [--errorfile errorFileName]
                [--inputformats format1 format2 format3 ...]
                [--outputformats format3d formatImage]
                [--recursive]
                [--meshreduction]
                [--debug]
                [--imagewidth]
                [--imageheight]

[Note]Note

sourceDirName

As of version PSOL 9.04 there is an alternative possibility to declare the source directory:

Now instead of a directory you can specify a text file. Each line in this file has to specify the absolute path to a file to be imported. For the rest nothing has changed at call up.

Exemplary initial situation:

C://abc/def/file1.prt
C://abc/ghj/file2.prt
C://xyz/stu/file3.prt

Detection of target path:

In order for the structure of source files to be mapped correctly at the target, the target path is detected as follows:

At first the directory with the deepest path with the characteristic that it contains all files from the list is determined .

Then this common path is replaced by the specified target path.

Focusing on the first two lines the deepest common path would be "../abc" and focusing on all three lines it would be "C://".

Supposed target path would be:

C://target

Then result would be:

C://target/abc/def/file1.stl
C://target/abc/ghj/file2.stl
C://target/xyz/stu/file3.stl

The common path may not be empty, especially all files have to be in the same drive or computer in the network.

Ergo the following is not possible:

C:/abc/file1.stl
D:/abc/file2.stl

Or

\\10.10.0.75/dir1/file1.stl
\\10.10.0.159/dir1/file2.stl

Spelling: (Example)

Description of the single parameters:

[Note]Note

Please regard upper and lower case.

Example 1:

batchconvert "C:\src" --targetdir "C:\target" --meshreduction --recursive 
--outputformats BMP PARTJAVA --inputformats STLFILE  --logfile C:\logfile.txt 
--errorfile c:\errorfile.txt

Example 2:

batchconvert "C:\src": -t "C:\target" -m -r -o BMP STL -i NATSOLIDEDGEPARTST2 
NATSOLIDEDGEASMST2 -l C:\logfile.txt -e c:\errorfile.txt

A detailed description of geometry import via GUI is found under Import von Geometrie-Dateien.