• 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. TCL code to annotation in the Capture schematic design

Stats

  • State Verified Answer
  • Replies 2
  • Subscribers 13
  • Views 1182
  • Members are here 0
More Content

TCL code to annotation in the Capture schematic design

RohitRohan
RohitRohan over 1 year ago

Hai Community,

Is it possible to create a TCL code for ref des annotation in the Capture schematic design.

Regards,

Rohit Rohan

  • Sign in to reply
  • Cancel
  • Jeet
    0 Jeet over 1 year ago

    Try using following steps:

    1. Enable Journaling and Display Commands from Extended Preferences > Command Shell.
    2. Now, select the design file in the project manager and select Tools > Annotate > OK.
    3. Copy the xml path from the command window and replace it in the below code in place of the below path.

    set lSession $::DboSession_s_pDboSession
    DboSession -this $lSession
    set lNullObj NULL
    set lDesign [$lSession GetActiveDesign]
    if { $lDesign != $lNullObj} {
    Menu "Tools::Annotate" | DialogBox "OK" "C:/Users/User_data/AppData/Local/Temp/CAPTURELOG/Fri_Aug_16_21_44_02_2024/Packaging_4.xml"
    SetAutomationFlag 1
    }

    Let me know how it goes for you after performing the steps, are you able to annotate the design with TCL?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • CadAP
    +1 CadAP over 1 year ago in reply to Jeet

    Hi Rohit,

    You can use below tcl to run the annotation in batch mode without any args:

    capBatchAnnotate

    Second the same command with args:

    capBatchAnnotate(nScope, nUpdateType, cstrCombinedProperty, additionalCombinedProperty,
    bStartAtOne, bDoNotChangePageNumber,
    bChangeInstances, bIncludeNonPrimitive,
    bPreserveDesignator, bPreserveUserEdits,
    bAnnInstExtDsgn)
    Parameters:
    nScope: int
    nUpdateType: int
    cstrCombinedProperty: char const *
    additionalCombinedProperty: char const *
    bStartAtOne: int
    bDoNotChangePageNumber: int
    bChangeInstances: int
    bIncludeNonPrimitive: int
    bPreserveDesignator: int
    bPreserveUserEdits: int
    bAnnInstExtDsgn: int

    An example with args:

    capBatchAnnotate 0 1 {{value} {Source Package}{POWER_GROUP}} {} 0 0 1 0 0 0 0

    Hope it helps!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject 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