• 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. Continue function by select event

Stats

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

Continue function by select event

Kinneret
Kinneret over 9 years ago

hi,

i start my function by bindkey, and i want to wait for select object.
and continue my skill when object selected.

Thanks,

Ori

  • Cancel
  • Kinneret
    Kinneret over 9 years ago
    like 'control C' works.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 9 years ago

    Hi Ori,

    This suggests that you want to use an enter function such as enterPoint() or enterPoints(), and then using the ?addPointProc you can invoke another function each time the mouse is clicked. In your addPointProc you could test whether the cursor point is over a selectable object and control what happens next (e.g. select the object and/or take the action that you want to perform). However your update of "like Control C" is confusing as this would most likely terminate any active code.  For an enterPath or enterPoints a double click (giving the same last point two times) should complete the command and then they would invoke the ?doneProc function (for enterPoint it is only expecting one point and so should call it once the point has been entered). Here's a framework for what you might want to do (also you'd probably create a function wrapper around the call to enterPoints, to simplify the bindkey definition)

    
    enterPoints( ?prompts '("Point to an object")
      ?addPointProc  "CCFaddPoint"
      ?doneProc      "CCFdoneProc"
    )
    
    procedure(CCFaddPoint(win pointList)
      let( (figure)
        when(figure = gePointToFig(win nil car(last(pointList)))
          ;;  .. go on to do something with 'figure'
        ); when
      ); let
    ); procedure
    
    procedure(CCFdoneProc(win done pointList)
      when(done && win && pointList
        printf("You clicked these points: %L\n" pointList)
      ); when
    ); procedure
    

    Hopefully this helps you.

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Kinneret
    Kinneret over 9 years ago
    Thanks :)
    • 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