Run Scan2CAD from a command line

 

Scan2CAD can be executed from a command line:

 

path\scan2cadv8\scan2cadv8.exe

(Please note that you must include the full path.)

 

Using a Command File

When you execute Scan2CAD from a command line you can control its execution by using a Command File. This is a text file of any name that is passed to Scan2CAD as a single argument on the command line:

 

“path\scan2cadv8\scan2cadv8.exe” “path\scan2cadv8\commands.txt”

(Please note that you must include the full paths.)

 

The Command File lists the Scan2CAD commands that should be executed. Click here for a list of available commands.

When you execute Scan2CAD using a Command File, the Scan2CAD window appears momentarily full screen and is then minimized onto the Task Bar. When execution is complete it is removed from the Task Bar.

 

You can cancel the execution of a Command File at any time by pressing the Esc key.

 

Writing a Command File

Commands can be written in UPPERCASE, MixedCase or lowercase.
Each command must be on a separate line.

Do not leave blank lines between commands or use tabs or spaces in front of a command.

Enter commands in a logical order. For example, you need load a raster image before you can process it in any way.

Some commands require arguments.

Each argument must be on a separate line, with the first argument immediately following the command. For example:

OCRSETTINGS

54

6

10

4

1

0

0

1

1

0

0.7

 

Do not leave blank lines between arguments or use tabs or spaces in front of arguments.

Only enter the argument value into the Command File, not its name.

Make sure you have used ALL the arguments associated with a command.

 

Command File example

* Load the raster image floorplan.tif

LOADRASTER

c:\users\username\documents\scan2cadv8\samples\floorplan.tif

* Smooth and despeckle

SMOOTH

REMOVESPECKLES

6

* Select suitable vectorization settings

TYPEARCHITECT

* Set suitable OCR settings

OCRSETTINGS

54

6

10

4

1

0

0

1

1

0

0.7

* Vectorize

RUNALL

* Save the vectors as floorplan.dxf

SAVEVECTOR

* Exit Scan2CAD

EXIT

 

Troubleshooting

If registration error messages appear when you run Scan2CAD from a command line, set the working folder to the folder that Scan2CAD is installed in.
If a Command File doesn’t do what you expected, check that there are no spaces or tabs before or after any commands or arguments and make sure that each command has the correct number of arguments.

 

Have questions on this topic? Talk to us