apply_visu_changes
Apply changes to VISUDesigner projects by running ordered operations like station updates, text management, and property edits. Automates headless project modifications and saves.
Instructions
Apply changes to a VISUDesigner (.lvp) project using the headless VISUDesigner API. Kills any running VISUDesigner first, runs the operations as a Python 3.12 script, then saves and closes. Supports: update_all_stations, update_station (single station by number), publish, text list/text management (add/remove/change/set_revisions), CSV import/export for translations, datapoint/datatype property editing, scheme management (add/remove/configure entries), media items (images, video, audio, docs, fonts), code modules, and HMI download. Run 'update_all_stations' or 'update_station' after CLASS 2 channel changes to sync datapoints into the VISUDesigner project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lvp_path | No | Full path to the .lvp project file. Omit to auto-detect from the selected project (fails if multiple stations). | |
| operations | Yes | Ordered list of VISUDesigner operations. Each has a 'type' field. The project is loaded, all operations are applied, then saved and closed. Available types: update_all_stations | update_station | publish | add_text_lists | remove_text_lists | add_texts | remove_texts | change_texts | change_component_texts | set_text_list_revisions | set_component_text_list_revisions | csv_export_text_lists | csv_import_text_lists | csv_export_component_text_lists | csv_import_component_text_lists | set_datapoint_properties | set_datatype_properties | add_schemes | remove_schemes | add_scheme_entries | remove_scheme_entries | move_scheme_entries | set_scheme_inputs | set_scheme_properties | set_scheme_entry_properties | add_media_items | remove_media_items | add_code_modules | remove_code_modules | update_property_values | download |