Hello,
I am working on a skill that generates a report with vias in pad but I am having problems using the single select function. It selects pins that are not overlapping the via but instead are 20 mils away. When I am running running the code line by line it works fine. If anyone spots a mistake please let me know. Or a workaround better than axlSingleSelectBox, which works better but not perfect...
The logic behind it is:
1. turn on vias and pads on one side of the pcb
2. select all visible vias
3. parse the list and select the pins overlapping the center of the via
4. report the result
The code is below (please forgive minor mistakes in the code if any. I have a 99% working code implemented with axlSingleSelectBox function and the one below is recreated from memory):
axlWindowFit()
axlVisibleDesign(nil)
axlVisibleLayer("PIN/TOP" t)
axlVisibleLayer("VIA CLASS/TOP" t)
axlUIWRedraw(nil)
axlClearSelSet()
axlSetFindFilter(?enabled '(noall VIAS) ?onButtons '(noall VIAS))
topvias = axlGetSelSet(axlAddSelectAll())
axlClearSelSet()
axlSetFindFilter(?enabled '(noall PINS) ?onButtons '(noall PINS))
foreach(via topvias
axlAddSelectPoint() ; this is the line that is not working!!!
)
vippinlist = axlGetSelSet()
axlClearSelSet()