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