Duplicate Node Checker
Sketch duplicate nodes via JavaScript

This simple script reproduces the behaviour found in the Node –> Merge panel.
When run the user is prompted to specify a tolerance (nodes found within the tolerance are deemed to be coincident/duplicate) and then a subset of nodes.
Selecting all nodes in the model is valid but for large models users may experience memory issues (tested up to 2M nodes).
The number of duplicate pairs are reported once the script finishes and sketched on screen as little red dots.
Unlike Node –> Merge, ‘valid’ coincident nodes, such as those on joints will also be reported.
This script could be easily tweaked so that it could be incorporated into PRIMER’s core model check. Using the custom.js method (see Check class of JS API manual).
The script includes other scriptbox functionality (100% unchanged):
Bucket Search: https://www.oasys-software.com/dyna/scriptbox/bucket-search-algorithm/
Get Distance: https://www.oasys-software.com/dyna/scriptbox/get-distance-full-function/