3.4: Input- and Output-Plugs
using System;
using System.Collections.Generic;
using Grasshopper.Kernel;
using Karamba.Models;
using Karamba.GHopper.Models;
using Karamba.Loads.Combinations;
namespace TensionElim {
public class TensionElimComponent : GH_Component
{
public TensionElimComponent()
: base("TensionElim", "TenElim",
".", "Karamba" , "Extra" )
{
}
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
{
pManager.AddParameter(new Param_Model(), "Model_in", "Model_in",
"Model to be manipulated", GH_ParamAccess.item);
}
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.RegisterParam(new Param_Model(), "Model_out", "Model_out",
"Model after eliminating all tension elements");
pManager.Register_BooleanParam("isActive", "isActive",
"List of boolean values corresponding to each element in the model." +
"True if the element is active.");
pManager.Register_NumberParam("maximum displacement", "maxDisp",
" Maximum displacement [m] of the model after eliminationprocess.");
}
...
}
Last updated