• 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. Get the points selected by stretch

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 15451
  • 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

Get the points selected by stretch

Aritra
Aritra over 14 years ago

 Hi,

     Is there any SKILL function available for getting the points selected by stretch operation ? 

Please assist. 

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

    If you mean to find out which points on a polygon or other shape have been partially selected (also when in partial selection mode as toggled by the F4 bindkey), then that would be geGetSelSetFigPoint(shapeId)

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Leonardo Vinci
    Leonardo Vinci over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    The above command geGetSelSetFigPoint(shapeId) returns (t nil) or (nil t) based on pathSeg's beginPt and endPt selected.

    But consider my case, I have a horizontal metal pathSeg. And for stretching, I am selecting the right side of this horizontal metal pathSeg to be stretched, how should I get the coordinates of the selected side(right side in this case) of this metal irrespective of its beginPt or endPt.

    Thanks,

    Leo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Leonardo Vinci
    Leonardo Vinci over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    The above command geGetSelSetFigPoint(shapeId) returns (t nil) or (nil t) based on pathSeg's beginPt and endPt selected.

    But consider my case, I have a horizontal metal pathSeg. And for stretching, I am selecting the right side of this horizontal metal pathSeg to be stretched, how should I get the coordinates of the selected side(right side in this case) of this metal irrespective of its beginPt or endPt.

    Thanks,

    Leo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to Leonardo Vinci

    Hi Leo,

    Well, the beginPt and endPt will be ordered depending on the direction it was drawn in, so if you want to find which of the two is the rightmost, presumably you'd compare the two x-coordinates and determine which was the larger?

    Not quite sure why you're posting on the end of a 10-year old thread - the forum guidelines ask you not to do that.

    Andrew

    • 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