• 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 Scripting - Skill
  3. about lines startend points

Stats

  • Replies 17
  • Subscribers 17
  • Views 14732
  • Members are here 0
More Content

about lines startend points

tennywhy
tennywhy over 7 years ago

i want get all lines start and end points on outline layer, there is the code

defun( apl ()
    let( (RLP symbPg symbPth allSymbols allSymbolss)
    ;print all lines startend point
    axlSetFindFilter(?enabled list("noall" "lines")
        ?onButtons list("noall" "lines"))
    allSymbols = axlGetSelSet(axlAddSelectAll())
    axlClearSelSet()
    foreach( everyLine allSymbols
            axlMsgPut("startis %L" everyLine->startEnd) ; it doesnt work
            ;axlMsgPut("startis %L" everyLine->?) ;checked it has startEnd properties
            ;axlMsgPut("startis %L" everyLine->??) ;checked it has startEnd properties  
            )
 ))

what's the right way ?  and in the skill UG there is a starEnd attribute as in image below. how could i do it ?

  • Cancel
  • Sign in to reply
  • Jason Hsu
    Jason Hsu over 6 years ago in reply to eDave

    Dave,

      axlPathGetWidth or axlPathSegGetWidth require a r_path parameter, it means _axlPath@. But here, I can get many lines(path) from an existing layer. It will be dbid: -number format. It seems I can't use axlPathGetWidth or axlPathSegGetWidth to get the width's information directly. Any other idea from you? Or I have to use car( myline ->segments) ->width? Thanks for your help.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 6 years ago in reply to Jason Hsu

    Just get the width attribute of the line segments. If your line dbid is lineDBID then car(lineDBID ->segments) ->width will give you a value

    • 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