• 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. How to get the location of Assembly Line

Stats

  • Replies 4
  • Subscribers 160
  • Views 15163
  • Members are here 0
More Content

How to get the location of Assembly Line

Thinker5112
Thinker5112 over 5 years ago

Hi 

I'm trying to find the location of the assembly line in the design automatically without using "Show Element". And also I want to find the end points of that line. The line exists in "Package Geometry/Assembly_Top" Layer. So is there any code snippet to find the location of assembly line?

  • Sign in to reply
  • Cancel
  • DavidJHutchins
    DavidJHutchins over 5 years ago

    procedure(report_line()
    let((line_id start_end)
    (axlSetFindFilter ?enabled list("noall" "lines" ) ?onButtons list("noall" "lines"))
    (line_id = car((axlGetSelSet (axlSingleSelectPoint))))
    when(line_id
    foreach(seg (line_id->segments)
    (start_end = seg->startEnd)
    when(((seg->objType) == "line")
    axlMsgPut("line start (%.4f:%.4f) end (%.4f:%.4f)\n" car(car(start_end)) cadr(car(start_end)) car(cadr(start_end)) cadr(cadr(start_end)))
    )
    when(((seg->objType) == "arc")
    axlMsgPut("arc start (%.4f:%.4f) center (%.4f:%.4f) end (%.4f:%.4f)\n" car(car(start_end)) cadr(car(start_end)) car(seg->xy) cadr(seg->xy) car(cadr(start_end)) cadr(cadr(start_end)))
    )
    )
    )
    )
    )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Thinker5112
    Thinker5112 over 5 years ago in reply to DavidJHutchins

    Hi David, thank you for your support.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Thinker5112
    Thinker5112 over 5 years ago in reply to DavidJHutchins

    Hi David, is there any way to select the assembly line without using axlGetSelSet and axlSingleSelectPoint? I mean to ask, can we automatically select an assembly line without using any of those functions?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • DavidJHutchins
    DavidJHutchins over 5 years ago

    I think you need to do some sort of selection command, perhaps you could replace the line:

    (line_id = car((axlGetSelSet (axlSingleSelectPoint))))

    with the following to select the first line found on the current screen:

    (line_id = car((axlGetSelSet (axlAddSelectBox(axlWindowBoxGet)))))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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