• 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
  • ABIKRISHNA
    0 ABIKRISHNA 7 months ago

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

    ==> In this code it shows nil in shapeTransparency value.

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

    ==>In this code only you set the pdf_filled_shape_transparency value to 0. So it gives output as shapeTransparency nil

    ; 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)

    In this you are settting pdf_filled_shape_transparency=>shapeTransparency. We already shapeTransparency is updated as nil. So it always gives nil only.

    --------------------------------------------------------------

    Below I changed the code Kindly test it.

    axlSetVariable("pdf_filled_shape_transparency" 1)

    before_shapeTransparency = axlGetVariable("pdf_filled_shape_transparency")
    println(before_shapeTransparency)

    ; set transparency to 0
    println(axlSetVariable("pdf_filled_shape_transparency" 0))
    println(before_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" before_shapeTransparency)
    println(before_shapeTransparency)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Ulf K
    0 Ulf K 7 months ago in reply to ABIKRISHNA

    ...Borrowing the thread...

    Intended for Cadence staff: Suggesting a product enhancement.  Not a priority but...

    When creating (service) documentation, it is often helpful not only to show the Assembly layer with component outlines but it would also be of great help if the top layer could be presented in some level of gray-scale as well - provided of course that the top layer apart from the solder pads is not a solid ground plane.

    In older service manuals, this was often accomplished using manual labor and photo-copying. If creating service documentation in color that would be one thing, but solid filled shapes are not optimum. Same thing with traces where (my favorite...) skeletal view of pads and traces could be implemented as well.

    Using OrCAD Professional, maybe these features are available in higher (allegro) license levels.

    If they are, then sorry for the noise.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Ulf K
    0 Ulf K 7 months ago in reply to ABIKRISHNA

    ...Borrowing the thread...

    Intended for Cadence staff: Suggesting a product enhancement.  Not a priority but...

    When creating (service) documentation, it is often helpful not only to show the Assembly layer with component outlines but it would also be of great help if the top layer could be presented in some level of gray-scale as well - provided of course that the top layer apart from the solder pads is not a solid ground plane.

    In older service manuals, this was often accomplished using manual labor and photo-copying. If creating service documentation in color that would be one thing, but solid filled shapes are not optimum. Same thing with traces where (my favorite...) skeletal view of pads and traces could be implemented as well.

    Using OrCAD Professional, maybe these features are available in higher (allegro) license levels.

    If they are, then sorry for the noise.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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