• 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. Code/Command to Differentiate Between 17.2 and 16.6

Stats

  • Replies 2
  • Subscribers 18
  • Views 1273
  • Members are here 0
More Content

Code/Command to Differentiate Between 17.2 and 16.6

EMperson
EMperson over 7 years ago

I need to code a solution that can tell if a symbol was created in Cadence 16.6, or 17.2. Is there a SKILL function that can do that? Or some other command?

  • Cancel
  • Sign in to reply
Parents
  • B Bruekers
    B Bruekers over 7 years ago

    In the original psm (or bsm,ssm) files there is an version id. Perhaps you can use this? 

    It is located in the file at offset 251, and then 5 characters. A possible way to extract this :

    dir = "c:/library"
    l_f = pcreMatchList(pcreCompile(".ssm|.psm|.bsm" 1) getDirFiles(dir))
    t_file = makeTable("file" nil)
    foreach(f l_f p = infile(strcat(dir "/" f)),for(i 1 251 getc(p)),for(i 1 5 t_file[f]= cons(getc(p) t_file[f])),close(p))
    foreach(item sort(t_file->? nil) axlMsgPut("%s: %L" item buildString(reverse(t_file[item]) "")))

    Kr, Bram

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • B Bruekers
    B Bruekers over 7 years ago

    In the original psm (or bsm,ssm) files there is an version id. Perhaps you can use this? 

    It is located in the file at offset 251, and then 5 characters. A possible way to extract this :

    dir = "c:/library"
    l_f = pcreMatchList(pcreCompile(".ssm|.psm|.bsm" 1) getDirFiles(dir))
    t_file = makeTable("file" nil)
    foreach(f l_f p = infile(strcat(dir "/" f)),for(i 1 251 getc(p)),for(i 1 5 t_file[f]= cons(getc(p) t_file[f])),close(p))
    foreach(item sort(t_file->? nil) axlMsgPut("%s: %L" item buildString(reverse(t_file[item]) "")))

    Kr, Bram

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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