DocumentID inherited from template file

I’m trying to track a usage of particular grasshopper scripts. My first thought was to keep track of the DocumentID from the GH_Document class.

GH_Document.DocumentID Property (

Initially this works fine, however I noticed that if you use a template file in Grasshopper the DocumentID is inherited from this file. Is this behaviour intentional? I would have expected the new document to have a unique ID regardsless that it has been created using a template file.

V1 and V2 are both new files created from the same template. V3 is a new file created without a template. (3.6 KB) (3.7 KB) (3.5 KB)

A workaround would be to create a unique ID based on creation time and documentID.