This feature exist in 3ds Max 2024, but does not exist in all previous versions of 3ds Max.
The provided code will add this functionality to the lower versions of 3ds max.
I am not the author of the code. All kudos goes to Sergey Pantaleev(Serejah, jahman) and MaoTools.