rick
Guest
Fri Jul 09, 2010 2:22 am
What is the syntax of the libInit file when loading multiple files.
Thanks
I-F AB
Guest
Fri Jul 09, 2010 11:09 am
On Jul 9, 7:22 am, rick <ej...@pacbell.net> wrote:
Quote:
What is the syntax of the libInit file when loading multiple files.
Thanks
Get a list of files in a directory with getDirFiles() then use loadi()
on each file like normal.
rick
Guest
Fri Jul 09, 2010 5:52 pm
On Jul 9, 1:09 am, I-F AB <cop0...@gmail.com> wrote:
Quote:
On Jul 9, 7:22 am, rick <ej...@pacbell.net> wrote:
What is the syntax of the libInit file when loading multiple files.
Thanks
Get a list of files in a directory with getDirFiles() then use loadi()
on each file like normal.
any chance you can post an example?
Thanks
Andrew Beckett
Guest
Fri Jul 09, 2010 6:52 pm
rick wrote, on 07/09/10 15:52:
Quote:
On Jul 9, 1:09 am, I-F AB<cop0...@gmail.com> wrote:
On Jul 9, 7:22 am, rick<ej...@pacbell.net> wrote:
What is the syntax of the libInit file when loading multiple files.
Thanks
Get a list of files in a directory with getDirFiles() then use loadi()
on each file like normal.
any chance you can post an example?
Thanks
libInit.il is just a SKILL file. I don't see why it's any different from loading
multiple files anywhere else.
If you have (say) a "SKILL" directory within your library, you could do:
let((libDir)
libDir=ddGetObj("myLibName")~>readPath
foreach(file rexMatchList("\.il$" getDirFiles(strcat(libDir "/SKILL")))
loadi(strcat(libDir "/SKILL/" file)
)
)
Note this is not tested - off the top of my head. Hopefully it's enough of a
pointer.
Andrew.
rick
Guest
Sat Jul 10, 2010 12:06 am
On Jul 9, 10:52 am, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote:
rick wrote, on 07/09/10 15:52:
On Jul 9, 1:09 am, I-F AB<cop0...@gmail.com> wrote:
On Jul 9, 7:22 am, rick<ej...@pacbell.net> wrote:
What is the syntax of the libInit file when loading multiple files.
Thanks
Get a list of files in a directory with getDirFiles() then use loadi()
on each file like normal.
any chance you can post an example?
Thanks
libInit.il is just a SKILL file. I don't see why it's any different from loading
multiple files anywhere else.
If you have (say) a "SKILL" directory within your library, you could do:
let((libDir)
libDir=ddGetObj("myLibName")~>readPath
foreach(file rexMatchList("\.il$" getDirFiles(strcat(libDir "/SKILL")))
loadi(strcat(libDir "/SKILL/" file)
)
)
Note this is not tested - off the top of my head. Hopefully it's enough of a
pointer.
Andrew.
my apologies for being syntax-ically challenged!!! Can I just have a
loadi for each file? BTW, this is
for Assura
Thanks
Rick
I-F AB
Guest
Mon Jul 12, 2010 5:24 am
On Jul 10, 5:06 am, rick <ej...@pacbell.net> wrote:
Quote:
On Jul 9, 10:52 am, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm
wrote:
rick wrote, on 07/09/10 15:52:
On Jul 9, 1:09 am, I-F AB<cop0...@gmail.com> wrote:
On Jul 9, 7:22 am, rick<ej...@pacbell.net> wrote:
What is the syntax of the libInit file when loading multiple files.
Thanks
Get a list of files in a directory with getDirFiles() then use loadi()
on each file like normal.
any chance you can post an example?
Thanks
libInit.il is just a SKILL file. I don't see why it's any different from loading
multiple files anywhere else.
If you have (say) a "SKILL" directory within your library, you could do:
let((libDir)
libDir=ddGetObj("myLibName")~>readPath
foreach(file rexMatchList("\.il$" getDirFiles(strcat(libDir "/SKILL")))
loadi(strcat(libDir "/SKILL/" file)
)
)
Note this is not tested - off the top of my head. Hopefully it's enough of a
pointer.
Andrew.
my apologies for being syntax-ically challenged!!! Can I just have a
loadi for each file? BTW, this is
for Assura
Thanks
Rick
Hi,
Do you mean you want to read some rule files for Assura
implementation?
That should be controlled in the runset .rsf file.
Of course for any normal SKILL file you can just use loadi() on each
file.
Best regards,
I-FAB
Andrew Beckett
Guest
Mon Jul 12, 2010 10:25 am
I-F AB wrote, on 07/12/10 03:24:
Quote:
Andrew.
my apologies for being syntax-ically challenged!!! Can I just have a
loadi for each file? BTW, this is
for Assura
Thanks
Rick
Hi,
Do you mean you want to read some rule files for Assura
implementation?
That should be controlled in the runset .rsf file.
Of course for any normal SKILL file you can just use loadi() on each
file.
Best regards,
I-FAB
My guess is that that is "for Assura" meaning that you want to ensure your pcell
SKILL code is loaded? Anyway, yes, you can put explicit load() or loadi() calls
in your libInit.il . It's just SKILL like anything else...
Regards,
Andrew.