Show code of image analysis setting

Share your programming ideas for various measurement and analysis tasks here
Post Reply
user-4
Posts: 397
Joined: Thu Jan 01, 1970 1:00 am

Show code of image analysis setting

Post by user-4 »

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)
##
#######################################################
Post Reply