• 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 6870
  • 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
Parents
  • CadAP
    +1 CadAP over 1 year ago

    HI Gvellet,

    Please find the attached file modifed tcl scipt and modified anonymized schematic with that tcl script .

    I have added line catch {DboTclHelper_sEvalPage $lPage} before proceeding to next page.

    !

    https://community.cadence.com/cfs-file/__key/communityserver-discussions-components-files/109/offpage_5F00_test_5F00_archive.7z

    Hope this helps!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • gvellet
    0 gvellet over 1 year ago in reply to CadAP

     I spent so  many hours trying to fix my script. Then you add a single line of code and it fixes completely the problem, simply Amazing!

    I have a question about the command "DboTclHelper_sEvalPage". Do you recommend adding it to any script which is modifying a schematic page per page using "set lPage [$lPagesIter NextPage $lStatus]" ?

    Best regards,

    gvellet

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

    Thanks for confirmation!

    Yes, after modification of schematic page you can add command "DboTclHelper_sEvalPage".

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • CadAP
    0 CadAP over 1 year ago in reply to gvellet

    Thanks for confirmation!

    Yes, after modification of schematic page you can add command "DboTclHelper_sEvalPage".

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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