• 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. Set shape transparency for pdf_out export via skill

Stats

  • State Suggested Answer
  • Replies 5
  • Answers 1
  • Subscribers 19
  • Views 1509
  • Members are here 0
More Content

Set shape transparency for pdf_out export via skill

SOT23
SOT23 9 months ago

Hello.

I am writing a SKILL script to export a PDF of the gerber files with correct parameters. I am trying to set the transparency level of the filled shapes to 0 using axlSetVariable() so that the gerber shapes are black but it doesn't work.

Here is the code :

; get the current shape transparency setting
shapeTransparency = axlGetVariable("pdf_filled_shape_transparency")
println(shapeTransparency)

; set transparency to 0
println(axlSetVariable("pdf_filled_shape_transparency" 0))
println(shapeTransparency)

; print PDFs
sprintf(cmd, "pdf_out BOARD_NAME.brd -o 1 -f ARTWORK_NAME -s -B -a -p -h -c gerberPDF.conf")
axlRunBatchDBProgram("pdfout" cmd ?noUnload t )

; set back transparency to previous value
axlSetVariable("pdf_filled_shape_transparency" shapeTransparency)
println(shapeTransparency)

I can read the current shape transparency setting. However, each time I println it through the program, I always get the same value. It seems like axlSetVariable() doesn't work here. I have tried using axlSetVariableFile() with the same results.

Anyone has an idea what might be wrong here ?

Thank you!

  • Sign in to reply
  • Cancel
Parents
  • DavidJHutchins
    0 DavidJHutchins 9 months ago

    I would change:

    println(axlSetVariable("pdf_filled_shape_transparency" 0))

    to

    axlSetVariable("pdf_filled_shape_transparency" 0)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • DavidJHutchins
    0 DavidJHutchins 9 months ago

    I would change:

    println(axlSetVariable("pdf_filled_shape_transparency" 0))

    to

    axlSetVariable("pdf_filled_shape_transparency" 0)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • SOT23
    0 SOT23 9 months ago in reply to DavidJHutchins

    Hello, that is what I initially did, and it does not work. I used println to print the returned value of the function axlSetVariable, which is "t" here.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DavidJHutchins
    0 DavidJHutchins 9 months ago in reply to SOT23

    I am not sure if setting the variable value in Allegro is going to be seen when you run the export using axlRunBatchDBProgram()

    since I am not sure the sub-process inherits the current sessions variables...

    • 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