Does anyone know an easy way to highlight all nets without testpoint.
I can't find a way to do this.
In the Basic Scripts list you have a script that select all test points.
Starting from that, this script should do what you need:
Sub Main ActiveDocument.SelectObjects(ppcbObjectTypeAll, "", False) ' Unselect all objects ActiveDocument.SelectObjects(ppcbObjectTypeNet, "", True) ' Select all nets For Each nextPin In ActiveDocument.Pins ' Exclude from selection If nextPin.TestPoint <> 0 Then nextPin.Net.selected = False ' the nets with a test point pin Next nextPin For Each nextVia In ActiveDocument.Vias ' Exclude from selection If nextVia.TestPoint <> 0 Then nextVia.Net.selected = False ' the nets with a test point via Next nextViaEnd Sub
Then you can add a shortcut or a button in a menu.
You can setting up selection filter for select only traces and select all traces in pcb.
thank you for your reply.But i can't follow you .... where is the switch to highlight the NETS WITHOUT TESTPOINTS only.
Leave checkbox only near traces then select all traces
It's working - thank you.
Used your script - it works very well. Great.
However - I have a challenge on our designs. For several reasons we do not use the .testpoint marking in PADS.
We always place a TP part in schematic and place this in the layout.
Is there a way to use the same method for identifying nets without a part where the RefDes starts with TP?
Is there a way to use the same method for identifying nets without a parttype named TP?
In the example below the net $$$1264 does not have a Testpoint on the net.
I am unfortunately not an expert in programming :-(
Hi Klaus,you can modify the script as below, it should work.
Sub Main ActiveDocument.SelectObjects(ppcbObjectTypeAll, "", False) ' Unselect all objects ActiveDocument.SelectObjects(ppcbObjectTypeNet, "", True) ' Select all nets For Each nextPin In ActiveDocument.Pins If (nextPin.Net Is Nothing) Then ' If pin has no net attached ' do nothing ElseIf Left(nextPin.Component.Name, 2) = "TP" Then ' else if refdes starts with "TP" nextPin.Net.selected = False ' unselect the net ' --- if you need you can substitute "Component.Name" with "Component.PartType" --- End If Next nextPinEnd Sub
Works great :-)
Retrieving data ...