• 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. dbid removed

Stats

  • Replies 3
  • Subscribers 159
  • Views 13597
  • Members are here 0
More Content

dbid removed

B Bruekers
B Bruekers over 11 years ago

Hi all,

I've made some code that copies the dbid's of the symbol definitions to a global list (copy(axlDBGetDesign()->symdefs)) because i need to sort the list. After sorting the name of the symb. definitions are shown in a grid on a form. 

Now when my skill is started from the skill prompt everything works well. dbid's are stored in the list, shown in the grid and even after i closed the skill code the list contains valid dbis.

However when I registrate the skill command with axlCmdRegister (interactive) the dbid's are copied in the list, sorted and shown OK on the form. But right after this the dbid's are 'removed'. 

I've putted some pp() statemens in my main procedure, just before it ends the list contains valid dbid's. When I request the list at the skill command prompt it shows me 'dbid:removed'.

So shortly, code works fine when started from skill prompt, but when started from allegro prompt the dbid's are removed right after the main procedure has finished. If I then restart the code it shows me the exact same dbid's as previously, so they are not removed from the db.

What's going on here?

Thanks. 

Bram Bruekers

  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 11 years ago

     While the form is open, you do not want to return control to Allegro's main UI loop. You can resolve this by adding code similar to the example code in:

    <cdsroot>/share/pcb/examples/skill/cmds/cns-design.il

    • Duplicate functon _AcDesignEvent() and call it after you display your form (axlFormDisplay)
    • In your form's callback handler add a axlFinishenterFun() call to any curField event where you close your form
    Alternatively declare your form to be blocking.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • B Bruekers
    B Bruekers over 11 years ago

     Hi fxffxf,

     I've tried the blocking function from the cns-design.il and it works!  

    Still to figure out what axlEnterEvent('(PICK) "" nil) does exactly to understand the mechanism better. 

    Thanks for you help!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Mehar
    Mehar over 9 years ago
    This worked very well. Thanks!
    • 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