Command Line

 

Command Line

Previous pageReturn to chapter overviewNext page

Usage: ABViewer [command] [switch][switch]file[s...]

 

Command: open file


Example: open FileName.dxf

ABViewer.exe FileName.dxf

 

Command: convert file(s) to a specified file format


General

/c xxx

this is the command used for conversion where 'xxx' - extension of output file(s) - dxf, plt, pdf, bmp, jpg, emf, wmf, tif or gif

Switches:

dir= - destination folder

Width='value' - width of output file(s)

Height='value' - height of output file(s)

Dpi= the number of points per inch for JPG. By default it is equal to 96.

Quality= the quality of the output file. The higher the quality the larger the file size.

JPG = from60 to 90. By default the value is taken from the dialog box Options.

PDF >0 to infinity. By default is equal to 40.

Example: convert 50states.hpg, test1.dxf and test2.plt to 50states.bmp, test1.bmp and test2.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 both a relative path and an absolute path. As an example let's see how we can convert a CGM file  (c:\data\file1.cgm) into DXF:

 

1.Conversion with an absolute path - Example:

"C:\Program Files\Soft Gold\ABViewer 11\ABViewer.exe" /c dxf c:\data\file1.cgm

 

The path consists of 3 parts separated by spaces:

-ABViewer.exe path:                        "C:\Program Files\Soft Gold\ABViewer 11\ABViewer.exe"

-converting into DXF command:                /c dxf

-and the file path:                        c:\data\file1.cgm

 

2.Conversion with a relative path

Please note: the command-line should be started from the folder, where the file to be converted is contained.

Again the 3 parts:

"C:\Program Files\Soft Gold\ABViewer 11\ABViewer.exe" /c dxf data\file1.cgm

 

-ABViewer.exe path:                        "C:\Program Files\Soft Gold\ABViewer 11\ABViewer.exe"

-converting into DXF command:                /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 11\ABViewer.exe" /c dxf dir=c:\temp data\file1.cgm

 

This path consists of four parts:

-ABViewer.exe path:                        "C:\Program Files\Soft Gold\ABViewer 11\ABViewer.exe"

-converting into DXF command:                /c dxf

-the path to the folder:                        dir=c:\temp

-the file path:                                data\file1.cgm

 

Command: print specified file(s)


/p

Example: print the following files: 50states.hpg, test1.dxf and test2.plt

ABViewer.exe /p 50states.hpg test1.dxf test2.plt

 

Command: Print all the Sheets of the Specified File(s)


/pa

Example: print all the sheets of the following files: 50states.hpg, test1.dxf and test2.plt

ABViewer.exe /pa 50states.hpg test1.dxf test2.plt

 

Command: installing or uninstalling in a silent or unattended mode


ABViewer.msi version is used - available at: http://www.cadsofttools.com/download/abviewer.msi :

msiexec /i

Example: install ABViewer in a silent mode:

msiexec /i c:\Temp\abviewer.msi /quiet

Example: uninstall ABViewer in a silent mode:

msiexec /x c:\Temp\abviewer.msi /quiet

 

ABviewer.exe version is used - available at: http://www.cadsofttools.com/download/abvieweren.zip :

/silent

Example: Install ABViewer in a silent mode. The process of installation is displayed.

C:/Downloads/setup.exe /silent

/verysilent

Example: Install ABViewer in a silent mode. The process of installation is not displayed.

C:/Downloads/setup.exe /verysilent

Go to ABViewer