How to create a library ?

Guest
hi,

I would like to create a library by skill.

So i use dbCreateLib.

But i can not put any cells inside, because this lib does not refer to
my tech file !

So, i would like to know, by skill, how to create a library which can
refer to my technology file ?

could someone helps me ?

Thanks and regards,

b.
 
Hi,
create the library with dbCreateLib
and attach the techfile to the lib with techBindTechFile
or techSetTechLibName o+ techSetTechFileName.

KR,
Martin Heller

not speaking for ISIT

bedoune@gmail.com schrieb:
hi,

I would like to create a library by skill.

So i use dbCreateLib.

But i can not put any cells inside, because this lib does not refer to
my tech file !

So, i would like to know, by skill, how to create a library which can
refer to my technology file ?

could someone helps me ?

Thanks and regards,

b.
 
Hi Bedo,

1. Try this piece of skill (put it in your own script.il):

(defun rkCreateLib (libName libPath techFile)
let( (libId)
(ddCreateLib libName libPath) ; Create the library
(setq libId (ddGetObj libName)); Get the Lib ID
(techBindTechFile libId techFile) ; Attach to the tech file to the
lib
); let
); rkCreateLib

2. then load it into your CIW session :
(load "yourPath/script.il")

3. Then give it a try ...
(rkCreateLib "myLib" "/tmp/cds/myLib" "myAsciiTechFile")

Cheers,

Riad.

bedo...@gmail.com wrote:
hi,

I would like to create a library by skill.

So i use dbCreateLib.

But i can not put any cells inside, because this lib does not refer to
my tech file !

So, i would like to know, by skill, how to create a library which can
refer to my technology file ?

could someone helps me ?

Thanks and regards,

b.
 
Hi,

thanks a lot for your answers ^^
It works now.

thanks and regards,

b.
 
hi Riad, when creating libries with SKILL the ddCreateLib function
writes
a line in your cds.lib file. And if you delete the library later
programatically
it will comment the line out of your cds.lib and add a comment line.
so if you programmatically create and delete 100 libraries, your
cds.lib
will keep growing and growing.

Have you figured out how to avoid this?

-jim

On Feb 21, 1:26 pm, Riad KACED <riad.ka...@gmail.com> wrote:
Hi Bedo,

1. Try this piece of skill (put it in your own script.il):

(defun rkCreateLib (libName libPath techFile)
let( (libId)
(ddCreateLib libName libPath) ; Create the library
(setq libId (ddGetObj libName)); Get the Lib ID
(techBindTechFile libId techFile) ; Attach to the tech file to the
lib
); let
); rkCreateLib

2. then load it into your CIW session :
(load "yourPath/script.il")

3. Then give it a try ...
(rkCreateLib "myLib" "/tmp/cds/myLib" "myAsciiTechFile")

Cheers,

Riad.

bedo...@gmail.com wrote:
hi,

I would like to create a library by skill.

So i use dbCreateLib.

But i can not put any cells inside, because this lib does not refer to
my tech file !

So, i would like to know, by skill, how to create a library which can
refer to my technology file ?

could someone helps me ?

Thanks and regards,

b.
 
Hi Jim !!

Y're right, these comments in the cds.lib can make this file
unreadble ...
These comments are added even when the Lib is deleted from the lib
manager.
I think the unix shell env variable DD_DELETE_DEFINE can solve this
problem.
If this variable set to YES, then the library entry in the cds.lib is
removed altogether instead being #ed.
I haven't use this feature for a while and I'm wondering if there is a
better mechanism or any new skill function in IC6.X especially.

What do you think ?
I'm sure Andrew has something for this ;-)

Riad.

PS : Did you manage to find any Berbere restaurant down there in
Munich ? I haven't tried anyone since our last time in Grenoble !
Chances are very weak here in Scotland ;-)
 
Riad KACED wrote, on 03/10/08 22:07:
Hi Jim !!

Y're right, these comments in the cds.lib can make this file
unreadble ...
These comments are added even when the Lib is deleted from the lib
manager.
I think the unix shell env variable DD_DELETE_DEFINE can solve this
problem.
If this variable set to YES, then the library entry in the cds.lib is
removed altogether instead being #ed.
I haven't use this feature for a while and I'm wondering if there is a
better mechanism or any new skill function in IC6.X especially.

What do you think ?
I'm sure Andrew has something for this ;-)

Riad.
'fraid not. Sourcelink Solution 11117054 covers what Riad suggests, and it's
really the best solution for now. It's the same in IC6.X as far as I know.

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top