protected override void AddInput() { var ports = OutPorts.Count; portnames = GetDefinedVariableNames(); OutPorts.RemoveAll((p) => { return(true); }); foreach (var p in portnames) { OutPorts.Add(new PortModel(PortType.Output, this, new PortData(p, ""))); } RegisterAllPorts(); }