• 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 17360
  • 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
  • mikebystedt
    mikebystedt over 11 years ago

    Thanks oldmouldy,

    But the problem I believe I'm looking at, is not so much that the "fillin value" needs to be dynamically tweaked,
    but that I can't actually get a handle to the browser window.  

    I'm actually attempting to record a script, then issuing the specific statements I want through
    axlShell() commands directly in a SKILL file.  I can't do a fillin whatsoever if I can't set the browser window to get
    ready to accept a value of any sort at all.  The method of sending out the commands, whether via a replay script
    or axlShell() calls, is just a programming decision.  However, neither method will work if I can't get a window handle
    for the "set window" command. Recording the script and reviewing, shows the "fillin" lines, but no window handle to set
    so that it can get the data loaded in correctly.

    So even the simplest of records and replays doesn't work if accessing the file browser is part of the equation.

    Is there some sort of standard handle for this sucker?  So that I can make the file browser the active window, and then
    do whatever I need to?  It's almost like the file browser window is completely invisible, although the commands thrown
    at it are still being recorded.

    Thanks,

    -Mike 

     

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

    You can't get a handle on the browser window because all it does is provide the "fillin" value. For example, if the "save" / "save as" command in the script is followed by a "fillin" command, the browser window won't appear because save / save as already has the answer needed in the "fillin value" for the script to proceed, if it is not followed by a "fillin" command, the script waits for the user to provide the "fillin" value through the file browser window. So, what you need to manipulate is the "fillin value", unless you want no "fillin" command and the user prompted for input through the file browser window. You cannot manipulate the file browser window but you can manipulate the answer that would have come from it with the "fillin value"

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

    If writing a Skill program you look at axlDMFileBrowse which will invoke a file browser and give you control over most of the features available with the browser. For allowing a user to select a directory you can use axlDMDirectoryBrowse.

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

    Thank you Gents for the feedback.

    I've used the file browsers in my SKILL code.

    My main problem though, is that I've been trying to save the report that is generated after doing a "File->Import".
    The report pops right up and is shown in an .htm based window, but when I hit "Save" I can't do anything with it.

    I simply want to save the data somehow.  

    I'm not seeing an option to actually capture it

    Is there a standard location where the "temp" files are kept with a standard naming convention?
    I'm assuming that there is a generated report that is being referenced and loaded into the htm file viewer.
    If I can locate that, I could simply copy the file.  That would work as well.

    Thanks,

     -MIke  

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

    Normally these are logfiles created during the import/export operation. Except for Cadence import logic which creates a netrev.lst, the files have a .log extension. The easies way to determine the name is to open a Windows File Explorer in the directory with the board,enable list file and sort by Modified date with the most recent date at the top of the window. Run the Allegro Import/export operation. The .log (or netrev.lst) file that appears at top of the Windows Explorer is the file you want.

    • 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