lse_project
Run LASAL SCREEN engine operations on .lpr projects: inspect inventory, create projects, compile, download to panels, and apply changes such as merges, XML imports, translations, and theming.
Instructions
Run LASAL SCREEN (LSE) engine operations on a .lpr screen project via the LASALScreen COM automation: info (screens/windows/servers/text lists/languages/settings inventory), create (fresh project), compile (Runtime output folder), download to a panel (Download & Run), and apply_changes with granular operations: merge/fuse projects, export_xml/import_xml text round-trips, import_variables (CLASS 2 references), textlist_* translations, server_get_property/server_set_property (limits, unit, menu, state schema, hostname, …), bulk update_buttons/update_softkeys theming, settings_set (resolution/compiler/online), image_insert. The .lpr itself is binary — never edit it directly; use this tool or the editor. Supports async: true — the call then returns immediately with a jobId and you MUST poll check_job_status until it reports status completed/failed (the result is delivered there).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | With action 'download': start the screen runtime on the target after the transfer (Download & Run). | |
| save | No | With action 'apply_changes': save the project after the operations (set false for read-only exports). | |
| async | No | Run in the background: returns { status: 'pending', jobId } — poll with check_job_status. Default false. | |
| action | Yes | 'info' inventories the project (screens, windows, servers, text lists, languages, settings) read-only. 'compile' rebuilds the Runtime output folder. 'download' pushes the project to the panel (F6-equivalent) via the project's online settings. 'apply_changes' loads the project, runs the operations list, saves, and closes. 'create' generates a NEW empty .lpr project at lpr_path (screens can then be laid out in the editor; text lists/data can be prepared via operations). | |
| lpr_path | No | Full path to the .lpr project file. Omit to auto-detect from the selected project. | |
| timeout_s | No | Timeout override in seconds. | |
| connection | No | Download target, e.g. 'TCPIP:192.168.1.50'. Omit to use the station that owns the .lpr in the solution (its .lss target). | |
| operations | No | Ordered operations for action 'apply_changes'. Each has a 'type' field: compile | merge | fuse | export_xml | import_xml | export | import_variables | import_scl | textlist_import_file | textlist_import | textlist_create | textlist_add_text | textlist_set_text | textlist_get_texts | add_language | clear_languages | set_actual_language | update_buttons | update_softkeys | settings_set | image_insert | server_get_property | server_set_property |