• 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. Open (run, launch) program (a single .exe file) using form...

Stats

  • Replies 1
  • Subscribers 158
  • Views 12726
  • Members are here 0
More Content

Open (run, launch) program (a single .exe file) using form button (SKILL Cadence).

abrusil33
abrusil33 over 10 years ago

I would like to open calculator (a single .exe file) using the form button.

i.e: I need to assign the calculator (stand alone) program to one of the form buttons.

I have my form built already, don't know the axl.... command yet.

Used the template below, but can't figure out what "Handle" means (MyFormHandle) and what exactly to type..

I tried to use this code with my working form which uses (gensym) method, but got lost.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

axlFormCreate takes a global symbol as its first argument.
Many programmers use the Skill’s ”gensym” function to dynamically generate a
symbol. If you want only a one instance of the form open then it is better to ICU 2004 13 use a global symbol. The following template shows how a form should be opened.  If you make MyFormHandle a local variable, instead of global and then invoke Skill’s garbade collector via the “gc” call form will close.

; NOTE: Change all instances of the “MyForm” prefix to the prefix
; you plan on using for your program.
;; init global form handle to nil

unless(boundp(MyFormHandle) MyFormHandle = nil)

;;
;; This is a good example on how to program a form.
procedure( MyForm(fw)

prog( (position) ; need to do this since have a return
;; Good pratice, if form is open expose it and return
(cond (fw
(axlUIWExpose fw)
(return fw)
)
)
position = '("CENTER" "msglines" 1)
;; create a form handle, position form and set-up mode
fw = axlFormCreate('MyFormHandle "MyFormFile" position
'MyFormCallback t nil )
; Initialize the fields in the form
MyFormUpdate(fw)
;; Last thing to do is display the form
axlFormDisplay(fw)
)
)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

So, two questions:

1. Open calculator using form button

2. Keep only one instance of the form on the screen.

Thanks you genius.

  • Sign in to reply
  • Cancel
  • abrusil33
    abrusil33 over 10 years ago

    So, two questions:

    1. Open calculator using form button

    2. Keep only one instance of the form on the screen.

    Thank you genius.

    • 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