• 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. Creating a multiple drill padstack in SKILL with custom...

Stats

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

Creating a multiple drill padstack in SKILL with custom pattern

Brother Forage
Brother Forage over 1 year ago

I'm trying to figure out how to create (custom) multiple drill in SKILL.

my kung-fu of searching help files and forums may be weak but all i find is referring to 17.2 or older versions.

using

padID=axlLoadPadstack("myPadWithPolarDrillPattern")

padID->??

to see if it can bring some light in the matter doesn't help either as no matter the (custom) drill pattern made on padstack editor, the drill reported is

multiDrillData   (1 1 0.0 0.0 nil)

Can I make a list of drills in the same manner as a pad list and submit as drill data?

I am using revision 17.4 S32 as IT policies prohibits me from install latest versions or hotfixes.

  • Cancel
  • Sign in to reply
  • Hoangkhoipcb
    0 Hoangkhoipcb over 1 year ago

    Hi Brother Forage !

    Do you try to combine Skill and file.scr file yet?

    This is not  solution perfect. I think them help a lite bit

    Can refer this post. 

    Fullscreen multDrill.txt Download
    ;#####################################################################
    axlCmdRegister("mult_drill" 'mult_drill )
    (defun mult_drill ()
    	name = "mutlDrillPad"
        drill_data = make_axlPadStackDrill(
    		?holeType  'CIRCLE_DRILL
    		?drillDiameter 5
    		?plating 'PLATED
    		?figure 'SQUARE
    		?figureSize 60:60
    		?drillChar "abc"
    	)
    	pad_list = nil
    	pad = make_axlPadStackPad(?layer "TOP",
    	?type 'REGULAR, ?figure 'CIRCLE,
    	?figureSize 80:80)
    	pad_list = cons(pad pad_list)
    	pad = copy_axlPadStackPad(pad)
    	pad->type = 'REGULAR
    	pad->layer = "BOTTOM"
    	pad->figure = 'CIRCLE
    	pad->figureSize = 80:80
    	pad_list = cons(pad pad_list)
    	ps_id = axlDBCreatePadStack(name, drill_data, pad_list t)
    	Out_File = outfile("./mult_drill.scr" "w")
    	fprintf(Out_File "setwindow pcb\n")
    	fprintf(Out_File "trapsize 16783\n")
    	fprintf(Out_File "etchedit\n")
    	fprintf(Out_File "padeditdb\n")
    	fprintf(Out_File "setwindow form.mini\n")
    	fprintf(Out_File "FORM mini padlist %s\n" name)
    	fprintf(Out_File "setwindow pcb\n")
    	fprintf(Out_File "padeditcur mult_drill_1.scr\n")
    	fprintf(Out_File "prepopup 0.0 0.0\n")
    	fprintf(Out_File "done\n")
    	fprintf(Out_File "etchedit\n")
    	close(Out_File)
    	Out_File = outfile("./mult_drill_1.scr" "w")
    	fprintf(Out_File "QtSignal GuidedTabsParent GuidedTabs currentChanged Drill\n")
    	fprintf(Out_File "QtSignal GuidedDrillTab PatternStyle CurrentIndexChanged Polar\n")
    	fprintf(Out_File "QtSignal GuidedDrillTab polarRadius editingFinished %L\n" 10.0)
    	fprintf(Out_File "QtSignal GuidedDrillTab polarCopies editingFinished %d\n" 6)
    	fprintf(Out_File "QtSignal MainWindow UpdateToDesignExit triggered\n")
    	fprintf(Out_File "QtSignal pseCheckBrowser Close clicked\n")
    	fprintf(Out_File "QtFillin Yes\n")
    	close(Out_File)
    	axlShellPost("replay mult_drill.scr")
    	axlPadstackToDisk(name)
    )
    ;#####################################################################

    I hope this helps.

    HoangKhoi.

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