Hi Duc Loc, This is quite simple, here is an example: ;; Browse all nets ( foreach net ( geGetEditCellView ) -> nets ;; Delete pins on the same net ;; Pins are sorted by layerNum and first one is skipped ( foreach pin_fig ( cdr ( sort net -> pins ~> fig ( lambda (fig0 fig1) ( greaterp fig0 -> layerNum fig1 -> layerNum) ))) ( dbDeleteObject pin_fig) )) Please note that I sort the pins by layerNum to find the higher metal (this should work fine for metals with most DKs) With my code I have no idea of which pin is deleted in case duplicated pins have the same layer and no warning will be printed as well Cheers, Aurélien
↧