Library Manager - new Library

Discussion in 'Cadence' started by Guenther Sohler, Oct 3, 2005.

  1. In our Cadence Enviroment - in the Library Manager , I want guide users to
    create libraries at a dedicated place, if they create the libraries using

    File->New-Library

    I found a enviroment varible, which sounds promising, but it does not
    seem to work. Reading the Documentation about that Variable doesn't
    help me either.


    envSetVal("cdsLibManager.newLib" "pathText" 'string strcat(PROJECT_DIR
    "/work/" USER "/resources/cdb"))

    How can I make users create libraries at a dedicated place by default ?
    I am using cds/IC/5.1.41


    rds
     
    Guenther Sohler, Oct 3, 2005
    #1
    1. Advertisements

  2. Hallo,

    It actually works with

    envSetVal("cdsLibManager.newLib" "pathText" 'string "<directory>")

    there are just 2 issues:

    * you have to put it into your cdsLibMgr.il
    * cdsLibMgr must be found by cadence :)
     
    Guenther Sohler, Oct 3, 2005
    #2
    1. Advertisements

  3. You actually have to put it in two locations one for the DFII
    in your .cdsinit ,you can also create new libraries form DFII,
    and the second in the cdsLibMgr.il for the Lib-Manager as you
    figured out yourself.

    You can as well put the dderv.lib variable directly into the .cdsenv,
    but with the disadvantage that then you have to hard code the
    directory because the .cdsenv does not evaluate UNIX env vars.

    e.g. in the .cdsinit

    ;; setting the default library path for creation of new libraries
    t_projectDir = getShellEnvVar( "myProjectDir" )
    envSetVal( "ddserv.lib" "newLibDir" 'string strcat( t_projectDir "/cdb") )


    and for the cdsLibMgr.il

    t_projectDir = getShellEnvVar( "myProjectDir" )
    envSetVal(
    "cdsLibManager.newLib"
    "pathText"
    'string
    strcat( t_projectDir "/cdb")
    )


    Bernd
     
    Bernd Fischer, Oct 4, 2005
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.