I know this has been discussed before at SketchUcation but I just find it.
I need an identifier for each open model to prevent tool settings from getting mixed up when the same tool is used is multiple models on Mac. It cannot be the persistent ID since the user may have two versions of the same model open at the same time. It needs to be a unique identifier on a model session basis, not model basis.
The Sketchup::Model object has previously been known to randomly change and haven’t been a reliable identifier. According to the thread at SketchUcation that I’ve been searching for the whole evening “model.definitions.object_id” was the most reliable method, but that was several years ago and has maybe changed.
Does anyone know what is best practice for this today?