• 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. Need help with TCL code to modify offpage

Stats

  • State Verified Answer
  • Replies 7
  • Subscribers 41
  • Views 6874
  • Members are here 0
More Content

Need help with TCL code to modify offpage

gvellet
gvellet over 1 year ago

Hi,

Sorry I have to ask another question about TCL scripts to fix problem with schematic imported from Mentor PADS.

This time the problem is with the imported offpage symbols. The "Name" property value is wrong; it is always "PIN0" instead of the associated net Alias, and also the property value is hidden (impossible to make it visible through orcad GUI interface). As ripple effect, the offpage Name values override the net Alias resulting that all nets with offpage symbols  are shorted to this dummy "PIN0" net.

I made a TCL script to edit all the offpage symbols, it modifies the Name property value to match the net Alias and to make the value visible. The script works but there is a big problem, the netname do not follow, they either stays stuck to "PIN0" or more strange they are reassigned to random valid netname. The script modifies the offpage instances and I wonder if it is a problem where occurrences should be modified instead of instances. I tried a little to change my script for occurrences but I run into problems that the object method I need not working or I do not know which method I should use.

I also wonder if the problem is more like I must trigger something in Orcad to tell it to copy offpage name into the wire netname?

Please I need some expert help. I have attached a zip including the tcl script and an anonymized schematic with the buggy offpage.

Best regards,

gvellet

offpage_test_archive.zip

  • Cancel
  • Sign in to reply
  • WQIA
    0 WQIA 2 months ago in reply to CadAP

    Yes. I have never used TCL scripts. The only thing I know is that is from Capture Command window. But I don't know the format of the TCL command line with old and new offpage names.

    We are having an OrCAD drawing that have tens to a hundred offpage names of "DIO_n_AIO_m". Both n and m are incremental. One easy (less prone to error) is to rename/substitute in batch.  I tried to do it with Excel table trick. But it didn't work. So I searched and found this page. It seems the TCL script can do what I needed. But I don't know how to use it.

    Thank you very much for help.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • CadAP
    0 CadAP 2 months ago in reply to WQIA

    WQIA 

    Please check below article:

    Article (11798906) Title: What are the different ways to source a Tcl file in Capture?
    URL: support.cadence.com/.../ArticleAttachmentPortal

    • 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