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