• 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. Allegro X PCB Editor
  3. axlDBAltOrigin

Stats

  • Replies 2
  • Subscribers 158
  • Views 12524
  • Members are here 0
More Content

axlDBAltOrigin

archive
archive over 17 years ago

I am attempting to using axlDBAltOrigin to eventually extract the X and Y coordinates of a components origin which is selected by a mouse click. After looking thru example code and documentation, my attempt is still incorrect. Would someone be willing to offer a beginner advice as to what I am doing wrong? Thank you. The code: axlClearSelSet() axlSetFindFilter( ?enabled list("noall" "Components") ?onButtons list("Components") ) axlSelect( ?groupMode nil ?prompt "Please Select Component" ) sym = axlGetSelSet() axlShowObject(axlGetSelSet()) comp_origin = axlDBAltOrigin('origin sym) xcoord = car( comp_origin) ycoord = cadr( comp_origin) axlMsgPut("X location is %s", xcoord) axlMsgPut("Y location is %s", ycoord)


Originally posted in cdnusers.org by Lcan
  • Sign in to reply
  • Cancel
Parents
  • archive
    archive over 17 years ago

    This does help. My apologies for the poor formatting in the original message. Thank you for your help, it is appreciated. Bill


    Originally posted in cdnusers.org by Lcan
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • archive
    archive over 17 years ago

    This does help. My apologies for the poor formatting in the original message. Thank you for your help, it is appreciated. Bill


    Originally posted in cdnusers.org by Lcan
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

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