diff --git a/Excel_UI/UI/Callers/CreateCustom.cs b/Excel_UI/UI/Callers/CreateCustom.cs index eb182343..0aa90f22 100644 --- a/Excel_UI/UI/Callers/CreateCustom.cs +++ b/Excel_UI/UI/Callers/CreateCustom.cs @@ -1,4 +1,5 @@ -using BH.oM.Base; +using BH.Engine.Reflection; +using BH.oM.Base; using System; using System.Collections.Generic; using System.Linq; @@ -33,7 +34,7 @@ public override object Run(object[] inputs) if (props.Count == values.Count) { for (int i = 0; i < props.Count; i++) - obj.CustomData[InputParams[i].Name] = inputs[i]; + obj.SetPropertyValue(props[i], values[i]); } return obj; diff --git a/Excel_UI/UI/Components/oM/CreateCustom.cs b/Excel_UI/UI/Components/oM/CreateCustom.cs index 92e94b04..c6e5701c 100644 --- a/Excel_UI/UI/Components/oM/CreateCustom.cs +++ b/Excel_UI/UI/Components/oM/CreateCustom.cs @@ -32,7 +32,7 @@ namespace BH.UI.Excel.Components { - public class CreateCustomFormula : CallerFormula + public class CreateCustomFormula : SingleOptionCallerFormula { /*******************************************/ /**** Properties ****/ @@ -42,6 +42,7 @@ public class CreateCustomFormula : CallerFormula public override string MenuRoot { get; } = "Create Custom"; + public override string Name { get; } = "Create.CustomObject"; public override string Function => Name; /*******************************************/