• 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. Adding Filled Pads and filled shapes into my dxf output...

Stats

  • State Verified Answer
  • Replies 6
  • Subscribers 17
  • Views 5412
  • Members are here 0
More Content

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

ashishya
ashishya over 2 years 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?

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

    Finally in my free time i have tweaked the program and now it create all layer dxf into a single folder.

    So first create a variable with folder name such as dxdir =  "output_DXF"    \\ output_DXF is folder name

    then use createdir (dxdir) to create a directory and finally put this variable into sprintf command such as below-

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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to 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.

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

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