Hi mortenbohneIOI,
well, first you did not say which programming environment you are in... MAXScript, Python, .NET, C++ SDK? or something we do not know abut yet? 😉
Undo/redo in 3ds Max programming is labeled as the "hold" (at lowest level, a C++ class object that manages undo/redo). In MAXScript for example, there is a keyword "HoldAll" to stop undo stack recording. If we stick in the MAXScript environment, then you can find details here:
http://help.autodesk.com/view/3DSMAX/2018/ENU/?guid=__files_GUID_17BFEAAF_3395_4FFB_9F98_54767481AB0...
Those are a direct exposure of C++ SDK hold methods, so be careful. I do not think you can get the label for a hold group, however you can specify one for the operations you are performing.
See here for MAXScript performance recommendation, in case it helps:
http://help.autodesk.com/view/3DSMAX/2018/ENU/?guid=__files_GUID_A731E672_9B9A_4D5B_A8A7_EA584AD12FE...
The C++ SDK has a more complete overview of how it works:
http://help.autodesk.com/view/3DSMAX/2018/ENU/?guid=__developer_3ds_max_sdk_features_the_undo_and_re...
hope it helps,
kevin
Kevin Vandecar
Developer Technical Services
Autodesk Developer Network