• 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. Creating Web/Thermal shape for paste mask

Stats

  • State Verified Answer
  • Replies 8
  • Subscribers 162
  • Views 2042
  • Members are here 0
More Content

Creating Web/Thermal shape for paste mask

JS202408156358
JS202408156358 10 months ago

Any tips or SKIL files to help create a thermal shaped openings for paste masks for a donut shaped pin for mics or stand-offs like below?

  • Sign in to reply
  • Cancel
Parents
  • Hoangkhoipcb
    0 Hoangkhoipcb 10 months ago

    Hi JS202408156358!

    You can refer this code.

    ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    axlCmdRegister("create_thermal_shape" 'create_thermal_shape)
    (defun create_thermal_shape ()
    let((angle layer in_put)
    layer = "BOARD GEOMETRY/ASSEMBLY_NOTES"
    axlVisibleLayer(layer t)
    in_put = axlEnterString(?prompts list("Please enter 3 params:\n Ex: 4,100,25"))
    if(in_put != nil && length(parseString(in_put ",")) == 3 then
    point = axlEnterPoint(?prompts "" ?points nil ?gridSnap t)
    if(point != nil then
    p_in_put = parseString(in_put ",")
    id = atoi(car(p_in_put))
    ra = atof(cadr(p_in_put))
    w = atof(caddr(p_in_put))
    printf(" id: %d\n ra: %.2f\n w: %.2f\n" id, ra, w)
    d = axlMXYAdd( 0:ra point)
    r_path = axlMakeDynamicsPath(list(list(d d 0.0 point ra t) list(d d) ) )
    poly1 = car(axlPolyFromDB(r_path ?layer layer ?endCapType 'ROUND))
    poly_expand = car(axlPolyExpand(poly1 -w 'NONE))
    poly2 = car(axlPolyOperation(poly1 poly_expand 'ANDNOT))
    wheel = 360.0 / id
    angle = 0.0
    poly_list = nil
    tmp_point = axlMXYAdd( 0 : (ra + w) point)
    while(angle <= 360.0
    point_rotate = axlGeoRotatePt(angle tmp_point point)
    r_path2 = axlMakeDynamicsPath(list(list(point point_rotate w) ) )
    poly3 = car(axlPolyFromDB(r_path2 ?layer layer ?endCapType 'NONE ?line2poly t))
    poly_list = cons(poly3 poly_list)
    angle = angle + wheel
    )
    poly_or = car(axlPolyOperation(car(poly_list) cdr(poly_list) 'OR))
    poly_or2 = axlPolyOperation( poly2 poly_or 'ANDNOT)
    foreach(poly poly_or2
    axlDBCreateShape(poly t layer nil)
    )

    )
    )
    )
    )
    ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Regards.

    HoangKhoi.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • JS202408156358
    0 JS202408156358 10 months ago in reply to Hoangkhoipcb

    Thank you! I will try this out end of the week once I get back to my computer. Thank you so much for posting this.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • JS202408156358
    0 JS202408156358 10 months ago in reply to Hoangkhoipcb

    Thank you! I will try this out end of the week once I get back to my computer. Thank you so much for posting this.

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