The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Other CAD Tools >> Entry Tools >> Export effective cds.lib contents
https://designers-guide.org/forum/YaBB.pl?num=1500654491

Message started by pupule on Jul 21st, 2017, 9:28am

Title: Export effective cds.lib contents
Post by pupule on Jul 21st, 2017, 9:28am

Hello,

I have a cds.lib that is created by a few files with a number of environment variables set by project setup files.  Is there a way to export an effective cds.lib file with all of the environment variables elaborated?

Thanks,
Pupule

Title: Re: Export effective cds.lib contents
Post by Andrew Beckett on Jul 25th, 2017, 1:08pm

I don't think there's a direct utility to do it, but with a small bit of SKILL code this is easy enough:

Code:
procedure(DGexportCdsLib(newCdsLibPath)
 let((outp)
   outp=outfile(newCdsLibPath)
   unless(outp error("Could not write to %L\n" newCdsLibPath))
   foreach(lib ddGetLibList()
     fprintf(outp "DEFINE %s %s\n" lib~>name lib~>readPath)
   )
   close(outp)
 )
)


Then just use DGexportCdsLib("./export.lib")

Regards,

Andrew.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.