diff --git a/BHoM_UI/Caller/Read.cs b/BHoM_UI/Caller/Read.cs index a3bae47..1a6e4b7 100644 --- a/BHoM_UI/Caller/Read.cs +++ b/BHoM_UI/Caller/Read.cs @@ -195,6 +195,13 @@ protected object OldCreateMethodToType(string json, List inputParams, string key = parameter.Name.ToLower(); if (properties.ContainsKey(key) && parameter.DataType == properties[key].PropertyType) parameter.Name = properties[key].Name; + else + { + List typeProps = properties.Values.Where(x => x.PropertyType == parameter.DataType).ToList(); + if(typeProps.Count == 1) + parameter.Name = typeProps[0].Name; + } + } // Set the type item