diff --git a/Directory.Build.props b/Directory.Build.props index 28e3f04..fe2fced 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ Robots - 1.1.11 + 1.2.0 Robots Authors Create and simulate ABB, KUKA, UR, and Staubli robot programs. Robots;ABB;KUKA;UR;Staubli;Robotics diff --git a/RELEASE b/RELEASE index 4717bbb..114f5da 100644 --- a/RELEASE +++ b/RELEASE @@ -1,8 +1,8 @@ -- version: 1.1.11 +- version: 1.2.0 changes: - - Added variable targets input to Create Program component. + - Added new Create Program component with variable targets input. - Added error message when 3dm library file is not found. - - Fix regression joint param not allowing null or empty. + - Fixed regression joint param not allowing null or empty. - version: 1.1.10 changes: diff --git a/src/Robots.Grasshopper/Program/CreateProgramVariable.cs b/src/Robots.Grasshopper/Program/CreateProgramVariable.cs index fcca1ef..f9c830b 100644 --- a/src/Robots.Grasshopper/Program/CreateProgramVariable.cs +++ b/src/Robots.Grasshopper/Program/CreateProgramVariable.cs @@ -3,7 +3,7 @@ namespace Robots.Grasshopper; -public class CreateProgramVariable : GH_Component +public class CreateProgramVariable : GH_Component, IGH_VariableParameterComponent { RobotSystem? _robotSystem; @@ -157,4 +157,10 @@ protected override void SolveInstance(IGH_DataAccess DA) AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Errors in program"); } } + + bool IGH_VariableParameterComponent.CanInsertParameter(GH_ParameterSide side, int index) => false; + bool IGH_VariableParameterComponent.CanRemoveParameter(GH_ParameterSide side, int index) => false; + IGH_Param IGH_VariableParameterComponent.CreateParameter(GH_ParameterSide side, int index) => default!; + bool IGH_VariableParameterComponent.DestroyParameter(GH_ParameterSide side, int index) => false; + void IGH_VariableParameterComponent.VariableParameterMaintenance() { } }