Home > Community > Forums > PCB SKILL > Length of net !

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: *

 Length of net ! 

Last post Mon, Sep 17 2012 5:59 PM by luanvn81. 2 replies.
Started by luanvn81 13 Sep 2012 11:41 PM. Topic has 2 replies and 1023 views
Page 1 of 1 (3 items)
Sort Posts:
  • Thu, Sep 13 2012 11:41 PM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 61
    • Points 920
    Length of net ! Reply

     Hi all!

     I'm trying to get length of a list of nets by using  axlDBGetLength(o_dbid) but not successfull. Here my code:

     ..............

     foreach(net, netlist  
    a1=axlSelectByName("NET", net)
    length=axlDBGetLength(a1)
    fprintf(writeOutFile, "%s%d\n", net, length)
    ); end foreach net 

    .....................

    i have received error :  W- *WARNING* (axlDBGetLength): Invalid database id argument - (dbid:230582128)

      Who can help me fix this error?

    Thanks!

    Luan.

     

     

    • Post Points: 20
  • Fri, Sep 14 2012 4:43 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 296
    • Points 4,710
    Re: Length of net ! Reply

     axlSelectByName returns a list of dbids so change your code to:

         a1= car( axlSelectByName("NET", net))

    • Post Points: 20
  • Mon, Sep 17 2012 5:59 PM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 61
    • Points 920
    Re: Length of net ! Reply

    Hi fxffxf !

     thank for your reply, it works OK. 

     

    Luan.

     

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by luanvn81 at 13 Sep 2012 11:41 PM. Topic has 2 replies.