I want to write artworks to a design dependent output directory.
I have a script to create artworks,
olddir = "output"outdir = "output/123456-ND-A"axlSetVariable("ads_sdart" outdir) ; set working directory to output directory sprintf(script "scriptmode +i +n +w +c\n setwindow pcb\n artwork\n setwindow form.film_control\n FORM film_control select_all\n
FORM film_control database_check YES\n FORM film_control create\n setwindow form.film_control\n FORM film_control ok\n setwindow pcb\n ") ;end sprintf COD_replay_script(script)
axlSetVariable("ads_sdart" olddir) ;
If I set "ads_sdart" using setup user preferences, it works fine. If I use this script, the artworks is generated in "output" and art_param.txt is generated in "output/123456-ND-A". That does not make any sense to me. Any surgestions?Alternatively I could move the files afterwards, but that requires much more unessesary coding.
Here is the answer I got from support.
I have checked this with our Skill Expert and this is what he has to say on this."This is not a problem with the SKILL function. Setting the variable with SKILL in this way sets the variable for the current session. When you generate artwork it calls an external application which reads the env file. Setting the variable with the SKIILL function does not change the env file. If you look at this variable in the preferences editor you will see that it requires a restart of Allegro to take effect.If the customer really wants to control this with SKILL then they must create a function that parses and updates the env file."
I ended up with writing a function that copies the files from "ads_sdart"
I dont know, if it has been changed since. This was in June 2012.