run_class2_script
Execute arbitrary Python 2.7 batch statements against the loaded LASAL project for batch API calls not covered by apply_project_changes; save changes explicitly.
Instructions
Escape hatch: run arbitrary Python 2.7 batch statements through Lasal2.exe (module batch, project prj in scope). Use for batch API calls not covered by apply_project_changes; the project is NOT saved automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Optional arguments exposed to the script as sys.argv[1:]. Default []. | |
| lcp_path | No | Absolute path to the .lcp file. Omit to use the currently selected project. | |
| script_body | Yes | Python 2.7 statements executed inside the CLASS 2 batch context. `batch` (sigmatek.lasal.batch) and the loaded project `prj` are in scope; the project is closed afterwards (call batch.Save(prj) yourself if the change must persist). Example: batch.Compile(prj, batch.CompileOptions.BuildChanges) |