• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Try to load specific lsw file

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13765
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Try to load specific lsw file

FabienG
FabienG over 15 years ago

 

I would like to load specific lsw file. I have no problem with the pop-up form but

when I try to load the lsw file chosen, I have this error :

  *Error* leSetLayerAttributes: invalid techFileId - (db:0x0fa3f892 (("WG" "drawing") t t t)

But when I tape the command in the icfb window, there is no problem.

This command must be loaded by libInit.il file

load(strcat(getShellEnvVar("DK_INSTALLATION") "/dfII/Techno1.lsw"))

 

Do you know why this command works in icfb form and doens't in libInit.il file ?
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

     

    Assuming by "load specific lsw file" you mean doing the equivalent of Edit->Load (from file) in the LSW but at startup, then it's as follows:

    1. If you have a file created via the Edit->Save (set to to File) to save the LSW settings, edit it so that
       just before the line that says:

            leSetInstSelectable(t tech)
            leSetPinSelectable(t tech)
            leSetLayerAttributes(tech
    ...

       you add a line:
            leInitLayerWindow(tech)

       This is to ensure that the LSW is initialized before you set any of the attributes.

    2. Then all you need to do is add:
            load("/path/to/your/saved/file.il")
       in your .cdsinit or libInit.il

    Regards,

    Andrew.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • FabienG
    FabienG over 15 years ago

     thanks you for your answer.

    I have tried your solution but that's doesn't work. Nothing happen ...

    Actually, I have founded another way to reach what I want : 

    I created another file with like this one above and I load it via the libInit.il file : 


    tfID = techOpenTechFile("DK_lib" "tech.db" "r")
    techSetLeLswLayers( tfID list(    list("NPLUS1" "drawing")
                    list("PPLUS1" "drawing")
                    list("NPLUS2" "drawing")
                    list("PPLUS2" "drawing")
                    list("NPLUS3" "drawing")
                    list("PPLUS3" "drawing")
    ....

    ); end  techSetLeLswLayers

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information