The line to change, if you want to make this macro aware of units, is the
MODULE IMMERGE MERGE_IMALIGN_PROJECT (, $imaprojname, 2, 0.2, "$imaprojname mesh",0.6, 0.18, 0.002,400,40,,,10,,,"Off")
All those values should be variables with user input. There is so many that a multiple parameter input is almost mandatory here...
Good luck!
MODULE IMMERGE MERGE_IMALIGN_PROJECT (, $imaprojname, 2, 0.2, "$imaprojname mesh",0.6, 0.18, 0.002,400,40,,,10,,,"Off")
All those values should be variables with user input. There is so many that a multiple parameter input is almost mandatory here...
Good luck!