• 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. nc_param.txt & art_param.txt

Stats

  • Replies 3
  • Subscribers 159
  • Views 3632
  • Members are here 0
More Content

nc_param.txt & art_param.txt

wERerABbiT
wERerABbiT over 16 years ago

Hi All,

Currently the Drill Parameters are saved by default to the text file nc_param.txt, while the Artwork Parameters saved by default to art_param.txt.

However, from within the "NC Parameters" dialog window (MANUFACTURE -> NC -> NC Parameters) it is possible to choose another text file (i.e. with different file name) to load the drill parameters. 

1) From within a .brd file. Is there any command that returns name of the NC Parameters text file?

2) Is it possilbe to for Artwork Parameters to be saved and refers to another artwork parameter filename (instead of the defaule art_param.txt)?

 Thanks All

 ** I'm trying to include within the skill code an option for user to load from a number of predefined artwork and drill parameters file 

 

 

 

  • Sign in to reply
  • Cancel
  • redwire
    redwire over 16 years ago

     I am no SKILL expert but here's how I did something like that.  When the user selects the option, I create a script file with the appropriate commands based on the user's selection and execute that script and then delete the script.

     That is very trivial -- hopefully the experts can give you a more precise answer.


    Bill

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mcatramb91
    mcatramb91 over 16 years ago

    As far as I know there is no way to change the default name for the NC Drill(nc_param.txt) and Artwork (art_param.txt) Parameter files. What most users do is setup a special directory or directories to store these customized parameter files then set an environmental variable to point to the special directory which is normally stored in your Allegro library.

    To retarget where Allegro looks for the NC Drill Parameters set the following environmental variable:
         set ncdpath = . C:\Corporate_lib\ncdrill_param
    In this directory you will store the file "nc_param.txt" and the way I have it defined above it Allegro will first look in the directory the design is in "." and if it cannot find it there then it will look in the directory "C:\Corporate_lib\ncdrill_param"

    To retarget where Allegro looks for the Artwork Parameters set the following environmental variable:
         set artpath = . C:\Corporate_lib\artwork_param
    In this directory you will store the file "art_param.txt" and the way I have it defined above it Allegro will first look in the directory the design is in "." and if it cannot find it there then it will look in the directory "C:\Corporate_lib\ncdrill_param"

    These can be set with a simple script or a special ENV file that your users point to but if you would like to change it on the fly using SKILL then you would do the following:

         axlSetVariable("ncdpath" '("." "C:\Corporate_lib\ncdrill_param"))
         axlSetVariable("artpath" '("." "C:\Corporate_lib\artwork_param"))

    You don't need separate directories for these parameters files but I just indicated that above to explain the point.

    My preference is to set these ENV varaibles in a special ENV file that all your users point to so when they bring up Allegro it will automatically be set to point to the parameter files stored in the library.  Also if they run any of the batch routines to generate Artwork or NC Drill Data then it will also point to your library for the parameter files.

    Hope this helps,
    Michael Catrambone
    UTStarcom, Inc

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wERerABbiT
    wERerABbiT over 16 years ago

    Thanks redwire & mcatramb91 !!!

    For now, maybe I will allow user to select a template but then overwrite the default nc_param.txt  &  art_param.txt with the template values.

     

     

    • 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