www.kxcad.net Home > Electronic Index > Altium(Protel) Index
The examples that follow illustrate the basic features of Delphi Script programming. The examples show simple scripts for the DXP application. The example scripts are organized into Scripts folder and its sub folders; General, Processes, PCB, Schematic and WSM folders accordingly.
Scripts folder - Real World scripts
Fonts Editor script for schematic documents
Layer Report script for PCB documents
Sch98 Project Converter script that imports legacy Schematic 98 projects and exports them as DXP Projects.
Protel Netlist Scripter script that exports a schematic project as a Protel netlist. To run this script, you need to have the ScripterProtelNetlist.PRJSCR project opened, then call Run script command from the DXP System menu and select the ScripterProtelNetlist.pas file from the Select Item to Run dialog. The script will then generate a netlist for the current project, so make sure you have that project focused before you run the script.
General sub folder - Demonstrate Delphi Script keywords
Hello World script - introductory script
Mandelbrot script - showing off the graphical capabilities of Delphi Script
Sinewave script - demo the graphical capabilities
TextFileConvert script - demo File I/O capabilities
TicTac script - demo various Delphi Script keywords and to have fun!
UpdtateTime - demo the use of a Timer component.
Processes sub folder - Demonstrate server process keywords
Various scripts which use different server processes and parameters.
DXP sub folder - Demonstrate Client API keywords
Various scripts that demonstrate several aspects of the Client API
Sch subfolder - Demonstrate SCH API keywords
Various scripts that demonstrate several aspects of the Schematic API
PCB subfolder - Demonstrate PCB API keywords
Various scripts that demonstrate several aspects of the PCB API
WSM subfolder - Demonstrate WSM API keywords
Various scripts that demonstrate several aspects of the Work Space Manager API