• 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. leYankFigs

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 13700
  • 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

leYankFigs

Toshiro
Toshiro over 8 years ago

Hi,

Can you help me to configure bindKey leYankFigs:

I would like create a bindKeys Yank and I would like fixe myself the reference point with the mousse for the paste

Thanks for your help

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

    Hi Florian,

    You could use this code, and then add a bindkey for CCFyankFigs().

    procedure(CCFyankFigs()
        enterBox(
            ?prompts list(
                "Point at the first corner of the yank rectangle"
                "Point at the opposite corner of the yank rectangle"
            )
            ?cmdName "CCFyankFigs"
            ?doneProc "CCFyankFigsDone")
    )
    
    procedure(CCFyankFigsDone(win ok points)
        let((cv rect refPoint)
            when(ok
                cv=geGetEditCellView(win)
                refPoint=enterPoint(
                    ?prompts list("Point at reference point for yank")
                )
                destructuringBind(((llx lly) (urx ury)) points
                    rect=list(llx:lly urx:lly urx:ury llx:ury)
                    leYankFigs(cv rect 32 refPoint)
                )
            )
        )
    )

    Unfortunately I've found that the reference point is broken for leYankFigs from IC617/ICADV122 onwards. I filed CCR 1767467 to get this fixed (it worked in IC616 and before; how the reference point when  you paste is always the lower left corner). You might want to contact customer support and get a duplicate filed so you can track this?

    Regards,

    Andrew.

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

    Hi Florian,

    You could use this code, and then add a bindkey for CCFyankFigs().

    procedure(CCFyankFigs()
        enterBox(
            ?prompts list(
                "Point at the first corner of the yank rectangle"
                "Point at the opposite corner of the yank rectangle"
            )
            ?cmdName "CCFyankFigs"
            ?doneProc "CCFyankFigsDone")
    )
    
    procedure(CCFyankFigsDone(win ok points)
        let((cv rect refPoint)
            when(ok
                cv=geGetEditCellView(win)
                refPoint=enterPoint(
                    ?prompts list("Point at reference point for yank")
                )
                destructuringBind(((llx lly) (urx ury)) points
                    rect=list(llx:lly urx:lly urx:ury llx:ury)
                    leYankFigs(cv rect 32 refPoint)
                )
            )
        )
    )

    Unfortunately I've found that the reference point is broken for leYankFigs from IC617/ICADV122 onwards. I filed CCR 1767467 to get this fixed (it worked in IC616 and before; how the reference point when  you paste is always the lower left corner). You might want to contact customer support and get a duplicate filed so you can track this?

    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