• 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 Scripting - Skill
  3. Remember last browse location without changing CWD using...

Stats

  • State Verified Answer
  • Replies 6
  • Subscribers 17
  • Views 1382
  • Members are here 0
More Content

Remember last browse location without changing CWD using axlDMFileBrowse()

SambaKantipudi
SambaKantipudi 6 months ago

Hello All,

I have a skill that interacts with form to select .art films.

I would like the skill to remember the last browse location without changing the current working directory, until the form is closed.

 (case (myform->curField)
  ("artTopBrowse"
   artFilmTop = axlDMFileBrowse("ALLEGRO_PHOTOPLOT" nil)
   (when artFilmTop
     axlFormSetField(myform "artTop" artFilmTop)
   )
  )
)

After reviewing the algroskill.pdf, I passed ?noSticky t to the axlDMFileBrowse, but for some reason, it didn't work. Adding ?directorySet t also didn't help.

Does anyone have a solution for this?

Thanks

BR

Samba

  • Sign in to reply
  • Cancel
  • mahimag
    0 mahimag 6 months ago

    Hello SambaKantipudi , File browser normally remembers the directory from the previous invocation. 

    g_noSticky, If t, then it starts the browser in the current working directory. So, if you want the browser to remember last location, you do not need to set this.

    How does it behave without this option? Does it still open the current working directory?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • SambaKantipudi
    0 SambaKantipudi 6 months ago in reply to mahimag

    Hello Mahimag,

    Thanks for reaching out.

    artFilmTop = axlDMFileBrowse("ALLEGRO_PHOTOPLOT" nil), I currently use this.

    This always open the current working directory. It doesn't remember the directory from the previous invocation.

    BR
    Samba

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mahimag
    0 mahimag 6 months ago in reply to SambaKantipudi

    can you check for the variable new_filedialog_disable? If this is not set, you get the option of "change directory" in the browser and once you do it, it will remember the change.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • SambaKantipudi
    0 SambaKantipudi 6 months ago in reply to mahimag

    The variable new_filedialog_disable was not set.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • SambaKantipudi
    0 SambaKantipudi 6 months ago in reply to SambaKantipudi

    I am running in Linux.

    Are you running on Windows?

    If you can confirm, it's working well on Windows, I would raise a CCR on this.

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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