• 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. Export PDF with skill

Stats

  • State Verified Answer
  • Replies 2
  • Subscribers 18
  • Views 5455
  • Members are here 0
More Content

Export PDF with skill

camdal894
camdal894 over 3 years ago

Hey Guys,

I've got a skill program currently which will export the pdf files that I need for my fabrication package for a specific board, in this case "test.brd" I'm still learning basics of skill programming so please excuse my ignorance.

axlCmdRegister( "pdfout" `pdfout)

(defun pdfout ()

sprintf(cmd, "pdf_out test.brd -o PCB -f ADT -f ADB -f DLD -f _outline -s -B")

axlRunBatchDBProgram("pdfout" cmd ?noUnload t )

)

I don't want to have to update the code with current board name every time I want to export though. I am hoping to make it work for whatever current board is open, regardless of the board name. I am picturing that this will use axlCurrentDesign() to fill in where is currently "test.brd" but every thing I've tried so far is not working.

Can someone please let me know what correct code should be to give me what I'm trying to accomplish?

Thanks very much for any help.

Cameron

  • Cancel
  • Sign in to reply
  • DavidJHutchins
    +1 DavidJHutchins over 3 years ago

    With axlRunBatchDBProgram() don't need to include the actual design name, use %s instead

    Below is what I have in come code I wrote for a client:

    (Cmd = strcat("pdf_out -$ %s -PB -o " SrcName " -f " film_name " -c " cmdfile ))
    (status = axlRunBatchDBProgram("pdf_out" Cmd ?noProgress nil ?noLogview t ?warnProgram t))

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • camdal894
    0 camdal894 over 2 years ago in reply to DavidJHutchins

    Hey David,

    Thanks again, this worked well. This is my first finished code that actually does something I care about :) Cheers!


    axlCmdRegister( "pdfout" `pdfout)
    (defun pdfout ()
    (Cmd = strcat("pdf_out -$ %s -o PCB -f ADT -f ADB -f DLD -f FAB -f _outline -s -B"))
    (status = axlRunBatchDBProgram("pdf_out" Cmd ?noProgress nil ?noLogview t ?warnProgram t))
    )

    • 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