• 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. "Header" files in skill and limits in dll files (fxffxf...

Stats

  • Replies 3
  • Subscribers 160
  • Views 1442
  • Members are here 0
More Content

"Header" files in skill and limits in dll files (fxffxf 4 U maybe :-)).

Romme
Romme over 14 years ago

Hello everyone.

  On doing some skill jobs again and again and ... One might find it smart to do an "external" skill job with the repeated parts. And no problem here. But as in Assembler, Pascal and C one could put variables into a header file. Is it possible to make a blabla.il file without any functions or procedures, but only variable declarations ? Eg if one are using a modified code from Dave to do footprints it could be easy to place line width and such in the "header" file to have all footprints looking equal. something like :

Assy_Lines = 0.05

Silk_Lines  = 0.15

Assy_pin1_Mark_IC = Circle

Silk_pin1_Mark_IC  = Circle

Assy_pin1_Mark = 1

Silk_pin1_Mark  = 1

This little short examble is to short to show the advantage of a header file, but i hope You do understand :-).

 

Additionally. Is there some where a good (not the one from the home path) explanation on how to do a dll files with skills and explaning the limits in programming this way ? Eg when looking at the exambles it looks like demands are one way only, understood as You can call functions and procedures in the dll file, but from this dll file you cannot control anything Allegro ? Am i wrong ?

 

Rgds

  Klavs.

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 14 years ago

    You can declare such global variables in your allegro.ilinit file. For instance I have the following variable declared:

    defvar(taitCurrentAllegroVersion, 16.3)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EvanShultz
    EvanShultz over 6 years ago in reply to eDave

    Hi all,

    Resurrecting a very old thread...

    If you do this sklint will complain about it. I can find on the forum there is a way to ignore variable prefixes but I didn't see the syntax. To hopefully save somebody else time in the future, here is how to avoid Lint issues with the global variable defined above using a generic file name:

    sklint(?file "skill.il" ?prefixes list('tait))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 6 years ago in reply to EvanShultz

    Thanks Evan. I wasn't aware of this. I have taken to including a dummy function within my utilities where I declare such variables to avoid such lint complaints. Now I have a good alternative.

    • 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