• 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. I wanted to create a void or Connect with shape

Stats

  • State Suggested Answer
  • Replies 3
  • Answers 1
  • Subscribers 18
  • Views 1440
  • Members are here 0
More Content

I wanted to create a void or Connect with shape

Henry Monro
Henry Monro over 1 year ago

Hello,

I would be thankful if someone can help me in this manner.

I wanted to create a cline to connect the hole with the shape where there are DRC of Constraint: Drill Hole to Shape Same Net Spacing and there are lots of DRCS on each layer other solution is that if any of you can help in creating a void on holes.

I have attached a snap for reference.

Thanks

  • Sign in to reply
  • Cancel
Parents
  • eDave
    0 eDave over 1 year ago

    I'm not sure exactly what you want here and what the "holes" are. If they are vias with a pad on the same layer then something like this could work:

    drcs = setof(drc, axlDBGetDesign() ->drcs, drc ->name == "Drill Hole to Shape Same Net Spacing"
    foreach(drc, drcs
    via = car(setof(v, drc ->violations, v ->objType == "via"))
    shp = car(setof(v, drc ->violations, v ->objType == "shape"))
    gap = axlAirGap(via, shp, nil, 'enhanced)
    loc1 = via ->xy
    loc2 = if(car(parseString(gap ->layer1, "/")) == "VIA CLASS" then gap ->location2 else gap ->location1)
    subclass = cadr(parseString(drc ->layer, "/"))
    pad = axlDBGetPad(via, strcat("VIA CLASS/", subclass), "REGULAR")
    seg = axlPathGetLastPathSeg(car(pad ->figure))
    width = 2 * axlDistance(axlPathSegGetEndPoint(seg), axlPathSegGetArcCenter(seg))
    path = axlPathStart(list(loc1, loc2), width)
    axlDBCreatePath(path, strcat("ETCH/", subclass), via ->net)
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • eDave
    0 eDave over 1 year ago

    I'm not sure exactly what you want here and what the "holes" are. If they are vias with a pad on the same layer then something like this could work:

    drcs = setof(drc, axlDBGetDesign() ->drcs, drc ->name == "Drill Hole to Shape Same Net Spacing"
    foreach(drc, drcs
    via = car(setof(v, drc ->violations, v ->objType == "via"))
    shp = car(setof(v, drc ->violations, v ->objType == "shape"))
    gap = axlAirGap(via, shp, nil, 'enhanced)
    loc1 = via ->xy
    loc2 = if(car(parseString(gap ->layer1, "/")) == "VIA CLASS" then gap ->location2 else gap ->location1)
    subclass = cadr(parseString(drc ->layer, "/"))
    pad = axlDBGetPad(via, strcat("VIA CLASS/", subclass), "REGULAR")
    seg = axlPathGetLastPathSeg(car(pad ->figure))
    width = 2 * axlDistance(axlPathSegGetEndPoint(seg), axlPathSegGetArcCenter(seg))
    path = axlPathStart(list(loc1, loc2), width)
    axlDBCreatePath(path, strcat("ETCH/", subclass), via ->net)
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Henry Monro
    0 Henry Monro over 1 year ago in reply to eDave

    I am using the below code but its not working on multiple selections its just working on first and then finishes.

    If you can help please

    Thanks

    count=0
    axlSetFindFilter(?enabled list("noall") ?onButtons list("noall"))

    axlSetFindFilter( ?enabled '("alltypes") ?onButtons "DRCS")
    axlSelect(?prompt "\nSelect DRCS from the layout")

    drcs=axlGetSelSet()

    length_l_drcs=length(drcs)

    println("length_l_drcs")
    println(length_l_drcs)

    count=0

    foreach(drc, drcs

    if(drc->waived==nil && drc->name== "Drill Hole to Shape Same Net Spacing" then

    via = car(setof(v, drc->violations, v ->objType == "via"))
    shp = car(setof(v, drc->violations, v ->objType == "shape"))
    gap = axlAirGap(via, shp, nil, 'enhanced)
    loc1 = via->xy

    println(gap->layer1)

    loc2 = if(car(parseString(gap->layer1, "/")) == "VIA CLASS" then gap->location2 else gap->location1)

    println(drc->layer)

    subclass = cadr(parseString(drc->layer, "/"))
    pad = axlDBGetPad(via, strcat("VIA CLASS/", subclass), "REGULAR")
    ;seg = axlPathGetLastPathSeg(car(pad->figure))
    ;width = 2 * axlDistance(axlPathSegGetEndPoint(seg), axlPathSegGetArcCenter(seg))
    path = axlPathStart(list(loc1, loc2), 2)
    axlDBCreatePath(path, strcat("ETCH/", subclass), via->net)
    count++
    println(count)

    )

    )

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