www.kxcad.net Home > Electronic Index > Altium(Protel) Index
The scripting system supports the Delphi Script language which is very similar to Borland Delphi (TM)'s Object Pascal language. The key difference is that, Delphi Script is a typeless or untyped scripting language. You can still declare variables with type identifiers within scripts for readability.
In this section, Delphi Script keywords are outlined with concise information and some have examples. The Scripting system also supports a subset of Borland Delphi Run Time Library (RTL) and a subset of DXP RTL which are covered in Delphi Script Extensions Reference and in Client API, PCB API, Schematic API and Work Space Manager API references.
A script can execute server processes and thus server processes and parameters are covered in the Process Parameters reference. There are also script forms which host graphical forms and have controls on them. This is covered in the Delphi Script Component Reference section.
Tips
There is no need to have a "Uses" keyword in your script because the units such as the Workspace Manager unit and the Borland Delphi run time library units that are supported by the scripting system are automatically available in your scripts. Note, all the functions from the Windows unit (windows.pas file) are not supported (for example the RGB function is not supported).
There are a few identifiers or functions that are not supported. Refer to the Differences between Delphi Script and Object Pascal as in Borland Delphi for further information.
See also
Differences between Delphi Script and Object Pascal
Delphi Script Extensions Reference
Delphi Script Component Reference