• 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. Export DXF.

Stats

  • Replies 28
  • Subscribers 161
  • Views 23683
  • Members are here 0
More Content

Export DXF.

vimaldevlpr
vimaldevlpr over 6 years ago

Hai,

I don't  know how to export DXF for all the present layer by once itself  by using  File->Export->DXF we only take the present layer.  For another we need to change that layer and once again i want to do the same process in this case how to take all the layer by once itself  any one guide me please. if it possible by skill share me the code please.

  • Sign in to reply
  • Cancel
  • Gowtham229
    Gowtham229 over 6 years ago in reply to vimaldevlpr

    i'll try for skill code of this but generally generating artwork & converting artwork to dxf in cam350/other tool is better

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to Gowtham229

    Thanks a lot  gowtham

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • B Bruekers
    B Bruekers over 6 years ago in reply to vimaldevlpr

    Basically you need to write a conversion file for each film. Then run the a2dxf command line utility to create a dxf.

    Something like this:

        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 3 -f 12 -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)

    Take a look at the help of 'a2dxf' for the possible command line options.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to B Bruekers

    Thanks a lott

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to B Bruekers

    Hai Bruekers DXF export is perfectly  working As like that any way  to Export  .PDF file Please guide me

    • 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