• 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 Capture CIS
  3. Page numbering on Hierarchical blocks

Stats

  • State Verified Answer
  • Replies 6
  • Subscribers 47
  • Views 18321
  • Members are here 0
More Content

Page numbering on Hierarchical blocks

Quist
Quist over 13 years ago

Is it possible to, in an automated way, add the page number of the underlying schematic page to a hierarchical block?

In large designs it would increase the "readability" significantly. Adding the information manually in plain text however can cause a big change-job as soon as a new page is added somewhere in the design and has the "potential to come out of sync"

Perhaps a Tcl-script could do the job?

  • Sign in to reply
  • Cancel
  • steve
    0 steve over 13 years ago

    There is an exisitng tcl script written by Cadence that may help. Open your Design then  Accessories - CadenceTcl/Tk Utilities - Utilities then under the Design Utilities is an Annotate H Block Page Number and launch.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Quist
    0 Quist over 13 years ago

    Thank you Steve for pointing that out!

    I'll have to check out what more goodies there are in the Tcl Dashboard.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Wild
    0 Wild over 9 years ago

    Decided to give this tcl utility a try.  Failed; I believe due to path length, my path has over 90 charterers.

    - Message: Annotation of Page Number H Block failed.

    -----------------------------------------------------------------

    So I saved the project in a temp directory - c:\TEMP

    The tcl now does not fail, but nothing happens when I click on the OK button.

    ------------------------------------------------------------------------------

    Release: Allegero Design Entry CIS 16.6 S055

    Suggestions?

    Many thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Wild
    0 Wild over 9 years ago

    I was able to get this to work in the temp directory: solution closed the project and then ran the tcl script.

    I would appreciate if anyone has a solution for the longer path name.

    Thanks,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • swrimatt
    0 swrimatt over 4 years ago in reply to steve

    It looks like this has depreciated as I no longer see the Cadence TCL/Tk Utilities in the Accessories drop down. The %home%/cdssetup/OrCAD_Capture directory doesn't seem to have a tclscripts folder anymore. 

    Has this moved somewhere else? I'm running OrCAD Capture CIS 17.4-2017 S018.

    Edit: I found the script in C:/Cadence/SPB_17.4/tools/capture/tclscripts/capAutoLoad/capAnnotateHBlockPageInit.tcl but i'm not sure how to run it.

    Edit2: I figured out how to get this to work.

    The link I posted above is just the initialization script run by Cadence on start up. You should see this in the Command Window when starting Capture.

    The instructions for how to run this particular script are found in the C:\Cadence\SPB_17.4\tools\capture\tclscripts\capAnnotateHBlockPage\tcl\capAnnotateHBlockPageNumber.tcl

    At the top of this file, they give you some instructions on how to run this script. Here's how that went for me:

    1. I closed my project that i want to annotate
    2. in the command window of cadence, i ran the following command:

    source {C:\Cadence\SPB_17.4\tools\capture\tclscripts\capAnnotateHBlockPage\tcl\capAnnotateHBlockPageNumber.tcl}

    3. This should put you on a newline that is blank. You are now "inside" the script where you can now run functions.
    4. in the command window, run the next command:

    capAnnotateHBlockPageNumber::AnnotateHBlockPageNumber {<full path to your .DSN file>}

    5. Open up your design and see the added references.

    It looks like the capAnnotateHBlockPageNumber.tcl has some additional details that can be modified if you wish to customize it further. But hopefully this should help anyone looking to get this to work.

    Edit3: So this script is working, but if I try/need to run it again, it causes many issues (changes my hierarchical block reference designators??). I suppose there's no real fix to this besides editing the script myself. Or saving a .DSN just before i add the annotation and use it as a backup in case i need to make any changes. Maybe if i get some time to go through the TCL script and correct this but i'm not great with TCL.

    • Cancel
    • Vote Up +1 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