PDA

View Full Version : Command Line DWG Limit printing.


KeS
08-02-2007, 11:51 PM
Hi, my company is looking inot purchasing CADViwer, currently I am using the demo version to test out the command line printing functions.

However, I am not able to let the CADViewer print within drawing limits. I read the manual, changed the cadviewer.ini file, and used the /px command to print the file, but it won't do...

Here is the full command I used for a drawing:

"C:\Program Files\CADViewer5\viewer5.exe" /h /px /pr="HP LaserJet" c:\12345.DWG

I have also attached my ini file, can anyone tell me where I did it wrong?

Thanks.
KeS

KeS
08-02-2007, 11:52 PM
[Run]
FullPathname=C:\Program Files\CADViewer5\viewer5.exe
print=2
Prefs=1
SavePDF=1
FileSave=1
Sketch=1
Touchup=1
[shp trans]
pt=/W0 /AV=0 /AE=-1 /P=0 /CFN=COLOR /CC=2 /CPN=ACAD
lin=/W0 /AV=0 /AE=-1 /C0=0 /CFN=COLOR /CC=2 /CPN=ACAD
pol=/W0 /AV=0 /AE=-1 /C=2 /C1=0 /C0=7 /CFN=COLOR /CC=2 /CPN=ACAD
[CAD Viewer 5.0]
server=0
UserAppDataPath=1
QIK2=C:\Program Files\CADViewer5\
WorkFileDir=C:\Program Files\CADViewer5\T
comp=0
dl=29
[Prefs]
IgnoreNotFoundXrefs=0
SearchBitmaps=1
ZoomCad=1
ZoomBmp=0
initPageOrient=1
RotateAllPages=1
AttribsOnOrigLayer=1
PrnSetPixel=1
ConfirmQuit=0
NumViewers=1
[Display Options]
mainmenu=on
width=760
height=560
top=0
left=0
normal=2
nomove=0
noquit=0
ontop=0
[system colours]
canvas=black
[mouse buttons]
number=3
left=left
middle=middle
right=right
[Directories]
DXF=C:\Program Files\CADViewer5
[ImportDirs]
StartIndex=3
3=C:\Program Files\CADViewer5
[MapPrintPens]
2=63
3=51
4=12
9=8
10=8
26=6
35=51
39=37
40=63
41=52
[PrintTags]s
Posd=1
Alignd=1
[Hpgl2CAD]
PlotterUnit=0.025
IgnoreNR=1
DefaultSCType=0
[miscellaneous]
FixText=0
Version=5.0 A.25
[Imaging]
Displaymode=1
Dark=1
gamma0=250
gamma1=100
gamma2=40
gamma3=16
printdarkness=0.75
[SaveImageUser]
range=0
bg=1
w=1600
h=1200
Tifsubtype=1
Jpgsubtype=0
Bmpsubtype=1
MinPix=2
qf=40
[SaveImageCmd]
range=0
bg=1
w=1600
h=1200
Tifsubtype=1
Jpgsubtype=0
Bmpsubtype=1
MinPix=2
qf=40
color=0
[PrintCmd]
FitToPage=1
PrintRange=3
PrnMapPens=1
DarkenFill=1
color=1
minpix=2
PrintTagsThisFile=0
LineWeight=1
PrintAllSel=0
PrintAllLayouts=0
drawcons=1
inches=0
idxScale=0
paperunits=1.0
drawingunits=1.0
AllViews=0
scale=1.000000
PrnGridBorder=0

GuthCAD Software Support
09-02-2007, 12:38 AM
Hi KeS,

Hi, my company is looking inot purchasing CADViwer, currently I am using the demo version to test out the command line printing functions.

However, I am not able to let the CADViewer print within drawing limits. I read the manual, changed the cadviewer.ini file, and used the /px command to print the file, but it won't do...

Here is the full command I used for a drawing:

"C:\Program Files\CADViewer5\viewer5.exe" /h /px /pr="HP LaserJet" c:\12345.DWG

I have also attached my ini file, can anyone tell me where I did it wrong?
A few pointers:
1. CAD Viewer uses PRINTCMD.INI for the command line print settings, not cadviewer.ini (hopefully that's also what is says in the user manual, but please let us know if not!)

2. An easy way to create PRINTCMD.INI with the settings that you want, is by starting CAD Viewer using the /pconfig command line switch. This will cause a button to appear in the Print Options dialog entitled 'Store settings to PRINTCMD.INI'. Please see attached screen-shot.

3. Also make sure that you actually get the print result that you expect within the user interface. E.g. 'drawing limits' has a special meaning in AutoCAD terminology that is different from the 'extents' of the drawing. ('extents' = whole drawing, whereas 'drawing limits' = user defined setting within the drawing.)

Let us know if you still have problems.

regards,
Software support

KeS
09-02-2007, 01:20 AM
Hi!

The tip you gave me worked perfectly, thank you very much.

Ke