For analyses I want to find out which nets are connected to a specific part.
I tried following
For Each cmp In dxdApp.DesignComponents("", schName, -1, "STD", True)
For Each Conn In cmp.GetConnections
Set Net = Conn.Net
Set CmpPin = Conn.CompPin
If Not Net Is Nothing Then
If Not cmp.Refdes = "" Then
Fileout.WriteLine (cmp.Refdes & "Net Attached to " & CmpPin.Pin.Label.TextString & Netzname)
However I only get the Pin label and not the net name. What do I have to change?