• 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 13316
  • 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
  • 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
  • Nagaraj Shanmu
    Nagaraj Shanmu over 14 years ago
    Hi Chris

    I tried the skill docs but no clue how to get the tolerance value of drill.

    Did you find some method to do?

    I wish to extract the hole tolerance value for some validation.

     
    TIA,
    Nagaraj.
    • ATT00001..gif
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 14 years ago

    Hi guys,

    One way (maybe the only way) is to use extracta.

    These are fields I use in one utility that needs the tolerances:

    COMPOSITE_PAD
      DRILL_HOLE_NAME != ""
      PAD_STACK_NAME
      DRILL_HOLE_TYPE
      DRILL_HOLE_NAME
      DRILL_HOLE_NAME2
      DRILL_HOLE_NONSTANDARD
      DRILL_HOLE_PLATING
      DRILL_HOLE_POSTOL
      DRILL_HOLE_NEGTOL
      DRILL_HOLE_X
      DRILL_HOLE_Y
      DRILL_ARRAY_LOCATIONS
      START_LAYER_NAME
      END_LAYER_NAME
      START_LAYER_NUMBER
      END_LAYER_NUMBER
      DRILL_FIGURE_CHAR
      DRILL_FIGURE_SHAPE
      DRILL_FIGURE_WIDTH
      DRILL_FIGURE_HEIGHT
      DRILL_FIGURE_ROTATION

    Regards, Dave 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Nagaraj Shanmu
    Nagaraj Shanmu over 14 years ago
    Thanks Dave,

    I also used the extracta already provided by Cadence @ <installation_path>share\pcb\text\views\pad_rep_view.txt

    And used infile to read and get the needed information about the padstack.


    Good day!!
    Nagaraj.
    • ATT00001..gif
    • View
    • Hide
    • 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