I'm writing a script to check for duplicate net labels in a schematic. We define a duplicate net label as any net label that does not contain an off-sheet component, a pass-thru pin component, a power/ground component, and is not connected to a bus.
I've got the first three conditions coded but I'm having trouble with the last one. How can I detect in code that a net is attached to a bus?
I figured it out.
Here's the code.
For Each oNetConnection In oNet.Connections '
Set oRipper = oNetConnection.Ripper
If Not oRipper Is Nothing Then
' Net is connected to a bus ripper so is part of a bus.