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]
C://abc/def/file1.prt C://abc/ghj/file2.prt C://xyz/stu/file3.prt
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
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
Description of the single parameters:
--(l)ogfile: Log file, which contains a list of all converted files
The file contains the complete paths to all converted output files as \t separated CSV.
One line for each input file: col1=inputFilePath, col2=outputPathFormat1, col3=…)
--(e)rrorfile: Error file, which contains a list of all files where an error occurred.
The file contains the complete paths to the faulty input files.
--(i)nputformats: Input formats to scan for in the source directory
The following list exemplifies a selection of formats. Using the '--listformats' or '-l' you can output all formats in order to detect the correct names for the call up.
--(o)utputformats: Output formats
--(m)eshreduction: The geometric part complexity is reduced. Stating this parameter cannot damage anything and makes sure that the geometric index can be correctly created. But in any case a respective message is outputted in the log file.
--(d)ebug: An enhanced version is displayed in the command window.
In order for
the program to be prevented from converting ALL files again, the
parameter --ignorenotmodified
can be
used.
--ignorenotmodified
Files which have not been modified are ignored at a new conversion.
Files which have been modified are converted again and preview images are generated.
If only --overwrite
is active,
existing files are always overwritten.
If neither
--overwrite
nor
--ignorenotmodified
is active, existing files are not overwritten.
--deleteinput
Deletes the original files.
--defaultpreview3d
Default file, if the conversion fails. The file must already have the target format.
--defaultpreview
Default preview image, if the preview image cannot be created. If already the conversion of the 3D file fails, this preview image is used - if set. Otherwise the preview image is created from the default 3D file. Also here the image must have the same format as the created preview images.
batchconvert "C:\src" --targetdir "C:\target" --meshreduction --recursive--outputformats BMP PARTJAVA --inputformats STLFILE --logfile C:\logfile.txt
--errorfile c:\errorfile.txt
batchconvert "C:\src": -t "C:\target" -m -r -o BMP STL -i NATSOLIDEDGEPARTST2NATSOLIDEDGEASMST2 -l C:\logfile.txt -e c:\errorfile.txt
A detailed description of geometry import via GUI is found under Import von Geometrie-Dateien.