• 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. Setting Allegro menu accessible settings with skill

Stats

  • Replies 2
  • Subscribers 18
  • Views 9813
  • Members are here 0
More Content

Setting Allegro menu accessible settings with skill

HighFive
HighFive over 5 years ago

Hello,

There are some "user settings" that I need to set for my script to produce the desired results. These all revolve around display settings, which I'm not sure how to set using function calls. I've looked through the user manual but havent seen anything. Here's the settings I need to modify:

  1. Setup->DesignParameters->Display:plated holes
  2. Setup->DesignParameters->Display:non-plated holes
  3. Setup->DesignParameters->Display:filled pads
  4. Setup->DesignParameters->Display->display net names(opengl only):pins
  5. File->Plot Setup->General: [all settings on this page ]
  6. File->Plot Setup->Windows: [all settings on this page ]
  7. File->Plot: [properties for the printer 

Is this something that would be better done with the script interface? I wasnt sure if there were function calls to navigate the menu structure with skill or not. If this isnt something that can be done via function calls, what is the best way to run a script (.scr) from within a .il file?

Cheers and thankyou

  • Cancel
  • Sign in to reply
Parents
  • DavidJHutchins
    DavidJHutchins over 5 years ago

    axlDBDisplayControl() controls the first 4 items, not sure about the printing stuff...

    (axlDBDisplayControl 'platedHolesEnable t)

    (axlDBDisplayControl 'nonPlatedHolesEnable t)

    (axlDBDisplayControl 'filledPadsEnable t)

    (axlDBDisplayControl 'displayNetNames t)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • DavidJHutchins
    DavidJHutchins over 5 years ago

    axlDBDisplayControl() controls the first 4 items, not sure about the printing stuff...

    (axlDBDisplayControl 'platedHolesEnable t)

    (axlDBDisplayControl 'nonPlatedHolesEnable t)

    (axlDBDisplayControl 'filledPadsEnable t)

    (axlDBDisplayControl 'displayNetNames t)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • HighFive
    HighFive over 5 years ago in reply to DavidJHutchins

    As always, thank you for your excellent response David. You  are a wealth of information and I appreciate your contribution and assistance. 

    I was able to get the printing stuff to work, by recording a .scr script, and then replaying the .scr file from within my .il file. Posting this here in case someone in the future has the same issue.

    Inside the skill .il file, calling the external script:

    axlShell("replay C:/Cadence/Setup/plot.scr")
    _____________________________________________________________________________________
    contents of plot.scr:
        generaledit
        plot setup 
        setwindow form.fpfileplotsetup
        FORM fpfileplotsetup fpplotscale 1.00 
        FORM fpfileplotsetup fpplotlineweight 1 
        FORM fpfileplotsetup fpplotscaling YES 
        FORM fpfileplotsetup fpplotautocenter YES 
        FORM fpfileplotsetup fpplotmirror NO 
        FORM fpfileplotsetup fpplotcolor YES 
        ;FORM fpfileplotsetup fpplotsheetcontents YES 
        FORM fpfileplotsetup fpplotscreencontents YES 
        FORM fpfileplotsetup windows  
        FORM fpfileplotsetup fpplotnonvectortext YES 
        setwindow form.fpfileplotsetup
        FORM fpfileplotsetup fpplotnonvectortextfont Calibri
        FORM fpfileplotsetup done  
        setwindow pcb
        generaledit 

        plotwint initialize "Foxit Reader PDF Printer"
        plotwint orientation 1
        plotwint papername "Letter"
        plotwint scale 100
        plotwint copies 1
        plotwint defaultsource 7
        plotwint printquality 600
        plotwint color 2
        plotwint duplex 1
        plotwint plottofile "plot.plottofile"
        plotwint execute
    This is a clean way to export a pdf of the current view. I'm nearly complete with the entire script, which emulates the "Label Tuning" function of the Allegro Productivity toolkit. I'll post the complete script in the forum when complete, so others may benefit.
    Cheers
    • 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