Using Legato

The Legato Scripting Language and the IDE are included in all installations of GoFiler Complete. You may also download the Legato Interpreter for free as a standalone package below.

This package will allow you to run Legato scripts from a command line. Legato is free for development for personal or non-commercial use. By downloading Legato Basic, you agree to the Terms and Conditions of its use.

Download 32-bit   Download 64-bit

This package will allow you to write, debug and run Legato scripts from an IDE. Legato is free for development for personal or non-commercial use. By downloading Legato IDE, you agree to the Terms and Conditions of its use.

Download 32-bit   Download 64-bit
Legato Release Notes
Version 1.6k (09/14/2026) / GoFiler 6.6a

1.0 Legato IDE and Script Language

1.1 IDE Improvements

Dialogs

–   Added logic to deal with incomplete dialog style for the Test Dialog extension tool. In the previous version, it was possible to code a dialog that would result in the application appearing to crash or hang if WS_POPUP or WS_VISIBLE style bits were not present. The tool now detects the inconsistency and gives an option to continue with a default dialog style.

Debugging

–   Added the key name values to the inspector for cube dimensional variables to the C (Z) axis (planes) combo drop box control.

–   Corrected an issue when inspecting cube data where the legend for the last row in the data control was sometimes not repainted, leaving what would look like stale data.

1.2 SDK Improvements

–   Improved and expanded the SDK documentation for the PoolAppendAsPCData function.

–   Added additional related functions to the ANSITextToXML function.

–   Made an adjustment to definitions and terminology to the predefined dimension names in the SDK AXIS_X, AXIS_Y and AXIS_Z to AXIS_A, AXIS_B and AXIS_C, respectively. This is to avoid confusion with chart points. The change was made to the SDK documentation and supporting .h file. Previous definitions for AXIS_X, AXIS_Y and AXIS_Z remain in the SDK for backward compatibility.

1.3 Script Engine Improvements

General

–   Added minor logic to ignore the ‘L’ long designator to numeric literals. This has zero impact on Legato but allows code to be copied from C++ and other languages that allow such designation.

Resource Compiler

–   Adjusted the resource dialog compiler to allow for control style values as numeric values.

1.4 API Function Improvements

SGML

–   Added the option to provide a string representation of a value to the SGMLValueToTWIPS function as well as a formatted pvalue (a formatted dword). Updated and improved SDK documentation.

Error Processor

–   Changed the SetLastError function not to have a run time error (RTE) if the message buffer overflows. The function will return an ERROR_OVERFLOW code (not setting the last error) and continue. The message will be truncated to the size of the internal last error message buffer (256 bytes) and execution will continue.

Strings

–   Minor changes were made in error reporting behavior for the PoolWriteFile function. It was returning an error if the pool was empty while still creating an empty file (it was reporting ERROR_EOD indicating no data was written). The function will now return ERROR_NONE if the pool is empty and an empty file was created/written.

1.5 New API Functions

Data Table

–   DataTableCreateObject — Create a Data Table Object and optionally load a table.

–   DataTableGetCell — Retrieves the content of a specified cell within a Data Table Object.

–   DataTableGetColumnCount — Returns the number of columns for the loaded Data Table Object.

–   DataTableGetRowCount — Returns the number of columns for the loaded Data Table Object.

–   DataTableToTable — Translate CSV to table via a Data Table Object.

 

Our website uses cookies to give you the best user experience on our website and to help us deliver our services. By using our services, you agree to our use of cookies. Click here for more information.
OK