• 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. how to use "insertXMlMenu" in capture

Stats

  • Replies 3
  • Subscribers 161
  • Views 1910
  • Members are here 0
More Content

how to use "insertXMlMenu" in capture

robin chu
robin chu over 12 years ago

 There is a "insertXMLMenu"  function in capture's tcl demo as follow:

InsertXMLMenu [list [list "TopLevelMenu"] "" "" [list "popup" "&TopLevelMenu" "0"]]

InsertXMLMenu [list [list "TopLevelMenu" "SubMenu" ] "" "" [list "action" "&SubMenu..." "0" "SubMenuActionLabel" "MenuUpdateLabel"]]

 I don't know how to fill in the parameters.

Is there I can find a document that explain these functions?

  • Sign in to reply
  • Cancel
Parents
  • Ejlersen
    Ejlersen over 12 years ago

    Hi

    Sample menu below, you need to register the function

    InsertXMLMenu [list [list "NordcadMenu"] "" "" [list "popup" "&Nordcad" "0"]]
    InsertXMLMenu [list [list "NordcadMenu" "SampleAlwaysEnabled1" ] "" "" [list "action" "&Intelligent PDF..." "0" "sampleEnabledAction1" "sampleEnabledUpdate1"]]

    proc disableMenuUpdate {} {
    return false
    }

    proc enableMenuAction1 {} {
    set lMessage "Creating PDF"
    set lMessageStr [DboTclHelper_sMakeCString $lMessage]
    DboState_WriteToSessionLog $lMessageStr
    MenuCommand "65004"
    return true
    } 

    proc enableMenuUpdate {} {
     return true
    }
    RegisterAction "sampleEnabledUpdate1" "capTrue" "" "enableMenuUpdate" ""

    RegisterAction "sampleDisabledUpdate" "capTrue" "" "disableMenuUpdate" ""

    RegisterAction "sampleEnabledAction1" "capTrue" "" "enableMenuAction1" ""

    documentation is found in %cdsroot%\tools\capture\tclscripts\OrCAD_Capture_TclTk_Extensions.pdf

    samples are found in the same directory

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • tennywhy
    tennywhy over 6 years ago in reply to Ejlersen

    could you give me some more explain about  "InsertXMLMenu" ?  i cant understand the args about it

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • tennywhy
    tennywhy over 6 years ago in reply to Ejlersen

    could you give me some more explain about  "InsertXMLMenu" ?  i cant understand the args about it

    • 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