cript Examples

www.kxcad.net Home > Electronic Index > Altium(Protel) Index


Your Ad Here

The examples that illustrate the basic features of DelphiScript programming are covered in the \Altium 2004\Examples\Scripts folder and its sub folders. There are examples that cover the DXP run time library, other examples that use the Delphi Run Time Library and a few real world examples that can be used in DXP.

To run a script repeatedly in the text editor in DXP, assign the script to the Set Project Startup Procedure item from the Run menu of the Text editor server. you can then click on the Run button. or press F5 to execute this script. To run a different script, you will need to re-invoke the Set Project Startup Procedure from the Run menu and assign a new script to it.

You can click on the Run Script item from the DXP system menu and the Select Item to Run dialog appears with a list of procedures (those parameterless procedures/functions only appear) within each script in a project. This may be needed if you wish to run a script on a specific document type such as PCB or Schematic documents.

You can also use the Run Process dialog and specify the scriptingsystem server process and specify the parameters for this scripting system server to execute a script, this may also be needed if you wish to run a script on a specific document type such as PCB or Schematic documents.

See also

Executing a script in DXP

Check out the scripts in the \Altium 2004\Examples\Scripts\ folder to see DXP and Delphi objects and functions being used in scripts.

Your Ad Here