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 2
  • Subscribers 152
  • Views 719
  • Members are here 0
More Content

Adding Filled Pads and filled shapes into my dxf output fie though skill script

ashishya
ashishya 2 months 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
  • DavidJHutchins
    +1 DavidJHutchins 2 months ago

    try changing the sprintf() line to:

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

    • Cancel
    • Up +1 Down
    • Reply
    • Reject Answer
    • Cancel
  • ashishya
    0 ashishya 2 months ago in reply to DavidJHutchins

    Thanks @DavidJHutchins for the help.

    • 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