Scripting solutions
Abstract: Starting with a blank editor window is always hard. Therefore we have collected a set of solutions for common scripting tasks.
Scripted elements
- Template:
 - Description:
 Interactive creation of a geometrical element in an application specific way.
- How-to:
 - Example Documentation:
 - API Documentation:
 - Keywords:
 element, interactive, dialog, input, point, function, parameters, calculation
Scripted checks
- Template:
 - Description:
 Interactive creation of a geometrical element in an application specific way.
- How-to:
 - Example Documentation:
 - API Documentation:
 - Keywords:
 scalar, curve, surface, inspection, check, comparison, tolerance
Stages
- Description:
 Access a set (ZEISS INSPECT) or sequence (ZEISS INSPECT Correlate) of actual data.
- How-to:
 - Keywords:
 set, samples, series, sequence, correlate
Dialog
- Template:
 - Description:
 Create a dialog window and the required Python code.
- How-to:
 - Keywords:
 dialog, gui, graphical user interface, widgets, window, input, output, display
Element selection
- Description:
 Select elements from the Explorer.
- How-to:
 - Keywords:
 element, selection, choice, choose, search, find
Settings
- Template:
 - Description:
 Save App settings permanently and restore them after restarting the App. Access App settings from ZEISS INSPECT preferences dialog.
- API Documentation:
 - Keywords:
 settings, configuration, state, save, store, restore, load, retain, persistent
Workspace
- Template:
 Workspace Editor Tools
- Description:
 Create an App specific workspace.
- How-to:
 - Keywords:
 addon, add-on, app, toolbar, menu, tab, working area, workarea, workspace
File system access
- Template:
 - Description:
 Access folders and files from scripts.
- How-to:
 - Keywords:
 file, folder, directory, path, extension, disk, file system, file browser, file access
Element data interface
- Template:
 - Description:
 Access internal data element data structures, e.g. arrays of coordinates.
- How-to:
 - Keywords:
 element, data structures, coordinate, voxel, vector, array, matrices, matrix, numpy
Test framework
- Template:
 - Description:
 Implement code tests for Apps.
- How-to:
 - Keywords:
 test, testing, unit testing, test automation, add-ons, addons, apps
Project keywords and CSV export/import
- Template:
 - Description:
 Read and write project keywords from/to CSV file.
- How-to:
 - Example Documentation:
 - Keywords:
 read, write, access, get, set, project keywords, export, import, csv
Element filter
- Description:
 Filter elements by attributes.
- How-to:
 FAQ: How do I filter nominal, actual or inspection elements?
- Keywords:
 elements, attributes, properties, key, value, filter