I am using **Visual Basic Express 2010 **and trying to find if there is a branch in a net, for example **U1-1** (U1 pin 1) is connected to **U2-2** (U2 pin 2) and** U3-3** (U3 pin 3). I need to get the trace length from U1-1 to **brach location**, and then from branch location to U2-2 and branch location to U3-3.

In my current program, I can get the length from U1-1 to U2-2 or from U1-1 to U3-3, but I need to get the **common trace between U1, U2, and U3**.

Does anyone have any code samples to show me how to do this?

Get the trace collection between U1-1 and U2-2 and the trace collection between U1-1 and U3-3. Compare the endpoint coordinates of each trace in the first collection with each endpoint coordinates of each trace in the second collection. If the endpoints match, you've found your branch location. You can then sort (if the traces aren't already sorted) the trace collections so that the traces go from one pin to the next. Iterate through the sorted collections while incrementing a length variable until a trace's endpoint coordinate matches the branch coordinate. Do this for all branches (U1-1 » branch, U2-2 » branch, U3-3 » branch) and you'll have the three branch lengths. Does that make sense, haha?