Unique ID particle using MGDRAW

Thanks a lot, @adonadon,

I’ve marked your first post as a solution, but I appreciate the details in your second reply.
Also, I’ve opened a new post regarding the output data Strange outputs from data usrdraw. How to interpret them? where the input files and user routines have been attached.

All the best,

Jordi