Home > Community > Forums > Functional Verification > Retrieve Flat Net Wire Properties using TCL

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Retrieve Flat Net Wire Properties using TCL 

Last post Tue, Mar 5 2013 8:40 AM by oldmouldy. 1 replies.
Started by dk631 04 Mar 2013 05:42 PM. Topic has 1 replies and 826 views
Page 1 of 1 (2 items)
Sort Posts:
  • Mon, Mar 4 2013 5:42 PM

    • dk631
    • Not Ranked
    • Joined on Sat, Mar 2 2013
    • Posts 1
    • Points 20
    Retrieve Flat Net Wire Properties using TCL Reply

    Using the script example in section 3.2.20 of the OrCAD Capture TCL/TK Extensions Application Notes I was able to pull the net names. To get the other information I need (user properties, port information, page location of port, etc.) I have tried using the DboFlatNetNetsIter and DboFlatNetWiresIter to get the DboNet and DboWire classes which I would then use to get the other information (I have been able to get all the information via iterating through schematic > pages > wires). However, when I call the NextWire or NextNet my script crashes OrCAD. The classes instances calling these methods are not null.

     (continued from 3.2.20 after $lFlatNet GetName $lName)

    set lFlatNetWiresIter [$lFlatNet NewWiresIter $lStatus]
    # check lFlatNetWiresIter and lFlatNet for null
    set lFlatNetWire [$lFlatNetWiresIter NextWire $lStatus]

     Has anyone had success using the DboFlatNetWiresIter_NextWire or DboFlatNetNetsIter_NextWire?

     

     

    Filed under:
    • Post Points: 20
  • Tue, Mar 5 2013 8:40 AM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,445
    • Points 24,590
    Re: Retrieve Flat Net Wire Properties using TCL Reply
    I think that you have assumed that the $lFlatNetWiresIter is not null and used it to "set lFlatNetWire...", you likely need a check for if($lFlatNetWiresIter != $lNullObj) or some such to make sure that you have a valid object reference for the FlatNetWiresIter before using it.
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by dk631 at 04 Mar 2013 05:42 PM. Topic has 1 replies.