• 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. Place database part in OrCAD with TCL?

Stats

  • State Verified Answer
  • Replies 3
  • Subscribers 12
  • Views 116
  • Members are here 0
More Content

Place database part in OrCAD with TCL?

Gelzone
Gelzone 3 days ago

I need to place a CIS part in a page automatically, and here is the steps:

The manual process:

Open a page ->

Right click "Place Database Part" ->

At the CIS Explorer ->

Use Query to find the target part (e.g. Property = Part Number & Compare = '=' & Value = PN)

And I have tried "PlacePart" command but failed (e.g. PlacePart 1.5 1.5 <olb_full_path> "" "" FALSE), it showed Failed. Reason: Invalid Path or Invalid Argument(s). .

  • Cancel
  • Sign in to reply
  • TechnoBobby
    +1 TechnoBobby 3 days ago

    Hi Gelzone ,

    To automate placing a CIS part on a page, you can use the following TCL commands:

    CPartMgmt_sLaunchCISExplorer [GetActivePMDesign]
    # SetRelationalQuery 1
    # SetRelationalQuery 0
    CISAddSearchQuery "PART NUMBER" "=" "ECE-V1HA0R1R"

    CISExecuteQuery

    CISExplorerSelectOption 1 1 0
    CISExplorerSelectOption 1 1 1
    set lLocXY [GetLastMouseClickPointOnPage]
    # puts $lLocXY
    capMoveMouseAndClick [lindex $lLocXY 0] [lindex $lLocXY 1]

    Hope this helps!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Gelzone
    0 Gelzone 3 days ago in reply to TechnoBobby

    That's what I want, thanks.

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

    TechnoBobby 

    Sorry for bothering, I found there's a issue when I do CPartMgmt_sLaunchCISExplorer [GetActivePMDesign].
    After I get into the CIS explorer, it shows a message:
    {title:"Library Caching Progress",
    content:"INFO(ORCIS-6477): Library and package indexing in progress. This might take some time"
    },

    under this situation, I can't access the parts show in the window (i.e. it marks the entire row with red). And I close the tab and open again, the issue disappear (I think it does something like reloading?)


    Have you met this kind of issue before? 

    • 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.

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

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