• 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. Problem with scripts that require file browsers

Stats

  • Replies 11
  • Subscribers 159
  • Views 17355
  • Members are here 0
More Content

Problem with scripts that require file browsers

mikebystedt
mikebystedt over 11 years ago

Does anyone know of a workaround that would allow a script or axlShell() commands to select and populate a
file browser if it pops up?  It seems that the file browser form isn't recgonized.  So therefore no data can be entered.

Specifically, after doing a File->Import and running, a summary report pops up with the details.  When I select "Save",
a browser window pops up, but during Replay, the window is never selected, the filename never entered, and I can't
save the file.

I'm sure that someone else has encountered this at some point.  Any suggestions?

Is there some sort of default FORM name that I could refer to that isn't being output to the script file during a Record session?

Thanks, -Mike 

  • Cancel
  • Sign in to reply
  • oldmouldy
    oldmouldy over 11 years ago

    Try commenting out the "fillin" in the script, add a "#" to the beginning of the line. Without a fillin value provided, the "Save As" will wait for input. (At least it did for my test!)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mikebystedt
    mikebystedt over 11 years ago

    Thanks,

    I'm not quite understanding how this would help during a -nographic script run though.
    It's not interactive at all.

    The issue seems to be that I need to be able to "setwindow" to the browser window, and know
    what the FORM name is.  Using the record and replay functionality, there isn't anything there.
    I'm seeing a generic "setwindow text" which doesn't work at all.

    Still looking for hints.  Below script doesn't work. It just leaves the File Browser empty and hanging.
    This is a literal Record session.

    Any other suggestions are GREATLY APPRECIATED!

    Thanks All, -Mike 



    -----------------------------------------------------------------------------------------

    setwindow pcb

    trapsize 1876380

    generaledit

    netin 

    setwindow form.niparams

    FORM niparams import  

    setwindow pcb

    setwindow text

    save

    fillin "MIKEtest.txt"

    setwindow text

    close

    setwindow form.niparams

    FORM niparams cancel  

    setwindow pcb

    generaledit  

    -------------------------------------------------------------------------------------------------------- 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • oldmouldy
    oldmouldy over 11 years ago

    OK, "nograph(ic)" is not interactive at all. IF I run script in interactive mode, having no "fillin" value for the "save" / "save as" waits for a value for the filename to save, with a "fillin" the file gets saved as that name and the script completes - "replay <script_file>" at the command window. Maybe this was changed at some point, which exact version are you running?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mikebystedt
    mikebystedt over 11 years ago

    I'm running Allegro 16.6 for windows.

    If you've got a script you could post or send that handles those browser windows properly,
    I would really appreciate it.

    Thanks oldmouldy.

     -Mike 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • oldmouldy
    oldmouldy over 11 years ago

    First off, you will only be able to use the "save", or "saveas" in interactive mode. When you use "something like" "save" or "saveas" the "fillin" step puts the value in the browser window and closes it, so it will then "always" save(as) to the same filename. If you don't have a "fillin value" step the "save" / "saveas" will wait for user input for thje filename. If you want to have a script that changes the "fillin value" based upon "some other variable when it runs", you will need to take a look at the SKILL forum, there was recently a post from eDave where he had a SKILL script that wrote an Allegro script and then replayed that from the SKILL script. I would post the link but this post would be moderated as a result.

    • Cancel
    • Vote Up 0 Vote Down
    • 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