You are here: Surpac Concepts > Macros > SCL > SCL Overview > Executing an SCL script
GEOVIA Surpac

Running SCL scripts

SCl scripts (.tcl files) are executed by using the MACRO PLAYBACK function. This function can be invoked by pressing the button. In addition to executing SCL scripts, this function also executes old macros (.cmd and .cmz files) from versions earlier than V4.0. This ability is provided to ensure that macros that have been developed in previous versions can still be executed unchanged.

After invoking the MACRO PLAYBACK function you must supply the name of the script or macro file that is to be executed.

  • If no explicit file extension is provided then a .cmd extension is assumed and the old macro interpreter system is used.
  • If a .tcl extension is used then the script is passed through the TCL interpreter.
  • If a .cmd or .cmz extension is used then the old macro intepreter system is used.

During macro or script execution, the execution may be aborted by pressing the blinking icon that shows macro/script execution is in progress.