• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Pausing Dialog Boxes for User Input

Stats

  • Replies 0
  • Subscribers 158
  • Views 12193
  • Members are here 0
More Content

Pausing Dialog Boxes for User Input

kgraves
kgraves over 16 years ago

I am modifying a Skill routine from a previous employee that is a post processing routine and need some help. The Skill Routine is set to generate gerber files, drill files, etc. automatically. It launches windows when started, such as the Manufacturing -> Artwork dialog box, fills in values and then exits, brings up the next window, fills in values and exits, etc.

My question is how can I stop/pause say the Artwork window in a skill routine to allow the user to change something (check/uncheck a box for example) and not continue until they click OK? I have only been successful in getting the dialog box to pause so you can look at it but any mouse click or key press continues the process.

Here is a portion of the code that creates a gerber.scr file which is then called by " axlShell("replay gerber.scr")"

 

 defun( generateGerber ()
    fileptr = outfile("./gerber.scr")
    fprintf(fileptr "setwindow pcb\n")
    fprintf(fileptr "status \n")
    fprintf(fileptr "setwindow form.status\n")
    fprintf(fileptr "FORM status display_enhance YES \n")
    fprintf(fileptr "FORM status done\n")
    fprintf(fileptr "setwindow pcb\n")
    fprintf(fileptr "artwork\n")
    fprintf(fileptr "setwindow form.film_control\n")
    fprintf(fileptr "FORM film_control gerber_rs274x YES\n")
    fprintf(fileptr "FORM film_control format_int_places 2\n")
    fprintf(fileptr "FORM film_control format_dec_places 4\n")
    fprintf(fileptr "FORM film_control select_all  \n")

fprintf(fileptr "FORM film_control create  \n")

fprintf(fileptr "FORM film_control OK\n")

    fprintf(fileptr "setwindow pcb\n")
    close( fileptr)
);defun


Thanks
  • Sign in to reply
  • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information