• 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. Issue with axlTriggerSet for double opening

Stats

  • Replies 1
  • Subscribers 17
  • Views 8348
  • Members are here 0
More Content

Issue with axlTriggerSet for double opening

mir0mik
mir0mik over 4 years ago

Hi,

I'm facing an issue with axlTriggerSet for detection of opening of a design. I have a simple code in allegro.ilinit to catch the design being opened - it just calls simple handling function..

---allegro.ilinit---

;Trigger for open design
load( "triggersHandler.il")
defun( dcaCM_openTrigger ( dcaCM_triggerData)
dcaTH_openDesign( dcaCM_triggerData)
)
axlTriggerSet('open 'dcaCM_openTrigger)

---triggersHandler.il---

;Function for design open trigger
defun( dcaTH_openDesign ( dcaTH_openDesignInput)
axlUIConfirm( "Design opened")
)

Usually, this works just fine, once the design is opened PCB Editor displays the confirmer window. However, If I open the old design (saved in 17.2) PCB Editor asks if I want to convert it and if I chose NO and then I open a different design the trigger function will be executed twice so I got two consequent confirmer window even though I opened just one design.

Any idea how to make sure that the confirmer is shown only if the design is truly loaded/opened?

Thanks a lot!

Miro

  • Cancel
  • Sign in to reply
  • mir0mik
    mir0mik over 4 years ago

    I've discussed this with COS, here updated code. It was a recurrence issue. The axlSetTrigger() actually returns if the callback function matches the actual call (second argument)...

    I hope this will help...

    ---triggersHandler.il---

    ;Function for design open trigger
    defun( dcaTH_openDesign ( dcaTH_openDesignInput)
    ;Check if the trigger correspond with the current function call (to handle recurrences)
    if( nthelem( 2 dcaTH_openDesignInput) != nil
    then
    axlUIConfirm( "Design opened")
    )
    )

    • 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