|
Mach Modules Documentation
Lua Module API Documentation
|
Go to the source code of this file.
Functions | |
| GearShaperScreenV01 | LoadJob () |
| Screen entry point to load the last active job file on screen initialization. | |
| GearShaperScreenV01 | JobOpen () |
| Screen entry point to open a job file selected by the operator. | |
| GearShaperScreenV01 | JobClose () |
| Screen entry point to close the current job file. | |
| GearShaperScreenV01 | JobSave () |
| Screen entry point to save the current job file. | |
| GearShaperScreenV01 | JobSaveAs () |
| Screen entry point to save the current job to a new file path chosen by the operator. | |
| GearShaperScreenV01 | MachineScreenLowPriorityLoop () |
| Update job file name and path labels on the screen during the low-priority loop. | |
| GearShaperScreenV01 | MachineScreenUnloadScript () |
| Prompt the operator to save unsaved job changes before the screen script unloads. | |
| GearShaperScreenV01 | MachineScreenLoadScript () |
| Initialize screen state and load the last active job file on script load. | |
| GearShaperScreenV01 | EnableCutSections () |
| Enable or disable cut section panels based on the current cut count. | |
| GearShaperScreenV01 EnableCutSections | ( | ) |
Enable or disable cut section panels based on the current cut count.
Reads the cut count from pound variable #511 and enables the corresponding CutData panel controls on the screen. Panels for indices 0 through (cut_count - 1) are enabled, while panels for indices cut_count through 9 are disabled. If a named panel control does not exist on the screen, it is silently skipped.
| GearShaperScreenV01 JobClose | ( | ) |
Screen entry point to close the current job file.
Wraps GearShaperScreenV01._JobClose() in a protected call. If the inner function raises an error, displays an alarm message and returns without further action. On success, calls w.FunctionCompleted() to signal normal completion.
| GearShaperScreenV01 JobOpen | ( | ) |
Screen entry point to open a job file selected by the operator.
Wraps GearShaperScreenV01._JobOpen() in a protected call. If the inner function raises an error, displays an alarm message and returns without further action. On success, calls w.FunctionCompleted() to signal normal completion.
| GearShaperScreenV01 JobSave | ( | ) |
Screen entry point to save the current job file.
Wraps GearShaperScreenV01._JobSave() in a protected call. If the inner function raises an error, displays an alarm message and returns without further action. On success, calls w.FunctionCompleted() to signal normal completion.
| GearShaperScreenV01 JobSaveAs | ( | ) |
Screen entry point to save the current job to a new file path chosen by the operator.
Wraps GearShaperScreenV01._JobSaveAs() in a protected call. If the inner function raises an error, displays an alarm message and returns without further action. On success, calls w.FunctionCompleted() to signal normal completion.
| GearShaperScreenV01 LoadJob | ( | ) |
Screen entry point to load the last active job file on screen initialization.
Wraps GearShaperScreenV01._LoadJob() in a protected call. If the inner function raises an error, displays an alarm message and returns without further action. On success, calls w.FunctionCompleted() to signal normal completion.
| GearShaperScreenV01 MachineScreenLoadScript | ( | ) |
Initialize screen state and load the last active job file on script load.
Creates a new JobFile object assigned to GearShaperScreenV01.CurrentJob with a predefined pound variable range, overwrite enabled, and a header table defining the CSV column layout. After construction, calls GearShaperScreenV01.LoadJob() to restore the last job that was open before the screen was unloaded.
| GearShaperScreenV01 MachineScreenLowPriorityLoop | ( | ) |
Update job file name and path labels on the screen during the low-priority loop.
Called periodically by the low-priority screen loop. If a CurrentJob is loaded, retrieves the job's file name and full file path and sets the corresponding screen label controls ("JobFileNameText" and "JobFilePathText") to display the current values.
| GearShaperScreenV01 MachineScreenUnloadScript | ( | ) |
Prompt the operator to save unsaved job changes before the screen script unloads.
Called automatically when the screen script is being unloaded. If a CurrentJob is present, calls OptSaveChanges() to give the operator the opportunity to save any pending modifications before Mach4 closes or reloads the screen.