• 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 get hole tolerance properties from padstack information...

Stats

  • Replies 4
  • Subscribers 161
  • Views 13318
  • Members are here 0
More Content

How to get hole tolerance properties from padstack information and also change their value?

Bruenor
Bruenor over 17 years ago

Hi all,

I have learnt Skill language for about 1month. Because some accidental courses, I need to change a lot of padstacks' hole tolerance.

I tried using loadPadStack("padname") to get dbid of target padstack, but I couldn't found any properties about hole tolerance.

Can someone kindly help me solve this question?

 Thanks and Sincerely,

 Bruenor

  • Sign in to reply
  • Cancel
Parents
  • kerchunk
    kerchunk over 14 years ago

    I too now have a need to do this ie. change alot of padstacks' hole tolerances.

    Searching thru the archives yields a few hits, saying you can't GET hole tolerance programmatically. Is this still true? Are there any "private" functions that can get the tolerance info?

    Searching thru the15.5 Skill Reference Guide on Sourcelink shows you can SET hole tolerance programmatically by using make_axlPadStackPad So it seems I'll need something along the lines of

    [pre]axlPurgePadstacks( 'padstacks nil)
    foreach( padstack_db axlDBGetDesign()->padstacks
        nname = padstack_db->name

        holeplating = axlDBGetDrillPlating( nname)

        drill_data = make_axlPadStackDrill(?drillDiameter padstack_db->drillDiameter,
                                               ?figure stringToSymbol( padstack_db->drillFigureName),
                                               ?figureSize 60:60,
                                               ?plating stringToSymbol( holeplating)
                                              )
            pad_list = nil
            foreach( pad_db padstack_db->pads
                pad_list = cons( make_axlPadStackPad( ?layer pad_db->layer,
                                                      ?type  stringToSymbol( pad_db->type),
                                                      ?figure stringToSymbol( pad_db->figureName),
                                                      ?figureSize 80:80)
                                                  pad_list)
            );end-foreach
            ps_id = axlDBCreatePadStack( nname, drill_data, pad_list t)
    );end-foreach

    [/pre]]

    Anyone have a copy of something like this that works that they'd care to share?

     TIA,

     

    Chris Walters

    local Cadence guru

    ()

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • kerchunk
    kerchunk over 14 years ago

    I too now have a need to do this ie. change alot of padstacks' hole tolerances.

    Searching thru the archives yields a few hits, saying you can't GET hole tolerance programmatically. Is this still true? Are there any "private" functions that can get the tolerance info?

    Searching thru the15.5 Skill Reference Guide on Sourcelink shows you can SET hole tolerance programmatically by using make_axlPadStackPad So it seems I'll need something along the lines of

    [pre]axlPurgePadstacks( 'padstacks nil)
    foreach( padstack_db axlDBGetDesign()->padstacks
        nname = padstack_db->name

        holeplating = axlDBGetDrillPlating( nname)

        drill_data = make_axlPadStackDrill(?drillDiameter padstack_db->drillDiameter,
                                               ?figure stringToSymbol( padstack_db->drillFigureName),
                                               ?figureSize 60:60,
                                               ?plating stringToSymbol( holeplating)
                                              )
            pad_list = nil
            foreach( pad_db padstack_db->pads
                pad_list = cons( make_axlPadStackPad( ?layer pad_db->layer,
                                                      ?type  stringToSymbol( pad_db->type),
                                                      ?figure stringToSymbol( pad_db->figureName),
                                                      ?figureSize 80:80)
                                                  pad_list)
            );end-foreach
            ps_id = axlDBCreatePadStack( nname, drill_data, pad_list t)
    );end-foreach

    [/pre]]

    Anyone have a copy of something like this that works that they'd care to share?

     TIA,

     

    Chris Walters

    local Cadence guru

    ()

    • 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