| 
       << Click to Display Table of Contents >> Navigation: »No topics above this level« Start ABViewer from the Command Line | 
    
Work from the command line is available in the Enterprise version as well as in the trial mode.
Installing/Uninstalling (ABviewer.msi version is available at: http://www.cadsofttools.com/download/abviewer.msi)  | 
|
msiexec /i  | 
Installs ABViewer in silent mode: msiexec /i c:\Temp\abviewer.msi /quiet  | 
msiexec /x  | 
Uninstalls ABViewer in silent mode: msiexec /x c:\Temp\abviewer.msi /quiet  | 
Program installation (ABviewer.exe version is available at: http://www.cadsofttools.com/download/abvieweren.zip)  | 
|
/silent  | 
Installs ABViewer in silent mode. The process of installation is displayed. C:/Downloads/setup.exe /silent  | 
/verysilent  | 
Installs ABViewer in silent mode. The process of installation is not displayed. C:/Downloads/setup.exe /verysilent  | 
/FILEASSOC  | 
•Sets file associations of the specified file formats with ABViewer for all users: C:/Downloads/setup.exe /FILEASSOC="allusers:dxf,dwg,plt" •Sets file associations of the specified file formats with ABViewer for the current user: C:/Downloads/setup.exe /FILEASSOC="dxf,dwg,plt" •Removes DWG file associations for the current user: C:/Downloads/setup.exe /FILEASSOC="dxf,!dwg,plt"  | 
Commands for work in ABViewer  | 
||||||||||||
Usage: ABViewer [command] [switch][switch]file[s...]  | 
||||||||||||
Open file  | 
  | 
Opens the FileName.dxf file: ABViewer.exe FileName.dxf  | 
||||||||||
Convert file(s) to a specified file format 
 
  | 
/c xxx 
  | 
•General xxx - extension of output file(s) - dxf, plt, pdf, bmp, jpg, emf, wmf, tif, or gif 
 Switches: 
 Example: Converts the files 50states.hpg, test1.dxf and test2.plt to *.bmp with width=100 and height=200, destination folder is "C:/Tmp": ABViewer.exe /c bmp dir=C:/Tmp width=100 height=200 50states.hpg test1.dxf test2.plt 
 •Relative and absolute paths It is possible to convert files using either a relative path or an absolute path. Here's an example showing how to convert a CGM file (c:\data\file1.cgm) into DXF: 
 1.Conversion with an absolute path Example: "C:\Program Files\Soft Gold\ABViewer 16\ABViewer.exe" /c dxf c:\data\file1.cgm 
 The path consists of three parts separated by spaces: -ABViewer.exe path: "C:\Program Files\Soft Gold\ABViewer 16\ABViewer.exe" -the command converting the file into DXF: /c dxf -the file path: c:\data\file1.cgm 
 2.Conversion with a relative path Example: "C:\Program Files\Soft Gold\ABViewer 16\ABViewer.exe" /c dxf data\file1.cgm Please note: the command-line should be started from the folder, where the file for conversion is contained. 
 The path consists of three parts separated by spaces -ABViewer.exe path: "C:\Program Files\Soft Gold\ABViewer 16\ABViewer.exe" -the command converting the file into DXF: /c dxf -the file path: data\file1.cgm 
 3.Conversion with a relative path into a specified folder Example: "C:\Program Files\Soft Gold\ABViewer 16\ABViewer.exe" /c dxf dir=c:\temp data\file1.cgm 
 The path consists of four parts: -ABViewer.exe path: "C:\Program Files\Soft Gold\ABViewer 16\ABViewer.exe" -the command converting the file into DXF: /c dxf -the path to the folder: dir=c:\temp -the file path: data\file1.cgm  | 
||||||||||
Print specified file(s)  | 
/p  | 
Example: Prints the following files: 50states.hpgl, test1.dxf and test2.plt ABViewer.exe /p 50states.hpgl test1.dxf test2.plt  | 
||||||||||
Print all sheets of the specified file(s)  | 
/pa  | 
Example: Prints all the sheets of the following files: 50states.hpgl, test1.dxf and test2.plt ABViewer.exe /pa 50states.hpgl test1.dxf test2.plt  | 
||||||||||
Execute instructions and commands from the XML file  | 
-processxml  | 
Executes a sequence of commands written in an XML file. Example: Executes commands from the XML file: opens the file > scales the drawing > saves the drawing: ABViewer.exe -processxml XMLcommands.xml  | 
||||||||||
Go to ABViewer