• 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. Allegro X Scripting - TCL
  3. trying to load a .olb librray file

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 13
  • Views 107
  • Members are here 0
More Content

trying to load a .olb librray file

digital1
digital1 4 days ago

Hi All 

I have created this script to create a .olb library and save the library.unfortunately it doesnt load it into Project Manager under libraries

# Get the active Capture Dbo session
set lSession $::DboSession_s_pDboSession
DboSession -this $lSession

# Create a status object
set lStatus [DboState]

# Set the library name
set lNewLibName [DboTclHelper_sMakeCString]
DboTclHelper_sSetCString $lNewLibName "test_library.olb"

# Create the library object
set lNewLib [$lSession CreateLib $lNewLibName $lStatus]
set lSaveStatus [$lSession SaveLib $lNewLib]

#this now removed the library from the design and removed the lock on the library
$lSession RemoveLib $lNewLib

What i want is the code that will load this .olb library into project manager window in orcad capture

  • Sign in to reply
  • Cancel
  • TechnoBobby
    0 TechnoBobby 2 days ago

    Hi digital1 ,

    After creating and saving the .olb, you can try loading it into the Project Manager using the same GUI Open method used for loading a DSN:

    Open {C:/path/to/test_library.olb}

    This should allow the library to be opened through the Capture GUI and shown in the Project Manager.

    Hope this helps.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • digital1
    0 digital1 2 days ago in reply to TechnoBobby

    Hi TechnoBobby 

    Sorry I didn't make myself clear i have already created a dsn project and i want to load the .opj file into the design under the project window unfortunately your answer loaded the .olb file into a differnt session than my original design.

    What I am doing is converting a kicad schematic into orcad this is so i can import Altium Binary mentor graphics binary cad star and a few others Im starting with the schematic and then i will be doing the pcb thsi will be useful as kicad can convert a gerber into a pcb file you then have to load the components.

    But i do appreciate the help thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

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.

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

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