• 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. Help in axlFormCreate

Stats

  • Replies 4
  • Subscribers 160
  • Views 14919
  • Members are here 0
More Content

Help in axlFormCreate

luanvn81
luanvn81 over 5 years ago

Hi all!

I have a problem with my form code as below.

here my code 

axlCmdRegister( "testfm" `get_database )
(defun get_database ()
axlSetFindFilter(?enabled '(noall VIAS NAMEFORM) ?onButtons '(noall VIAS))
axlVisibleDesign(nil)
axlVisibleLayer("VIA CLASS" t)
axlClearSelSet()
AllVias_check = axlGetSelSet(axlAddSelectAll())
axlClearSelSet()
test_frm()
);end defun

form = nil
(defun test_frm ()
Out_File_Form = outfile("./test_frm.form" "w")
.........
close(Out_File_Form)
form = axlFormCreate((gensym) "test_frm.form" nil '_form_Action t)
axlFormAutoResize(form)
axlFormDisplay(form)
);end defun form main

(defun _form_Action (form)
case(form->curField
("start"
printf("test %L\n", AllVias_check)
);end case start
...........
);end case all
);end defun

The problem occur when I click on Start button, variable "AllVias_check" return dbid: removed. But if I change  '_form_Action t  into '_form_Action nil  variable "AllVias_check" return list of dbib.  Please help me to understand it.

  • Cancel
  • Sign in to reply
Parents
  • leto
    leto over 5 years ago

    Hello Luan,

    Maybe the non-blocking form allows some other process that clears the dbid.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • luanvn81
    luanvn81 over 5 years ago in reply to leto

    Hi Leto!

    You are right, the non-blocking form cause the dbids are  cleared. And my code works.

    Thank you.

    Luan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • luanvn81
    luanvn81 over 5 years ago in reply to leto

    Hi Leto!

    You are right, the non-blocking form cause the dbids are  cleared. And my code works.

    Thank you.

    Luan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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