• 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. Build panel milling with skill

Stats

  • Replies 8
  • Subscribers 17
  • Views 11828
  • Members are here 0
More Content

Build panel milling with skill

ENEGUE
ENEGUE over 6 years ago

Hi Guys,

I am trying to build milling for panel based on outline.

axlSetFindFilter ?enabled (list "linesegs" "shapes") ?onButtons (list "alltypes")
axlAddSelectAll()
axlGetSelSet()

after axlGetselSet() i got alot of the segment dbid but not sure how to continues. =(

Can someone share me some idea or sample code?

Thanks,

Eugene

  • Cancel
  • Sign in to reply
Parents
  • eDave
    eDave over 6 years ago

    Assuming that you are using 17.2 you should use axlDBGetShapes:

    outlineShape = car(axlDBGetShapes("BOARD GEOMETRY/DESIGN_OUTLINE"))
    polygon = car(axlPolyFromDB(outlineShape))

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

    Hi Dave,

    Thanks for your reply

    after translate it into polygon, i can use expand poly right?

    exp_poly = (axlPolyExpand polygon 1.6 'ALL_ARC)
    axlDBCreateShape(exp_poly t "board geometry/Ncroute_path")

    got this error: W- *WARNING* (axlDBCreateOpenShape): Object should be either an r_path or an o_polygon - 

    Eugene

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

    axlPolyExpand returns a list so you need to process all the elements in that list (probably just one)

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

    Wonderful, with car i manage to get it..FINALLY, thanks you so much Dave..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ENEGUE
    ENEGUE over 6 years ago in reply to ENEGUE

    but how about segment? currently we still using outline (line segment) instead of design_outline.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 6 years ago in reply to ENEGUE

    Hi

    Since you don't know if the segments are in order you would first need to get them ordered so they form a closed polygon. 

    From there you can create a temporary shape that you can expand to get your milling path and then delete the temp shape. 

    This is exactly the reason that outline was changed to design_outline - the outline layer was used for all kinds of things and there was no way of telling if it was a closed polygon or not, as an example the closed polygon form on design_outline is actually used when you do zones for flex-rigid PCBs but thats another story.

    Best regards

    Ole

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

    As Ole points out, you should only do this with shapes. If you must use the outline layer then I suggest that you use Shape/Compose to convert the line segments into a shape before you start. It is bad practice to have anything on the outline layer that is not a shape.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • eDave
    eDave over 6 years ago in reply to ENEGUE

    As Ole points out, you should only do this with shapes. If you must use the outline layer then I suggest that you use Shape/Compose to convert the line segments into a shape before you start. It is bad practice to have anything on the outline layer that is not a shape.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • ENEGUE
    ENEGUE over 6 years ago in reply to eDave

    Thanks Ole and Dave for your input..=)

    Eugene

    • 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