• 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. bbox values in menu

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14421
  • 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

bbox values in menu

psill000
psill000 over 11 years ago

Is there a way to store several bbox values in a menu without converting it to a string?

Example of value

bboxList = '(((131.8625 -760.5125) (131.8875 -760.4875)) ((131.8625 -749.5125) (131.8875 -749.4875)))

 I have tried several of the hiCreate* menus but it seems the functions are wanting strings or a single coordinate list.

 

Paul

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

    Paul,

    Maybe this toy example will help show how you could do something like this? The key is storing the info as a user defined property on the menu item (could be on the pulldown menu itself too - depends on your application):

    procedure(CCFmenuBBoxExample()
        let((next)
            next=hiCreateMenuItem(
                ?name 'next
                ?itemText "&Next"
                ?callback "CCFmenuNextCB(CCFpulldownMenu->next)"
            )
            hiCreatePulldownMenu(
                'CCFpulldownMenu
                "Community Fo&rum"
                list(next)
            )
            hiInsertBannerMenu(hiGetCurrentWindow() CCFpulldownMenu 30)
        )
    )

    procedure(CCFmenuNextCB(menuItem)
        let((zoomBox ur)
            ;----------------------------------------------------------------
            ; Arbitrary default value if zoomBox property not set
            ;----------------------------------------------------------------
            zoomBox=menuItem->zoomBox || list(0:0 2:1)
            printf("Zooming to %L\n" zoomBox)
            hiZoomIn(hiGetCurrentWindow() zoomBox)
            ;----------------------------------------------------------------
            ; Do some silly update of the zoomBox property so that the next
            ; zoom zooms somewhere else
            ;----------------------------------------------------------------
            ur=upperRight(zoomBox)
            zoomBox=list(ur xCoord(ur)+2:yCoord(ur)+1)
            menuItem->zoomBox=zoomBox
        )
    )

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Paul,

    Maybe this toy example will help show how you could do something like this? The key is storing the info as a user defined property on the menu item (could be on the pulldown menu itself too - depends on your application):

    procedure(CCFmenuBBoxExample()
        let((next)
            next=hiCreateMenuItem(
                ?name 'next
                ?itemText "&Next"
                ?callback "CCFmenuNextCB(CCFpulldownMenu->next)"
            )
            hiCreatePulldownMenu(
                'CCFpulldownMenu
                "Community Fo&rum"
                list(next)
            )
            hiInsertBannerMenu(hiGetCurrentWindow() CCFpulldownMenu 30)
        )
    )

    procedure(CCFmenuNextCB(menuItem)
        let((zoomBox ur)
            ;----------------------------------------------------------------
            ; Arbitrary default value if zoomBox property not set
            ;----------------------------------------------------------------
            zoomBox=menuItem->zoomBox || list(0:0 2:1)
            printf("Zooming to %L\n" zoomBox)
            hiZoomIn(hiGetCurrentWindow() zoomBox)
            ;----------------------------------------------------------------
            ; Do some silly update of the zoomBox property so that the next
            ; zoom zooms somewhere else
            ;----------------------------------------------------------------
            ur=upperRight(zoomBox)
            zoomBox=list(ur xCoord(ur)+2:yCoord(ur)+1)
            menuItem->zoomBox=zoomBox
        )
    )

    Regards,

    Andrew.

    • 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