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:
PythonApiExamples.addon
- 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:
PythonApiExamples.addon
- 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
- 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 Add-on settings permanently and restore them after restarting the Add-on. Access Add-on 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 Add-on specific workspace.
- How-to:
- Keywords:
addon, add-on, toolbar, menu, tab, working area, workarea, workspace
File system access
- 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:
PythonApiExamples.addon
- 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:
PythonApiExamples.addon
- Description:
Implement code tests for Add-ons.
- How-to:
- Keywords:
test, testing, unit testing, test automation, add-ons, addons
Project keywords
- Template:
PythonApiExamples.addon
- Description:
Read and write project keywords.
- How-to:
- Keywords:
read, write, access, get, set, project keywords
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