Home
  • Products
  • Solutions
  • Support
  • Company
  • Products
  • Solutions
  • Support
  • Company
Community PCB Design Allegro PCB Editor and PCB SKILL Adding Filled Pads and filled shapes into my dxf output...

Stats

  • State Verified Answer
  • Replies 5
  • Subscribers 145
  • Views 353
  • Members are here 0
More Content

Adding Filled Pads and filled shapes into my dxf output file through skill script

ashishya
ashishya 14 days ago

I got the script for DXF generating of individual artwork written by @B Bruekers script is as follows-

l_cnvFiles = nil
designName = axlCurrentDesign()
foreach(filmName axlGetParam("artwork")->groupMembers
f = strcat("DXF_" filmName)
p = axlDMOpenFile("ALLEGRO_CNV" f "w")
fprintf(p "#This is the Layer Conversion File used for\n")
fprintf(p "#importing DXF data into Allegro/APD.\n\n")
fprintf(p "#CLASS!SUBCLASS!DXF_LAYER!\n\n")
foreach(layer axlGetParam(strcat("artwork:" filmName))->groupMembers
layerStr = parseString(layer "/")
fprintf(p "%s!\n%s!%s!\n\n" car(layerStr) cadr(layerStr) strcat(car(layerStr) "_" cadr(layerStr)))
)
fprintf(p "#END\n")
push(get_filename(p) l_cnvFiles)
axlDMClose(p)
sprintf(cmd "a2dxf -$ -u MM -a 4 -f 14 -c L \"%s.cnv\" \"%s/%s_%s.dxf\" %%s" f getWorkingDir() designName filmName)
axlRunBatchDBProgram("Creating DXF File" cmd ?warnProgram t ?noExitMsgs t)
)
errset(mapcar('deleteFile l_cnvFiles) t)

but I need to add two more option into the a2dxf function which are "export filled pads & fill solid shapes and rectangles" as per below pic-

 can someone help me how can i do that?

  • Reply
  • Cancel
  • Cancel
  • eDave
    +1 eDave 13 days ago

    Take a look at the a2dxf.txt file in ...\share\pcb\batchhelp.

    You probably want to add -s and -p optional arguments.

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ashishya
    0 ashishya 13 days ago in reply to eDave

    Thanks a lot,

    Yes by adding -s and -p my requirement is fulfilled.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • ashishya
    0 ashishya 11 days ago in reply to eDave

    Hello @eDave i want to create a folder in which all dxf export will be done. where  i need to change in the script.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • eDave
    0 eDave 7 days ago in reply to ashishya

    sprintf(cmd "a2dxf -$ -u MM -a 4 -f 14 -c L \"%s.cnv\" \"%s/%s_%s.dxf\" %%s" f dxfOutputFolder designName filmName)

    Where dxfOutputFolder is your dxf export folder.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • ashishya
    0 ashishya 1 day ago in reply to eDave

    Thanks for the response but it doesn't work. I have tried with CreateDir function but it doesn't work either.

    • Cancel
    • Up 0 Down
    • 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.

© 2023 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information