CREATING ROUTING SCRIPTS
Overview
The auto-router is capable of running a script and will schedule routing operations based on the commands in the script. This can be particularly useful if you find that a particular sequencing of commands helps to achieve completion or produces a better result and you want to use this sequence repeatedly for different projects. For very complex boards this method of execution is also ideal where, for example, you wish to let the router find the best solution overnight or over a period of several hours.
Creating and Modifying Scripts
The easiest way to get a working script to start from is to let Proteus write one for you. Run the router once with the Execution Mode set to Run basic schedule automatically: Proteus writes the schedule it used to a file named after your design with the extension .DO, alongside the design itself. Keep that file and edit it to suit your project.
With the default pass counts, the file Proteus writes looks like this:
#==================
# BASIC DO file
#==================
set pad_wire_necking on
bus diagonal
fanout 5
route 50
clean 2
route 50 16
clean 2
filter 5
recorner diagonal
status_file
The pass counts come straight from the dialogue form, so changing them there changes the schedule that gets written. The pair of lines route 50 16 and clean 2 is written once for each repeat phase, so a repeat count of three produces three copies of that pair.
Two of the lines are not routing passes. The first, set pad_wire_necking on, corresponds to the Enable autonecking? option on the dialogue form and is written as off when that option is cleared. The last, status_file, asks the router to write out its completion statistics at the end of the run.
Note that comments can be entered by preceding the line with the hash character.
More information on each of the commands used can be found in the command reference.
Once you have adjusted the script as required simply save it on your computer, specify the execution mode and location of the script via the Auto-router command on the Tools menu and invoke the router. This procedure is outlined in more detail in the basic operation topic.