• 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. Custom IC SKILL
  3. How to implement a browse button in such a way that when...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 10970
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to implement a browse button in such a way that when user brows it can only pick the .cdl or .gds file extension..not other than that using skill?

saurabh96
saurabh96 over 4 years ago

How to implement a browse button in such a way that when user brows it can only pick the .cdl or .gds file extension..I have tried this way.

button_tech_data = hiCreateButton(
?name 'button_tech_data
?buttonText "Browse"
?callback "ddsFileBrowseCB(hiGetCurrentForm() 'tech_files \"\" '.cdlfileOnly)" )

while running in ciw window its showing error that .cdlfile is error

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    I've no idea why you've added '.cdlfileOnly - that has no special meaning and is an invalid value for the fourth argument to ddsFileBrowseCB. The filter argument is similar to that for hiCreateFileSeparatorField (although it must start with a *), with the ability to have multiple filters which are separated by a double semi-colon. So this does what you want, I think:

    ?callback "ddsFileBrowseCB(hiGetCurrentForm() 'tech_files \"*.cdl;;*.gds\")"

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • saurabh96
    saurabh96 over 4 years ago in reply to Andrew Beckett

    Thanks Andrew i got the error.

    while running in ciw am getting this warning info:-

    WARNING* (reader): string at line 1 was not terminated on EOF, '"' added
    at line 2 of string "...orm() 'tech_files "*.tvf
    "
    *WARNING* (reader): a '(' at line 1 was still unclosed on EOF, ')' added
    at line 2 of string "...rm() 'tech_files "*.tvf
    ""

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to saurabh96
    saurabh96 said:
    while running in ciw am getting this warning info:-

    Well, clearly you've made a typo, and given that you've not posted the code that actually produces that error, I'm afraid my psychic powers don't enable me to determine what you've mistyped.

    I might hazard a guess though that you've forgotten to put a backslash before an embedded quotation mark within the callback string.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • saurabh96
    saurabh96 over 4 years ago in reply to Andrew Beckett

    Oh,i got the error..Thanks Andrew for reply..my mistake for not posting in brief :))
    cheers!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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