Skip to main content

Hello Community,

I am trying to write a macro to change the aperture type of surfaces. In the macro as i am trying to give the user a hint on the code (0-10) for the surface types, my INPUT statement is getting too long ( third line on the attached file). How can i write this INPUT statement in multiple lines. Is there any other way to do it ?

I have attched the .txt file and would appreciate your help. Thanks in advance.

Hi Jacob,

If you are keeping the ZPL output window opened, I would suggest putting your hints as PRINT lines.  You can then go into even more detail about what you’re looking for.  If you don’t want the hints to be part of the final report, you can use the REWIND keyword as well:

INPUT " Enter Start Surface :", s
INPUT "Enter End Surface :", e
PRINT "0 = None"
PRINT "1 = Circular Aperture"
PRINT "2 = Circular Obscuration"
PRINT "3 = Spider"
PRINT "4 = Rectangular Aperture"
PRINT "5 = Rectangular Obscuration"
PRINT "6 = Elliptical Aperture"
PRINT "7 = Elliptical Obscuration"
PRINT "8 = User Aperture"
PRINT "9 = User Obscuration"
PRINT "10 = Floating Aperture"
INPUT "Enter Aperture Type", a
FOR i = 0, 10, 1
REWIND
NEXT

Otherwise, I would simply use abbreviations for words like Rect., Ellp.Ap.Obs.


Hi MichaelH,

Thanks for answering. So i believe we cannot split a statement into multiple lines in ZPL. 

 

 


Reply