• 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. How can parts be placed programmatically and then modified...

Stats

  • State Not Answered
  • Replies 1
  • Subscribers 13
  • Views 90
  • Members are here 0
More Content

How can parts be placed programmatically and then modified afterwards?

RT202503126350
RT202503126350 3 days ago

Is it possible to place a part at an x,y coordinate and then get a reference to that part so it can be subsequently modified (set refdes, etc, for example using SetEffectivePropStringValue)?

There is the Capture Command "PlacePart"

PlacePart(x, y, libName, pkgName, device, boolvalue6)

But it doesn't return a reference to the part, so I cant further operate on the part programmatically. Is there a database command alternative that returns a reference (I thought maybe in DboSchematic or DboPlacedInst, but I couldnt find anything that seemed right.)

I have seen a solution generated by AI, which places a part using "Place Part", and then iterates through all parts in the design, and compares their x,y coordinates with the values used in the "PlacePart" call, and returns the best match, but that seems like a ridiculous effort, especially if I want to place hundreds of parts, and the existing schematic also has many hundreds of existing parts that all have to be looped through each time I place a new part.

Specifically, I have an existing design with ~100 test point symbols.  I want to find each of these test point symbols, and place a pogo pin symbol nearby whose refdes is based on the existing test point's refdes (i.e. pogo P101 for the test point TP101).  I cant figure out a good way to do this without the above functionality.

  • Cancel
  • Sign in to reply
  • CadAP
    0 CadAP 3 days ago

    RT202503126350 

    As you know the location of placed component, use below tcl command to select the object and modify.

    SelectObject(x, y, boolvalue3)
    Parameters:
    x: double
    y: double
    boolvalue3: char const *

    Hope it will help here.

    • 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