Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to create a library ?

778 views
Skip to first unread message

bed...@gmail.com

unread,
Feb 21, 2008, 12:22:43 AM2/21/08
to
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.

Martin Heller

unread,
Feb 21, 2008, 4:49:07 AM2/21/08
to
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

bed...@gmail.com schrieb:

Riad KACED

unread,
Feb 21, 2008, 7:26:52 AM2/21/08
to
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.

bed...@gmail.com

unread,
Feb 21, 2008, 9:14:49 PM2/21/08
to
Hi,

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

thanks and regards,

b.

cadence

unread,
Mar 10, 2008, 4:49:58 PM3/10/08
to
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

Riad KACED

unread,
Mar 10, 2008, 6:07:28 PM3/10/08
to
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 ;-)

Andrew Beckett

unread,
Mar 10, 2008, 6:45:10 PM3/10/08
to
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.

0 new messages