GLOB_GUID is a global variable and returns the GUID of the SmartParts object.
GLOB_GUID
Remarks
Usable since script version 2.1 (Allplan 2015-0).