Command Line SyntaxGBRComp can be run by calling its various modules from a script or command line. This is a bit complicated but this section will show how to go about constructing a proper batch file. |
Getting a Batch File PrototypeThe GBRComp GUI generates a batch file each time GBRComp is run. The user can arrange to create just the batch file and to save it by making the correct choices in the Preference Settings dialog. If Create Batch File is checked, GBRComp will not actually execute the engine but just produce a batch file. If Keep is checked, GBRComp will keep a batch file that was used to launch the engine instead of erasing it during the cleanup of temporary files. |
Below is a script generated by the GBRComp GUI and commented by hand. All comments begin with the # sign. Because the lines are so long, they have been broken for readability. A CRLF indicates that there is actually a carriage return line feed but CRLF is obviously not part of the batch file. Set up the Messaging "C:\WCAD\GBRVU\execdisplay.exe" "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" #port number -startserver:4 "-prog:Comparing..." "-stopfile:C:\TEMP\gbrcomp_work$0\$274xor_stoprun.$$$" "-icon:C:\WCAD\GBRVU\gbrcomp.exe" CRLF "C:\WCAD\GBRVU\execdisplay.exe" "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-bgnstep:Interpreting First Gerber File" -numops:2 CRLF Convert the First Gerber file to GDS "C:\WCAD\GBRVU\gbr2gdxx.exe" "-cfg:C:\TEMP\gbrcomp_work$0\icsxseed_1.apt" #created by rs247xjb.exe "-out:C:\TEMP\gbrcomp_work$0\icsxseed_1_0.gds" -f "\TEMP\gbrcomp_work$0\icsxseed_1.job" #created by rs247xjb.exe -s:1.000000 #scale factor -we #use extents of the file for the data window -mrgballs #graphics mode option -silent #run in silent mode "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" #the tcp file to use "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" #where to write (append) the log data CRLF Unionize the First GDS File "C:\WCAD\GBRVU\boolw32f.exe" "C:\TEMP\gbrcomp_work$0\icsxseed_1_0.gds" # input created by gbr2gdxx "C:\TEMP\gbrcomp_work$0\icsxseed_1_0u.gds" # unionized output TOP # structure (always TOP) 1 # layer (always 1) +1-2+3-4 # determined from job file +nclip:1,100 # auto partitioning -loutput # leonov output polygons -union # union operation -silent # run in silent mode "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" # where to find .tcp file "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" # log file name to append to CRLF Messaging Control "C:\WCAD\GBRVU\execdisplay.exe" "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-bgnstep:Interpreting Second Gerber File" -numops:2 CRLF Convert Second File to GDS "C:\WCAD\GBRVU\gbr2gdxx.exe" "-cfg:C:\TEMP\gbrcomp_work$0\icsx_mod_2.apt" "-out:C:\TEMP\gbrcomp_work$0\icsx_mod_2_0.gds" -f "C:\TEMP\gbrcomp_work$0\icsx_mod_2.job" -s:1.000000 -we -mrgballs -silent "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" CRLF Boolean Second GDS "C:\WCAD\GBRVU\boolw32f.exe" "C:\TEMP\gbrcomp_work$0\icsx_mod_2_0.gds" "C:\TEMP\gbrcomp_work$0\icsx_mod_2_0u.gds" TOP 1 +1-2+3-4 +nclip:1,100 -loutput -union -silent "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" CRLF Messaging Control "C:\WCAD\GBRVU\execdisplay.exe" "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-bgnstep:Computing XOR" -numops:3 COMBINE TWO GDS into ONE "C:\WCAD\GBRVU\gdsfilte.exe" #gdsfilt engine "C:\TEMP\gbrcomp_work$0\icsxseed_1_0u.gds" # first file "C:\TEMP\gbrcomp_work$0\icsxseed_1_0_shifted.gds" # name of shifted file TOP #structure (always TOP) -lyr1:2 #remap layer 1 to 2 -unixcmdline -gbrcomp -silent "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" CRLF "C:\WCAD\GBRVU\gdsfilte.exe" "C:\TEMP\gbrcomp_work$0\icsxseed_1_0_shifted.gds" "C:\TEMP\gbrcomp_work$0\xor_input_0.gds" TOP -unixcmdline -add "C:\TEMP\gbrcomp_work$0\icsx_mod_2_0u.gds" -combine XOR_INPUT TOP -gbrcomp -silent "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" CRLF Do the XOR Operation "C:\WCAD\GBRVU\newxor.exe" "C:\TEMP\gbrcomp_work$0\xor_input_0.gds" "C:\TEMP\gbrcomp_work$0\diff_0.gds" XOR_INPUT 3 +1x2 +nclip:1,100 -maxpts:4000 -sliver:0.00 -linput -silent "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" Scans GDS XOR OUTPUT to create Summary "C:\WCAD\GBRVU\gscan.exe" "C:\TEMP\gbrcomp_work$0\diff_0.gds" -sh -sea "-o:diff_0.ssn" CRLF Messaging "C:\WCAD\GBRVU\execdisplay.exe" "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-bgnstep:Creating XOR Output" -numops:1 CONVERT BACK TO GERBER "C:\WCAD\GBRVU\g2gbreng.exe" "C:\TEMP\gbrcomp_work$0\diff_0.gds" x 1.0 3 1.000000 TOP -p "-cfg:C:\TEMP\gbrcomp_work$0\diff_0.cfg" -silent "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-log:C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" CRLF PUT A RS274X Header on the GERBER Output "C:\WCAD\GBRVU\274hdr.exe" TOP03.gbr "-cfg:C:\TEMP\gbrcomp_work$0\diff_0.apt" -s:1.000 CRLF Cleanup Temporary Files "C:\WCAD\GBRVU\execdisplay.exe" "-tcpinfo:C:\TEMP\gbrcomp_work$0\gbrcomp.tcp" "-stopserver" CRLF "C:\WCAD\GBRVU\chklogs.exe" "C:\TEMP\gbrcomp_work$0\gbrcomp_detail.log" -shortlog -silent "-append:C:\TEMP\gbrcomp_errors.log" CRLF "C:\WCAD\GBRVU\batutil.exe" "C:\TEMP\output\diff.gbr" TOP03.gbr -copy CRLF "C:\WCAD\GBRVU\batutil.exe" "-infiles:C:\TEMP\gbrcomp_work$0\filelist.txt" -remove CRLF "C:\WCAD\GBRVU\batutil.exe" "C:\TEMP\gbrcomp_work$0\filelist.txt" -remove CRLF |
Page 1 2 3 4 |
Download | Price | Revision History |
|