• 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. How to store components location

Stats

  • Replies 2
  • Subscribers 160
  • Views 12702
  • Members are here 0
More Content

How to store components location

eDaNoy
eDaNoy over 13 years ago
Hello everyone, please help me store the value of the components location. for example. i want to get the components name layer and location. compName=dbid->name _layer=dbid->symbol->ismirror ("NO" for top and "YES" for bottom") _xy=dbid->symbol->xy cmbString=strcat(compname ";" _layer ";" _xy) i get an error on arguments #5, it says it should be string or symbol... please help, all of the variable holds a value, but when joining them using strcat it gets an error on the _xy which is the location...
  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 13 years ago

     _xy is a list of floats so you need to convert it to a string which a sprintf can do with a %L conversion spec:

         cmbString=strcat(compname ";" _layer ";" sprintf(nil "%L" _xy))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • GIL2004XP
    GIL2004XP over 13 years ago

    An alternate solution is to make use of the File>Export>Placement Command which can then be run on axlRunBatchDBProgram or shell function using command line "plctxt out"

    • 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