/// <summary> /// This is the method that actually does the work. /// </summary> /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param> protected override void SolveInstance(IGH_DataAccess DA) { StructureEngine.Model.ComputedStructure comp = new StructureEngine.Model.ComputedStructure(); // modify to get in solver to get output structure Types.StructureType structure1 = new Types.StructureType(); if (!DA.GetData(0, ref structure1)) { return; } structure1.CastTo <ComputedStructure>(ref comp); comp = structure1.Value; FrameAnalysis analysis = new FrameAnalysis(); analysis.RunAnalysis(comp); Types.StructureType Structure_GHrep = new Types.StructureType(comp); /*Assign the outputs via the DA object*/ DA.SetData(0, Structure_GHrep); }