Jump to content

Recommended Posts

I am self-taught on most of my Python knowledge. Through trial and error, and lots of Google I have been able to make things work. I'm to a point where I need to figure out loops. The copy, paste, and replace method is no longer feasible. Due to my limited understanding of Python, I am struggling to make the loops make sense. Essentially what I am trying to do is have a dialog box open, Imput the number of times I want a certain set of functions to loop, and then it to run. Also within the certain set of functions is an export. I am wanting it to loop as well and add a number each time it exports. (Example Export_1 = first time loop ran, Export_2 2nd time loop ran, and so on... I have attached a very basic .py file showing an example of what I'm trying to do. Any help would be appreciated.

TEST.py

Link to comment
https://qualityforum.zeiss.com/topic/3417-beginners-help-on-for-loops/
Share on other sites

Hi,

every tutorial for python will work, we have one free course in the training center. 
For dialogs and scripting in our software we have articles in the techguide and on github:

ZEISS Quality Tech Guide
GOM Inspect Add-On Development Documentation — Add-On Documentation documentation (zeissiqs.github.io)

Nanno

×
×
  • Create New...