• 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. help - skill code for goto xy coordinate

Stats

  • Locked Locked
  • Replies 23
  • Subscribers 146
  • Views 15839
  • 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

help - skill code for goto xy coordinate

zeroskills
zeroskills over 15 years ago

i would like some help on skill code for goto xy coordinate. we used to have this skill code, it does this...

pop up goto xy form, just input x and y coordinate then view size, like how zoom in or out you want it. then there will be an "X" ruler mark on the coordinate.

 

  • Cancel
Parents
  • dmay
    dmay over 15 years ago

    This is a forum for ideas and answers, not a development team for your CAD needs. As Andrew said, you should be able to get it working from the examples you have received so far.

    As for my two cents, I don't like having a separate field for X and Y. Most of the time, our users are cutting and pasting X and Y coordinates from a file. Our solution was to make the XY field on the form a string field. We pre-process the string and convert it into X and Y coordinates. In doing this, the pre-process code removes colons, quotes, commas, etc so the user can paste coordinate info in any format that he has and not have to separately cut and paste the X and the Y.

    The following procedure takes the string entered on the form (coord) and returns a point:

    procedure(coordCleanup( coord)
      rexCompile( "[(){}xy=,XY:]")
      coord = rexReplace( coord " " 0)
      ;Occasionally an extra decimal: (920.000000. -223.500000)
      rexCompile( "\\. ")
      coord = rexReplace( coord " " 0)
      coord = parseString(coord)
      mapcar( 'aelNumber coord)
    ) ;proc

    Now, the user can paste this in the box:
    x=10,y=20

    And this routine will return: list(10 20)

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dmay
    dmay over 15 years ago

    This is a forum for ideas and answers, not a development team for your CAD needs. As Andrew said, you should be able to get it working from the examples you have received so far.

    As for my two cents, I don't like having a separate field for X and Y. Most of the time, our users are cutting and pasting X and Y coordinates from a file. Our solution was to make the XY field on the form a string field. We pre-process the string and convert it into X and Y coordinates. In doing this, the pre-process code removes colons, quotes, commas, etc so the user can paste coordinate info in any format that he has and not have to separately cut and paste the X and the Y.

    The following procedure takes the string entered on the form (coord) and returns a point:

    procedure(coordCleanup( coord)
      rexCompile( "[(){}xy=,XY:]")
      coord = rexReplace( coord " " 0)
      ;Occasionally an extra decimal: (920.000000. -223.500000)
      rexCompile( "\\. ")
      coord = rexReplace( coord " " 0)
      coord = parseString(coord)
      mapcar( 'aelNumber coord)
    ) ;proc

    Now, the user can paste this in the box:
    x=10,y=20

    And this routine will return: list(10 20)

    Derek

    • 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