• 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. How to create poly from through hole drill hole or slot...

Stats

  • Replies 2
  • Subscribers 159
  • Views 13330
  • Members are here 0
More Content

How to create poly from through hole drill hole or slot?

jtra
jtra over 9 years ago

I need a way to create poly from a through hole drill or slot.

I thought this was easy by specifying hole of the pin as the option to create the poly.

Thanks

  • Sign in to reply
  • Cancel
Parents
  • B Bruekers
    B Bruekers over 9 years ago

    The ?holes option in the axlPolyFromDB is only for polygons which have one or more voids. A padstack layer (like etch/top) does not include a void of the drill hole.

    The only way I know of is to look at the padstack drillFigureName, drillDiameter, drillSizeWidth+width and drillOffset and create paths/poly's of the actual drill.

    In case of a slot you need the drillFigureWidth and Height. 

    Here is some code for a slot to a line. You can create a line path instead (xy1 xy2 with a width) and convert this to a poly.  The 'pin' variable is the pin dbID.

    if(pin->definition->drillSizeHeight > pin->definition->drillSizeWidth
    then dy=(pin->definition->drillSizeHeight - pin->definition->drillDiameter)/2.0, dx=0
    else dx=(pin->definition->drillSizeWidth - pin->definition->drillDiameter)/2.0, dy=0
    )
    xy1 = list( car(pin->xy)-dx+car(pin->definition->drillOffset) cadr(pin->xy)-dy+cadr(pin->definition->drillOffset) )
    xy2 = list( car(pin->xy)+dx+car(pin->definition->drillOffset) cadr(pin->xy)+dy+cadr(pin->definition->drillOffset) )
    xy1= axlGeoRotatePt( pin->rotation xy1 pin->xy)
    xy2= axlGeoRotatePt( pin->rotation xy2 pin->xy)
    axlDBCreateLine( list(xy1 xy2) pin->definition->drillDiameter "board geometry/dimension" nil pin->parent)

    Bram

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • B Bruekers
    B Bruekers over 9 years ago

    The ?holes option in the axlPolyFromDB is only for polygons which have one or more voids. A padstack layer (like etch/top) does not include a void of the drill hole.

    The only way I know of is to look at the padstack drillFigureName, drillDiameter, drillSizeWidth+width and drillOffset and create paths/poly's of the actual drill.

    In case of a slot you need the drillFigureWidth and Height. 

    Here is some code for a slot to a line. You can create a line path instead (xy1 xy2 with a width) and convert this to a poly.  The 'pin' variable is the pin dbID.

    if(pin->definition->drillSizeHeight > pin->definition->drillSizeWidth
    then dy=(pin->definition->drillSizeHeight - pin->definition->drillDiameter)/2.0, dx=0
    else dx=(pin->definition->drillSizeWidth - pin->definition->drillDiameter)/2.0, dy=0
    )
    xy1 = list( car(pin->xy)-dx+car(pin->definition->drillOffset) cadr(pin->xy)-dy+cadr(pin->definition->drillOffset) )
    xy2 = list( car(pin->xy)+dx+car(pin->definition->drillOffset) cadr(pin->xy)+dy+cadr(pin->definition->drillOffset) )
    xy1= axlGeoRotatePt( pin->rotation xy1 pin->xy)
    xy2= axlGeoRotatePt( pin->rotation xy2 pin->xy)
    axlDBCreateLine( list(xy1 xy2) pin->definition->drillDiameter "board geometry/dimension" nil pin->parent)

    Bram

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