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