libInit with multiple files

R

rick

Guest
What is the syntax of the libInit file when loading multiple files.

Thanks
 
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.
 
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
 
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.
 
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
 
On Jul 10, 5:06 am, rick <ej...@pacbell.net> wrote:
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
 
I-F AB wrote, on 07/12/10 03:24:
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top