Can somone explain to me how can I run my SKILL function on Allegro PCB
On tool start up. Calling the function from allegro.ilinit can't be performed.
Thank You in advance,
You will have to be a bit more specific.
allegro.ilinit should run if it's in the correct path. Check your ALLEGRO_SITE environment variable.
In reply to eDave:
Thank You for reply.
My "ALLEGRO_SITE" variable defined correctly - all my functions are loaded from inside "ALLEGRO_SITE/skill/allegro.ilinit".
I wrote the next lines in "ALLEGRO_SITE/skill/allegro.ilinit.
axlCmdRegister("CMD_Name" 'Func_Name ?cmdType "general")
To autorun the function I added (In the End of allegro.ilinit)
CMD_Name (or Func_Name() ):
But it caused the tool to fail on startup. What is done wrong?
In reply to Kadar:
This is an example of what your ilinit file should contain:
axlCmdRegister("tidy folder" 'tidyFolder ?cmdType "general")
tidyFolder.autoload = "tidyFolder.il"
To run this routine I need to type tidy folder in the console window.
If you want a routine to run every time you start Allegro you should look at the axlTriggerSet command. This is a command that I have in our ilinit file:
tait_OpenAllegroTrigger is a Skill function.
After some code changes and using "axlTriggerSet" function
My function runs on tool statup.