• 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. Not able to close a form

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14140
  • 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

Not able to close a form

vishwas H A
vishwas H A over 5 years ago

Hi,

I am trying to write a skill code where it takes form inputs by default and just displays tree directly.

i have written below code,

procedure( create_tree()
let(()

leHiTree()
leTreeForm->treeOption->value="Current to user level"
leTreeForm->userLevel->value= 31
ipcSleep(1)
hiFormDone(leTreeForm)

))

the form takes in values but it is not closing.

tried with regtimer in place of ipc sleep, didn't work.

how to close form(should be same as pressing OK)? 

Thanks in advance,

vishwas 

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

    Hi Vishwas,

    The issue is that the leHiTree() function is blocking, and so you have to enqueue (or use hiRegTimer with 0) the commands to manipulate the form before the command is launched:

    procedure(CCFcompleteTreeForm()
        leTreeForm->treeOption->value="Current to user level"
        leTreeForm->userLevel->value=31
        hiFormDone(leTreeForm)
    )
    
    procedure(CCFcreateTree()
        hiEnqueueCmd("CCFcompleteTreeForm()")
        ;hiRegTimer("CCFcompleteTreeForm()" 0)
        leHiTree()
    )
    

    Alternatively, you could use the code in this article instead: How to print a hierarchy tree of a config based schematic, normal schematic or layout view? (note you need to use the ?useViewSwitching nil for a layout). Depends on whether you want the window displayed or not as to which makes most sense.

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    Hi Vishwas,

    The issue is that the leHiTree() function is blocking, and so you have to enqueue (or use hiRegTimer with 0) the commands to manipulate the form before the command is launched:

    procedure(CCFcompleteTreeForm()
        leTreeForm->treeOption->value="Current to user level"
        leTreeForm->userLevel->value=31
        hiFormDone(leTreeForm)
    )
    
    procedure(CCFcreateTree()
        hiEnqueueCmd("CCFcompleteTreeForm()")
        ;hiRegTimer("CCFcompleteTreeForm()" 0)
        leHiTree()
    )
    

    Alternatively, you could use the code in this article instead: How to print a hierarchy tree of a config based schematic, normal schematic or layout view? (note you need to use the ?useViewSwitching nil for a layout). Depends on whether you want the window displayed or not as to which makes most sense.

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • vishwas H A
    vishwas H A over 5 years ago in reply to Andrew Beckett

    Thanks for quick reply Andrew, it worked like a charm :)

    • 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