• 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. PCB Design
  3. Orcad Capture 17.2 TCL & Symbol creation.

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 164
  • Views 2955
  • Members are here 0
More Content
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

Orcad Capture 17.2 TCL & Symbol creation.

excellon1
excellon1 over 6 years ago

Hi, I was wondering is it possible to use TCL in orcad capture when creating symbols.

Specifically what I want to accomplish is the addition of attributes to symbols by automating the process.

When I create a symbol I like to pre-load the symbol with attributes so that I can generate a meaningful BOM and or make a schematic more legible. For example on my schematics I include the PCB Footprint value on each symbol so a engineer can see at a glance what PCB Footprint is assigned to that particular symbol. I also have additional attributes that would be geared to the bom such as P/N, MFR PN etc but these typically remain hidden.

Thus far doing this has been a highly manual operation that I am trying to automate and was thinking TCL may just be the answer.

If anyone has any insight on this it would be very helpful. I had looked over the TCL Documentation but it seemed more geared to the schematic than physically creating symbols.

Thanks.

  • Cancel
  • Alok Tripathi
    Alok Tripathi over 6 years ago

    Yes. You can use Tcl to create symbol or add additional properties. Here is a sample script to add a new property

    You can add new property on symbol using following tcl commands:-

     

    # [Assuming you have object of DboLibPart  ($lPart) ]

    set mStatus [DboState]

    set lPropName [DboTclHelper_sMakeCString {Description}]

    set pLocation [DboTclHelper_sMakeCPoint 40 60]

    set pFont [DboTclHelper_sMakeLOGFONT {Description} 8 0 0 0 400 0 0 0 0 7 0 1 16]

    set mProp [$lPart NewDisplayProp $mStatus $lPropName $pLocation 0 $pFont 48]

    $mProp SetHorizontalTextJustification 0

     

    There is no direct API through which you can move the Display property but you can change the location of Display Property using following tcl commands:-

    # [Assuming you have object of DboLibPart  ($lPart) ]

    set mStatus [DboState]

    set lPropName [DboTclHelper_sMakeCString {Part Reference}]

    set lDisplayProp [$lPart GetDisplayProp $lPropName $mStatus]

    $lDisplayProp SetLocation [DboTclHelper_sMakeCPoint 100 100]

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • excellon1
    excellon1 over 6 years ago in reply to Alok Tripathi

    Hi alokt thanks for helping, I will give it a go.

    All the best.

    • Cancel
    • Vote Up 0 Vote Down
    • 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