• 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. Reuse code, libraries, inclusion mechanism.

Stats

  • Replies 0
  • Subscribers 158
  • Views 4671
  • Members are here 0
More Content

Reuse code, libraries, inclusion mechanism.

Silver John
Silver John over 14 years ago

 Hi All.

I propose discuss the mechanism for storage the code in libraries, and easy inclusion it in project.
I suggest:
- Use environment variable SITE_SKILLPATH (with one or more paths)
- To place the libraries in $SITE_SKILLPATH$/lib/...
- To develop a function "axlInclude", load it in the .ilinit.
  Function searches library file in the specified folder $SITE_SKILLPATH$ and loads it.
  E.g. axlInclude(lib/myLib1/myFile1.il).

This way also give ability to separate project code to some files, and simple include their in one main file.
E.g.:
- place project to folder $SITE_SKILLPATH$/project1
- load other project files in main file: axlInclude(project1/file1.il)
- load main file in the .ilinit.
Also can store other files in this folder ($SITE_SKILLPATH$/project1) and expand function for finding full path to non-il-file from relativ path:
axlInclude(project1/file1.form) -> O:/Sripts/project1/file1.form

What do you think about it?
Maybe there are simpler solutions?

  • 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