use this code in python script
once made by Mostafa
and check in revit the storage type off the global parameter