AnsweredAssumed Answered

How to extract constraint info with automation ?

Question asked by Head1 on Jul 25, 2012
Latest reply on Aug 17, 2012 by sq9djj

Hello Everybody,

 

Getting a list of net classes from each net,   is  simple:

' ------------------------------------------------------------------------------- 

Dim All_Nets

Dim Net

 

   Set All_Nets = My_Board.Nets     ' ( my_Board is the document)

 

   For Each Net In All_Nets

          Print #1,  Net.Name   & "       " &  Net.netclass

  next

' -------------------------------------------------------------------------------- 

But I can not get all net names with  their constraints.

 

   The value:    ...Net.constraint      prints :    -1    for all nets.

  

So, what is the easiest way to get a list of net names and their constraint names.

 

   Thanks to the experts,

 

      Head1.

 

Outcomes