Abaqus - Node equivalence

hi, I'm currently working on a scripting project in Abaqus. The project is about the creation of a 3d lattice starting from a unit cell. So far I have managed to create the unit cell and I have used the linear pattern function to expand the unit cell into the wanted lattice structure. Unfortunately now I ran into the problem that after using the linear pattern function (in assembly mode) the adjacent unit cells have their "touching" nodes not connected with each other. I would like to merge the "touching" nodes although I could not really find the fitting method for that yet.

A method checking all the nodes which are in a specific distance of each other and then turns them into one would be perfect here.

I already checked the users manual and I found the method "merge nodes" although here I could not find the option to universally check all the nodes and apply the merging to those which fall into the specified category.