• 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. Breaking a clineseg into multiple segments with SKILL c...

Stats

  • Replies 2
  • Subscribers 18
  • Views 11031
  • Members are here 0
More Content

Breaking a clineseg into multiple segments with SKILL code

leto
leto over 5 years ago

Hello All,

May I know if there is a way to breakup a selected clinesegment into a few clinesegments by just using SKILL code

Thanks All

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

    Play with the following code.  

    l_net = axlDBGetDesign()->nets
    foreach(net l_net
    l_branch = net->branches
    foreach(branch l_branch
    l_child = branch->children
    foreach(child l_child
    if(child->objType == "path" then
    l_seg = child->segments
    foreach(seg l_seg
    printf("%L %L\n" seg->layer seg->startEnd)
    )
    )
    )
    )
    )

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

    Hello Cdlep,

    Thank you for replying my query. The code you suggested help to select the individual clineseg within the design.

    However what I wanted to do was to modify an individual clineseg (which I already selected) to have different widths along it (such as neck down the clineseg at certain locations)

    Individually, I can modify a segment width, however I would need to first breakup the segment into multiple segments.  Need help here.

    Alternately, I can just get the startEnd of the clineSeg and reroute with different widths within the straight line (If there is any easier way I can avoid this).

    Thanks All

    • 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