The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 28th, 2024, 6:16am
Pages: 1
Send Topic Print
Export effective cds.lib contents (Read 2038 times)
pupule
New Member
*
Offline



Posts: 2

Export effective cds.lib contents
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
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Export effective cds.lib contents
Reply #1 - 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.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.