Kyudos
29-07-2009, 02:18 PM
I'm probably missing something somewhere along the line but, I'm accessing the a2c32.dll from my application. If I use the following code (wrapped for clarity):
sCmdLine.Format("/C0=40 /L=\"SHP\" /SV=14 /SD=6 /SP=2 /SPU=1
/SPZ=-1 /T=-1 /TS=ARIAL_TT /TF=\"ARIAL.TTF\" /TO=1 /TOF=1.0000 /TL=1
/TLL=\"SHPTEXT\" /TPAF=2 %s%s%s Test.dxf", "\"", fullName, "\"");
char exec_param[1024] = "";
strcpy(exec_param, sCmdLine);
iret = exec_arcv2cad(exec_param, 0);
I get the output I desire.
However, if I try to set up a2cbatch.ini to produce the same output:
; Hide batch mode dialog
/H
; Logging (0 = no log file, 1 = stop on errors, 2 = ?, 3 = skip errors, 4 = ?)
/LOG=1
; Popup warnings (0 = hide, 1 = show)
/W1
/C0=40
/L="SHP"
/SV=14
/SD=6
/SP=2
/SPU=1
/SPZ=-1
/T=-1
/TS=ARIAL_TT
/TF="ARIAL.TTF"
/TO=1
/TOF=1.0000
/TL=1
/TLL="SHPTEXT"
/TPAF=2
[Arcv2CAD]
Viewer=x
I don't get the same results.
So what (if anything) am I doing wrong?
What is the relationship between a2cbatch.ini, a2cdll.ini and command line switches? And which over-rides which?
Thanks,
Dan
sCmdLine.Format("/C0=40 /L=\"SHP\" /SV=14 /SD=6 /SP=2 /SPU=1
/SPZ=-1 /T=-1 /TS=ARIAL_TT /TF=\"ARIAL.TTF\" /TO=1 /TOF=1.0000 /TL=1
/TLL=\"SHPTEXT\" /TPAF=2 %s%s%s Test.dxf", "\"", fullName, "\"");
char exec_param[1024] = "";
strcpy(exec_param, sCmdLine);
iret = exec_arcv2cad(exec_param, 0);
I get the output I desire.
However, if I try to set up a2cbatch.ini to produce the same output:
; Hide batch mode dialog
/H
; Logging (0 = no log file, 1 = stop on errors, 2 = ?, 3 = skip errors, 4 = ?)
/LOG=1
; Popup warnings (0 = hide, 1 = show)
/W1
/C0=40
/L="SHP"
/SV=14
/SD=6
/SP=2
/SPU=1
/SPZ=-1
/T=-1
/TS=ARIAL_TT
/TF="ARIAL.TTF"
/TO=1
/TOF=1.0000
/TL=1
/TLL="SHPTEXT"
/TPAF=2
[Arcv2CAD]
Viewer=x
I don't get the same results.
So what (if anything) am I doing wrong?
What is the relationship between a2cbatch.ini, a2cdll.ini and command line switches? And which over-rides which?
Thanks,
Dan