• 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. DBIDs and 16.2

Stats

  • Replies 3
  • Subscribers 160
  • Views 13188
  • Members are here 0
More Content

DBIDs and 16.2

dgstan
dgstan over 16 years ago

Hi guys,

I'm having some issues with our migration to 16.2. I've got several SKILL programs that will query the database and select a group of DBIDs. The new version seems to be refreshing the DBIDs at will for no reason whatsoever.

For example:

1. Get a list of all the DBIDs for all DRC violations.

2. Populate a form with info extracted from those DBIDs (drc->name / drc->xy, etc.). This works as usual.

3. Select an item from the list in the form, which points back to that DBID. But, the system says that DBID doesn't exist anymore.

 The database does not get modified in any way between the population of the form and the selection of the item in the form. There's no reason for the tool to refresh the DBIDs. These programs all worked fine in 15.7.

 Has anyone else seen this?

  • Sign in to reply
  • Cancel
  • GregC
    GregC over 16 years ago

     I was having similar problems when 16.0 first came out.  It was an issue with preselction being turned on.  Try turning off preselection then test your code.  The only other thing to try would be to use axlDBRefreshId.

    Greg...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 16 years ago

     Change your code to prevent the your program from returning to Allegro until the form is closed. See

           <cdsroot>\share\pcb\examples\skill\cmds\cns_design.il

    Create a function similar to _AcDesignEvent and call it immediately after you display your form. You also need to call the axlCancelEnterFun in your form's callback handler if the form is closed via a form operation.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dgstan
    dgstan over 16 years ago

    All the code has been rewritten, that's not the problem. The issue is that our SKILL programs are not backward compatible. I'm really surprised that this hasn't come up before. I'm usually way behind the curve.

     Here's what Cadence themselves had to say about it:

    *Problem:

    My SKILL code that worked in previous releases no longer works in 16.0. The
    axlShell function appears to remove the dbids.

    *Solution:

    As indicated in the documentation for axlShell "This function might not be portable
    across Allegro PCB Editor releases."
    In this particular case the problem is a result of the new Application Mode that
    is available in the 16.0 release.
    If you run with pre-selection mode enabled then dbids will be removed even with
    immediate commands called from axlShell because the pre-selection operation is
    restarted after every command.
    In order to allow your code to run in 16.0 you can disable pre-selection by
    selecting Setup > Application Mode > None. However it should be noted that this
    may not work for all cases.
    • 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