Code: Select all
#######################################################
## M E A S U R E M E N T A N D A N A L Y S I S
##
## Macro name: show code of image analysis setting
## Required files: MyAnalysisSetting.czias
##
## LOAD IMAGE ANALYSIS SETTING,
## SHOW CODE IN WINDOW
##
#######################################################
##
##
## Remove all open documents
Zen.Application.Documents.RemoveAll()
##
##
## Define image analysis setting
## Load an existing analysis setting
ias = ZenImageAnalysisSetting()
ias.Load('MyAnalysisSetting')
## Show code of the setting
codeText = ias.GetCode()
Zen.Windows.Show(codeText)
##
#######################################################