using Dynamo.Models; NodeModel myNodeModel = new NodeModel();
myNodeModel.Inputs.Add(new PortModel(PortType.Input, Guid.NewGuid(), "My Input"));
myNodeModel.Outputs.Add(new PortModel(PortType.Output, Guid.NewGuid(), "My Output"));The Dynamo.Models namespace and the NodeModel class are part of the DynamoCore package in the Dynamo library.