• 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 add the skill code to banner menu of layout window...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 15973
  • 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 add the skill code to banner menu of layout window by giving the input as the path

Sri Charan B
Sri Charan B over 13 years ago

 Hi,

I have got a code written to add the banner menu(like the File, Edit etc.,) but the problem i am facing here is that i need to add the whole skill codes which i want them to be added in that pull down menu, the following is the code which i am using,

procedure(CharanAddMenu(_args)
  let( (item1 item2)
    item1 = hiCreateMenuItem( ?name 'item1 ?itemText "Name_1" ?callback "skill_code_1()")
    item2 = hiCreateMenuItem( ?name 'item2 ?itemText "Name_2" ?callback "skill_code_2()")
    list(hiCreatePulldownMenu('CharanMenu "Charan Menu" list(item1 item2)))
  )
)
deRegUserTriggers("maskLayout" nil 'CharanAddMenu)

in the above code skill_code_*() refers to the skill code which i need to add to this code

and the Name_* refers to the name to be displayed for that particular code in my banner menu.

So if i want to add a new function to this i am supposed to add that code here and this goes on increasing if i want add more and more functions to my menu. Instead of this i want to call the function by passing the path (or the file name) to my above code which makes my job easier by just adding the path of the function (or by just passing the file name).

Some one please help me,

Thanks in advance,

  • Cancel
Parents
  • Sri Charan B
    Sri Charan B over 13 years ago
    Hi Andrew,

    I am still not able to figure it out. I am pasting the code which i have been trying on

    procedure(CharanAddMenu(_args)
      let( (item1 item2)
        item1 = hiCreateMenuItem( ?name 'item1 ?itemText "to_do_this1" ?callback "load(\"/path/my_code1.il")"")
        item2 = hiCreateMenuItem( ?name 'item2 ?itemText "to_do_this2" ?callback "load(\"/path/my_code2.il")"")
        list(hiCreatePulldownMenu('CharMenu "CHARAN Menu" list(item1 item2)))
      )
    )
    deRegUserTriggers("maskLayout" nil 'RPAddMenu)

    while using the above code it is generating the following error


    *Error* lineread/read: syntax error encountered in input

    *Error* eval: unbound variable - item1

    *WARNING* (reader): extra ')' ignored at line 6 of file *ciwInPort*

    *WARNING* (reader): extra ')' ignored at line 7 of file *ciwInPort*


     please help me to figure it out.

    Thanks in advance,
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Sri Charan B
    Sri Charan B over 13 years ago
    Hi Andrew,

    I am still not able to figure it out. I am pasting the code which i have been trying on

    procedure(CharanAddMenu(_args)
      let( (item1 item2)
        item1 = hiCreateMenuItem( ?name 'item1 ?itemText "to_do_this1" ?callback "load(\"/path/my_code1.il")"")
        item2 = hiCreateMenuItem( ?name 'item2 ?itemText "to_do_this2" ?callback "load(\"/path/my_code2.il")"")
        list(hiCreatePulldownMenu('CharMenu "CHARAN Menu" list(item1 item2)))
      )
    )
    deRegUserTriggers("maskLayout" nil 'RPAddMenu)

    while using the above code it is generating the following error


    *Error* lineread/read: syntax error encountered in input

    *Error* eval: unbound variable - item1

    *WARNING* (reader): extra ')' ignored at line 6 of file *ciwInPort*

    *WARNING* (reader): extra ')' ignored at line 7 of file *ciwInPort*


     please help me to figure it out.

    Thanks in advance,
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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