• 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. Custom IC SKILL
  3. How to get numbers/parameters from a user defined dialog...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 1957
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get numbers/parameters from a user defined dialog box

HaolinCong
HaolinCong over 3 years ago

Hi,

My goal is to automatically generate a Manhattan shaped circle ( using straight ver/hori line). To implement this, I implemented a menu and create a dialog box or window when I press it. I want to get the desired diameter from that dialog box and created the shape.

But I am stuck at how to create the space for user to input the diameter( a number) and pass to the code. 

Thank you very much,

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    It would rather help if you shared what you'd actually done - then it would be easier to give you an answer as to how to adapt the code to meet your needs.

    Did you really create a dialog box (e.g. with hiDisplayAppDBox) or did you create a form? What did you do?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • HaolinCong
    HaolinCong over 3 years ago in reply to Andrew Beckett

    Thank you. I tried to use a form and managed to implement what I want by:

    hiCreateAppForm(?name 'dia_form
                        ?fields list(hiCreateFloatField(?name 'diameter))
                        ?callback "drawJJ(CellViewId dia_form->diameter->value)"
                        ?buttonLayout '(Empty (OK "hiFormClose(hiGetCurrentForm())") (Cancel "hiFormCancel(hiGetCurrentForm())"))
                        )
                hiDisplayForm(dia_form)

    It is working. I got this by modifying a previous solution you gave to another question. Here I just have a minor question about what is the use of "Empty'?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • HaolinCong
    HaolinCong over 3 years ago in reply to Andrew Beckett

    Thank you. I tried to use a form and managed to implement what I want by:

    hiCreateAppForm(?name 'dia_form
                        ?fields list(hiCreateFloatField(?name 'diameter))
                        ?callback "drawJJ(CellViewId dia_form->diameter->value)"
                        ?buttonLayout '(Empty (OK "hiFormClose(hiGetCurrentForm())") (Cancel "hiFormCancel(hiGetCurrentForm())"))
                        )
                hiDisplayForm(dia_form)

    It is working. I got this by modifying a previous solution you gave to another question. Here I just have a minor question about what is the use of "Empty'?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to HaolinCong

    The buttonLayout would be much more simply achieved by using:

    ?buttonLayout 'OKCancel

    The Empty keyword is there so that you can start with no buttons and add some custom buttons/callbacks as you see fit. Since you've just replicated two of the standard buttons with the same names and callbacks, you might just as well use the OKCancel layout in the first place.

    Kind Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • HaolinCong
    HaolinCong over 3 years ago in reply to Andrew Beckett

    Thank you very much.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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