diff --git a/.gitignore b/.gitignore index ddb536c85..22e1a237f 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ bld/ [Oo]bj/ [Ll]og/ !bin/X64/Release/ -!/GhSA/bin/x64/Release/ +!/GsaGH/bin/x64/Release/ # Visual Studio 2015/2017 cache/options directory .vs/ # Uncomment if you have tasks that create the project's static files in wwwroot @@ -346,8 +346,8 @@ dist/* *.bak /UnitTestGhSA/bin /UnitTestGhSA/obj -/GhSA/bin/x64/Debug -/GhSA/obj +/GsaGH/bin +/GsaGH/obj /GsaGHTests/bin /GsaGHTests/obj /IntegrationTests/bin diff --git a/GhSA/Components/GraveyardComp/CreateBeamLoads_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateBeamLoads_OBSOLETE.cs deleted file mode 100644 index 142ec556c..000000000 --- a/GhSA/Components/GraveyardComp/CreateBeamLoads_OBSOLETE.cs +++ /dev/null @@ -1,578 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using System.Linq; -//using Grasshopper; -//using Grasshopper.Kernel; -//using Grasshopper.Kernel.Data; -//using Grasshopper.Kernel.Types; -//using Grasshopper.Kernel.Parameters; -//using Rhino.Geometry; -//using GsaAPI; -//using GhSA.Parameters; - -//namespace GhSA.Components -//{ -// public class CreateBeamLoads_OBSOLETE : GH_OasysComponent, IGH_VariableParameterComponent -// { -// #region Name and Ribbon Layout -// public CreateBeamLoads_OBSOLETE() -// : base("Create Beam Load", "BeamLoad", "Create GSA Beam Load", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat3()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override Guid ComponentGuid => new Guid("a2bc3c66-eb22-43ec-9936-84d2944be414"); -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.BeamLoad; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// public override void CreateAttributes() -// { -// if (first) -// { -// selecteditem = _mode.ToString(); -// first = false; -// } - -// m_attributes = new UI.DropDownComponentUI(this, SetSelected, dropdownitems, selecteditem, "Load Type"); -// } - -// public void SetSelected(string selected) -// { -// selecteditem = selected; -// switch (selected) -// { -// case "Point": -// Mode1Clicked(); -// break; -// case "Uniform": -// Mode2Clicked(); -// break; -// case "Linear": -// Mode3Clicked(); -// break; -// case "Patch": -// Mode4Clicked(); -// break; -// case "Trilinear": -// Mode5Clicked(); -// break; -// } -// } -// #endregion - -// #region Input and output -// readonly List dropdownitems = new List(new string[] -// { -// "Point", -// "Uniform", -// "Linear", -// "Patch", -// "Trilinear" -// }); - -// string selecteditem; - -// #endregion - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddIntegerParameter("Load case", "LC", "Load case number (default 1)", GH_ParamAccess.item, 1); -// pManager.AddTextParameter("Element list", "El", "List of Elements to apply load to." + System.Environment.NewLine + -// "Element list should take the form:" + System.Environment.NewLine + -// " 1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (PA PB1 PS2 PM3 PA4 M1)" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item); -// pManager.AddTextParameter("Name", "Na", "Load Name", GH_ParamAccess.item); -// pManager.AddIntegerParameter("Axis", "Ax", "Load axis (default Global). " + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "0 : Global" + -// System.Environment.NewLine + "-1 : Local", GH_ParamAccess.item, 0); -// pManager.AddTextParameter("Direction", "Di", "Load direction (default z)." + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "x" + -// System.Environment.NewLine + "y" + -// System.Environment.NewLine + "z" + -// System.Environment.NewLine + "xx" + -// System.Environment.NewLine + "yy" + -// System.Environment.NewLine + "zz", GH_ParamAccess.item, "z"); -// pManager.AddBooleanParameter("Projected", "Pj", "Projected (default not)", GH_ParamAccess.item, false); -// pManager.AddNumberParameter("Value ", "V", "Load Value ", GH_ParamAccess.item); - -// pManager[0].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// pManager[4].Optional = true; -// pManager[5].Optional = true; - -// _mode = FoldMode.Uniform; -// } -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Beam Load", "Ld", "GSA Beam Load", GH_ParamAccess.item); -// } - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaBeamLoad beamLoad = new GsaBeamLoad(); - -// // 0 Load case -// int lc = 1; -// GH_Integer gh_lc = new GH_Integer(); -// if (DA.GetData(0, ref gh_lc)) -// GH_Convert.ToInt32(gh_lc, out lc, GH_Conversion.Both); -// beamLoad.BeamLoad.Case = lc; - -// // 1 element/beam list -// // check that user has not inputted Gsa geometry elements here -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(1, ref gh_typ)) -// { -// string type = gh_typ.Value.ToString().ToUpper(); -// if (type.StartsWith("GSA ")) -// { -// Params.Owner.AddRuntimeMessage(GH_RuntimeMessageLevel.Error, -// "You cannot input a Node/Element/Member in ElementList input!" + System.Environment.NewLine + -// "Element list should take the form:" + System.Environment.NewLine + -// "'1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (PA PB1 PS2 PM3 PA4 M1)'" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary."); -// return; -// } -// } - -// // Get Geometry input -// string beamList = ""; -// GH_String gh_bl = new GH_String(); -// if (DA.GetData(1, ref gh_bl)) -// GH_Convert.ToString(gh_bl, out beamList, GH_Conversion.Both); -// //var isNumeric = int.TryParse(beamList, out int n); -// //if (isNumeric) -// // beamList = "PB" + n; -// beamLoad.BeamLoad.Elements = beamList; - -// // 2 Name -// string name = ""; -// GH_String gh_name = new GH_String(); -// if (DA.GetData(2, ref gh_name)) -// { -// if (GH_Convert.ToString(gh_name, out name, GH_Conversion.Both)) -// beamLoad.BeamLoad.Name = name; -// } - -// // 3 axis -// int axis = 0; -// beamLoad.BeamLoad.AxisProperty = 0; //Note there is currently a bug/undocumented in GsaAPI that cannot translate an integer into axis type (Global, Local or edformed local) -// GH_Integer gh_ax = new GH_Integer(); -// if (DA.GetData(3, ref gh_ax)) -// { -// GH_Convert.ToInt32(gh_ax, out axis, GH_Conversion.Both); -// if (axis == 0 || axis == -1) -// beamLoad.BeamLoad.AxisProperty = axis; -// } - -// // 4 direction -// string dir = "Z"; -// Direction direc = Direction.Z; - -// GH_String gh_dir = new GH_String(); -// if (DA.GetData(4, ref gh_dir)) -// GH_Convert.ToString(gh_dir, out dir, GH_Conversion.Both); -// dir = dir.ToUpper().Trim(); -// if (dir == "X") -// direc = Direction.X; -// if (dir == "Y") -// direc = Direction.Y; -// if (dir == "XX") -// direc = Direction.XX; -// if (dir == "YY") -// direc = Direction.YY; -// if (dir == "ZZ") -// direc = Direction.ZZ; - -// beamLoad.BeamLoad.Direction = direc; - -// // 5 projection -// bool prj = false; -// GH_Boolean gh_prj = new GH_Boolean(); -// if (DA.GetData(5, ref gh_prj)) -// GH_Convert.ToBoolean(gh_prj, out prj, GH_Conversion.Both); -// beamLoad.BeamLoad.IsProjected = prj; - -// // 6 value (1) -// double load1 = 0; -// if (DA.GetData(6, ref load1)) -// { -// if (direc == Direction.Z) -// load1 *= -1000; //convert to kN -// else -// load1 *= 1000; -// } - - -// switch (_mode) -// { -// case FoldMode.Point: -// if (_mode == FoldMode.Point) -// { -// beamLoad.BeamLoad.Type = BeamLoadType.POINT; - -// // 7 pos (1) -// double pos = 0; -// if (DA.GetData(7, ref pos)) -// pos *= -1; - -// // set position and value -// beamLoad.BeamLoad.SetValue(0, load1); -// beamLoad.BeamLoad.SetPosition(0, pos); -// } -// break; - -// case FoldMode.Uniform: -// if (_mode == FoldMode.Uniform) -// { -// beamLoad.BeamLoad.Type = BeamLoadType.UNIFORM; -// // set value -// beamLoad.BeamLoad.SetValue(0, load1); -// } -// break; - -// case FoldMode.Linear: -// if (_mode == FoldMode.Linear) -// { -// beamLoad.BeamLoad.Type = BeamLoadType.LINEAR; - -// // 6 value (2) -// double load2 = 0; -// if (DA.GetData(7, ref load2)) -// { -// if (direc == Direction.Z) -// load2 *= -1000; //convert to kN -// else -// load2 *= 1000; -// } - -// // set value -// beamLoad.BeamLoad.SetValue(0, load1); -// beamLoad.BeamLoad.SetValue(1, load2); -// } -// break; - -// case FoldMode.Patch: -// if (_mode == FoldMode.Patch) -// { -// beamLoad.BeamLoad.Type = BeamLoadType.PATCH; - -// // 7 pos (1) -// double pos1 = 0; -// if (DA.GetData(7, ref pos1)) -// pos1 *= -1; - -// // 9 pos (2) -// double pos2 = 1; -// if (DA.GetData(9, ref pos2)) -// pos2 *= -1; - -// // 8 value (2) -// double load2 = 0; -// if (DA.GetData(8, ref load2)) -// { -// if (direc == Direction.Z) -// load2 *= -1000; //convert to kN -// else -// load2 *= 1000; -// } - -// // set value -// beamLoad.BeamLoad.SetValue(0, load1); -// beamLoad.BeamLoad.SetValue(1, load2); -// beamLoad.BeamLoad.SetPosition(0, pos1); -// beamLoad.BeamLoad.SetPosition(1, pos2); -// } -// break; - -// case FoldMode.Trilinear: -// if (_mode == FoldMode.Trilinear) -// { -// beamLoad.BeamLoad.Type = BeamLoadType.TRILINEAR; - -// // 7 pos (1) -// double pos1 = 0; -// if (DA.GetData(7, ref pos1)) -// pos1 *= -1; - -// // 9 pos (2) -// double pos2 = 1; -// if (DA.GetData(9, ref pos2)) -// pos2 *= -1; - -// // 8 value (2) -// double load2 = 0; -// if (DA.GetData(8, ref load2)) -// { -// if (direc == Direction.Z) -// load2 *= -1000; //convert to kN -// else -// load2 *= 1000; -// } - -// // set value -// beamLoad.BeamLoad.SetValue(0, load1); -// beamLoad.BeamLoad.SetValue(1, load2); -// beamLoad.BeamLoad.SetPosition(0, pos1); -// beamLoad.BeamLoad.SetPosition(1, pos2); -// } -// break; - -// default: -// throw new ArgumentOutOfRangeException(); -// } - -// GsaLoad gsaLoad = new GsaLoad(beamLoad); -// DA.SetData(0, new GsaLoadGoo(gsaLoad)); -// } - -// #region menu override -// private enum FoldMode -// { -// Point, -// Uniform, -// Linear, -// Patch, -// Trilinear -// } -// private bool first = true; -// private FoldMode _mode = FoldMode.Uniform; - -// private void Mode1Clicked() -// { -// if (_mode == FoldMode.Point) -// return; - -// RecordUndoEvent("Point Parameters"); -// _mode = FoldMode.Point; - -// //remove input parameters -// while (Params.Input.Count > 7) -// Params.UnregisterInputParameter(Params.Input[7], true); -// Params.RegisterInputParam(new Param_Number()); - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// private void Mode2Clicked() -// { -// if (_mode == FoldMode.Uniform) -// return; - -// RecordUndoEvent("Uniform Parameters"); -// _mode = FoldMode.Uniform; - -// //remove input parameters -// while (Params.Input.Count > 7) -// Params.UnregisterInputParameter(Params.Input[7], true); - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// private void Mode3Clicked() -// { -// if (_mode == FoldMode.Linear) -// return; - -// RecordUndoEvent("Linear Parameters"); -// _mode = FoldMode.Linear; - -// //remove input parameters -// while (Params.Input.Count > 7) -// Params.UnregisterInputParameter(Params.Input[7], true); - -// //add input parameters -// Params.RegisterInputParam(new Param_Number()); - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } - -// private void Mode4Clicked() -// { -// if (_mode == FoldMode.Patch) -// return; - -// RecordUndoEvent("Patch Parameters"); -// if (_mode != FoldMode.Trilinear) -// { -// //remove input parameters -// while (Params.Input.Count > 7) -// Params.UnregisterInputParameter(Params.Input[7], true); - -// //add input parameters -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// } - -// _mode = FoldMode.Patch; -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } - -// private void Mode5Clicked() -// { -// if (_mode == FoldMode.Trilinear) -// return; - -// RecordUndoEvent("Trilinear Parameters"); -// if (_mode != FoldMode.Patch) -// { -// //remove input parameters -// while (Params.Input.Count > 7) -// Params.UnregisterInputParameter(Params.Input[7], true); - -// //add input parameters -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.Trilinear; -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// #endregion - -// #region (de)serialization -// public override bool Write(GH_IO.Serialization.GH_IWriter writer) -// { -// writer.SetInt32("Mode", (int)_mode); -// writer.SetString("select", selecteditem); -// return base.Write(writer); -// } -// public override bool Read(GH_IO.Serialization.GH_IReader reader) -// { -// _mode = (FoldMode)reader.GetInt32("Mode"); -// selecteditem = reader.GetString("select"); -// this.CreateAttributes(); -// return base.Read(reader); -// } - -// bool IGH_VariableParameterComponent.CanInsertParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// bool IGH_VariableParameterComponent.CanRemoveParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// IGH_Param IGH_VariableParameterComponent.CreateParameter(GH_ParameterSide side, int index) -// { -// return null; -// } -// bool IGH_VariableParameterComponent.DestroyParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// #endregion -// #region IGH_VariableParameterComponent null implementation -// void IGH_VariableParameterComponent.VariableParameterMaintenance() -// { -// if (_mode == FoldMode.Point) -// { -// Params.Input[6].NickName = "V"; -// Params.Input[6].Name = "Value"; -// Params.Input[6].Description = "Load Value"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = false; - -// Params.Input[7].NickName = "t"; -// Params.Input[7].Name = "Position (%)"; -// Params.Input[7].Description = "Line parameter where point load act (between 0.0 and 1.0)"; -// Params.Input[7].Access = GH_ParamAccess.item; -// Params.Input[7].Optional = true; -// } - -// if (_mode == FoldMode.Uniform) -// { -// Params.Input[6].NickName = "V"; -// Params.Input[6].Name = "Load (kN/m)"; -// Params.Input[6].Description = "Load value (kN/m)"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = false; -// } - -// if (_mode == FoldMode.Linear) -// { -// Params.Input[6].NickName = "V1"; -// Params.Input[6].Name = "Value Start"; -// Params.Input[6].Description = "Load Value at Beam Start"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = true; - -// Params.Input[7].NickName = "V2"; -// Params.Input[7].Name = "Value End (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[7].Description = "Load Value at Beam End (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[7].Access = GH_ParamAccess.item; -// Params.Input[7].Optional = true; -// } - -// if (_mode == FoldMode.Patch) -// { -// Params.Input[6].NickName = "V1"; -// Params.Input[6].Name = "Load t1 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[6].Description = "Load Value at Position 1 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = true; - -// Params.Input[7].NickName = "t1"; -// Params.Input[7].Name = "Position 1 (%)"; -// Params.Input[7].Description = "Line parameter where patch load begins (between 0.0 and 1.0, but less than t2)"; -// Params.Input[7].Access = GH_ParamAccess.item; -// Params.Input[7].Optional = true; - -// Params.Input[8].NickName = "V2"; -// Params.Input[8].Name = "Load t2 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[8].Description = "Load Value at Position 2 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[8].Access = GH_ParamAccess.item; -// Params.Input[8].Optional = true; - -// Params.Input[9].NickName = "t2"; -// Params.Input[9].Name = "Position 2 (%)"; -// Params.Input[9].Description = "Line parameter where patch load ends (between 0.0 and 1.0, but bigger than t1)"; -// Params.Input[9].Access = GH_ParamAccess.item; -// Params.Input[9].Optional = true; -// } - -// if (_mode == FoldMode.Trilinear) -// { -// Params.Input[6].NickName = "V1"; -// Params.Input[6].Name = "Load t1 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[6].Description = "Load Value at Position 1 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = true; - -// Params.Input[7].NickName = "t1"; -// Params.Input[7].Name = "Position 1 (%)"; -// Params.Input[7].Description = "Line parameter where L1 applies (between 0.0 and 1.0, but less than t2)"; -// Params.Input[7].Access = GH_ParamAccess.item; -// Params.Input[7].Optional = true; - -// Params.Input[8].NickName = "V2"; -// Params.Input[8].Name = "Load t2 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[8].Description = "Load Value at Position 2 (" + Units.Force + "/" + Units.LengthUnitGeometry + ")"; -// Params.Input[8].Access = GH_ParamAccess.item; -// Params.Input[8].Optional = true; - -// Params.Input[9].NickName = "t2"; -// Params.Input[9].Name = "Position 2 (%)"; -// Params.Input[9].Description = "Line parameter where L2 applies (between 0.0 and 1.0, but bigger than t1)"; -// Params.Input[9].Access = GH_ParamAccess.item; -// Params.Input[9].Optional = true; -// } -// } -// #endregion -// } -//} \ No newline at end of file diff --git a/GhSA/Components/GraveyardComp/CreateFaceLoads_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateFaceLoads_OBSOLETE.cs deleted file mode 100644 index 892f89b3f..000000000 --- a/GhSA/Components/GraveyardComp/CreateFaceLoads_OBSOLETE.cs +++ /dev/null @@ -1,608 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using System.Linq; -//using Grasshopper; -//using Grasshopper.Kernel; -//using Grasshopper.Kernel.Data; -//using Grasshopper.Kernel.Types; -//using Grasshopper.Kernel.Parameters; -//using Rhino.Geometry; -//using GsaAPI; -//using GhSA.Parameters; - -//namespace GhSA.Components -//{ -// public class CreateFaceLoads_OBSOLETE : GH_OasysComponent, IGH_VariableParameterComponent -// { -// #region Name and Ribbon Layout -// public CreateFaceLoads_OBSOLETE() -// : base("Create Face Load", "FaceLoad", "Create GSA Face Load", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat3()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override Guid ComponentGuid => new Guid("55aeaf97-ef0c-4061-a391-a6419448a0b5"); -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.FaceLoad; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// public override void CreateAttributes() -// { -// if (first) -// { -// selecteditem = _mode.ToString(); -// first = false; -// } - -// m_attributes = new UI.DropDownComponentUI(this, SetSelected, dropdownitems, selecteditem, "Load Type"); -// } - -// public void SetSelected(string selected) -// { -// selecteditem = selected; -// switch (selected) -// { -// case "Uniform": -// Mode1Clicked(); -// break; -// case "Variable": -// Mode2Clicked(); -// break; -// case "Point": -// Mode3Clicked(); -// break; -// case "Edge": -// Mode4Clicked(); -// break; -// } -// } -// #endregion - -// #region Input and output -// readonly List dropdownitems = new List(new string[] -// { -// "Uniform", -// "Variable", -// "Point", -// "Edge" -// }); - -// string selecteditem; - -// #endregion - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddIntegerParameter("Load case", "LC", "Load case number (default 1)", GH_ParamAccess.item, 1); -// pManager.AddTextParameter("Element list", "El", "List of Elements to apply load to." + System.Environment.NewLine + -// "Element list should take the form:" + System.Environment.NewLine + -// " 1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (PA PB1 PS2 PM3 PA4 M1)" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item); -// pManager.AddTextParameter("Name", "Na", "Load Name", GH_ParamAccess.item); -// pManager.AddIntegerParameter("Axis", "Ax", "Load axis (default Local). " + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "0 : Global" + -// System.Environment.NewLine + "-1 : Local", GH_ParamAccess.item, -1); -// pManager.AddTextParameter("Direction", "Di", "Load direction (default z)." + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "x" + -// System.Environment.NewLine + "y" + -// System.Environment.NewLine + "z", GH_ParamAccess.item, "z"); -// pManager.AddBooleanParameter("Projected", "Pj", "Projected (default not)", GH_ParamAccess.item, false); -// pManager.AddNumberParameter("Value (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)", "V", "Load Value (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)", GH_ParamAccess.item); - -// pManager[0].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// pManager[4].Optional = true; -// pManager[5].Optional = true; - -// _mode = FoldMode.Uniform; -// } -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Face Load", "Ld", "GSA Face Load", GH_ParamAccess.item); -// } - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaFaceLoad faceLoad = new GsaFaceLoad(); - -// // 0 Load case -// int lc = 1; -// GH_Integer gh_lc = new GH_Integer(); -// if (DA.GetData(0, ref gh_lc)) -// GH_Convert.ToInt32(gh_lc, out lc, GH_Conversion.Both); -// faceLoad.FaceLoad.Case = lc; - -// // 1 element/beam list -// // check that user has not inputted Gsa geometry elements here -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(1, ref gh_typ)) -// { -// string type = gh_typ.Value.ToString().ToUpper(); -// if (type.StartsWith("GSA ")) -// { -// Params.Owner.AddRuntimeMessage(GH_RuntimeMessageLevel.Error, -// "You cannot input a Node/Element/Member in ElementList input!" + System.Environment.NewLine + -// "Element list should take the form:" + System.Environment.NewLine + -// "'1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (PA PB1 PS2 PM3 PA4 M1)'" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary."); -// return; -// } -// } -// string elemList = ""; -// GH_String gh_el = new GH_String(); -// if (DA.GetData(1, ref gh_el)) -// GH_Convert.ToString(gh_el, out elemList, GH_Conversion.Both); -// //var isNumeric = int.TryParse(elemList, out int n); -// //if (isNumeric) -// // elemList = "PA" + n; - -// faceLoad.FaceLoad.Elements = elemList; - -// // 2 Name -// string name = ""; -// GH_String gh_name = new GH_String(); -// if (DA.GetData(2, ref gh_name)) -// { -// if (GH_Convert.ToString(gh_name, out name, GH_Conversion.Both)) -// faceLoad.FaceLoad.Name = name; -// } - -// // 3 axis -// int axis = -1; -// faceLoad.FaceLoad.AxisProperty = 0; //Note there is currently a bug/undocumented in GsaAPI that cannot translate an integer into axis type (Global, Local or edformed local) -// GH_Integer gh_ax = new GH_Integer(); -// if (DA.GetData(3, ref gh_ax)) -// { -// GH_Convert.ToInt32(gh_ax, out axis, GH_Conversion.Both); -// if (axis == 0 || axis == -1) -// faceLoad.FaceLoad.AxisProperty = axis; -// } - -// // 4 direction -// string dir = "Z"; -// Direction direc = Direction.Z; - -// GH_String gh_dir = new GH_String(); -// if (DA.GetData(4, ref gh_dir)) -// GH_Convert.ToString(gh_dir, out dir, GH_Conversion.Both); -// dir = dir.ToUpper().Trim(); -// if (dir == "X") -// direc = Direction.X; -// if (dir == "Y") -// direc = Direction.Y; - -// faceLoad.FaceLoad.Direction = direc; - -// switch (_mode) -// { -// case FoldMode.Uniform: -// if (_mode == FoldMode.Uniform) -// { -// faceLoad.FaceLoad.Type = FaceLoadType.CONSTANT; - -// //projection -// bool prj = false; -// GH_Boolean gh_prj = new GH_Boolean(); -// if (DA.GetData(5, ref gh_prj)) -// GH_Convert.ToBoolean(gh_prj, out prj, GH_Conversion.Both); -// faceLoad.FaceLoad.IsProjected = prj; - - -// double load1 = 0; -// if (DA.GetData(6, ref load1)) -// { -// if (direc == Direction.Z) -// load1 *= -1000; //convert to kN -// else -// load1 *= 1000; -// } - -// // set position and value -// faceLoad.FaceLoad.SetValue(0, load1); -// } -// break; - -// case FoldMode.Variable: -// if (_mode == FoldMode.Variable) -// { -// faceLoad.FaceLoad.Type = FaceLoadType.GENERAL; - -// //projection -// bool prj = false; -// GH_Boolean gh_prj = new GH_Boolean(); -// if (DA.GetData(5, ref gh_prj)) -// GH_Convert.ToBoolean(gh_prj, out prj, GH_Conversion.Both); -// faceLoad.FaceLoad.IsProjected = prj; - -// double load1 = 0; -// if (DA.GetData(6, ref load1)) -// { -// if (direc == Direction.Z) -// load1 *= -1000; //convert to kN -// else -// load1 *= 1000; -// } -// double load2 = 0; -// if (DA.GetData(7, ref load2)) -// { -// if (direc == Direction.Z) -// load2 *= -1000; //convert to kN -// else -// load2 *= 1000; -// } -// double load3 = 0; -// if (DA.GetData(8, ref load3)) -// { -// if (direc == Direction.Z) -// load3 *= -1000; //convert to kN -// else -// load3 *= 1000; -// } -// double load4 = 0; -// if (DA.GetData(9, ref load4)) -// { -// if (direc == Direction.Z) -// load4 *= -1000; //convert to kN -// else -// load4 *= 1000; -// } - -// // set value -// faceLoad.FaceLoad.SetValue(0, load1); -// faceLoad.FaceLoad.SetValue(1, load2); -// faceLoad.FaceLoad.SetValue(2, load3); -// faceLoad.FaceLoad.SetValue(3, load4); -// } -// break; - -// case FoldMode.Point: -// if (_mode == FoldMode.Point) -// { -// faceLoad.FaceLoad.Type = FaceLoadType.POINT; - -// //projection -// bool prj = false; -// GH_Boolean gh_prj = new GH_Boolean(); -// if (DA.GetData(5, ref gh_prj)) -// GH_Convert.ToBoolean(gh_prj, out prj, GH_Conversion.Both); -// faceLoad.FaceLoad.IsProjected = prj; - -// double load1 = 0; -// if (DA.GetData(6, ref load1)) -// { -// if (direc == Direction.Z) -// load1 *= -1000; //convert to kN -// else -// load1 *= 1000; -// } -// double r = 0; -// DA.GetData(7, ref r); - -// double s = 0; -// DA.GetData(8, ref s); - -// // set position and value -// faceLoad.FaceLoad.SetValue(0, load1); -// //faceLoad.Position.X = r; //note Vector2 currently only get in GsaAPI -// //faceLoad.Position.Y = s; - -// } -// break; - -// case FoldMode.Edge: -// if (_mode == FoldMode.Edge) -// { -// //faceLoad.Type = BeamLoadType.EDGE; GsaAPI implementation missing - -// // get data -// int edge = 1; -// DA.GetData(5, ref edge); - -// double load1 = 0; -// if (DA.GetData(6, ref load1)) -// { -// if (direc == Direction.Z) -// load1 *= -1000; //convert to kN -// else -// load1 *= 1000; -// } - -// double load2 = 0; -// if (DA.GetData(7, ref load2)) -// { -// if (direc == Direction.Z) -// load2 *= -1000; //convert to kN -// else -// load2 *= 1000; -// } - -// // set value -// faceLoad.FaceLoad.SetValue(0, load1); -// faceLoad.FaceLoad.SetValue(1, load2); -// //faceLoad.Edge = edge; //note implementation of edge-load is not yet supported in GsaAPI - -// faceLoad = null; -// } -// break; - -// default: -// throw new ArgumentOutOfRangeException(); -// } - -// GsaLoad gsaLoad = new GsaLoad(faceLoad); -// DA.SetData(0, new GsaLoadGoo(gsaLoad)); -// } - -// #region menu override -// private enum FoldMode -// { -// Uniform, -// Variable, -// Point, -// Edge -// } - -// private FoldMode _mode = FoldMode.Uniform; -// private bool first = true; -// private void Mode1Clicked() -// { -// if (_mode == FoldMode.Uniform) -// return; - -// RecordUndoEvent("Uniform Parameters"); -// //remove input parameters -// if (_mode == FoldMode.Edge) -// { -// while (Params.Input.Count > 5) -// Params.UnregisterInputParameter(Params.Input[5], true); -// //add input parameters -// Params.RegisterInputParam(new Param_Boolean()); -// Params.RegisterInputParam(new Param_Number()); -// } -// else -// { -// while (Params.Input.Count > 6) -// Params.UnregisterInputParameter(Params.Input[6], true); -// //add input parameters -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.Uniform; -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// private void Mode2Clicked() -// { -// if (_mode == FoldMode.Variable) -// return; - -// RecordUndoEvent("Variable Parameters"); -// //remove input parameters -// if (_mode == FoldMode.Edge) -// { -// while (Params.Input.Count > 5) -// Params.UnregisterInputParameter(Params.Input[5], true); -// //add input parameters -// Params.RegisterInputParam(new Param_Boolean()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// } -// else -// { -// while (Params.Input.Count > 6) -// Params.UnregisterInputParameter(Params.Input[6], true); -// //add input parameters -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.Variable; -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } - -// private void Mode3Clicked() -// { -// if (_mode == FoldMode.Point) -// return; - -// RecordUndoEvent("Point Parameters"); -// //remove input parameters -// if (_mode == FoldMode.Edge) -// { -// while (Params.Input.Count > 5) -// Params.UnregisterInputParameter(Params.Input[5], true); -// //add input parameters -// Params.RegisterInputParam(new Param_Boolean()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// } -// else -// { -// while (Params.Input.Count > 6) -// Params.UnregisterInputParameter(Params.Input[6], true); -// //add input parameters -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.Point; -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// private void Mode4Clicked() -// { -// if (_mode == FoldMode.Edge) -// return; - -// RecordUndoEvent("Edge Parameters"); - -// //remove input parameters -// while (Params.Input.Count > 5) -// Params.UnregisterInputParameter(Params.Input[5], true); - -// //add input parameters -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); -// Params.RegisterInputParam(new Param_Number()); - - -// _mode = FoldMode.Edge; -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } - -// #endregion - -// #region (de)serialization -// public override bool Write(GH_IO.Serialization.GH_IWriter writer) -// { -// writer.SetInt32("Mode", (int)_mode); -// writer.SetString("select", selecteditem); -// return base.Write(writer); -// } -// public override bool Read(GH_IO.Serialization.GH_IReader reader) -// { -// _mode = (FoldMode)reader.GetInt32("Mode"); -// selecteditem = reader.GetString("select"); -// this.CreateAttributes(); -// return base.Read(reader); -// } - -// bool IGH_VariableParameterComponent.CanInsertParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// bool IGH_VariableParameterComponent.CanRemoveParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// IGH_Param IGH_VariableParameterComponent.CreateParameter(GH_ParameterSide side, int index) -// { -// return null; -// } -// bool IGH_VariableParameterComponent.DestroyParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// #endregion -// #region IGH_VariableParameterComponent null implementation -// void IGH_VariableParameterComponent.VariableParameterMaintenance() -// { -// if (_mode == FoldMode.Uniform) -// { -// Params.Input[5].NickName = "Pj"; -// Params.Input[5].Name = "Projected"; -// Params.Input[5].Description = "Projected (default not)"; -// Params.Input[5].Access = GH_ParamAccess.item; -// Params.Input[5].Optional = true; - -// Params.Input[6].NickName = "V"; -// Params.Input[6].Name = "Value (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Description = "Load Value (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = false; -// } - -// if (_mode == FoldMode.Variable) -// { -// Params.Input[5].NickName = "Pj"; -// Params.Input[5].Name = "Projected"; -// Params.Input[5].Description = "Projected (default not)"; -// Params.Input[5].Access = GH_ParamAccess.item; -// Params.Input[5].Optional = true; - -// Params.Input[6].NickName = "V1"; -// Params.Input[6].Name = "Value 1 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Description = "Load Value Corner 1 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = true; - -// Params.Input[7].NickName = "V2"; -// Params.Input[7].Name = "Value 2 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[7].Description = "Load Value Corner 2 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[7].Access = GH_ParamAccess.item; -// Params.Input[7].Optional = true; - -// Params.Input[8].NickName = "V3"; -// Params.Input[8].Name = "Value 3 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[8].Description = "Load Value Corner 3 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[8].Access = GH_ParamAccess.item; -// Params.Input[8].Optional = true; - -// Params.Input[9].NickName = "V4"; -// Params.Input[9].Name = "Value 4 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[9].Description = "Load Value Corner 4 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[9].Access = GH_ParamAccess.item; -// Params.Input[9].Optional = true; -// } - -// if (_mode == FoldMode.Point) -// { -// Params.Input[5].NickName = "Pj"; -// Params.Input[5].Name = "Projected"; -// Params.Input[5].Description = "Projected (default not)"; -// Params.Input[5].Access = GH_ParamAccess.item; -// Params.Input[5].Optional = true; - -// Params.Input[6].NickName = "V"; -// Params.Input[6].Name = "Value (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Description = "Load Value Corner 1 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = false; - -// Params.Input[7].NickName = "r"; -// Params.Input[7].Name = "Position r"; -// Params.Input[7].Description = "The position r of the point load to be specified in ( r , s )" + -// System.Environment.NewLine + "coordinates based on two-dimensional shape function." + -// System.Environment.NewLine + " • Coordinates vary from −1 to 1 for Quad 4 and Quad 8." + -// System.Environment.NewLine + " • Coordinates vary from 0 to 1 for Triangle 3 and Triangle 6"; -// Params.Input[7].Access = GH_ParamAccess.item; -// Params.Input[7].Optional = true; - -// Params.Input[8].NickName = "s"; -// Params.Input[8].Name = "Position s"; -// Params.Input[8].Description = "The position s of the point load to be specified in ( r , s )" + -// System.Environment.NewLine + "coordinates based on two-dimensional shape function." + -// System.Environment.NewLine + " • Coordinates vary from −1 to 1 for Quad 4 and Quad 8." + -// System.Environment.NewLine + " • Coordinates vary from 0 to 1 for Triangle 3 and Triangle 6"; -// Params.Input[8].Access = GH_ParamAccess.item; -// Params.Input[8].Optional = true; -// } - -// if (_mode == FoldMode.Edge) -// { -// Params.Input[5].NickName = "Ed"; -// Params.Input[5].Name = "Edge"; -// Params.Input[5].Description = "Edge (1, 2, 3 or 4)"; -// Params.Input[5].Access = GH_ParamAccess.item; -// Params.Input[5].Optional = false; - -// Params.Input[6].NickName = "V1"; -// Params.Input[6].Name = "Value 1 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Description = "Load Value Corner 1 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[6].Access = GH_ParamAccess.item; -// Params.Input[6].Optional = false; - -// Params.Input[7].NickName = "V2"; -// Params.Input[7].Name = "Value 2 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[7].Description = "Load Value Corner 2 (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)"; -// Params.Input[7].Access = GH_ParamAccess.item; -// Params.Input[7].Optional = false; -// } -// } -// #endregion -// } -//} \ No newline at end of file diff --git a/GhSA/Components/GraveyardComp/CreateGridAreaLoad_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateGridAreaLoad_OBSOLETE.cs deleted file mode 100644 index 1a708a0d3..000000000 --- a/GhSA/Components/GraveyardComp/CreateGridAreaLoad_OBSOLETE.cs +++ /dev/null @@ -1,246 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using System.Linq; -//using Grasshopper.Kernel; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using Rhino.Geometry; -//using GhSA.Parameters; - -//namespace GhSA.Components -//{ -// public class CreateGridAreaLoad_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// public CreateGridAreaLoad_OBSOLETE() -// : base("Create Grid Area Load", "AreaLoad", "Create GSA Grid Area Load", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat3()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override Guid ComponentGuid => new Guid("9d775938-69fc-441f-b766-9cd1d8259e5a"); -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.GridAreaLoad; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// #endregion - -// #region input and output -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddIntegerParameter("Load case", "LC", "Load case number (default 1)", GH_ParamAccess.item, 1); -// pManager.AddBrepParameter("Brep", "B", "(Optional) Brep. If no input the whole plane method will be used. If both Grid Plane Surface and Brep are inputted, this Brep will be projected onto the Grid Plane.", GH_ParamAccess.item); -// pManager.AddGenericParameter("Grid Plane Surface", "GPS", "Grid Plane Surface or Plane (optional). If no input here then the brep's best-fit plane will be used", GH_ParamAccess.item); -// pManager.AddTextParameter("Direction", "Di", "Load direction (default z)." + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "x" + -// System.Environment.NewLine + "y" + -// System.Environment.NewLine + "z", GH_ParamAccess.item, "z"); -// pManager.AddIntegerParameter("Axis", "Ax", "Load axis (default Global). " + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "0 : Global" + -// System.Environment.NewLine + "-1 : Local", GH_ParamAccess.item, 0); -// pManager.AddBooleanParameter("Projected", "Pj", "Projected (default not)", GH_ParamAccess.item, false); -// pManager.AddTextParameter("Name", "Na", "Load Name", GH_ParamAccess.item); -// pManager.AddNumberParameter("Value (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)", "V", "Load Value (" + Units.Force + "/" + Units.LengthUnitGeometry + "\xB2)", GH_ParamAccess.item); - - -// pManager[0].Optional = true; -// pManager[1].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// pManager[4].Optional = true; -// pManager[5].Optional = true; -// pManager[6].Optional = true; -// } -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Grid Area Load", "Ld", "GSA Grid Area Load", GH_ParamAccess.item); -// } -// #endregion -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaGridAreaLoad gridareaload = new GsaGridAreaLoad(); - -// // 0 Load case -// int lc = 1; -// GH_Integer gh_lc = new GH_Integer(); -// if (DA.GetData(0, ref gh_lc)) -// GH_Convert.ToInt32(gh_lc, out lc, GH_Conversion.Both); -// gridareaload.GridAreaLoad.Case = lc; - -// // Do plane input first as to see if we need to project polyline onto grid plane -// // 2 Plane -// Plane pln = Plane.WorldXY; -// bool planeSet = false; -// GsaGridPlaneSurface grdplnsrf = new GsaGridPlaneSurface(); -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(2, ref gh_typ)) -// { -// if (gh_typ.Value is GsaGridPlaneSurfaceGoo) -// { -// GsaGridPlaneSurface temppln = new GsaGridPlaneSurface(); -// gh_typ.CastTo(ref temppln); -// grdplnsrf = temppln.Duplicate(); -// pln = grdplnsrf.Plane; -// planeSet = true; -// } -// else if (gh_typ.Value is Plane) -// { -// gh_typ.CastTo(ref pln); -// grdplnsrf = new GsaGridPlaneSurface(pln); -// planeSet = true; -// } -// else -// { -// int id = 0; -// if (GH_Convert.ToInt32(gh_typ.Value, out id, GH_Conversion.Both)) -// { -// gridareaload.GridAreaLoad.GridSurface = id; -// gridareaload.GridPlaneSurface = null; -// } -// else -// { -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Error in GPS input. Accepted inputs are Grid Plane Surface or Plane. " + -// System.Environment.NewLine + "If no input here then the brep's best-fit plane will be used"); -// return; -// } -// } -// } - -// // we wait setting the gridplanesurface until we have run the polyline input - -// // 1 Polyline -// Brep brep = new Brep(); - - -// GH_Brep gh_brep = new GH_Brep(); -// if (DA.GetData(1, ref gh_brep)) -// { - -// GH_Convert.ToBrep(gh_brep, ref brep, GH_Conversion.Both); - -// // get edge curves -// Curve[] edgeSegments = brep.DuplicateEdgeCurves(); -// Curve[] edges = Curve.JoinCurves(edgeSegments); -// Curve crv = edges[0]; - -// //convert to polyline -// Polyline ln = new Polyline(); -// if (crv.TryGetPolyline(out ln)) -// { -// // get control points -// List ctrl_pts = ln.ToList(); - -// // plane -// if (!planeSet) -// { -// // create nice plane from pts -// pln = Util.GH.Convert.CreateBestFitUnitisedPlaneFromPts(ctrl_pts); - -// // create grid plane surface from best fit plane -// grdplnsrf = new GsaGridPlaneSurface(pln, true); -// } - -// // project original curve onto grid plane -// crv = Curve.ProjectToPlane(crv, pln); - -// // convert to polyline again -// crv.TryGetPolyline(out ln); - -// //get control points again -// ctrl_pts = ln.ToList(); - -// // string to write polyline description to -// string desc = ""; - -// // loop through all points -// for (int i = 0; i < ctrl_pts.Count - 1; i++) -// { -// if (i > 0) -// desc += " "; - -// // get control points in local plane coordinates -// Point3d temppt = new Point3d(); -// pln.RemapToPlaneSpace(ctrl_pts[i], out temppt); - -// // write point to string -// // format accepted by GSA: (0,0) (0,1) (1,2) (3,4) (4,0)(m) -// desc += "(" + temppt.X + "," + temppt.Y + ")"; -// } -// // add units to the end -// desc += "(" + Units.LengthUnitGeometry + ")"; - -// // set polyline in grid line load -// gridareaload.GridAreaLoad.Type = GridAreaPolyLineType.POLYGON; -// gridareaload.GridAreaLoad.PolyLineDefinition = desc; -// } -// else -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Could not convert Brep edge to Polyline"); -// } - -// // now we can set the gridplanesurface: -// if (gridareaload.GridPlaneSurface != null) -// { -// if (gridareaload.GridPlaneSurface.GridSurfaceID == 0) -// gridareaload.GridPlaneSurface = grdplnsrf; -// } - -// // 3 direction -// string dir = "Z"; -// Direction direc = Direction.Z; - -// GH_String gh_dir = new GH_String(); -// if (DA.GetData(3, ref gh_dir)) -// GH_Convert.ToString(gh_dir, out dir, GH_Conversion.Both); -// dir = dir.ToUpper(); -// if (dir == "X") -// direc = Direction.X; -// if (dir == "Y") -// direc = Direction.Y; - -// gridareaload.GridAreaLoad.Direction = direc; - -// // 4 Axis -// int axis = 0; -// gridareaload.GridAreaLoad.AxisProperty = 0; -// GH_Integer gh_ax = new GH_Integer(); -// if (DA.GetData(4, ref gh_ax)) -// { -// GH_Convert.ToInt32(gh_ax, out axis, GH_Conversion.Both); -// if (axis == 0 || axis == -1) -// gridareaload.GridAreaLoad.AxisProperty = axis; -// } - -// // 5 Projected -// bool proj = false; -// GH_Boolean gh_proj = new GH_Boolean(); -// if (DA.GetData(5, ref gh_proj)) -// { -// if (GH_Convert.ToBoolean(gh_proj, out proj, GH_Conversion.Both)) -// gridareaload.GridAreaLoad.IsProjected = proj; -// } - -// // 6 Name -// string name = ""; -// GH_String gh_name = new GH_String(); -// if (DA.GetData(6, ref gh_name)) -// { -// if (GH_Convert.ToString(gh_name, out name, GH_Conversion.Both)) -// gridareaload.GridAreaLoad.Name = name; -// } - -// // 7 load value -// double load1 = 0; -// if (DA.GetData(7, ref load1)) -// load1 *= -1000; //convert to kN -// gridareaload.GridAreaLoad.Value = load1; - -// // convert to goo -// GsaLoad gsaLoad = new GsaLoad(gridareaload); -// DA.SetData(0, new GsaLoadGoo(gsaLoad)); -// } -// } -//} \ No newline at end of file diff --git a/GhSA/Components/GraveyardComp/CreateGridLineLoad_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateGridLineLoad_OBSOLETE.cs deleted file mode 100644 index 0f0c54884..000000000 --- a/GhSA/Components/GraveyardComp/CreateGridLineLoad_OBSOLETE.cs +++ /dev/null @@ -1,246 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using System.Linq; -//using Grasshopper.Kernel; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using Rhino.Geometry; -//using GhSA.Parameters; - -//namespace GhSA.Components -//{ -// public class CreateGridLineLoad_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// public CreateGridLineLoad_OBSOLETE() -// : base("Create Grid Line Load", "LineLoad", "Create GSA Grid Line Load", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat3()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override Guid ComponentGuid => new Guid("fdd95021-9193-4565-b56b-130f22ab13de"); -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.GridLineLoad; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// #endregion - -// #region input and output -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddIntegerParameter("Load case", "LC", "Load case number (default 1)", GH_ParamAccess.item, 1); -// pManager.AddCurveParameter("PolyLine", "L", "PolyLine. If you input grid plane below only x and y coordinate positions will be used from this polyline, but if not a new Grid Plane Surface (best-fit plane) will be created from PolyLine control points.", GH_ParamAccess.item); -// pManager.AddGenericParameter("Grid Plane Surface", "GPS", "Grid Plane Surface or Plane (optional). If no input here then the line's best-fit plane will be used", GH_ParamAccess.item); -// pManager.AddTextParameter("Direction", "Di", "Load direction (default z)." + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "x" + -// System.Environment.NewLine + "y" + -// System.Environment.NewLine + "z", GH_ParamAccess.item, "z"); -// pManager.AddIntegerParameter("Axis", "Ax", "Load axis (default Global). " + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "0 : Global" + -// System.Environment.NewLine + "-1 : Local", GH_ParamAccess.item, 0); -// pManager.AddBooleanParameter("Projected", "Pj", "Projected (default not)", GH_ParamAccess.item, false); -// pManager.AddTextParameter("Name", "Na", "Load Name", GH_ParamAccess.item); -// pManager.AddNumberParameter("Value Start (" + Units.Force + "/" + Units.LengthUnitGeometry + ")", "V1", "Load Value (" + Units.Force + "/" + Units.LengthUnitGeometry + ") at Start of Line", GH_ParamAccess.item); -// pManager.AddNumberParameter("Value End (" + Units.Force + "/" + Units.LengthUnitGeometry + ")", "V2", "Load Value (" + Units.Force + "/" + Units.LengthUnitGeometry + ") at End of Line (default : Start Value)", GH_ParamAccess.item); - -// pManager[0].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// pManager[4].Optional = true; -// pManager[5].Optional = true; -// pManager[6].Optional = true; -// pManager[8].Optional = true; -// } -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Grid Line Load", "Ld", "GSA Grid Line Load", GH_ParamAccess.item); -// } -// #endregion -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaGridLineLoad gridlineload = new GsaGridLineLoad(); - -// // 0 Load case -// int lc = 1; -// GH_Integer gh_lc = new GH_Integer(); -// if (DA.GetData(0, ref gh_lc)) -// GH_Convert.ToInt32(gh_lc, out lc, GH_Conversion.Both); -// gridlineload.GridLineLoad.Case = lc; - -// // Do plane input first as to see if we need to project polyline onto grid plane -// // 2 Plane -// Plane pln = Plane.WorldXY; -// bool planeSet = false; -// GsaGridPlaneSurface grdplnsrf = new GsaGridPlaneSurface(); -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(2, ref gh_typ)) -// { -// if (gh_typ.Value is GsaGridPlaneSurfaceGoo) -// { -// GsaGridPlaneSurface temppln = new GsaGridPlaneSurface(); -// gh_typ.CastTo(ref temppln); -// grdplnsrf = temppln.Duplicate(); -// pln = grdplnsrf.Plane; -// planeSet = true; -// } -// else if (gh_typ.Value is Plane) -// { -// gh_typ.CastTo(ref pln); -// grdplnsrf = new GsaGridPlaneSurface(pln); -// planeSet = true; -// } -// else -// { -// int id = 0; -// if (GH_Convert.ToInt32(gh_typ.Value, out id, GH_Conversion.Both)) -// { -// gridlineload.GridLineLoad.GridSurface = id; -// gridlineload.GridPlaneSurface = null; -// } -// else -// { -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Error in GPS input. Accepted inputs are Grid Plane Surface or Plane. " + -// System.Environment.NewLine + "If no input here then the line's best-fit plane will be used"); -// return; -// } -// } -// } - -// // we wait setting the gridplanesurface until we have run the polyline input - -// // 1 Polyline -// Polyline ln = new Polyline(); -// GH_Curve gh_crv = new GH_Curve(); -// if (DA.GetData(1, ref gh_crv)) -// { -// Curve crv = null; -// GH_Convert.ToCurve(gh_crv, ref crv, GH_Conversion.Both); - -// //convert to polyline -// if (crv.TryGetPolyline(out ln)) -// { -// // get control points -// List ctrl_pts = ln.ToList(); - -// // plane -// if (!planeSet) -// { -// // create best-fit plane from pts -// pln = Util.GH.Convert.CreateBestFitUnitisedPlaneFromPts(ctrl_pts); - -// // create grid plane surface from best fit plane -// grdplnsrf = new GsaGridPlaneSurface(pln, true); -// } -// else -// { -// // project original curve onto grid plane -// crv = Curve.ProjectToPlane(crv, pln); - -// // convert to polyline again -// crv.TryGetPolyline(out ln); - -// //get control points again -// ctrl_pts = ln.ToList(); -// } - -// // string to write polyline description to -// string desc = ""; - -// // loop through all points -// for (int i = 0; i < ctrl_pts.Count; i++) -// { -// if (i > 0) -// desc += " "; - -// // get control points in local plane coordinates -// Point3d temppt = new Point3d(); -// pln.RemapToPlaneSpace(ctrl_pts[i], out temppt); - -// // write point to string -// // format accepted by GSA: (0,0) (0,1) (1,2) (3,4) (4,0)(m) -// desc += "(" + temppt.X + "," + temppt.Y + ")"; -// } -// // add units to the end -// desc += "(" + Units.LengthUnitGeometry + ")"; - -// // set polyline in grid line load -// gridlineload.GridLineLoad.Type = GridLineLoad.PolyLineType.EXPLICIT_POLYLINE; -// gridlineload.GridLineLoad.PolyLineDefinition = desc; -// } -// else -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Could not convert Curve to Polyline"); -// } - -// // now we can set the gridplanesurface: -// if (gridlineload.GridPlaneSurface != null) -// { -// if (gridlineload.GridPlaneSurface.GridSurfaceID == 0) -// gridlineload.GridPlaneSurface = grdplnsrf; -// } - -// // 3 direction -// string dir = "Z"; -// Direction direc = Direction.Z; - -// GH_String gh_dir = new GH_String(); -// if (DA.GetData(3, ref gh_dir)) -// GH_Convert.ToString(gh_dir, out dir, GH_Conversion.Both); -// dir = dir.ToUpper(); -// if (dir == "X") -// direc = Direction.X; -// if (dir == "Y") -// direc = Direction.Y; - -// gridlineload.GridLineLoad.Direction = direc; - -// // 4 Axis -// int axis = 0; -// gridlineload.GridLineLoad.AxisProperty = 0; -// GH_Integer gh_ax = new GH_Integer(); -// if (DA.GetData(4, ref gh_ax)) -// { -// GH_Convert.ToInt32(gh_ax, out axis, GH_Conversion.Both); -// if (axis == 0 || axis == -1) -// gridlineload.GridLineLoad.AxisProperty = axis; -// } - -// // 5 Projected -// bool proj = false; -// GH_Boolean gh_proj = new GH_Boolean(); -// if (DA.GetData(5, ref gh_proj)) -// { -// if (GH_Convert.ToBoolean(gh_proj, out proj, GH_Conversion.Both)) -// gridlineload.GridLineLoad.IsProjected = proj; -// } - -// // 6 Name -// string name = ""; -// GH_String gh_name = new GH_String(); -// if (DA.GetData(6, ref gh_name)) -// { -// if (GH_Convert.ToString(gh_name, out name, GH_Conversion.Both)) -// gridlineload.GridLineLoad.Name = name; -// } - -// // 7 load value -// double load1 = 0; -// if (DA.GetData(7, ref load1)) -// load1 *= -1000; //convert to kN -// gridlineload.GridLineLoad.ValueAtStart = load1; - -// // 8 load value -// double load2 = load1; -// if (DA.GetData(8, ref load2)) -// load2 *= -1000; //convert to kN -// gridlineload.GridLineLoad.ValueAtEnd = load2; - -// // convert to goo -// GsaLoad gsaLoad = new GsaLoad(gridlineload); -// DA.SetData(0, new GsaLoadGoo(gsaLoad)); -// } -// } -//} \ No newline at end of file diff --git a/GhSA/Components/GraveyardComp/CreateGridPointLoad_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateGridPointLoad_OBSOLETE.cs deleted file mode 100644 index 8ecb3a15c..000000000 --- a/GhSA/Components/GraveyardComp/CreateGridPointLoad_OBSOLETE.cs +++ /dev/null @@ -1,165 +0,0 @@ -//using System; -//using Grasshopper.Kernel; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using Rhino.Geometry; -//using GhSA.Parameters; - -//namespace GhSA.Components -//{ -// public class CreateGridPointLoad_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// public CreateGridPointLoad_OBSOLETE() -// : base("Create Grid Point Load", "PointLoad", "Create GSA Grid Point Load", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat3()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override Guid ComponentGuid => new Guid("844dbf7b-3750-445c-950d-b161b00a6757"); -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.GridPointLoad; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// #endregion - -// #region input and output -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddIntegerParameter("Load case", "LC", "Load case number (default 1)", GH_ParamAccess.item, 1); -// pManager.AddPointParameter("Point", "Pt", "Point. If you input grid plane below only x and y coordinates will be used from this point, but if not a new Grid Plane Surface (xy-plane) will be created at the z-elevation of this point.", GH_ParamAccess.item); -// pManager.AddGenericParameter("Grid Plane Surface", "GPS", "Grid Plane Surface or Plane (optional). If no input here then the point's z-coordinate will be used for an xy-plane at that elevation.", GH_ParamAccess.item); -// pManager.AddTextParameter("Direction", "Di", "Load direction (default z)." + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "x" + -// System.Environment.NewLine + "y" + -// System.Environment.NewLine + "z", GH_ParamAccess.item, "z"); -// pManager.AddIntegerParameter("Axis", "Ax", "Load axis (default Global). " + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "0 : Global" + -// System.Environment.NewLine + "-1 : Local", GH_ParamAccess.item, 0); -// pManager.AddTextParameter("Name", "Na", "Load Name", GH_ParamAccess.item); -// pManager.AddNumberParameter("Value (" + Units.Force + ")", "V", "Load Value (" + Units.Force + ")", GH_ParamAccess.item); - -// pManager[0].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// pManager[4].Optional = true; -// pManager[5].Optional = true; -// } -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Grid Point Load", "Ld", "GSA Grid Point Load", GH_ParamAccess.item); -// } -// #endregion -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaGridPointLoad gridpointload = new GsaGridPointLoad(); - -// // 0 Load case -// int lc = 1; -// GH_Integer gh_lc = new GH_Integer(); -// if (DA.GetData(0, ref gh_lc)) -// GH_Convert.ToInt32(gh_lc, out lc, GH_Conversion.Both); -// gridpointload.GridPointLoad.Case = lc; - -// // 1 Point -// Point3d pt = new Point3d(); -// GH_Point gh_pt = new GH_Point(); -// if (DA.GetData(1, ref gh_pt)) -// GH_Convert.ToPoint3d(gh_pt, ref pt, GH_Conversion.Both); -// gridpointload.GridPointLoad.X = pt.X; -// gridpointload.GridPointLoad.Y = pt.Y; - -// // 2 Plane -// GsaGridPlaneSurface grdplnsrf; -// Plane pln = Plane.WorldXY; -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(2, ref gh_typ)) -// { -// if (gh_typ.Value is GsaGridPlaneSurfaceGoo) -// { -// GsaGridPlaneSurface temppln = new GsaGridPlaneSurface(); -// gh_typ.CastTo(ref temppln); -// grdplnsrf = temppln.Duplicate(); -// gridpointload.GridPlaneSurface = grdplnsrf; -// } -// else if (gh_typ.Value is Plane) -// { -// gh_typ.CastTo(ref pln); -// grdplnsrf = new GsaGridPlaneSurface(pln); -// gridpointload.GridPlaneSurface = grdplnsrf; -// } -// else -// { -// int id = 0; -// if (GH_Convert.ToInt32(gh_typ.Value, out id, GH_Conversion.Both)) -// { -// gridpointload.GridPointLoad.GridSurface = id; -// gridpointload.GridPlaneSurface = null; -// } -// else -// { -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Error in GPS input. Accepted inputs are Grid Plane Surface or Plane. " + -// System.Environment.NewLine + "If no input here then the point's z-coordinate will be used for an xy-plane at that elevation"); -// return; -// } -// } -// } -// else -// { -// pln = Plane.WorldXY; -// pln.Origin = pt; -// grdplnsrf = new GsaGridPlaneSurface(pln); -// gridpointload.GridPlaneSurface = grdplnsrf; -// } - -// // 3 direction -// string dir = "Z"; -// Direction direc = Direction.Z; - -// GH_String gh_dir = new GH_String(); -// if (DA.GetData(3, ref gh_dir)) -// GH_Convert.ToString(gh_dir, out dir, GH_Conversion.Both); -// dir = dir.ToUpper(); -// if (dir == "X") -// direc = Direction.X; -// if (dir == "Y") -// direc = Direction.Y; - -// gridpointload.GridPointLoad.Direction = direc; - -// // 4 Axis -// int axis = 0; -// gridpointload.GridPointLoad.AxisProperty = 0; -// GH_Integer gh_ax = new GH_Integer(); -// if (DA.GetData(4, ref gh_ax)) -// { -// GH_Convert.ToInt32(gh_ax, out axis, GH_Conversion.Both); -// if (axis == 0 || axis == -1) -// gridpointload.GridPointLoad.AxisProperty = axis; -// } - -// // 5 Name -// string name = ""; -// GH_String gh_name = new GH_String(); -// if (DA.GetData(5, ref gh_name)) -// { -// if (GH_Convert.ToString(gh_name, out name, GH_Conversion.Both)) -// gridpointload.GridPointLoad.Name = name; -// } - -// // 6 load value -// double load = 0; -// if (DA.GetData(6, ref load)) -// load *= -1000; //convert to kN -// gridpointload.GridPointLoad.Value = load; - -// // convert to goo -// GsaLoad gsaLoad = new GsaLoad(gridpointload); -// DA.SetData(0, new GsaLoadGoo(gsaLoad)); -// } -// } -//} \ No newline at end of file diff --git a/GhSA/Components/GraveyardComp/CreateNodeLoads_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateNodeLoads_OBSOLETE.cs deleted file mode 100644 index 92ecbd533..000000000 --- a/GhSA/Components/GraveyardComp/CreateNodeLoads_OBSOLETE.cs +++ /dev/null @@ -1,240 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using Rhino.Geometry; -//using GhSA.Parameters; -//using Grasshopper.Kernel.Parameters; - -//namespace GhSA.Components -//{ -// public class CreateNodeLoad_OBSOLETE : GH_OasysComponent, IGH_VariableParameterComponent -// { -// #region Name and Ribbon Layout -// public CreateNodeLoad_OBSOLETE() -// : base("Create Node Load", "NodeLoad", "Create GSA Node Load", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat3()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override Guid ComponentGuid => new Guid("0e30f030-8fc0-4ffa-afd9-02b18c094006"); -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.NodeLoad; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// public override void CreateAttributes() -// { -// if (first) -// { -// selecteditem = _mode.ToString(); -// first = false; -// } - -// m_attributes = new UI.DropDownComponentUI(this, SetSelected, dropdownitems, selecteditem, "Load Type"); -// } - - -// public void SetSelected(string selected) -// { -// selecteditem = selected; -// switch (selected) -// { -// case "Node": -// _mode = FoldMode.Node; -// break; -// case "Applied Displ": -// _mode = FoldMode.Applied_Displ; -// break; -// case "Settlement": -// _mode = FoldMode.Settlements; -// break; -// } -// } -// #endregion - -// #region Input and output -// readonly List dropdownitems = new List(new string[] -// { -// "Node", -// "Applied Displ", -// "Settlement" -// }); - -// string selecteditem; - -// #endregion - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddIntegerParameter("Load case", "LC", "Load case number (default 1)", GH_ParamAccess.item, 1); -// pManager.AddTextParameter("Node list", "No", "List of Nodes to apply load to." + System.Environment.NewLine + -// "Node list should take the form:" + System.Environment.NewLine + -// " 1 11 to 72 step 2 not (XY3 31 to 45)" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item); -// pManager.AddTextParameter("Name", "Na", "Load Name", GH_ParamAccess.item); -// pManager.AddTextParameter("Direction", "Di", "Load direction (default z)." + -// System.Environment.NewLine + "Accepted inputs are:" + -// System.Environment.NewLine + "x" + -// System.Environment.NewLine + "y" + -// System.Environment.NewLine + "z" + -// System.Environment.NewLine + "xx" + -// System.Environment.NewLine + "yy" + -// System.Environment.NewLine + "zz", GH_ParamAccess.item, "z"); -// pManager.AddNumberParameter("Value (" + Units.Force + ")", "V", "Load Value (" + Units.Force + ")", GH_ParamAccess.item); -// pManager[0].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; - -// } -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Node Load", "Ld", "GSA Node Load", GH_ParamAccess.item); -// } - -// protected override void SolveInstance(IGH_DataAccess DA) -// { - -// GsaNodeLoad nodeLoad = new GsaNodeLoad(); - -// // Node load type -// switch (_mode) -// { -// case FoldMode.Node: -// nodeLoad.NodeLoadType = GsaNodeLoad.NodeLoadTypes.NODE_LOAD; -// break; -// case FoldMode.Applied_Displ: -// nodeLoad.NodeLoadType = GsaNodeLoad.NodeLoadTypes.APPLIED_DISP; -// break; -// case FoldMode.Settlements: -// nodeLoad.NodeLoadType = GsaNodeLoad.NodeLoadTypes.SETTLEMENT; -// break; -// } - -// // 0 Load case -// int lc = 1; -// GH_Integer gh_lc = new GH_Integer(); -// if (DA.GetData(0, ref gh_lc)) -// GH_Convert.ToInt32(gh_lc, out lc, GH_Conversion.Both); -// nodeLoad.NodeLoad.Case = lc; - -// // 1 element/beam list -// // check that user has not inputted Gsa geometry elements here -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(1, ref gh_typ)) -// { -// string type = gh_typ.Value.ToString().ToUpper(); -// if (type.StartsWith("GSA ")) -// { -// Params.Owner.AddRuntimeMessage(GH_RuntimeMessageLevel.Error, -// "You cannot input a Node/Element/Member in NodeList input!" + System.Environment.NewLine + -// "Element list should take the form:" + System.Environment.NewLine + -// "'1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (PA PB1 PS2 PM3 PA4 M1)'" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary."); -// return; -// } -// } -// string nodeList = "all"; -// GH_String gh_nl = new GH_String(); -// if (DA.GetData(1, ref gh_nl)) -// GH_Convert.ToString(gh_nl, out nodeList, GH_Conversion.Both); -// nodeLoad.NodeLoad.Nodes = nodeList; - -// // 3 Name -// string name = ""; -// GH_String gh_name = new GH_String(); -// if (DA.GetData(3, ref gh_name)) -// { -// if (GH_Convert.ToString(gh_name, out name, GH_Conversion.Both)) -// nodeLoad.NodeLoad.Name = name; -// } - -// // 3 direction -// string dir = "Z"; -// Direction direc = Direction.Z; - -// GH_String gh_dir = new GH_String(); -// if (DA.GetData(3, ref gh_dir)) -// GH_Convert.ToString(gh_dir, out dir, GH_Conversion.Both); -// dir = dir.ToUpper().Trim(); -// if (dir == "X") -// direc = Direction.X; -// if (dir == "Y") -// direc = Direction.Y; -// if (dir == "XX") -// direc = Direction.XX; -// if (dir == "YY") -// direc = Direction.YY; -// if (dir == "ZZ") -// direc = Direction.ZZ; - -// nodeLoad.NodeLoad.Direction = direc; - -// double load = 0; -// if (DA.GetData(4, ref load)) -// { -// if (direc == Direction.Z) -// load *= -1000; //convert to kN -// else -// load *= 1000; -// } - -// nodeLoad.NodeLoad.Value = load; - -// GsaLoad gsaLoad = new GsaLoad(nodeLoad); -// DA.SetData(0, new GsaLoadGoo(gsaLoad)); -// } - -// #region menu override -// private enum FoldMode -// { -// Node, -// Applied_Displ, -// Settlements -// } -// private bool first = true; -// private FoldMode _mode = FoldMode.Node; -// #endregion - -// #region (de)serialization -// public override bool Write(GH_IO.Serialization.GH_IWriter writer) -// { -// writer.SetInt32("Mode", (int)_mode); -// writer.SetString("select", selecteditem); -// return base.Write(writer); -// } -// public override bool Read(GH_IO.Serialization.GH_IReader reader) -// { -// _mode = (FoldMode)reader.GetInt32("Mode"); -// selecteditem = reader.GetString("select"); -// this.CreateAttributes(); -// return base.Read(reader); -// } - -// bool IGH_VariableParameterComponent.CanInsertParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// bool IGH_VariableParameterComponent.CanRemoveParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// IGH_Param IGH_VariableParameterComponent.CreateParameter(GH_ParameterSide side, int index) -// { -// return null; -// } -// bool IGH_VariableParameterComponent.DestroyParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// #endregion -// #region IGH_VariableParameterComponent null implementation -// void IGH_VariableParameterComponent.VariableParameterMaintenance() -// { - -// } -// #endregion -// } -//} \ No newline at end of file diff --git a/GhSA/Components/GraveyardComp/CreateOffset_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateOffset_OBSOLETE.cs deleted file mode 100644 index 3002d1b4f..000000000 --- a/GhSA/Components/GraveyardComp/CreateOffset_OBSOLETE.cs +++ /dev/null @@ -1,92 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using GhSA.Parameters; -//using System.Resources; - -//namespace GhSA.Components -//{ -// /// -// /// Component to create a new Offset -// /// -// public class CreateOffset_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("ba62abd3-cd48-4dd2-9cd1-d89c921dd108"); -// public CreateOffset_OBSOLETE() -// : base("Create Offset", "Offset", "Create GSA Offset", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat1()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.CreateOffset; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout - -// #endregion - -// #region Input and output - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddNumberParameter("Offset X1", "X1", "X1 - Start axial offset (" + Units.LengthUnitGeometry.ToString() + ")", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("Offset X2", "X2", "X2 - End axial offset (" + Units.LengthUnitGeometry.ToString() + ")", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("Offset Y", "Y", "Y Offset (" + Units.LengthUnitGeometry.ToString() + ")", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("Offset Z", "Z", "Z Offset (" + Units.LengthUnitGeometry.ToString() + ")", GH_ParamAccess.item, 0); - -// pManager[0].Optional = true; -// pManager[1].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// } - -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Offset", "Of", "GSA Offset", GH_ParamAccess.item); -// } -// #endregion - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// double x1 = 0; -// double x2 = 0; -// double y = 0; -// double z = 0; -// GH_Number ghOffsetX1 = new GH_Number(); -// if (DA.GetData(0, ref ghOffsetX1)) -// GH_Convert.ToDouble(ghOffsetX1, out x1, GH_Conversion.Both); -// GH_Number ghOffsetX2 = new GH_Number(); -// if (DA.GetData(1, ref ghOffsetX2)) -// GH_Convert.ToDouble(ghOffsetX2, out x2, GH_Conversion.Both); -// GH_Number ghOffsetY = new GH_Number(); -// if (DA.GetData(2, ref ghOffsetY)) -// GH_Convert.ToDouble(ghOffsetY, out y, GH_Conversion.Both); -// GH_Number ghOffsetZ = new GH_Number(); -// if (DA.GetData(3, ref ghOffsetZ)) -// GH_Convert.ToDouble(ghOffsetZ, out z, GH_Conversion.Both); - -// GsaOffset offset = new GsaOffset -// { -// X1 = x1, -// X2 = x2, -// Y = y, -// Z = z -// }; - -// DA.SetData(0, new GsaOffsetGoo(offset.Duplicate())); -// } -// } -//} diff --git a/GhSA/Components/GraveyardComp/CreateProp2d_OBSOLETE.cs b/GhSA/Components/GraveyardComp/CreateProp2d_OBSOLETE.cs deleted file mode 100644 index 2e51dd4b2..000000000 --- a/GhSA/Components/GraveyardComp/CreateProp2d_OBSOLETE.cs +++ /dev/null @@ -1,400 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; - -//using Grasshopper.Kernel.Parameters; -//using GsaAPI; -//using GhSA.Parameters; -//using System.Resources; -//using UnitsNet; - -//namespace GhSA.Components -//{ -// /// -// /// Component to create a new Prop2d -// /// -// public class CreateProp2d_OBSOLETE : GH_OasysComponent, IGH_VariableParameterComponent -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("3fd61492-b5ff-47ea-8c7c-89cf639b32dc"); -// public CreateProp2d_OBSOLETE() -// : base("Create 2D Property", "Prop2d", "Create GSA 2D Property", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat1()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.CreateProp2d; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// public override void CreateAttributes() -// { -// if (first) -// { -// selecteditem = _mode.ToString(); -// //first = false; -// } - -// m_attributes = new UI.DropDownComponentUI(this, SetSelected, dropdownitems, selecteditem, "Element Type"); -// } - -// public void SetSelected(string selected) -// { -// selecteditem = selected; -// switch (selected) -// { -// case "Plane Stress": -// Mode1Clicked(); -// break; -// case "Fabric": -// Mode2Clicked(); -// break; -// case "Flat Plate": -// Mode3Clicked(); -// break; -// case "Shell": -// Mode4Clicked(); -// break; -// case "Curved Shell": -// Mode5Clicked(); -// break; -// case "Load Panel": -// Mode6Clicked(); -// break; -// } -// } -// #endregion - -// #region Input and output -// readonly List dropdownitems = new List(new string[] -// { -// "Plane Stress", -// "Fabric", -// "Flat Plate", -// "Shell", -// "Curved Shell", -// "Load Panel" -// }); - -// string selecteditem; - -// #endregion - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// if (first) -// { -// first = false; -// //register input parameter -// //Params.RegisterInputParam(new Param_Integer()); -// Params.RegisterInputParam(new Param_GenericObject()); -// Params.RegisterInputParam(new Param_Number()); - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// } -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("2D Property", "PA", "GSA 2D Property", GH_ParamAccess.item); -// } - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaProp2d prop = new GsaProp2d(); - -// // element type (picked in dropdown) -// prop.Type = Property2D_Type.UNDEF; -// if (_mode == FoldMode.PlaneStress) -// prop.Type = Property2D_Type.PL_STRESS; -// if (_mode == FoldMode.Fabric) -// prop.Type = Property2D_Type.FABRIC; -// if (_mode == FoldMode.FlatPlate) -// prop.Type = Property2D_Type.PLATE; -// if (_mode == FoldMode.Shell) -// prop.Type = Property2D_Type.SHELL; -// if (_mode == FoldMode.CurvedShell) -// prop.Type = Property2D_Type.CURVED_SHELL; -// if (_mode == FoldMode.LoadPanel) -// prop.Type = Property2D_Type.LOAD; - -// if (_mode != FoldMode.LoadPanel) -// { -// prop.AxisProperty = 0; - -// if (_mode != FoldMode.Fabric) -// { -// // 0 Material -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(0, ref gh_typ)) -// { -// GsaMaterial material = new GsaMaterial(); -// if (gh_typ.Value is GsaMaterialGoo) -// { -// gh_typ.CastTo(ref material); -// prop.Material = material; -// } -// else -// { -// if (GH_Convert.ToInt32(gh_typ.Value, out int idd, GH_Conversion.Both)) -// { -// prop.Material = new GsaMaterial(idd); -// } -// else -// { -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Unable to convert PB input to a Section Property of reference integer"); -// return; -// } -// } -// } -// else -// prop.Material = new GsaMaterial(2); - -// GH_Number gh_THK = new GH_Number(); -// double thickness = 200; -// if (DA.GetData(1, ref gh_THK)) -// GH_Convert.ToDouble(gh_THK, out thickness, GH_Conversion.Both); -// prop.Thickness = new Length(thickness, UnitsNet.Units.LengthUnit.Millimeter); -// } -// else -// prop.Material = new GsaMaterial(8); -// } - -// DA.SetData(0, new GsaProp2dGoo(prop)); - -// } -// #region menu override -// private enum FoldMode -// { -// PlaneStress, -// Fabric, -// FlatPlate, -// Shell, -// CurvedShell, -// LoadPanel -// } -// private bool first = true; -// private FoldMode _mode = FoldMode.Shell; - - -// private void Mode1Clicked() -// { -// if (_mode == FoldMode.PlaneStress) -// return; - -// RecordUndoEvent("Plane Stress Parameters"); -// if (_mode == FoldMode.LoadPanel || _mode == FoldMode.Fabric) -// { -// //remove input parameters -// while (Params.Input.Count > 0) -// Params.UnregisterInputParameter(Params.Input[0], true); - -// //register input parameter -// //Params.RegisterInputParam(new Param_Integer()); -// Params.RegisterInputParam(new Param_GenericObject()); -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.PlaneStress; - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// private void Mode2Clicked() -// { -// if (_mode == FoldMode.Fabric) -// return; - -// RecordUndoEvent("Fabric Parameters"); -// _mode = FoldMode.Fabric; - -// //remove input parameters -// while (Params.Input.Count > 0) -// Params.UnregisterInputParameter(Params.Input[0], true); - -// //register input parameter -// //Params.RegisterInputParam(new Param_Integer()); -// Params.RegisterInputParam(new Param_GenericObject()); - - - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// private void Mode3Clicked() -// { -// if (_mode == FoldMode.FlatPlate) -// return; - -// RecordUndoEvent("Flat Plate Parameters"); -// if (_mode == FoldMode.LoadPanel || _mode == FoldMode.Fabric) -// { -// //remove input parameters -// while (Params.Input.Count > 0) -// Params.UnregisterInputParameter(Params.Input[0], true); - -// //register input parameter -// //Params.RegisterInputParam(new Param_Integer()); -// Params.RegisterInputParam(new Param_GenericObject()); -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.FlatPlate; - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } - -// private void Mode4Clicked() -// { -// if (_mode == FoldMode.Shell) -// return; - -// RecordUndoEvent("Shell Parameters"); -// if (_mode == FoldMode.LoadPanel || _mode == FoldMode.Fabric) -// { -// //remove input parameters -// while (Params.Input.Count > 0) -// Params.UnregisterInputParameter(Params.Input[0], true); - -// //register input parameter -// //Params.RegisterInputParam(new Param_Integer()); -// Params.RegisterInputParam(new Param_GenericObject()); -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.Shell; - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } - -// private void Mode5Clicked() -// { -// if (_mode == FoldMode.CurvedShell) -// return; - -// RecordUndoEvent("Curved Shell Parameters"); -// if (_mode == FoldMode.LoadPanel || _mode == FoldMode.Fabric) -// { -// //remove input parameters -// while (Params.Input.Count > 0) -// Params.UnregisterInputParameter(Params.Input[0], true); - -// //register input parameter -// //Params.RegisterInputParam(new Param_Integer()); -// Params.RegisterInputParam(new Param_GenericObject()); -// Params.RegisterInputParam(new Param_Number()); -// } -// _mode = FoldMode.CurvedShell; - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } - -// private void Mode6Clicked() -// { -// if (_mode == FoldMode.LoadPanel) -// return; - -// RecordUndoEvent("Load Panel Parameters"); -// _mode = FoldMode.LoadPanel; - -// //remove input parameters -// while (Params.Input.Count > 0) -// Params.UnregisterInputParameter(Params.Input[0], true); - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// ExpireSolution(true); -// } -// #endregion -// #region (de)serialization -// public override bool Write(GH_IO.Serialization.GH_IWriter writer) -// { -// writer.SetInt32("Mode", (int)_mode); -// writer.SetString("select", selecteditem); -// return base.Write(writer); -// } -// public override bool Read(GH_IO.Serialization.GH_IReader reader) -// { -// _mode = (FoldMode)reader.GetInt32("Mode"); -// selecteditem = reader.GetString("select"); -// this.CreateAttributes(); -// return base.Read(reader); -// } - -// bool IGH_VariableParameterComponent.CanInsertParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// bool IGH_VariableParameterComponent.CanRemoveParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// IGH_Param IGH_VariableParameterComponent.CreateParameter(GH_ParameterSide side, int index) -// { -// return null; -// } -// bool IGH_VariableParameterComponent.DestroyParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// #endregion -// #region IGH_VariableParameterComponent null implementation -// void IGH_VariableParameterComponent.VariableParameterMaintenance() -// { -// if (_mode != FoldMode.LoadPanel && _mode != FoldMode.Fabric) -// { -// int i = 0; -// Params.Input[i].NickName = "Mat"; -// Params.Input[i].Name = "Material"; -// Params.Input[i].Description = "GsaMaterial or Number for referring to a Material already in Existing GSA Model." + System.Environment.NewLine -// + "Accepted inputs are: " + System.Environment.NewLine -// + "0 : Generic" + System.Environment.NewLine -// + "1 : Steel" + System.Environment.NewLine -// + "2 : Concrete (default)" + System.Environment.NewLine -// + "3 : Aluminium" + System.Environment.NewLine -// + "4 : Glass" + System.Environment.NewLine -// + "5 : FRP" + System.Environment.NewLine -// + "7 : Timber" + System.Environment.NewLine -// + "8 : Fabric"; - -// Params.Input[i].Access = GH_ParamAccess.item; -// Params.Input[i].Optional = true; - -// i++; -// Params.Input[i].NickName = "Thk"; -// Params.Input[i].Name = "Thickness (" + Units.LengthUnitGeometry.ToString() + ")"; // "Thickness [m]"; -// Params.Input[i].Description = "Section thickness (default 200mm)"; -// Params.Input[i].Access = GH_ParamAccess.item; -// Params.Input[i].Optional = true; -// } - -// if (_mode == FoldMode.Fabric) -// { -// int i = 0; -// Params.Input[i].NickName = "Mat"; -// Params.Input[i].Name = "Material"; -// Params.Input[i].Description = "GsaMaterial or Reference ID for Material Property in Existing GSA Model"; -// Params.Input[i].Access = GH_ParamAccess.item; -// Params.Input[i].Optional = true; -// } -// } -// #endregion -// } -//} \ No newline at end of file diff --git a/GhSA/Components/GraveyardComp/CreateSpring.cs b/GhSA/Components/GraveyardComp/CreateSpring.cs deleted file mode 100644 index d2c1dc62f..000000000 --- a/GhSA/Components/GraveyardComp/CreateSpring.cs +++ /dev/null @@ -1,107 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using GhSA.Parameters; -//using System.Resources; - -//namespace GhSA.Components -//{ -// /// -// /// Component to create a new spring -// /// -// public class CreateSpring_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("e4b7c688-147b-4d91-b754-1a45c715b8db"); -// public CreateSpring_OBSOLETE() -// : base("Create Spring", "Spring", "Create GSA Spring (Type: General)", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat1()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override GH_Exposure Exposure => GH_Exposure.hidden;// | GH_Exposure.obscure; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.CreateSpring; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout - -// #endregion - -// #region Input and output - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddNumberParameter("X", "X", "X", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("Y", "Y", "Y", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("Z", "Z", "Z", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("XX", "XX", "XX", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("YY", "YY", "YY", GH_ParamAccess.item, 0); -// pManager.AddNumberParameter("ZZ", "ZZ", "ZZ", GH_ParamAccess.item, 0); - -// pManager[0].Optional = true; -// pManager[1].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// pManager[4].Optional = true; -// pManager[5].Optional = true; -// } - -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Spring", "PS", "GSA Spring (Type: General)", GH_ParamAccess.item); -// } -// #endregion - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// double x = 0; -// double y = 0; -// double z = 0; -// double xx = 0; -// double yy = 0; -// double zz = 0; -// GH_Number ghSprX = new GH_Number(); -// if (DA.GetData(0, ref ghSprX)) -// GH_Convert.ToDouble(ghSprX, out x, GH_Conversion.Both); -// GH_Number ghSprY = new GH_Number(); -// if (DA.GetData(1, ref ghSprY)) -// GH_Convert.ToDouble(ghSprY, out y, GH_Conversion.Both); -// GH_Number ghSprZ = new GH_Number(); -// if (DA.GetData(2, ref ghSprZ)) -// GH_Convert.ToDouble(ghSprZ, out z, GH_Conversion.Both); -// GH_Number ghSprXX = new GH_Number(); -// if (DA.GetData(3, ref ghSprXX)) -// GH_Convert.ToDouble(ghSprXX, out xx, GH_Conversion.Both); -// GH_Number ghSprYY = new GH_Number(); -// if (DA.GetData(4, ref ghSprYY)) -// GH_Convert.ToDouble(ghSprYY, out yy, GH_Conversion.Both); -// GH_Number ghSprZZ = new GH_Number(); -// if (DA.GetData(5, ref ghSprZZ)) -// GH_Convert.ToDouble(ghSprZZ, out zz, GH_Conversion.Both); -// GsaSpring Spring = new GsaSpring -// { -// X = x, -// Y = y, -// Z = z, -// XX = xx, -// YY = yy, -// ZZ = zz -// }; -// DA.SetData(0, new GsaSpringGoo(Spring.Duplicate())); - -// this.AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "Please note that springs are not yet supported in GsaGH"); -// } -// } -//} - diff --git a/GhSA/Components/GraveyardComp/EditNode_OBSOLETE.cs b/GhSA/Components/GraveyardComp/EditNode_OBSOLETE.cs deleted file mode 100644 index bc38bc3d0..000000000 --- a/GhSA/Components/GraveyardComp/EditNode_OBSOLETE.cs +++ /dev/null @@ -1,212 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using GhSA.Parameters; -//using System.Resources; - -//namespace GhSA.Components -//{ -// /// -// /// Component to edit a Node -// /// -// public class EditNode_OBSOLETE : GH_OasysComponent, IGH_PreviewObject -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("26c324cb-6f2e-4fdb-8539-e7d5cc89b2fc"); -// public EditNode_OBSOLETE() -// : base("Edit Node", "NodeEdit", "Modify GSA Node", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat2()) -// { -// } - -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.EditNode; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout - - -// #endregion - -// #region Input and output - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { - -// pManager.AddGenericParameter("Node", "No", "GSA Node to Edit. If no input a new node will be created.", GH_ParamAccess.item); -// pManager.AddIntegerParameter("Node number", "ID", "Set Node number (ID) - if Node ID is set it will replace any existing nodes in the model", GH_ParamAccess.item); -// pManager.AddPointParameter("Node Position", "Pt", "Set new Position (x, y, z) of Node", GH_ParamAccess.item); -// pManager.AddPlaneParameter("Node local axis", "Pl", "Set Local axis (Plane) of Node", GH_ParamAccess.item); -// pManager.AddGenericParameter("Node Restraints", "B6", "Set Restraints (Bool6) of Node", GH_ParamAccess.item); -// pManager.AddGenericParameter("Node Spring", "PS", "Set Spring (Type: General)", GH_ParamAccess.item); -// pManager.AddTextParameter("Node Name", "Na", "Set Name of Node", GH_ParamAccess.item); -// pManager.AddColourParameter("Node Colour", "Co", "Set colour of node", GH_ParamAccess.item); -// pManager[1].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; -// pManager[4].Optional = true; -// pManager[5].Optional = true; -// pManager[6].Optional = true; -// pManager[7].Optional = true; - -// pManager.HideParameter(0); -// pManager.HideParameter(2); -// pManager.HideParameter(3); -// } - -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Node", "No", "Modified GSA Node", GH_ParamAccess.item); -// pManager.AddIntegerParameter("Node number", "ID", "Original Node number (ID) if Node ever belonged to a GSA Model", GH_ParamAccess.item); -// pManager.AddPointParameter("Node Position", "Pt", "Position (x, y, z) of Node", GH_ParamAccess.item); -// pManager.HideParameter(2); -// pManager.AddPlaneParameter("Node local axis", "Pl", "Local axis (Plane) of Node", GH_ParamAccess.item); -// pManager.HideParameter(3); -// pManager.AddGenericParameter("Node Restraints", "B6", "Restraints (Bool6) of Node", GH_ParamAccess.item); -// pManager.AddGenericParameter("Node Spring", "PS", "Spring attached to Node", GH_ParamAccess.item); -// pManager.AddTextParameter("Node Name", "Na", "Name of Node", GH_ParamAccess.item); -// pManager.AddColourParameter("Node Colour", "Co", "Get colour of node", GH_ParamAccess.item); -// pManager.AddIntegerParameter("Connected Elements", "El", "Connected Element IDs in Model that Node once belonged to", GH_ParamAccess.list); -// pManager.AddIntegerParameter("Connected Members", "Me", "Connected Member IDs in Model that Node once belonged to", GH_ParamAccess.list); -// } -// #endregion - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(0, ref gh_typ)) -// { -// GsaNode gsaNode = new GsaNode(); -// Point3d tempPt = new Point3d(); -// if (gh_typ.Value is GsaNodeGoo) -// { -// gh_typ.CastTo(ref gsaNode); -// if (gsaNode == null) { AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Node input is null"); } -// if (gsaNode.API_Node == null) { AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Node input is null"); } -// } -// else if (GH_Convert.ToPoint3d(gh_typ.Value, ref tempPt, GH_Conversion.Both)) -// { -// gsaNode = new GsaNode(tempPt); -// } -// else -// { -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Unable to convert input to Node"); -// return; -// } -// GsaNode node = gsaNode.Duplicate(); - -// // #### inputs #### - -// // 1 ID -// GH_Integer ghInt = new GH_Integer(); -// if (DA.GetData(1, ref ghInt)) -// { -// if (GH_Convert.ToInt32(ghInt, out int id, GH_Conversion.Both)) -// node.ID = id; -// } - -// // 2 Point -// GH_Point ghPt = new GH_Point(); -// if (DA.GetData(2, ref ghPt)) -// { -// Point3d pt = new Point3d(); -// if (GH_Convert.ToPoint3d(ghPt, ref pt, GH_Conversion.Both)) -// { -// node.Point = pt; -// node.API_Node.Position.X = pt.X; -// node.API_Node.Position.Y = pt.Y; -// node.API_Node.Position.Z = pt.Z; -// } -// } - -// // 3 plane -// GH_Plane ghPln = new GH_Plane(); -// if (DA.GetData(3, ref ghPln)) -// { -// Plane pln = new Plane(); -// if (GH_Convert.ToPlane(ghPln, ref pln, GH_Conversion.Both)) -// { -// pln.Origin = node.Point; -// node.LocalAxis = pln; -// } -// } - -// // 4 Restraint -// GsaBool6 restraint = new GsaBool6(); -// if (DA.GetData(4, ref restraint)) -// { -// node.API_Node.Restraint.X = restraint.X; -// node.API_Node.Restraint.Y = restraint.Y; -// node.API_Node.Restraint.Z = restraint.Z; -// node.API_Node.Restraint.XX = restraint.XX; -// node.API_Node.Restraint.YY = restraint.YY; -// node.API_Node.Restraint.ZZ = restraint.ZZ; -// } - -// // 5 Spring -// //GsaSpring spring = new GsaSpring(); -// //if (DA.GetData(5, ref spring)) -// //{ -// // if (spring != null) -// // node.Spring = spring; -// //} - -// // 6 Name -// GH_String ghStr = new GH_String(); -// if (DA.GetData(6, ref ghStr)) -// { -// if (GH_Convert.ToString(ghStr, out string name, GH_Conversion.Both)) -// node.API_Node.Name = name; -// } - -// // 7 Colour -// GH_Colour ghcol = new GH_Colour(); -// if (DA.GetData(7, ref ghcol)) -// { -// if (GH_Convert.ToColor(ghcol, out System.Drawing.Color col, GH_Conversion.Both)) -// node.Colour = col; -// } - -// // #### outputs #### -// DA.SetData(0, new GsaNodeGoo(node)); -// DA.SetData(1, node.ID); -// DA.SetData(2, node.Point); -// DA.SetData(3, node.LocalAxis); -// GsaBool6 restraint1 = new GsaBool6 -// { -// X = node.API_Node.Restraint.X, -// Y = node.API_Node.Restraint.Y, -// Z = node.API_Node.Restraint.Z, -// XX = node.API_Node.Restraint.XX, -// YY = node.API_Node.Restraint.YY, -// ZZ = node.API_Node.Restraint.ZZ -// }; -// DA.SetData(4, new GsaBool6Goo(restraint1)); -// //GsaSpring spring1 = new GsaSpring(); -// //if (node.Spring != null) -// //{ -// // spring1 = node.Spring.Duplicate(); -// //} -// //DA.SetData(5, new GsaSpringGoo(spring1)); -// DA.SetData(6, node.API_Node.Name); -// DA.SetData(7, node.Colour); -// try { DA.SetDataList(8, node.API_Node.ConnectedElements); } catch (Exception) { } -// try { DA.SetDataList(9, node.API_Node.ConnectedMembers); } catch (Exception) { } -// } -// } -// } -//} - diff --git a/GhSA/Components/GraveyardComp/EditSpring.cs b/GhSA/Components/GraveyardComp/EditSpring.cs deleted file mode 100644 index 388d70fbf..000000000 --- a/GhSA/Components/GraveyardComp/EditSpring.cs +++ /dev/null @@ -1,112 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using GhSA.Parameters; -//using System.Resources; - -//namespace GhSA.Components -//{ -// /// -// /// Component to edit a Spring and ouput the information -// /// -// public class EditSpring_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("037f46d0-f0f6-4e99-8851-fc99d5e8205c"); -// public EditSpring_OBSOLETE() -// : base("Edit Spring", "SpringEdit", "Modify GSA Spring", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat1()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override GH_Exposure Exposure => GH_Exposure.hidden;// | GH_Exposure.obscure; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.EditSpring; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout - -// #endregion - -// #region Input and output - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddGenericParameter("Spring", "PS", "GSA Spring to get or set information for", GH_ParamAccess.item); -// pManager.AddNumberParameter("X", "X", "X", GH_ParamAccess.item); -// pManager.AddNumberParameter("Y", "Y", "Y", GH_ParamAccess.item); -// pManager.AddNumberParameter("Z", "Z", "Z", GH_ParamAccess.item); -// pManager.AddNumberParameter("XX", "XX", "XX", GH_ParamAccess.item); -// pManager.AddNumberParameter("YY", "YY", "YY", GH_ParamAccess.item); -// pManager.AddNumberParameter("ZZ", "ZZ", "ZZ", GH_ParamAccess.item); -// for (int i = 0; i < pManager.ParamCount; i++) -// pManager[i].Optional = true; -// } - -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Spring", "PS", "GSA Spring with changes", GH_ParamAccess.item); -// pManager.AddNumberParameter("X", "X", "X", GH_ParamAccess.item); -// pManager.AddNumberParameter("Y", "Y", "Y", GH_ParamAccess.item); -// pManager.AddNumberParameter("Z", "Z", "Z", GH_ParamAccess.item); -// pManager.AddNumberParameter("XX", "XX", "XX", GH_ParamAccess.item); -// pManager.AddNumberParameter("YY", "YY", "YY", GH_ParamAccess.item); -// pManager.AddNumberParameter("ZZ", "ZZ", "ZZ", GH_ParamAccess.item); -// } -// #endregion - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaSpring spring = new GsaSpring(); -// GsaSpring gsaspring = new GsaSpring(); -// if (DA.GetData(0, ref gsaspring)) -// { -// spring = gsaspring.Duplicate(); -// } -// if (spring != null) -// { -// //inputs -// double x = 0; -// if (DA.GetData(1, ref x)) -// spring.X = x; -// double y = 0; -// if (DA.GetData(2, ref y)) -// spring.Y = y; -// double z = 0; -// if (DA.GetData(3, ref z)) -// spring.Z = z; -// double xx = 0; -// if (DA.GetData(4, ref xx)) -// spring.XX = xx; -// double yy = 0; -// if (DA.GetData(5, ref yy)) -// spring.YY = yy; -// double zz = 0; -// if (DA.GetData(6, ref zz)) -// spring.ZZ = zz; - -// //outputs -// DA.SetData(0, new GsaSpringGoo(spring)); -// DA.SetData(1, spring.X); -// DA.SetData(2, spring.Y); -// DA.SetData(3, spring.Z); -// DA.SetData(4, spring.XX); -// DA.SetData(5, spring.YY); -// DA.SetData(6, spring.ZZ); - -// this.AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "Please note that springs are not yet supported in GsaGH"); -// } -// } -// } -//} - diff --git a/GhSA/Components/GraveyardComp/EditUnits_OBSOLETE.cs b/GhSA/Components/GraveyardComp/EditUnits_OBSOLETE.cs deleted file mode 100644 index 24ef9565a..000000000 --- a/GhSA/Components/GraveyardComp/EditUnits_OBSOLETE.cs +++ /dev/null @@ -1,296 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using GhSA.Parameters; -//using System.Resources; -//using Grasshopper.Documentation; - -//namespace GhSA.Components -//{ -// public class EditGsaUnits_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("7804c8d8-07b9-43f2-af07-1a056dce8c6d"); -// public EditGsaUnits_OBSOLETE() -// : base("Edit GSA Units", "Unit", "Set GSA Units for this document", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat0()) -// { this.Hidden = true; } // sets the initial state of the component to hidden -// public override GH_Exposure Exposure => GH_Exposure.tertiary | GH_Exposure.obscure; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.EditUnits; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout - - -// #endregion - -// #region Input and output - -// protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) -// { -// pManager.AddTextParameter("Force Unit", "Force", "Set unit for Forces", GH_ParamAccess.item); -// pManager.AddTextParameter("Length Large Unit", "Geometry", "Set unit for modelled geometry. By default Rhino Document Unit is used", GH_ParamAccess.item); -// pManager.AddTextParameter("Length Small Unit", "Deflections", "Set unit for Cross-Sections", GH_ParamAccess.item); -// pManager.AddTextParameter("Section Length Unit", "Section", "Set unit for Cross-Sections", GH_ParamAccess.item); -// pManager.AddTextParameter("Mass unit", "Mass", "Set unit for Mass", GH_ParamAccess.item); -// pManager.AddTextParameter("Temperature unit", "Temperature", "Set unit for Temperature", GH_ParamAccess.item); -// pManager.AddTextParameter("Stress unit", "Stress", "Set unit for Stress", GH_ParamAccess.item); -// pManager.AddTextParameter("Strain unit", "Strain", "Set unit for Strain", GH_ParamAccess.item); -// pManager.AddTextParameter("Velocity unit", "Velocity", "Set unit for Velocity", GH_ParamAccess.item); -// pManager.AddTextParameter("Acceleration unit", "Acceleration", "Set unit for Acceleration", GH_ParamAccess.item); -// pManager.AddTextParameter("Energy unit", "Energy", "Set unit for Energy", GH_ParamAccess.item); -// pManager.AddTextParameter("Angle unit", "Angle", "Set unit for Angle", GH_ParamAccess.item); -// pManager.AddTextParameter("Time Short unit", "Time S", "Set unit for Time - short", GH_ParamAccess.item); -// pManager.AddTextParameter("Time Medium unit", "Time M", "Set unit for Time - medium", GH_ParamAccess.item); -// pManager.AddTextParameter("Time Long unit", "Time L", "Set unit for Time - Long", GH_ParamAccess.item); -// pManager.AddNumberParameter("Tolerance", "Tolerance", "Set Tolerance (using Length Large Unit)", GH_ParamAccess.item); -// for (int i = 0; i < pManager.ParamCount; i++) -// pManager[i].Optional = true; -// } - -// protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager) -// { -// pManager.AddTextParameter("Units", "Units", "List of all units in document", GH_ParamAccess.list); -// } -// #endregion -// private void UpdateCanvas() -// { -// //none of these below will update the text. -// //to be implemented -// //method to redraw component descriptions/names when units are updated - -// //Instances.ActiveCanvas.Document.DestroyAttributeCache(); -// //IGH_Component comp1 = Instances.ActiveCanvas.Document.FindComponent(new Guid("6504a99f-a4e2-4e30-8251-de31ea83e8cb")); -// //comp1.OnAttributesChanged(); - -// for (int i = 0; i < Instances.ActiveCanvas.Document.Attributes.Count; i++) -// { -// if (Instances.ActiveCanvas.Document.Attributes[i].DocObject.NickName == "Profile") //set nickname here -// { -// if (Instances.ActiveCanvas.Document.Attributes[i] is GH_Component comp) -// { -// comp.ExpireSolution(true); -// for (int j = 0; j < comp.Params.Input.Count; j++) -// { -// for (int k = 0; k < comp.Params.Input[j].Sources.Count; k++) -// comp.Params.Input[j].Sources[k].Attributes.PerformLayout(); -// } -// } - - - -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.ExpireSolution(true); - - -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.Attributes.PerformLayout(); -// //Instances.ActiveCanvas.Document.Attributes[i].PerformLayout(); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.Attributes.ExpireLayout(); -// //Instances.ActiveCanvas.Document.Attributes[i].ExpireLayout(); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.CreateAttributes(); - -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.ExpirePreview(true); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.OnAttributesChanged(); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.OnDisplayExpired(true); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.OnObjectChanged(GH_ObjectEventType.Layout); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.OnObjectChanged(GH_ObjectEventType.PersistentData); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.OnPingDocument(); -// //Instances.ActiveCanvas.Document.Attributes[i].DocObject.OnPreviewExpired(true); -// } -// } -// } - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "It is currently not possible to set units back into a GSA model." -// + System.Environment.NewLine + "Any chances made here will not be reflected in a your model." -// + System.Environment.NewLine + "Please use [kN] for loads and [m] for model geometry, however you" -// + System.Environment.NewLine + "can use custom units for section profiles and prop2d thickness"); -// bool update = false; - -// GH_String ghstr = new GH_String(); -// if (DA.GetData(0, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Force = unit; -// update = true; -// } -// } - -// ghstr = new GH_String(); -// if (DA.GetData(1, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.LengthUnitGeometry = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(2, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.LengthUnitResult = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(3, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.LengthUnitSection = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(4, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Mass = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(5, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Temperature = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(6, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Stress = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(7, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Strain = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(8, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Velocity = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(9, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Acceleration = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(10, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Energy = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(11, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.Angle = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(12, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.TimeShort = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(13, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.TimeMedium = unit; -// update = true; -// } -// } -// ghstr = new GH_String(); -// if (DA.GetData(14, ref ghstr)) -// { -// if (GH_Convert.ToString(ghstr, out string unit, GH_Conversion.Both)) -// { -// Units.TimeLong = unit; -// update = true; -// } -// } -// GH_Number ghnum = new GH_Number(); -// if (DA.GetData(15, ref ghnum)) -// { -// if (GH_Convert.ToDouble(ghnum, out double tol, GH_Conversion.Both)) -// { -// Units.Tolerance = tol; -// update = true; -// } -// } -// List units = new List -// { -// "This output is for information purpose only -- This component will set the units used in this Grasshopper file", -// "Force: " + Units.Force, -// "Length Large: " + Units.LengthUnitGeometry -// + ((Units.LengthUnitGeometry == Units.RhinoDocUnit) ? "" : System.Environment.NewLine + "NB: Not similar to Rhino Document units!"), -// "Length Small: " + Units.LengthUnitResult, -// "Length Section: " + Units.LengthUnitSection, -// "Mass: " + Units.Mass, -// "Temperature: " + Units.Temperature, -// "Stress: " + Units.Stress, -// "Strain: " + Units.Strain, -// "Velocity: " + Units.Velocity, -// "Acceleration: " + Units.Acceleration, -// "Energy: " + Units.Energy, -// "Angle: " + Units.Angle, -// "Time - short: " + Units.TimeShort, -// "Time - medium: " + Units.TimeMedium, -// "Time - long: " + Units.TimeLong, -// "Tolerance: " + Units.Tolerance -// }; -// if (update) -// UpdateCanvas(); -// DA.SetDataList(0, units); - -// } -// } -//} - diff --git a/GhSA/Components/GraveyardComp/GetGeometry_OBSOLETE.cs b/GhSA/Components/GraveyardComp/GetGeometry_OBSOLETE.cs deleted file mode 100644 index 612500b8e..000000000 --- a/GhSA/Components/GraveyardComp/GetGeometry_OBSOLETE.cs +++ /dev/null @@ -1,267 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using GhSA.Parameters; -//using Grasshopper.Kernel.Data; -//using System.Collections.Concurrent; - -//namespace GhSA.Components -//{ -// /// -// /// Component to retrieve geometric objects from a GSA model -// /// -// public class GetGeometry_OBSOLETE : GH_OasysComponent, IGH_PreviewObject, IGH_VariableParameterComponent -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("7879a335-cdf3-4412-9a29-c710778430ff"); -// public GetGeometry_OBSOLETE() -// : base("Get Model Geometry", "GetGeo", "Get nodes, elements and members from GSA model", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat0()) -// { -// } - -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.GetGeometry; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout -// #region menu override -// private enum FoldMode -// { -// Graft, -// List -// } - -// private FoldMode _mode = FoldMode.Graft; - -// protected override void AppendAdditionalComponentMenuItems(ToolStripDropDown menu) -// { -// Menu_AppendItem(menu, "Graft by Property", GraftModeClicked, true, _mode == FoldMode.Graft); -// Menu_AppendItem(menu, "List", ListModeClicked, true, _mode == FoldMode.List); - -// } -// private void GraftModeClicked(object sender, EventArgs e) -// { -// if (_mode == FoldMode.Graft) -// return; - -// RecordUndoEvent("Graft by Property"); -// _mode = FoldMode.Graft; - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// Message = "Graft by Property"; -// ExpireSolution(true); -// } - -// private void ListModeClicked(object sender, EventArgs e) -// { -// if (_mode == FoldMode.List) -// return; - -// RecordUndoEvent("List"); -// _mode = FoldMode.List; - -// (this as IGH_VariableParameterComponent).VariableParameterMaintenance(); -// Params.OnParametersChanged(); -// Message = "Import as List"; -// ExpireSolution(true); -// } - -// #endregion -// #region (de)serialization -// public override bool Write(GH_IO.Serialization.GH_IWriter writer) -// { -// writer.SetInt32("Mode", (int)_mode); -// return base.Write(writer); -// } -// public override bool Read(GH_IO.Serialization.GH_IReader reader) -// { -// _mode = (FoldMode)reader.GetInt32("Mode"); -// return base.Read(reader); -// } - -// bool IGH_VariableParameterComponent.CanInsertParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// bool IGH_VariableParameterComponent.CanRemoveParameter(GH_ParameterSide side, int index) -// { -// return false; -// } -// IGH_Param IGH_VariableParameterComponent.CreateParameter(GH_ParameterSide side, int index) -// { -// return null; -// } -// bool IGH_VariableParameterComponent.DestroyParameter(GH_ParameterSide side, int index) -// { -// return false; -// } - -// void IGH_VariableParameterComponent.VariableParameterMaintenance() -// { -// } - -// #endregion -// #endregion - -// #region Input and output - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { -// pManager.AddGenericParameter("GSA Model", "GSA", "GSA model containing some geometry", GH_ParamAccess.item); -// pManager.AddTextParameter("Node filter list", "No", "Filter import by list." + System.Environment.NewLine + -// "Node list should take the form:" + System.Environment.NewLine + -// " 1 11 to 72 step 2 not (XY3 31 to 45)" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item, "All"); -// pManager.AddTextParameter("Element filter list", "El", "Filter import by list." + System.Environment.NewLine + -// "Element list should take the form:" + System.Environment.NewLine + -// " 1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (PA PB1 PS2 PM3 PA4 M1)" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item, "All"); -// pManager.AddTextParameter("Member filter list", "Me", "Filter import by list." + System.Environment.NewLine + -// "Member list should take the form:" + System.Environment.NewLine + -// " 1 11 to 20 step 2 P1 not (G1 to G6 step 3) P11 not (Z4 XY55)" + System.Environment.NewLine + -// "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item, "All"); -// pManager[1].Optional = true; -// pManager[2].Optional = true; -// pManager[3].Optional = true; - -// //_mode = FoldMode.Graft; -// //Message = "Graft by Property" + System.Environment.NewLine + "Right-click to change"; -// } - -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddGenericParameter("Nodes", "No", "Nodes from GSA Model", GH_ParamAccess.list); -// pManager.HideParameter(0); -// pManager.AddGenericParameter("1D Elements", "E1D", "1D Elements (Analysis Layer) from GSA Model", GH_ParamAccess.list); -// pManager.AddGenericParameter("2D Elements", "E2D", "2D Elements (Analysis Layer) from GSA Model", GH_ParamAccess.list); -// pManager.AddGenericParameter("3D Elements", "E3D", "3D Elements (Analysis Layer) from GSA Model", GH_ParamAccess.list); -// pManager.HideParameter(2); -// pManager.HideParameter(3); -// pManager.AddGenericParameter("1D Members", "M1D", "1D Members (Design Layer) from GSA Model", GH_ParamAccess.list); -// pManager.AddGenericParameter("2D Members", "M2D", "2D Members (Design Layer) from GSA Model", GH_ParamAccess.list); -// pManager.AddGenericParameter("3D Members", "M3D", "3D Members (Design Layer) from GSA Model", GH_ParamAccess.list); -// } -// #endregion - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GsaModel gsaModel = new GsaModel(); -// GH_ObjectWrapper gh_typ = new GH_ObjectWrapper(); -// if (DA.GetData(0, ref gh_typ)) -// { -// if (gh_typ.Value is GsaModelGoo) -// gh_typ.CastTo(ref gsaModel); -// else -// { -// AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "Error converting input to GSA Model"); -// return; -// } - -// //GsaModel in_Model = gsaModel.Clone(); -// Model model = gsaModel.Model; - -// // import lists -// string nodeList = "all"; -// if (DA.GetData(1, ref nodeList)) -// nodeList = nodeList.ToString(); -// string elemList = "all"; -// if (DA.GetData(2, ref elemList)) -// elemList = elemList.ToString(); -// string memList = "all"; -// if (DA.GetData(3, ref memList)) -// memList = memList.ToString(); - - -// // get dictionaries from model -// ConcurrentDictionary nDict = new ConcurrentDictionary(model.Nodes()); -// ConcurrentDictionary eDict = new ConcurrentDictionary(model.Elements(elemList)); -// ConcurrentDictionary mDict = new ConcurrentDictionary(model.Members(memList)); -// ConcurrentDictionary sDict = new ConcurrentDictionary(model.Sections()); -// ConcurrentDictionary pDict = new ConcurrentDictionary(model.Prop2Ds()); -// ConcurrentDictionary axDict = new ConcurrentDictionary(model.Axes()); -// ConcurrentDictionary out_nDict = (nodeList == "all") ? nDict : new ConcurrentDictionary(model.Nodes(nodeList)); - -// // create nodes -// List nodes = Util.Gsa.FromGSA.GetNodes(out_nDict, axDict); -// // create elements -// Tuple, List, List> elementTuple -// = Util.Gsa.FromGSA.GetElements(eDict, nDict, sDict, pDict); -// // create members -// Tuple, List, List> memberTuple -// = Util.Gsa.FromGSA.GetMembers(mDict, nDict, sDict, pDict); - -// DA.SetDataList(0, nodes); - -// DA.SetDataList(1, elementTuple.Item1); -// DA.SetDataList(2, elementTuple.Item2); -// DA.SetDataList(3, elementTuple.Item3); - -// DA.SetDataList(4, memberTuple.Item1); -// DA.SetDataList(5, memberTuple.Item2); -// DA.SetDataList(6, memberTuple.Item3); - -// element2ds = elementTuple.Item2; -// } -// } - -// List element2ds; - -// public override void DrawViewportWires(IGH_PreviewArgs args) -// { -// base.DrawViewportWires(args); - -// if (element2ds != null) -// { -// foreach (GsaElement2dGoo element in element2ds) -// { -// if (element == null) { continue; } -// //Draw lines -// if (element.Value.Mesh != null) -// { -// if (element.Value.API_Elements[0].ParentMember.Member > 0) // only draw mesh shading if no parent member exist. -// { -// args.Display.DrawMeshWires(element.Value.Mesh, System.Drawing.Color.FromArgb(255, 229, 229, 229), 1); - -// //for (int i = 0; i < element.Value.Mesh.TopologyEdges.Count; i++) -// //{ -// // if (element.Value.Mesh.TopologyEdges.GetConnectedFaces(i).Length > 1) -// // args.Display.DrawLine(element.Value.Mesh.TopologyEdges.EdgeLine(i), System.Drawing.Color.FromArgb(255, 229, 229, 229), 1); -// //} -// } -// else -// { -// if (this.Attributes.Selected) -// { -// args.Display.DrawMeshWires(element.Value.Mesh, UI.Colour.Element2dEdgeSelected, 2); -// //for (int i = 0; i < element.Value.Mesh.TopologyEdges.Count; i++) -// // args.Display.DrawLine(element.Value.Mesh.TopologyEdges.EdgeLine(i), UI.Colour.Element2dEdgeSelected, 2); -// } -// else -// { -// args.Display.DrawMeshWires(element.Value.Mesh, UI.Colour.Element2dEdge, 1); -// //for (int i = 0; i < element.Value.Mesh.TopologyEdges.Count; i++) -// // args.Display.DrawLine(element.Value.Mesh.TopologyEdges.EdgeLine(i), UI.Colour.Element2dEdge, 1); -// } -// } -// } -// } -// } -// } -// } -//} - diff --git a/GhSA/Components/GraveyardComp/Version_OBSOLETE.cs b/GhSA/Components/GraveyardComp/Version_OBSOLETE.cs deleted file mode 100644 index 745e62787..000000000 --- a/GhSA/Components/GraveyardComp/Version_OBSOLETE.cs +++ /dev/null @@ -1,68 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using Grasshopper.Kernel.Attributes; -//using Grasshopper.GUI.Canvas; -//using Grasshopper.GUI; -//using Grasshopper.Kernel; -//using Grasshopper; -//using Rhino.Geometry; -//using System.Windows.Forms; -//using Grasshopper.Kernel.Types; -//using GsaAPI; -//using GhSA.Parameters; -//using System.Resources; -//using Grasshopper.Documentation; -//using System.IO; - - -//namespace GhSA.Components -//{ -// public class GsaVersion_OBSOLETE : GH_OasysComponent -// { -// #region Name and Ribbon Layout -// // This region handles how the component in displayed on the ribbon -// // including name, exposure level and icon -// public override Guid ComponentGuid => new Guid("0d64cc30-f24b-4940-97e8-2fb1eb9fef95"); -// public GsaVersion_OBSOLETE() -// : base("GSA Plugin Version", "Version", "Get the version of this plugin.", -// Ribbon.CategoryName.Name(), -// Ribbon.SubCategoryName.Cat0()) -// { this.Hidden = true; } // sets the initial state of the component to hidden - -// public override GH_Exposure Exposure => GH_Exposure.hidden; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.GsaVersion; -// #endregion - -// #region Custom UI -// //This region overrides the typical component layout - - -// #endregion - -// #region Input and output - -// protected override void RegisterInputParams(GH_InputParamManager pManager) -// { - -// } - -// protected override void RegisterOutputParams(GH_OutputParamManager pManager) -// { -// pManager.AddTextParameter("GSA Plugin Version", "Plugin", "Plugin version", GH_ParamAccess.item); -// pManager.AddTextParameter("Location", "File", "Plugin File Location", GH_ParamAccess.item); -// pManager.AddTextParameter("GSA Location", "GSA", "GSA Folder Location", GH_ParamAccess.item); -// } -// #endregion - -// protected override void SolveInstance(IGH_DataAccess DA) -// { -// GH_AssemblyInfo gsaplugin = Grasshopper.Instances.ComponentServer.FindAssembly(new Guid("a3b08c32-f7de-4b00-b415-f8b466f05e9f")); - -// DA.SetData(0, gsaplugin.Version); -// DA.SetData(1, gsaplugin.Location); -// DA.SetData(2, Util.Gsa.InstallationFolderPath.GetPath); -// } -// } -//} - diff --git a/GhSA/Parameters/GsaSpringParam.cs b/GhSA/Parameters/GsaSpringParam.cs deleted file mode 100644 index 18c7806d7..000000000 --- a/GhSA/Parameters/GsaSpringParam.cs +++ /dev/null @@ -1,312 +0,0 @@ -//using System; -//using System.Collections.Generic; -//using System.Linq; - -//using GsaAPI; -//using Grasshopper.Kernel; -//using Grasshopper.Kernel.Types; -//using Rhino.Geometry; -//using Rhino; -//using GhSA.Util.Gsa; -//using Grasshopper.Documentation; -//using Rhino.Collections; - -//namespace GhSA.Parameters -//{ -// /// -// /// Spring class, this class defines the basic properties and methods for any Gsa Spring -// /// -// public class GsaSpring - -// { -// public double X -// { -// get { return m_x; } -// set { m_x = value; } -// } - -// public double Y -// { -// get { return m_y; } -// set { m_y = value; } -// } - -// public double Z -// { -// get { return m_z; } -// set { m_z = value; } -// } - -// public double XX -// { -// get { return m_xx; } -// set { m_xx = value; } -// } - -// public double YY -// { -// get { return m_yy; } -// set { m_yy = value; } -// } - -// public double ZZ -// { -// get { return m_zz; } -// set { m_zz = value; } -// } - -// #region fields -// private double m_x; -// private double m_y; -// private double m_z; -// private double m_xx; -// private double m_yy; -// private double m_zz; -// #endregion - -// #region constructors -// public GsaSpring() -// { - -// } - -// //public GsaSpring(Double6 double6) -// //{ -// // m_x = double6.X; -// // m_y = double6.Y; -// // m_z = double6.Z; -// // m_xx = double6.XX; -// // m_yy = double6.YY; -// // m_zz = double6.ZZ; -// //} - - -// public GsaSpring Duplicate() -// { -// if (this == null) { return null; } -// GsaSpring dup = new GsaSpring -// { -// X = m_x, -// Y = m_y, -// Z = m_z, -// XX = m_xx, -// YY = m_yy, -// ZZ = m_zz -// }; - -// return dup; -// } -// #endregion - -// #region properties -// public bool IsValid -// { -// get -// { -// if (this == null) { return false; } -// return true; -// } -// } - - -// #endregion - -// #region methods -// public override string ToString() -// { -// string str = "{X:" + X.ToString() -// + ", Y:" + Y.ToString() -// + ", Z:" + Z.ToString() -// + ", XX:" + XX.ToString() -// + ", YY:" + YY.ToString() -// + ", ZZ:" + ZZ.ToString() + "}"; -// return "GSA Spring " + str; -// } - -// #endregion -// } - -// /// -// /// GsaSrping Goo wrapper class, makes sure GsaSpring can be used in Grasshopper. -// /// -// public class GsaSpringGoo : GH_Goo -// { -// #region constructors -// public GsaSpringGoo() -// { -// this.Value = new GsaSpring(); -// } -// public GsaSpringGoo(GsaSpring spring) -// { -// if (spring == null) -// spring = new GsaSpring(); -// this.Value = spring; //spring.Duplicate(); -// } - -// public override IGH_Goo Duplicate() -// { -// return DuplicateGsaSpring(); -// } -// public GsaSpringGoo DuplicateGsaSpring() -// { -// return new GsaSpringGoo(Value == null ? new GsaSpring() : Value); //Value.Duplicate()); -// } -// #endregion - -// #region properties -// public override bool IsValid -// { -// get -// { -// if (Value == null) { return false; } -// return true; -// } -// } -// public override string IsValidWhyNot -// { -// get -// { -// //if (Value == null) { return "No internal GsaSpring instance"; } -// if (Value.IsValid) { return string.Empty; } -// return Value.IsValid.ToString(); //Todo: beef this up to be more informative. -// } -// } -// public override string ToString() -// { -// if (Value == null) -// return "Null GSA Spring"; -// else -// return Value.ToString(); -// } -// public override string TypeName -// { -// get { return ("GSA Spring"); } -// } -// public override string TypeDescription -// { -// get { return ("GSA Spring (Type: General)"); } -// } - - -// #endregion - -// #region casting methods -// public override bool CastTo(ref Q target) -// { -// // This function is called when Grasshopper needs to convert this -// // instance of GsaSpring into some other type Q. - - -// if (typeof(Q).IsAssignableFrom(typeof(GsaSpring))) -// { -// if (Value == null) -// target = default; -// else -// target = (Q)(object)Value; -// return true; -// } - -// if (typeof(Q).IsAssignableFrom(typeof(Double6))) -// { -// if (Value == null) -// target = default; -// else -// target = (Q)(object)Value; -// return true; -// } - - -// target = default; -// return false; -// } -// public override bool CastFrom(object source) -// { -// // This function is called when Grasshopper needs to convert other data -// // into GsaSpring. - - -// if (source == null) { return false; } - -// //Cast from GsaSpring -// if (typeof(GsaSpring).IsAssignableFrom(source.GetType())) -// { -// Value = (GsaSpring)source; -// return true; -// } - - -// //Cast from double -// if (GH_Convert.ToDouble(source, out double myval, GH_Conversion.Both)) -// { -// Value.X = myval; -// // if input to parameter is a single number convert it to an axial spring -// return true; -// } - -// return false; -// } -// #endregion - - -// } - -// /// -// /// This class provides a Parameter interface for the Data_GsaModel type. -// /// -// public class GsaSpringParameter : GH_PersistentParam -// { -// public GsaSpringParameter() -// : base(new GH_InstanceDescription("Spring", "PS", "GSA Spring (Type: General)", GhSA.Components.Ribbon.CategoryName.Name(), GhSA.Components.Ribbon.SubCategoryName.Cat9())) -// { -// } - -// public override Guid ComponentGuid => new Guid("74f4dbb6-78c5-40b3-a4c6-259e3c7b716c"); - -// public override GH_Exposure Exposure => GH_Exposure.secondary | GH_Exposure.obscure; - -// protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.GsaSpring; - -// //We do not allow users to pick parameter, -// //therefore the following 4 methods disable all this ui. -// protected override GH_GetterResult Prompt_Plural(ref List values) -// { -// return GH_GetterResult.cancel; -// } -// protected override GH_GetterResult Prompt_Singular(ref GsaSpringGoo value) -// { -// return GH_GetterResult.cancel; -// } -// protected override System.Windows.Forms.ToolStripMenuItem Menu_CustomSingleValueItem() -// { -// System.Windows.Forms.ToolStripMenuItem item = new System.Windows.Forms.ToolStripMenuItem -// { -// Text = "Not available", -// Visible = false -// }; -// return item; -// } -// protected override System.Windows.Forms.ToolStripMenuItem Menu_CustomMultiValueItem() -// { -// System.Windows.Forms.ToolStripMenuItem item = new System.Windows.Forms.ToolStripMenuItem -// { -// Text = "Not available", -// Visible = false -// }; -// return item; -// } - -// #region preview methods - -// public bool Hidden -// { -// get { return true; } -// //set { m_hidden = value; } -// } -// public bool IsPreviewCapable -// { -// get { return false; } -// } -// #endregion -// } - -//} diff --git a/GsaGH.sln b/GsaGH.sln index ce0c2bfac..feb350582 100644 --- a/GsaGH.sln +++ b/GsaGH.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.1.32210.238 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GsaGH", "GhSA\GsaGH.csproj", "{362F5ED1-BA80-4F21-881D-6BD8784612E4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GsaGH", "GsaGH\GsaGH.csproj", "{362F5ED1-BA80-4F21-881D-6BD8784612E4}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestGhSA", "UnitTestGhSA\UnitTestGhSA.csproj", "{CE4EB299-EA12-48B1-BB13-0C5B83FF0B52}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestGsaGH", "UnitTestGsaGH\UnitTestGsaGH.csproj", "{CE4EB299-EA12-48B1-BB13-0C5B83FF0B52}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GsaGHTests", "GsaGHTests\GsaGHTests.csproj", "{42A3C97A-09F9-4A87-8E6D-46C9A6682E9C}" EndProject diff --git a/GhSA/App.config b/GsaGH/App.config similarity index 100% rename from GhSA/App.config rename to GsaGH/App.config diff --git a/GhSA/Components/0_Model/CreateModel.cs b/GsaGH/Components/0_Model/CreateModel.cs similarity index 100% rename from GhSA/Components/0_Model/CreateModel.cs rename to GsaGH/Components/0_Model/CreateModel.cs diff --git a/GhSA/Components/0_Model/GetAnalysis.cs b/GsaGH/Components/0_Model/GetAnalysis.cs similarity index 100% rename from GhSA/Components/0_Model/GetAnalysis.cs rename to GsaGH/Components/0_Model/GetAnalysis.cs diff --git a/GhSA/Components/0_Model/GetGeometry.cs b/GsaGH/Components/0_Model/GetGeometry.cs similarity index 100% rename from GhSA/Components/0_Model/GetGeometry.cs rename to GsaGH/Components/0_Model/GetGeometry.cs diff --git a/GhSA/Components/0_Model/GetLoads.cs b/GsaGH/Components/0_Model/GetLoads.cs similarity index 100% rename from GhSA/Components/0_Model/GetLoads.cs rename to GsaGH/Components/0_Model/GetLoads.cs diff --git a/GhSA/Components/0_Model/GetProperties.cs b/GsaGH/Components/0_Model/GetProperties.cs similarity index 100% rename from GhSA/Components/0_Model/GetProperties.cs rename to GsaGH/Components/0_Model/GetProperties.cs diff --git a/GhSA/Components/0_Model/OpenModel.cs b/GsaGH/Components/0_Model/OpenModel.cs similarity index 100% rename from GhSA/Components/0_Model/OpenModel.cs rename to GsaGH/Components/0_Model/OpenModel.cs diff --git a/GhSA/Components/0_Model/SaveModel.cs b/GsaGH/Components/0_Model/SaveModel.cs similarity index 100% rename from GhSA/Components/0_Model/SaveModel.cs rename to GsaGH/Components/0_Model/SaveModel.cs diff --git a/GhSA/Components/1_Properties/CreateBool6.cs b/GsaGH/Components/1_Properties/CreateBool6.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateBool6.cs rename to GsaGH/Components/1_Properties/CreateBool6.cs diff --git a/GhSA/Components/1_Properties/CreateMaterial.cs b/GsaGH/Components/1_Properties/CreateMaterial.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateMaterial.cs rename to GsaGH/Components/1_Properties/CreateMaterial.cs diff --git a/GhSA/Components/1_Properties/CreateOffset.cs b/GsaGH/Components/1_Properties/CreateOffset.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateOffset.cs rename to GsaGH/Components/1_Properties/CreateOffset.cs diff --git a/GhSA/Components/1_Properties/CreateProfile.cs b/GsaGH/Components/1_Properties/CreateProfile.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateProfile.cs rename to GsaGH/Components/1_Properties/CreateProfile.cs diff --git a/GhSA/Components/1_Properties/CreateProp2d.cs b/GsaGH/Components/1_Properties/CreateProp2d.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateProp2d.cs rename to GsaGH/Components/1_Properties/CreateProp2d.cs diff --git a/GhSA/Components/1_Properties/CreateProp3d.cs b/GsaGH/Components/1_Properties/CreateProp3d.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateProp3d.cs rename to GsaGH/Components/1_Properties/CreateProp3d.cs diff --git a/GhSA/Components/1_Properties/CreateSection.cs b/GsaGH/Components/1_Properties/CreateSection.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateSection.cs rename to GsaGH/Components/1_Properties/CreateSection.cs diff --git a/GhSA/Components/1_Properties/CreateSectionModifier.cs b/GsaGH/Components/1_Properties/CreateSectionModifier.cs similarity index 100% rename from GhSA/Components/1_Properties/CreateSectionModifier.cs rename to GsaGH/Components/1_Properties/CreateSectionModifier.cs diff --git a/GhSA/Components/1_Properties/CustomMaterial.cs b/GsaGH/Components/1_Properties/CustomMaterial.cs similarity index 100% rename from GhSA/Components/1_Properties/CustomMaterial.cs rename to GsaGH/Components/1_Properties/CustomMaterial.cs diff --git a/GhSA/Components/1_Properties/EditBool6.cs b/GsaGH/Components/1_Properties/EditBool6.cs similarity index 100% rename from GhSA/Components/1_Properties/EditBool6.cs rename to GsaGH/Components/1_Properties/EditBool6.cs diff --git a/GhSA/Components/1_Properties/EditMaterial.cs b/GsaGH/Components/1_Properties/EditMaterial.cs similarity index 100% rename from GhSA/Components/1_Properties/EditMaterial.cs rename to GsaGH/Components/1_Properties/EditMaterial.cs diff --git a/GhSA/Components/1_Properties/EditOffset.cs b/GsaGH/Components/1_Properties/EditOffset.cs similarity index 100% rename from GhSA/Components/1_Properties/EditOffset.cs rename to GsaGH/Components/1_Properties/EditOffset.cs diff --git a/GhSA/Components/1_Properties/EditProp2d.cs b/GsaGH/Components/1_Properties/EditProp2d.cs similarity index 100% rename from GhSA/Components/1_Properties/EditProp2d.cs rename to GsaGH/Components/1_Properties/EditProp2d.cs diff --git a/GhSA/Components/1_Properties/EditProp3d.cs b/GsaGH/Components/1_Properties/EditProp3d.cs similarity index 100% rename from GhSA/Components/1_Properties/EditProp3d.cs rename to GsaGH/Components/1_Properties/EditProp3d.cs diff --git a/GhSA/Components/1_Properties/EditSection.cs b/GsaGH/Components/1_Properties/EditSection.cs similarity index 100% rename from GhSA/Components/1_Properties/EditSection.cs rename to GsaGH/Components/1_Properties/EditSection.cs diff --git a/GhSA/Components/1_Properties/EditSectionModifier.cs b/GsaGH/Components/1_Properties/EditSectionModifier.cs similarity index 100% rename from GhSA/Components/1_Properties/EditSectionModifier.cs rename to GsaGH/Components/1_Properties/EditSectionModifier.cs diff --git a/GhSA/Components/1_Properties/MaterialProperties.cs b/GsaGH/Components/1_Properties/MaterialProperties.cs similarity index 100% rename from GhSA/Components/1_Properties/MaterialProperties.cs rename to GsaGH/Components/1_Properties/MaterialProperties.cs diff --git a/GhSA/Components/1_Properties/SectionProperties.cs b/GsaGH/Components/1_Properties/SectionProperties.cs similarity index 100% rename from GhSA/Components/1_Properties/SectionProperties.cs rename to GsaGH/Components/1_Properties/SectionProperties.cs diff --git a/GhSA/Components/1_Properties/TaperProfile.cs b/GsaGH/Components/1_Properties/TaperProfile.cs similarity index 100% rename from GhSA/Components/1_Properties/TaperProfile.cs rename to GsaGH/Components/1_Properties/TaperProfile.cs diff --git a/GhSA/Components/2_Geometry/CreateElement1d.cs b/GsaGH/Components/2_Geometry/CreateElement1d.cs similarity index 100% rename from GhSA/Components/2_Geometry/CreateElement1d.cs rename to GsaGH/Components/2_Geometry/CreateElement1d.cs diff --git a/GhSA/Components/2_Geometry/CreateElement2d.cs b/GsaGH/Components/2_Geometry/CreateElement2d.cs similarity index 100% rename from GhSA/Components/2_Geometry/CreateElement2d.cs rename to GsaGH/Components/2_Geometry/CreateElement2d.cs diff --git a/GhSA/Components/2_Geometry/CreateMember1d.cs b/GsaGH/Components/2_Geometry/CreateMember1d.cs similarity index 100% rename from GhSA/Components/2_Geometry/CreateMember1d.cs rename to GsaGH/Components/2_Geometry/CreateMember1d.cs diff --git a/GhSA/Components/2_Geometry/CreateMember2d.cs b/GsaGH/Components/2_Geometry/CreateMember2d.cs similarity index 100% rename from GhSA/Components/2_Geometry/CreateMember2d.cs rename to GsaGH/Components/2_Geometry/CreateMember2d.cs diff --git a/GhSA/Components/2_Geometry/CreateMember3d.cs b/GsaGH/Components/2_Geometry/CreateMember3d.cs similarity index 100% rename from GhSA/Components/2_Geometry/CreateMember3d.cs rename to GsaGH/Components/2_Geometry/CreateMember3d.cs diff --git a/GhSA/Components/2_Geometry/CreateSupport.cs b/GsaGH/Components/2_Geometry/CreateSupport.cs similarity index 100% rename from GhSA/Components/2_Geometry/CreateSupport.cs rename to GsaGH/Components/2_Geometry/CreateSupport.cs diff --git a/GhSA/Components/2_Geometry/EditElement1d.cs b/GsaGH/Components/2_Geometry/EditElement1d.cs similarity index 100% rename from GhSA/Components/2_Geometry/EditElement1d.cs rename to GsaGH/Components/2_Geometry/EditElement1d.cs diff --git a/GhSA/Components/2_Geometry/EditElement2d.cs b/GsaGH/Components/2_Geometry/EditElement2d.cs similarity index 100% rename from GhSA/Components/2_Geometry/EditElement2d.cs rename to GsaGH/Components/2_Geometry/EditElement2d.cs diff --git a/GhSA/Components/2_Geometry/EditElement3d.cs b/GsaGH/Components/2_Geometry/EditElement3d.cs similarity index 100% rename from GhSA/Components/2_Geometry/EditElement3d.cs rename to GsaGH/Components/2_Geometry/EditElement3d.cs diff --git a/GhSA/Components/2_Geometry/EditMember1d.cs b/GsaGH/Components/2_Geometry/EditMember1d.cs similarity index 100% rename from GhSA/Components/2_Geometry/EditMember1d.cs rename to GsaGH/Components/2_Geometry/EditMember1d.cs diff --git a/GhSA/Components/2_Geometry/EditMember2d.cs b/GsaGH/Components/2_Geometry/EditMember2d.cs similarity index 100% rename from GhSA/Components/2_Geometry/EditMember2d.cs rename to GsaGH/Components/2_Geometry/EditMember2d.cs diff --git a/GhSA/Components/2_Geometry/EditMember3d.cs b/GsaGH/Components/2_Geometry/EditMember3d.cs similarity index 100% rename from GhSA/Components/2_Geometry/EditMember3d.cs rename to GsaGH/Components/2_Geometry/EditMember3d.cs diff --git a/GhSA/Components/2_Geometry/EditNode.cs b/GsaGH/Components/2_Geometry/EditNode.cs similarity index 100% rename from GhSA/Components/2_Geometry/EditNode.cs rename to GsaGH/Components/2_Geometry/EditNode.cs diff --git a/GhSA/Components/2_Geometry/Elem2dFromBrep.cs b/GsaGH/Components/2_Geometry/Elem2dFromBrep.cs similarity index 100% rename from GhSA/Components/2_Geometry/Elem2dFromBrep.cs rename to GsaGH/Components/2_Geometry/Elem2dFromBrep.cs diff --git a/GhSA/Components/2_Geometry/ElemFromMem.cs b/GsaGH/Components/2_Geometry/ElemFromMem.cs similarity index 100% rename from GhSA/Components/2_Geometry/ElemFromMem.cs rename to GsaGH/Components/2_Geometry/ElemFromMem.cs diff --git a/GhSA/Components/2_Geometry/LocalAxis.cs b/GsaGH/Components/2_Geometry/LocalAxis.cs similarity index 100% rename from GhSA/Components/2_Geometry/LocalAxis.cs rename to GsaGH/Components/2_Geometry/LocalAxis.cs diff --git a/GhSA/Components/3_Loads/CreateBeamLoads.cs b/GsaGH/Components/3_Loads/CreateBeamLoads.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateBeamLoads.cs rename to GsaGH/Components/3_Loads/CreateBeamLoads.cs diff --git a/GhSA/Components/3_Loads/CreateFaceLoads.cs b/GsaGH/Components/3_Loads/CreateFaceLoads.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateFaceLoads.cs rename to GsaGH/Components/3_Loads/CreateFaceLoads.cs diff --git a/GhSA/Components/3_Loads/CreateGravityLoad.cs b/GsaGH/Components/3_Loads/CreateGravityLoad.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateGravityLoad.cs rename to GsaGH/Components/3_Loads/CreateGravityLoad.cs diff --git a/GhSA/Components/3_Loads/CreateGridAreaLoad.cs b/GsaGH/Components/3_Loads/CreateGridAreaLoad.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateGridAreaLoad.cs rename to GsaGH/Components/3_Loads/CreateGridAreaLoad.cs diff --git a/GhSA/Components/3_Loads/CreateGridLineLoad.cs b/GsaGH/Components/3_Loads/CreateGridLineLoad.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateGridLineLoad.cs rename to GsaGH/Components/3_Loads/CreateGridLineLoad.cs diff --git a/GhSA/Components/3_Loads/CreateGridPlane.cs b/GsaGH/Components/3_Loads/CreateGridPlane.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateGridPlane.cs rename to GsaGH/Components/3_Loads/CreateGridPlane.cs diff --git a/GhSA/Components/3_Loads/CreateGridPointLoad.cs b/GsaGH/Components/3_Loads/CreateGridPointLoad.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateGridPointLoad.cs rename to GsaGH/Components/3_Loads/CreateGridPointLoad.cs diff --git a/GhSA/Components/3_Loads/CreateGridSurface.cs b/GsaGH/Components/3_Loads/CreateGridSurface.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateGridSurface.cs rename to GsaGH/Components/3_Loads/CreateGridSurface.cs diff --git a/GhSA/Components/3_Loads/CreateNodeLoads.cs b/GsaGH/Components/3_Loads/CreateNodeLoads.cs similarity index 100% rename from GhSA/Components/3_Loads/CreateNodeLoads.cs rename to GsaGH/Components/3_Loads/CreateNodeLoads.cs diff --git a/GhSA/Components/3_Loads/GridPlaneSurfaceProperties.cs b/GsaGH/Components/3_Loads/GridPlaneSurfaceProperties.cs similarity index 100% rename from GhSA/Components/3_Loads/GridPlaneSurfaceProperties.cs rename to GsaGH/Components/3_Loads/GridPlaneSurfaceProperties.cs diff --git a/GhSA/Components/3_Loads/LoadProperties.cs b/GsaGH/Components/3_Loads/LoadProperties.cs similarity index 100% rename from GhSA/Components/3_Loads/LoadProperties.cs rename to GsaGH/Components/3_Loads/LoadProperties.cs diff --git a/GhSA/Components/4_Analysis/Analyse.cs b/GsaGH/Components/4_Analysis/Analyse.cs similarity index 100% rename from GhSA/Components/4_Analysis/Analyse.cs rename to GsaGH/Components/4_Analysis/Analyse.cs diff --git a/GhSA/Components/4_Analysis/AnalysisCaseInfo.cs b/GsaGH/Components/4_Analysis/AnalysisCaseInfo.cs similarity index 100% rename from GhSA/Components/4_Analysis/AnalysisCaseInfo.cs rename to GsaGH/Components/4_Analysis/AnalysisCaseInfo.cs diff --git a/GhSA/Components/4_Analysis/CreateAnalysisCase.cs b/GsaGH/Components/4_Analysis/CreateAnalysisCase.cs similarity index 100% rename from GhSA/Components/4_Analysis/CreateAnalysisCase.cs rename to GsaGH/Components/4_Analysis/CreateAnalysisCase.cs diff --git a/GhSA/Components/4_Analysis/CreateAnalysisTask.cs b/GsaGH/Components/4_Analysis/CreateAnalysisTask.cs similarity index 100% rename from GhSA/Components/4_Analysis/CreateAnalysisTask.cs rename to GsaGH/Components/4_Analysis/CreateAnalysisTask.cs diff --git a/GhSA/Components/4_Analysis/CreateCombinationCase.cs b/GsaGH/Components/4_Analysis/CreateCombinationCase.cs similarity index 100% rename from GhSA/Components/4_Analysis/CreateCombinationCase.cs rename to GsaGH/Components/4_Analysis/CreateCombinationCase.cs diff --git a/GhSA/Components/4_Analysis/EditAnalysisTask.cs b/GsaGH/Components/4_Analysis/EditAnalysisTask.cs similarity index 100% rename from GhSA/Components/4_Analysis/EditAnalysisTask.cs rename to GsaGH/Components/4_Analysis/EditAnalysisTask.cs diff --git a/GhSA/Components/5_Results/BeamDispResult.cs b/GsaGH/Components/5_Results/BeamDispResult.cs similarity index 100% rename from GhSA/Components/5_Results/BeamDispResult.cs rename to GsaGH/Components/5_Results/BeamDispResult.cs diff --git a/GhSA/Components/5_Results/BeamForceResult.cs b/GsaGH/Components/5_Results/BeamForceResult.cs similarity index 100% rename from GhSA/Components/5_Results/BeamForceResult.cs rename to GsaGH/Components/5_Results/BeamForceResult.cs diff --git a/GhSA/Components/5_Results/BeamStrainEnergyResult.cs b/GsaGH/Components/5_Results/BeamStrainEnergyResult.cs similarity index 100% rename from GhSA/Components/5_Results/BeamStrainEnergyResult.cs rename to GsaGH/Components/5_Results/BeamStrainEnergyResult.cs diff --git a/GhSA/Components/5_Results/Elem1dContourResults.cs b/GsaGH/Components/5_Results/Elem1dContourResults.cs similarity index 100% rename from GhSA/Components/5_Results/Elem1dContourResults.cs rename to GsaGH/Components/5_Results/Elem1dContourResults.cs diff --git a/GhSA/Components/5_Results/Elem2dContourResults.cs b/GsaGH/Components/5_Results/Elem2dContourResults.cs similarity index 100% rename from GhSA/Components/5_Results/Elem2dContourResults.cs rename to GsaGH/Components/5_Results/Elem2dContourResults.cs diff --git a/GhSA/Components/5_Results/Elem2dDisplacementResult.cs b/GsaGH/Components/5_Results/Elem2dDisplacementResult.cs similarity index 100% rename from GhSA/Components/5_Results/Elem2dDisplacementResult.cs rename to GsaGH/Components/5_Results/Elem2dDisplacementResult.cs diff --git a/GhSA/Components/5_Results/Elem2dForceResult.cs b/GsaGH/Components/5_Results/Elem2dForceResult.cs similarity index 100% rename from GhSA/Components/5_Results/Elem2dForceResult.cs rename to GsaGH/Components/5_Results/Elem2dForceResult.cs diff --git a/GhSA/Components/5_Results/Elem2dStressResult.cs b/GsaGH/Components/5_Results/Elem2dStressResult.cs similarity index 100% rename from GhSA/Components/5_Results/Elem2dStressResult.cs rename to GsaGH/Components/5_Results/Elem2dStressResult.cs diff --git a/GhSA/Components/5_Results/Elem3dDisplacementResult.cs b/GsaGH/Components/5_Results/Elem3dDisplacementResult.cs similarity index 100% rename from GhSA/Components/5_Results/Elem3dDisplacementResult.cs rename to GsaGH/Components/5_Results/Elem3dDisplacementResult.cs diff --git a/GhSA/Components/5_Results/Elem3dStressResult.cs b/GsaGH/Components/5_Results/Elem3dStressResult.cs similarity index 100% rename from GhSA/Components/5_Results/Elem3dStressResult.cs rename to GsaGH/Components/5_Results/Elem3dStressResult.cs diff --git a/GhSA/Components/5_Results/GlobalPerformanceResults.cs b/GsaGH/Components/5_Results/GlobalPerformanceResults.cs similarity index 100% rename from GhSA/Components/5_Results/GlobalPerformanceResults.cs rename to GsaGH/Components/5_Results/GlobalPerformanceResults.cs diff --git a/GhSA/Components/5_Results/NodeContourResults.cs b/GsaGH/Components/5_Results/NodeContourResults.cs similarity index 100% rename from GhSA/Components/5_Results/NodeContourResults.cs rename to GsaGH/Components/5_Results/NodeContourResults.cs diff --git a/GhSA/Components/5_Results/NodeDisplacementResult.cs b/GsaGH/Components/5_Results/NodeDisplacementResult.cs similarity index 100% rename from GhSA/Components/5_Results/NodeDisplacementResult.cs rename to GsaGH/Components/5_Results/NodeDisplacementResult.cs diff --git a/GhSA/Components/5_Results/NodeReactionForceResult.cs b/GsaGH/Components/5_Results/NodeReactionForceResult.cs similarity index 100% rename from GhSA/Components/5_Results/NodeReactionForceResult.cs rename to GsaGH/Components/5_Results/NodeReactionForceResult.cs diff --git a/GhSA/Components/5_Results/SelectResults.cs b/GsaGH/Components/5_Results/SelectResults.cs similarity index 100% rename from GhSA/Components/5_Results/SelectResults.cs rename to GsaGH/Components/5_Results/SelectResults.cs diff --git a/GhSA/Components/5_Results/SpringReactionForceResult.cs b/GsaGH/Components/5_Results/SpringReactionForceResult.cs similarity index 100% rename from GhSA/Components/5_Results/SpringReactionForceResult.cs rename to GsaGH/Components/5_Results/SpringReactionForceResult.cs diff --git a/GhSA/Components/5_Results/TotalLoadsAndReactionResults.cs b/GsaGH/Components/5_Results/TotalLoadsAndReactionResults.cs similarity index 100% rename from GhSA/Components/5_Results/TotalLoadsAndReactionResults.cs rename to GsaGH/Components/5_Results/TotalLoadsAndReactionResults.cs diff --git a/GhSA/Components/GH_OasysComponent.cs b/GsaGH/Components/GH_OasysComponent.cs similarity index 100% rename from GhSA/Components/GH_OasysComponent.cs rename to GsaGH/Components/GH_OasysComponent.cs diff --git a/GhSA/Components/GH_OasysTaskCapableComponent.cs b/GsaGH/Components/GH_OasysTaskCapableComponent.cs similarity index 100% rename from GhSA/Components/GH_OasysTaskCapableComponent.cs rename to GsaGH/Components/GH_OasysTaskCapableComponent.cs diff --git a/GhSA/Components/GraveyardComp/CreateProfile_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/CreateProfile_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/CreateProfile_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/CreateProfile_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/EditSection_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/EditSection_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/EditSection_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/EditSection_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/EditTitles_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/EditTitles_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/EditTitles_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/EditTitles_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/Elem1dResults_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/Elem1dResults_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/Elem1dResults_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/Elem1dResults_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/Elem2dResults_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/Elem2dResults_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/Elem2dResults_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/Elem2dResults_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/Elem3dResults_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/Elem3dResults_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/Elem3dResults_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/Elem3dResults_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/GetAnalysis_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/GetAnalysis_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/GetAnalysis_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/GetAnalysis_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/GlobalResult2_OBSOLETE .cs b/GsaGH/Components/GraveyardComp/GlobalResult2_OBSOLETE .cs similarity index 100% rename from GhSA/Components/GraveyardComp/GlobalResult2_OBSOLETE .cs rename to GsaGH/Components/GraveyardComp/GlobalResult2_OBSOLETE .cs diff --git a/GhSA/Components/GraveyardComp/GlobalResult_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/GlobalResult_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/GlobalResult_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/GlobalResult_OBSOLETE.cs diff --git a/GhSA/Components/GraveyardComp/NodeResults_OBSOLETE.cs b/GsaGH/Components/GraveyardComp/NodeResults_OBSOLETE.cs similarity index 100% rename from GhSA/Components/GraveyardComp/NodeResults_OBSOLETE.cs rename to GsaGH/Components/GraveyardComp/NodeResults_OBSOLETE.cs diff --git a/GhSA/Components/Lab/Version.cs b/GsaGH/Components/Lab/Version.cs similarity index 93% rename from GhSA/Components/Lab/Version.cs rename to GsaGH/Components/Lab/Version.cs index 808797dc1..dc660e89f 100644 --- a/GhSA/Components/Lab/Version.cs +++ b/GsaGH/Components/Lab/Version.cs @@ -9,13 +9,13 @@ using System.Windows.Forms; using Grasshopper.Kernel.Types; using GsaAPI; -using GhSA.Parameters; +using GsaGH.Parameters; using System.Resources; using Grasshopper.Documentation; using System.IO; -namespace GhSA.Components +namespace GsaGH.Components { public class GsaVersion : GH_OasysComponent { @@ -31,7 +31,7 @@ public GsaVersion() public override GH_Exposure Exposure => GH_Exposure.quarternary | GH_Exposure.obscure; - protected override System.Drawing.Bitmap Icon => GhSA.Properties.Resources.GsaVersion; + protected override System.Drawing.Bitmap Icon => GsaGH.Properties.Resources.GsaVersion; #endregion #region Custom UI diff --git a/GhSA/Components/Other/ConvertUnitNumber.cs b/GsaGH/Components/Other/ConvertUnitNumber.cs similarity index 100% rename from GhSA/Components/Other/ConvertUnitNumber.cs rename to GsaGH/Components/Other/ConvertUnitNumber.cs diff --git a/GhSA/Components/Other/CreateUnitNumber.cs b/GsaGH/Components/Other/CreateUnitNumber.cs similarity index 100% rename from GhSA/Components/Other/CreateUnitNumber.cs rename to GsaGH/Components/Other/CreateUnitNumber.cs diff --git a/GhSA/GsaGH.csproj b/GsaGH/GsaGH.csproj similarity index 96% rename from GhSA/GsaGH.csproj rename to GsaGH/GsaGH.csproj index 9f1cee517..e0da70e8c 100644 --- a/GhSA/GsaGH.csproj +++ b/GsaGH/GsaGH.csproj @@ -134,12 +134,9 @@ - - - @@ -169,21 +166,16 @@ - - - - - @@ -194,12 +186,6 @@ - - - - - - @@ -251,7 +237,6 @@ - True diff --git a/GhSA/GsaGHInfo.cs b/GsaGH/GsaGHInfo.cs similarity index 97% rename from GhSA/GsaGHInfo.cs rename to GsaGH/GsaGHInfo.cs index af13583b2..499cbc8dc 100644 --- a/GhSA/GsaGHInfo.cs +++ b/GsaGH/GsaGHInfo.cs @@ -175,7 +175,7 @@ public class GsaGHInfo : GH_AssemblyInfo internal const string Company = "Oasys"; internal const string Copyright = "Copyright © Oasys 1985 - 2022"; internal const string Contact = "https://www.oasys-software.com/"; - internal const string Vers = "0.9.27"; + internal const string Vers = "0.9.28"; internal static bool isBeta = true; internal static string Disclaimer = PluginName + " is pre-release and under active development, including further testing to be undertaken. It is provided \"as-is\" and you bear the risk of using it. Future versions may contain breaking changes. Any files, results, or other types of output information created using " + PluginName + " should not be relied upon without thorough and independent checking. "; internal const string ProductName = "GSA"; @@ -228,14 +228,6 @@ public override string AuthorContact return Contact; } } - public string Icon_url - { - get - { - // TODO to be updated - not supported by yak currently - return "https://raw.githubusercontent.com/arup-group/GSA-Grasshopper/master/GhSA/Properties/Icons/icons/4x/GsaGhLogo%404x.png"; - } - } public override string Version { diff --git a/GhSA/Helpers/Export/ConvertMembers.cs b/GsaGH/Helpers/Export/ConvertMembers.cs similarity index 100% rename from GhSA/Helpers/Export/ConvertMembers.cs rename to GsaGH/Helpers/Export/ConvertMembers.cs diff --git a/GhSA/Helpers/Export/ExportMembers.cs b/GsaGH/Helpers/Export/ExportMembers.cs similarity index 100% rename from GhSA/Helpers/Export/ExportMembers.cs rename to GsaGH/Helpers/Export/ExportMembers.cs diff --git a/GhSA/Helpers/Export/_GsaExport.cs b/GsaGH/Helpers/Export/_GsaExport.cs similarity index 100% rename from GhSA/Helpers/Export/_GsaExport.cs rename to GsaGH/Helpers/Export/_GsaExport.cs diff --git a/GhSA/Helpers/Export/_GsaExportElements.cs b/GsaGH/Helpers/Export/_GsaExportElements.cs similarity index 100% rename from GhSA/Helpers/Export/_GsaExportElements.cs rename to GsaGH/Helpers/Export/_GsaExportElements.cs diff --git a/GhSA/Helpers/Export/_GsaExportLoads.cs b/GsaGH/Helpers/Export/_GsaExportLoads.cs similarity index 100% rename from GhSA/Helpers/Export/_GsaExportLoads.cs rename to GsaGH/Helpers/Export/_GsaExportLoads.cs diff --git a/GhSA/Helpers/Export/_GsaExportNodes.cs b/GsaGH/Helpers/Export/_GsaExportNodes.cs similarity index 100% rename from GhSA/Helpers/Export/_GsaExportNodes.cs rename to GsaGH/Helpers/Export/_GsaExportNodes.cs diff --git a/GhSA/Helpers/Export/_GsaExportProperties.cs b/GsaGH/Helpers/Export/_GsaExportProperties.cs similarity index 100% rename from GhSA/Helpers/Export/_GsaExportProperties.cs rename to GsaGH/Helpers/Export/_GsaExportProperties.cs diff --git a/GhSA/Helpers/LoadMainMenu.cs b/GsaGH/Helpers/LoadMainMenu.cs similarity index 100% rename from GhSA/Helpers/LoadMainMenu.cs rename to GsaGH/Helpers/LoadMainMenu.cs diff --git a/GhSA/Helpers/PostHog.cs b/GsaGH/Helpers/PostHog.cs similarity index 100% rename from GhSA/Helpers/PostHog.cs rename to GsaGH/Helpers/PostHog.cs diff --git a/GhSA/Helpers/_Colour.cs b/GsaGH/Helpers/_Colour.cs similarity index 100% rename from GhSA/Helpers/_Colour.cs rename to GsaGH/Helpers/_Colour.cs diff --git a/GhSA/Helpers/_DeSerialization.cs b/GsaGH/Helpers/_DeSerialization.cs similarity index 100% rename from GhSA/Helpers/_DeSerialization.cs rename to GsaGH/Helpers/_DeSerialization.cs diff --git a/GhSA/Helpers/_Display.cs b/GsaGH/Helpers/_Display.cs similarity index 100% rename from GhSA/Helpers/_Display.cs rename to GsaGH/Helpers/_Display.cs diff --git a/GhSA/Helpers/_GetInput.cs b/GsaGH/Helpers/_GetInput.cs similarity index 100% rename from GhSA/Helpers/_GetInput.cs rename to GsaGH/Helpers/_GetInput.cs diff --git a/GhSA/Helpers/_GhRibbonLayout.cs b/GsaGH/Helpers/_GhRibbonLayout.cs similarity index 100% rename from GhSA/Helpers/_GhRibbonLayout.cs rename to GsaGH/Helpers/_GhRibbonLayout.cs diff --git a/GhSA/Helpers/_GsaImport.cs b/GsaGH/Helpers/_GsaImport.cs similarity index 100% rename from GhSA/Helpers/_GsaImport.cs rename to GsaGH/Helpers/_GsaImport.cs diff --git a/GhSA/Helpers/_GsaPath.cs b/GsaGH/Helpers/_GsaPath.cs similarity index 100% rename from GhSA/Helpers/_GsaPath.cs rename to GsaGH/Helpers/_GsaPath.cs diff --git a/GhSA/Helpers/_GsaProfileConvert.cs b/GsaGH/Helpers/_GsaProfileConvert.cs similarity index 100% rename from GhSA/Helpers/_GsaProfileConvert.cs rename to GsaGH/Helpers/_GsaProfileConvert.cs diff --git a/GhSA/Helpers/_GsaResultsHelper.cs b/GsaGH/Helpers/_GsaResultsHelper.cs similarity index 100% rename from GhSA/Helpers/_GsaResultsHelper.cs rename to GsaGH/Helpers/_GsaResultsHelper.cs diff --git a/GhSA/Helpers/_RhinoConversions.cs b/GsaGH/Helpers/_RhinoConversions.cs similarity index 100% rename from GhSA/Helpers/_RhinoConversions.cs rename to GsaGH/Helpers/_RhinoConversions.cs diff --git a/GhSA/Helpers/_SqlReader.cs b/GsaGH/Helpers/_SqlReader.cs similarity index 100% rename from GhSA/Helpers/_SqlReader.cs rename to GsaGH/Helpers/_SqlReader.cs diff --git a/GhSA/Parameters/GH_UnitNumber.cs b/GsaGH/Parameters/GH_UnitNumber.cs similarity index 100% rename from GhSA/Parameters/GH_UnitNumber.cs rename to GsaGH/Parameters/GH_UnitNumber.cs diff --git a/GhSA/Parameters/GsaAnalysisCase.cs b/GsaGH/Parameters/GsaAnalysisCase.cs similarity index 100% rename from GhSA/Parameters/GsaAnalysisCase.cs rename to GsaGH/Parameters/GsaAnalysisCase.cs diff --git a/GhSA/Parameters/GsaAnalysisTask.cs b/GsaGH/Parameters/GsaAnalysisTask.cs similarity index 100% rename from GhSA/Parameters/GsaAnalysisTask.cs rename to GsaGH/Parameters/GsaAnalysisTask.cs diff --git a/GhSA/Parameters/GsaBool6Param.cs b/GsaGH/Parameters/GsaBool6Param.cs similarity index 100% rename from GhSA/Parameters/GsaBool6Param.cs rename to GsaGH/Parameters/GsaBool6Param.cs diff --git a/GhSA/Parameters/GsaCombinationCase.cs b/GsaGH/Parameters/GsaCombinationCase.cs similarity index 100% rename from GhSA/Parameters/GsaCombinationCase.cs rename to GsaGH/Parameters/GsaCombinationCase.cs diff --git a/GhSA/Parameters/GsaElem1dParam.cs b/GsaGH/Parameters/GsaElem1dParam.cs similarity index 100% rename from GhSA/Parameters/GsaElem1dParam.cs rename to GsaGH/Parameters/GsaElem1dParam.cs diff --git a/GhSA/Parameters/GsaElem2dParam.cs b/GsaGH/Parameters/GsaElem2dParam.cs similarity index 100% rename from GhSA/Parameters/GsaElem2dParam.cs rename to GsaGH/Parameters/GsaElem2dParam.cs diff --git a/GhSA/Parameters/GsaElem3dParam.cs b/GsaGH/Parameters/GsaElem3dParam.cs similarity index 100% rename from GhSA/Parameters/GsaElem3dParam.cs rename to GsaGH/Parameters/GsaElem3dParam.cs diff --git a/GhSA/Parameters/GsaGridPlaneSurfaceParam.cs b/GsaGH/Parameters/GsaGridPlaneSurfaceParam.cs similarity index 100% rename from GhSA/Parameters/GsaGridPlaneSurfaceParam.cs rename to GsaGH/Parameters/GsaGridPlaneSurfaceParam.cs diff --git a/GhSA/Parameters/GsaLoadParam.cs b/GsaGH/Parameters/GsaLoadParam.cs similarity index 100% rename from GhSA/Parameters/GsaLoadParam.cs rename to GsaGH/Parameters/GsaLoadParam.cs diff --git a/GhSA/Parameters/GsaMaterial.cs b/GsaGH/Parameters/GsaMaterial.cs similarity index 100% rename from GhSA/Parameters/GsaMaterial.cs rename to GsaGH/Parameters/GsaMaterial.cs diff --git a/GhSA/Parameters/GsaMem1dParam.cs b/GsaGH/Parameters/GsaMem1dParam.cs similarity index 100% rename from GhSA/Parameters/GsaMem1dParam.cs rename to GsaGH/Parameters/GsaMem1dParam.cs diff --git a/GhSA/Parameters/GsaMem2dParam.cs b/GsaGH/Parameters/GsaMem2dParam.cs similarity index 100% rename from GhSA/Parameters/GsaMem2dParam.cs rename to GsaGH/Parameters/GsaMem2dParam.cs diff --git a/GhSA/Parameters/GsaMem3dParam.cs b/GsaGH/Parameters/GsaMem3dParam.cs similarity index 100% rename from GhSA/Parameters/GsaMem3dParam.cs rename to GsaGH/Parameters/GsaMem3dParam.cs diff --git a/GhSA/Parameters/GsaModelParam.cs b/GsaGH/Parameters/GsaModelParam.cs similarity index 100% rename from GhSA/Parameters/GsaModelParam.cs rename to GsaGH/Parameters/GsaModelParam.cs diff --git a/GhSA/Parameters/GsaNodeParam.cs b/GsaGH/Parameters/GsaNodeParam.cs similarity index 100% rename from GhSA/Parameters/GsaNodeParam.cs rename to GsaGH/Parameters/GsaNodeParam.cs diff --git a/GhSA/Parameters/GsaOffsetParam.cs b/GsaGH/Parameters/GsaOffsetParam.cs similarity index 100% rename from GhSA/Parameters/GsaOffsetParam.cs rename to GsaGH/Parameters/GsaOffsetParam.cs diff --git a/GhSA/Parameters/GsaProp2d.cs b/GsaGH/Parameters/GsaProp2d.cs similarity index 100% rename from GhSA/Parameters/GsaProp2d.cs rename to GsaGH/Parameters/GsaProp2d.cs diff --git a/GhSA/Parameters/GsaProp3d.cs b/GsaGH/Parameters/GsaProp3d.cs similarity index 100% rename from GhSA/Parameters/GsaProp3d.cs rename to GsaGH/Parameters/GsaProp3d.cs diff --git a/GhSA/Parameters/GsaResult.cs b/GsaGH/Parameters/GsaResult.cs similarity index 100% rename from GhSA/Parameters/GsaResult.cs rename to GsaGH/Parameters/GsaResult.cs diff --git a/GhSA/Parameters/GsaSection.cs b/GsaGH/Parameters/GsaSection.cs similarity index 100% rename from GhSA/Parameters/GsaSection.cs rename to GsaGH/Parameters/GsaSection.cs diff --git a/GhSA/Parameters/GsaSectionModifierParam.cs b/GsaGH/Parameters/GsaSectionModifierParam.cs similarity index 100% rename from GhSA/Parameters/GsaSectionModifierParam.cs rename to GsaGH/Parameters/GsaSectionModifierParam.cs diff --git a/GhSA/Parameters/_ResultLine.cs b/GsaGH/Parameters/_ResultLine.cs similarity index 100% rename from GhSA/Parameters/_ResultLine.cs rename to GsaGH/Parameters/_ResultLine.cs diff --git a/GhSA/Parameters/_ResultMesh.cs b/GsaGH/Parameters/_ResultMesh.cs similarity index 100% rename from GhSA/Parameters/_ResultMesh.cs rename to GsaGH/Parameters/_ResultMesh.cs diff --git a/GhSA/Parameters/_ResultPoint.cs b/GsaGH/Parameters/_ResultPoint.cs similarity index 100% rename from GhSA/Parameters/_ResultPoint.cs rename to GsaGH/Parameters/_ResultPoint.cs diff --git a/GhSA/Parameters/_Titles.cs b/GsaGH/Parameters/_Titles.cs similarity index 100% rename from GhSA/Parameters/_Titles.cs rename to GsaGH/Parameters/_Titles.cs diff --git a/GhSA/Parameters/_Units.cs b/GsaGH/Parameters/_Units.cs similarity index 100% rename from GhSA/Parameters/_Units.cs rename to GsaGH/Parameters/_Units.cs diff --git a/GhSA/Properties/AssemblyInfo.cs b/GsaGH/Properties/AssemblyInfo.cs similarity index 100% rename from GhSA/Properties/AssemblyInfo.cs rename to GsaGH/Properties/AssemblyInfo.cs diff --git a/GhSA/Properties/Icons/Analyse.png b/GsaGH/Properties/Icons/Analyse.png similarity index 100% rename from GhSA/Properties/Icons/Analyse.png rename to GsaGH/Properties/Icons/Analyse.png diff --git a/GhSA/Properties/Icons/AnalysisCaseInfo.png b/GsaGH/Properties/Icons/AnalysisCaseInfo.png similarity index 100% rename from GhSA/Properties/Icons/AnalysisCaseInfo.png rename to GsaGH/Properties/Icons/AnalysisCaseInfo.png diff --git a/GhSA/Properties/Icons/AnalysisCaseParam.png b/GsaGH/Properties/Icons/AnalysisCaseParam.png similarity index 100% rename from GhSA/Properties/Icons/AnalysisCaseParam.png rename to GsaGH/Properties/Icons/AnalysisCaseParam.png diff --git a/GhSA/Properties/Icons/AnalysisTaskParam.png b/GsaGH/Properties/Icons/AnalysisTaskParam.png similarity index 100% rename from GhSA/Properties/Icons/AnalysisTaskParam.png rename to GsaGH/Properties/Icons/AnalysisTaskParam.png diff --git a/GhSA/Properties/Icons/AreaLoad.png b/GsaGH/Properties/Icons/AreaLoad.png similarity index 100% rename from GhSA/Properties/Icons/AreaLoad.png rename to GsaGH/Properties/Icons/AreaLoad.png diff --git a/GhSA/Properties/Icons/BeamDisplacement.png b/GsaGH/Properties/Icons/BeamDisplacement.png similarity index 100% rename from GhSA/Properties/Icons/BeamDisplacement.png rename to GsaGH/Properties/Icons/BeamDisplacement.png diff --git a/GhSA/Properties/Icons/BeamForces.png b/GsaGH/Properties/Icons/BeamForces.png similarity index 100% rename from GhSA/Properties/Icons/BeamForces.png rename to GsaGH/Properties/Icons/BeamForces.png diff --git a/GhSA/Properties/Icons/BeamLoad.png b/GsaGH/Properties/Icons/BeamLoad.png similarity index 100% rename from GhSA/Properties/Icons/BeamLoad.png rename to GsaGH/Properties/Icons/BeamLoad.png diff --git a/GhSA/Properties/Icons/Bool6Param.png b/GsaGH/Properties/Icons/Bool6Param.png similarity index 100% rename from GhSA/Properties/Icons/Bool6Param.png rename to GsaGH/Properties/Icons/Bool6Param.png diff --git a/GhSA/Properties/Icons/ConvertUnitNumber.png b/GsaGH/Properties/Icons/ConvertUnitNumber.png similarity index 100% rename from GhSA/Properties/Icons/ConvertUnitNumber.png rename to GsaGH/Properties/Icons/ConvertUnitNumber.png diff --git a/GhSA/Properties/Icons/CreateAnalysisCase.png b/GsaGH/Properties/Icons/CreateAnalysisCase.png similarity index 100% rename from GhSA/Properties/Icons/CreateAnalysisCase.png rename to GsaGH/Properties/Icons/CreateAnalysisCase.png diff --git a/GhSA/Properties/Icons/CreateAnalysisTask.png b/GsaGH/Properties/Icons/CreateAnalysisTask.png similarity index 100% rename from GhSA/Properties/Icons/CreateAnalysisTask.png rename to GsaGH/Properties/Icons/CreateAnalysisTask.png diff --git a/GhSA/Properties/Icons/CreateBool6.png b/GsaGH/Properties/Icons/CreateBool6.png similarity index 100% rename from GhSA/Properties/Icons/CreateBool6.png rename to GsaGH/Properties/Icons/CreateBool6.png diff --git a/GhSA/Properties/Icons/CreateCombination.png b/GsaGH/Properties/Icons/CreateCombination.png similarity index 100% rename from GhSA/Properties/Icons/CreateCombination.png rename to GsaGH/Properties/Icons/CreateCombination.png diff --git a/GhSA/Properties/Icons/CreateCombinationCase.png b/GsaGH/Properties/Icons/CreateCombinationCase.png similarity index 100% rename from GhSA/Properties/Icons/CreateCombinationCase.png rename to GsaGH/Properties/Icons/CreateCombinationCase.png diff --git a/GhSA/Properties/Icons/CreateElem1d.png b/GsaGH/Properties/Icons/CreateElem1d.png similarity index 100% rename from GhSA/Properties/Icons/CreateElem1d.png rename to GsaGH/Properties/Icons/CreateElem1d.png diff --git a/GhSA/Properties/Icons/CreateElem2d.png b/GsaGH/Properties/Icons/CreateElem2d.png similarity index 100% rename from GhSA/Properties/Icons/CreateElem2d.png rename to GsaGH/Properties/Icons/CreateElem2d.png diff --git a/GhSA/Properties/Icons/CreateElem3d.png b/GsaGH/Properties/Icons/CreateElem3d.png similarity index 100% rename from GhSA/Properties/Icons/CreateElem3d.png rename to GsaGH/Properties/Icons/CreateElem3d.png diff --git a/GhSA/Properties/Icons/CreateElemsFromBreps.png b/GsaGH/Properties/Icons/CreateElemsFromBreps.png similarity index 100% rename from GhSA/Properties/Icons/CreateElemsFromBreps.png rename to GsaGH/Properties/Icons/CreateElemsFromBreps.png diff --git a/GhSA/Properties/Icons/CreateElemsFromMems.png b/GsaGH/Properties/Icons/CreateElemsFromMems.png similarity index 100% rename from GhSA/Properties/Icons/CreateElemsFromMems.png rename to GsaGH/Properties/Icons/CreateElemsFromMems.png diff --git a/GhSA/Properties/Icons/CreateMaterial.png b/GsaGH/Properties/Icons/CreateMaterial.png similarity index 100% rename from GhSA/Properties/Icons/CreateMaterial.png rename to GsaGH/Properties/Icons/CreateMaterial.png diff --git a/GhSA/Properties/Icons/CreateMem1d.png b/GsaGH/Properties/Icons/CreateMem1d.png similarity index 100% rename from GhSA/Properties/Icons/CreateMem1d.png rename to GsaGH/Properties/Icons/CreateMem1d.png diff --git a/GhSA/Properties/Icons/CreateMem2d.png b/GsaGH/Properties/Icons/CreateMem2d.png similarity index 100% rename from GhSA/Properties/Icons/CreateMem2d.png rename to GsaGH/Properties/Icons/CreateMem2d.png diff --git a/GhSA/Properties/Icons/CreateMem3d.png b/GsaGH/Properties/Icons/CreateMem3d.png similarity index 100% rename from GhSA/Properties/Icons/CreateMem3d.png rename to GsaGH/Properties/Icons/CreateMem3d.png diff --git a/GhSA/Properties/Icons/CreateModel.png b/GsaGH/Properties/Icons/CreateModel.png similarity index 100% rename from GhSA/Properties/Icons/CreateModel.png rename to GsaGH/Properties/Icons/CreateModel.png diff --git a/GhSA/Properties/Icons/CreateOffset.png b/GsaGH/Properties/Icons/CreateOffset.png similarity index 100% rename from GhSA/Properties/Icons/CreateOffset.png rename to GsaGH/Properties/Icons/CreateOffset.png diff --git a/GhSA/Properties/Icons/CreateProfile.png b/GsaGH/Properties/Icons/CreateProfile.png similarity index 100% rename from GhSA/Properties/Icons/CreateProfile.png rename to GsaGH/Properties/Icons/CreateProfile.png diff --git a/GhSA/Properties/Icons/CreateProp2d.png b/GsaGH/Properties/Icons/CreateProp2d.png similarity index 100% rename from GhSA/Properties/Icons/CreateProp2d.png rename to GsaGH/Properties/Icons/CreateProp2d.png diff --git a/GhSA/Properties/Icons/CreateProp3d.png b/GsaGH/Properties/Icons/CreateProp3d.png similarity index 100% rename from GhSA/Properties/Icons/CreateProp3d.png rename to GsaGH/Properties/Icons/CreateProp3d.png diff --git a/GhSA/Properties/Icons/CreateSection.png b/GsaGH/Properties/Icons/CreateSection.png similarity index 100% rename from GhSA/Properties/Icons/CreateSection.png rename to GsaGH/Properties/Icons/CreateSection.png diff --git a/GhSA/Properties/Icons/CreateSectionModifier.png b/GsaGH/Properties/Icons/CreateSectionModifier.png similarity index 100% rename from GhSA/Properties/Icons/CreateSectionModifier.png rename to GsaGH/Properties/Icons/CreateSectionModifier.png diff --git a/GhSA/Properties/Icons/CreateSpring.png b/GsaGH/Properties/Icons/CreateSpring.png similarity index 100% rename from GhSA/Properties/Icons/CreateSpring.png rename to GsaGH/Properties/Icons/CreateSpring.png diff --git a/GhSA/Properties/Icons/CreateSupport.png b/GsaGH/Properties/Icons/CreateSupport.png similarity index 100% rename from GhSA/Properties/Icons/CreateSupport.png rename to GsaGH/Properties/Icons/CreateSupport.png diff --git a/GhSA/Properties/Icons/CreateUnitNumber.png b/GsaGH/Properties/Icons/CreateUnitNumber.png similarity index 100% rename from GhSA/Properties/Icons/CreateUnitNumber.png rename to GsaGH/Properties/Icons/CreateUnitNumber.png diff --git a/GhSA/Properties/Icons/CustomMaterial.png b/GsaGH/Properties/Icons/CustomMaterial.png similarity index 100% rename from GhSA/Properties/Icons/CustomMaterial.png rename to GsaGH/Properties/Icons/CustomMaterial.png diff --git a/GhSA/Properties/Icons/Displacement2D.png b/GsaGH/Properties/Icons/Displacement2D.png similarity index 100% rename from GhSA/Properties/Icons/Displacement2D.png rename to GsaGH/Properties/Icons/Displacement2D.png diff --git a/GhSA/Properties/Icons/Displacement3D.png b/GsaGH/Properties/Icons/Displacement3D.png similarity index 100% rename from GhSA/Properties/Icons/Displacement3D.png rename to GsaGH/Properties/Icons/Displacement3D.png diff --git a/GhSA/Properties/Icons/Documentation.png b/GsaGH/Properties/Icons/Documentation.png similarity index 100% rename from GhSA/Properties/Icons/Documentation.png rename to GsaGH/Properties/Icons/Documentation.png diff --git a/GhSA/Properties/Icons/EditAnalysisTask.png b/GsaGH/Properties/Icons/EditAnalysisTask.png similarity index 100% rename from GhSA/Properties/Icons/EditAnalysisTask.png rename to GsaGH/Properties/Icons/EditAnalysisTask.png diff --git a/GhSA/Properties/Icons/EditBool6.png b/GsaGH/Properties/Icons/EditBool6.png similarity index 100% rename from GhSA/Properties/Icons/EditBool6.png rename to GsaGH/Properties/Icons/EditBool6.png diff --git a/GhSA/Properties/Icons/EditElem1d.png b/GsaGH/Properties/Icons/EditElem1d.png similarity index 100% rename from GhSA/Properties/Icons/EditElem1d.png rename to GsaGH/Properties/Icons/EditElem1d.png diff --git a/GhSA/Properties/Icons/EditElem2d.png b/GsaGH/Properties/Icons/EditElem2d.png similarity index 100% rename from GhSA/Properties/Icons/EditElem2d.png rename to GsaGH/Properties/Icons/EditElem2d.png diff --git a/GhSA/Properties/Icons/EditElem3d.png b/GsaGH/Properties/Icons/EditElem3d.png similarity index 100% rename from GhSA/Properties/Icons/EditElem3d.png rename to GsaGH/Properties/Icons/EditElem3d.png diff --git a/GhSA/Properties/Icons/EditMaterial.png b/GsaGH/Properties/Icons/EditMaterial.png similarity index 100% rename from GhSA/Properties/Icons/EditMaterial.png rename to GsaGH/Properties/Icons/EditMaterial.png diff --git a/GhSA/Properties/Icons/EditMem1d.png b/GsaGH/Properties/Icons/EditMem1d.png similarity index 100% rename from GhSA/Properties/Icons/EditMem1d.png rename to GsaGH/Properties/Icons/EditMem1d.png diff --git a/GhSA/Properties/Icons/EditMem2d.png b/GsaGH/Properties/Icons/EditMem2d.png similarity index 100% rename from GhSA/Properties/Icons/EditMem2d.png rename to GsaGH/Properties/Icons/EditMem2d.png diff --git a/GhSA/Properties/Icons/EditMem3d.png b/GsaGH/Properties/Icons/EditMem3d.png similarity index 100% rename from GhSA/Properties/Icons/EditMem3d.png rename to GsaGH/Properties/Icons/EditMem3d.png diff --git a/GhSA/Properties/Icons/EditNode.png b/GsaGH/Properties/Icons/EditNode.png similarity index 100% rename from GhSA/Properties/Icons/EditNode.png rename to GsaGH/Properties/Icons/EditNode.png diff --git a/GhSA/Properties/Icons/EditOffset.png b/GsaGH/Properties/Icons/EditOffset.png similarity index 100% rename from GhSA/Properties/Icons/EditOffset.png rename to GsaGH/Properties/Icons/EditOffset.png diff --git a/GhSA/Properties/Icons/EditProp2d.png b/GsaGH/Properties/Icons/EditProp2d.png similarity index 100% rename from GhSA/Properties/Icons/EditProp2d.png rename to GsaGH/Properties/Icons/EditProp2d.png diff --git a/GhSA/Properties/Icons/EditProp3d.png b/GsaGH/Properties/Icons/EditProp3d.png similarity index 100% rename from GhSA/Properties/Icons/EditProp3d.png rename to GsaGH/Properties/Icons/EditProp3d.png diff --git a/GhSA/Properties/Icons/EditSection.png b/GsaGH/Properties/Icons/EditSection.png similarity index 100% rename from GhSA/Properties/Icons/EditSection.png rename to GsaGH/Properties/Icons/EditSection.png diff --git a/GhSA/Properties/Icons/EditSectionModifier.png b/GsaGH/Properties/Icons/EditSectionModifier.png similarity index 100% rename from GhSA/Properties/Icons/EditSectionModifier.png rename to GsaGH/Properties/Icons/EditSectionModifier.png diff --git a/GhSA/Properties/Icons/EditSpring.png b/GsaGH/Properties/Icons/EditSpring.png similarity index 100% rename from GhSA/Properties/Icons/EditSpring.png rename to GsaGH/Properties/Icons/EditSpring.png diff --git a/GhSA/Properties/Icons/Elem1dParam.png b/GsaGH/Properties/Icons/Elem1dParam.png similarity index 100% rename from GhSA/Properties/Icons/Elem1dParam.png rename to GsaGH/Properties/Icons/Elem1dParam.png diff --git a/GhSA/Properties/Icons/Elem2dParam.png b/GsaGH/Properties/Icons/Elem2dParam.png similarity index 100% rename from GhSA/Properties/Icons/Elem2dParam.png rename to GsaGH/Properties/Icons/Elem2dParam.png diff --git a/GhSA/Properties/Icons/Elem3dParam.png b/GsaGH/Properties/Icons/Elem3dParam.png similarity index 100% rename from GhSA/Properties/Icons/Elem3dParam.png rename to GsaGH/Properties/Icons/Elem3dParam.png diff --git a/GhSA/Properties/Icons/FaceLoad.png b/GsaGH/Properties/Icons/FaceLoad.png similarity index 100% rename from GhSA/Properties/Icons/FaceLoad.png rename to GsaGH/Properties/Icons/FaceLoad.png diff --git a/GhSA/Properties/Icons/Forces2D.png b/GsaGH/Properties/Icons/Forces2D.png similarity index 100% rename from GhSA/Properties/Icons/Forces2D.png rename to GsaGH/Properties/Icons/Forces2D.png diff --git a/GhSA/Properties/Icons/Forces3D.png b/GsaGH/Properties/Icons/Forces3D.png similarity index 100% rename from GhSA/Properties/Icons/Forces3D.png rename to GsaGH/Properties/Icons/Forces3D.png diff --git a/GhSA/Properties/Icons/GSAInfo.png b/GsaGH/Properties/Icons/GSAInfo.png similarity index 100% rename from GhSA/Properties/Icons/GSAInfo.png rename to GsaGH/Properties/Icons/GSAInfo.png diff --git a/GhSA/Properties/Icons/GSALogo.png b/GsaGH/Properties/Icons/GSALogo.png similarity index 100% rename from GhSA/Properties/Icons/GSALogo.png rename to GsaGH/Properties/Icons/GSALogo.png diff --git a/GhSA/Properties/Icons/GSALogo128.png b/GsaGH/Properties/Icons/GSALogo128.png similarity index 100% rename from GhSA/Properties/Icons/GSALogo128.png rename to GsaGH/Properties/Icons/GSALogo128.png diff --git a/GhSA/Properties/Icons/GetAnalysisTask.png b/GsaGH/Properties/Icons/GetAnalysisTask.png similarity index 100% rename from GhSA/Properties/Icons/GetAnalysisTask.png rename to GsaGH/Properties/Icons/GetAnalysisTask.png diff --git a/GhSA/Properties/Icons/GetGeometry.png b/GsaGH/Properties/Icons/GetGeometry.png similarity index 100% rename from GhSA/Properties/Icons/GetGeometry.png rename to GsaGH/Properties/Icons/GetGeometry.png diff --git a/GhSA/Properties/Icons/GetLoads.png b/GsaGH/Properties/Icons/GetLoads.png similarity index 100% rename from GhSA/Properties/Icons/GetLoads.png rename to GsaGH/Properties/Icons/GetLoads.png diff --git a/GhSA/Properties/Icons/GetSection.png b/GsaGH/Properties/Icons/GetSection.png similarity index 100% rename from GhSA/Properties/Icons/GetSection.png rename to GsaGH/Properties/Icons/GetSection.png diff --git a/GhSA/Properties/Icons/GlobalPerformance.png b/GsaGH/Properties/Icons/GlobalPerformance.png similarity index 100% rename from GhSA/Properties/Icons/GlobalPerformance.png rename to GsaGH/Properties/Icons/GlobalPerformance.png diff --git a/GhSA/Properties/Icons/GravityLoad.png b/GsaGH/Properties/Icons/GravityLoad.png similarity index 100% rename from GhSA/Properties/Icons/GravityLoad.png rename to GsaGH/Properties/Icons/GravityLoad.png diff --git a/GhSA/Properties/Icons/GridPlane.png b/GsaGH/Properties/Icons/GridPlane.png similarity index 100% rename from GhSA/Properties/Icons/GridPlane.png rename to GsaGH/Properties/Icons/GridPlane.png diff --git a/GhSA/Properties/Icons/GridPlaneParam.png b/GsaGH/Properties/Icons/GridPlaneParam.png similarity index 100% rename from GhSA/Properties/Icons/GridPlaneParam.png rename to GsaGH/Properties/Icons/GridPlaneParam.png diff --git a/GhSA/Properties/Icons/GridPlaneProperties.png b/GsaGH/Properties/Icons/GridPlaneProperties.png similarity index 100% rename from GhSA/Properties/Icons/GridPlaneProperties.png rename to GsaGH/Properties/Icons/GridPlaneProperties.png diff --git a/GhSA/Properties/Icons/GridSurface.png b/GsaGH/Properties/Icons/GridSurface.png similarity index 100% rename from GhSA/Properties/Icons/GridSurface.png rename to GsaGH/Properties/Icons/GridSurface.png diff --git a/GhSA/Properties/Icons/GsaLogo64.png b/GsaGH/Properties/Icons/GsaLogo64.png similarity index 100% rename from GhSA/Properties/Icons/GsaLogo64.png rename to GsaGH/Properties/Icons/GsaLogo64.png diff --git a/GhSA/Properties/Icons/LineLoad.png b/GsaGH/Properties/Icons/LineLoad.png similarity index 100% rename from GhSA/Properties/Icons/LineLoad.png rename to GsaGH/Properties/Icons/LineLoad.png diff --git a/GhSA/Properties/Icons/LoadInfo.png b/GsaGH/Properties/Icons/LoadInfo.png similarity index 100% rename from GhSA/Properties/Icons/LoadInfo.png rename to GsaGH/Properties/Icons/LoadInfo.png diff --git a/GhSA/Properties/Icons/LoadParam.png b/GsaGH/Properties/Icons/LoadParam.png similarity index 100% rename from GhSA/Properties/Icons/LoadParam.png rename to GsaGH/Properties/Icons/LoadParam.png diff --git a/GhSA/Properties/Icons/LocalAxes.png b/GsaGH/Properties/Icons/LocalAxes.png similarity index 100% rename from GhSA/Properties/Icons/LocalAxes.png rename to GsaGH/Properties/Icons/LocalAxes.png diff --git a/GhSA/Properties/Icons/MaterialParam.png b/GsaGH/Properties/Icons/MaterialParam.png similarity index 100% rename from GhSA/Properties/Icons/MaterialParam.png rename to GsaGH/Properties/Icons/MaterialParam.png diff --git a/GhSA/Properties/Icons/MaterialProperties.png b/GsaGH/Properties/Icons/MaterialProperties.png similarity index 100% rename from GhSA/Properties/Icons/MaterialProperties.png rename to GsaGH/Properties/Icons/MaterialProperties.png diff --git a/GhSA/Properties/Icons/Mem1dParam.png b/GsaGH/Properties/Icons/Mem1dParam.png similarity index 100% rename from GhSA/Properties/Icons/Mem1dParam.png rename to GsaGH/Properties/Icons/Mem1dParam.png diff --git a/GhSA/Properties/Icons/Mem2dParam.png b/GsaGH/Properties/Icons/Mem2dParam.png similarity index 100% rename from GhSA/Properties/Icons/Mem2dParam.png rename to GsaGH/Properties/Icons/Mem2dParam.png diff --git a/GhSA/Properties/Icons/Mem3dParam.png b/GsaGH/Properties/Icons/Mem3dParam.png similarity index 100% rename from GhSA/Properties/Icons/Mem3dParam.png rename to GsaGH/Properties/Icons/Mem3dParam.png diff --git a/GhSA/Properties/Icons/ModelParam.png b/GsaGH/Properties/Icons/ModelParam.png similarity index 100% rename from GhSA/Properties/Icons/ModelParam.png rename to GsaGH/Properties/Icons/ModelParam.png diff --git a/GhSA/Properties/Icons/NodeDisplacement.png b/GsaGH/Properties/Icons/NodeDisplacement.png similarity index 100% rename from GhSA/Properties/Icons/NodeDisplacement.png rename to GsaGH/Properties/Icons/NodeDisplacement.png diff --git a/GhSA/Properties/Icons/NodeLoad.png b/GsaGH/Properties/Icons/NodeLoad.png similarity index 100% rename from GhSA/Properties/Icons/NodeLoad.png rename to GsaGH/Properties/Icons/NodeLoad.png diff --git a/GhSA/Properties/Icons/NodeParam.png b/GsaGH/Properties/Icons/NodeParam.png similarity index 100% rename from GhSA/Properties/Icons/NodeParam.png rename to GsaGH/Properties/Icons/NodeParam.png diff --git a/GhSA/Properties/Icons/OffsetParam.png b/GsaGH/Properties/Icons/OffsetParam.png similarity index 100% rename from GhSA/Properties/Icons/OffsetParam.png rename to GsaGH/Properties/Icons/OffsetParam.png diff --git a/GhSA/Properties/Icons/OpenModel.png b/GsaGH/Properties/Icons/OpenModel.png similarity index 100% rename from GhSA/Properties/Icons/OpenModel.png rename to GsaGH/Properties/Icons/OpenModel.png diff --git a/GhSA/Properties/Icons/PointLoad.png b/GsaGH/Properties/Icons/PointLoad.png similarity index 100% rename from GhSA/Properties/Icons/PointLoad.png rename to GsaGH/Properties/Icons/PointLoad.png diff --git a/GhSA/Properties/Icons/Prop2dParam.png b/GsaGH/Properties/Icons/Prop2dParam.png similarity index 100% rename from GhSA/Properties/Icons/Prop2dParam.png rename to GsaGH/Properties/Icons/Prop2dParam.png diff --git a/GhSA/Properties/Icons/Prop3dParam.png b/GsaGH/Properties/Icons/Prop3dParam.png similarity index 100% rename from GhSA/Properties/Icons/Prop3dParam.png rename to GsaGH/Properties/Icons/Prop3dParam.png diff --git a/GhSA/Properties/Icons/ReactionForces.png b/GsaGH/Properties/Icons/ReactionForces.png similarity index 100% rename from GhSA/Properties/Icons/ReactionForces.png rename to GsaGH/Properties/Icons/ReactionForces.png diff --git a/GhSA/Properties/Icons/Result0D.png b/GsaGH/Properties/Icons/Result0D.png similarity index 100% rename from GhSA/Properties/Icons/Result0D.png rename to GsaGH/Properties/Icons/Result0D.png diff --git a/GhSA/Properties/Icons/Result1D.png b/GsaGH/Properties/Icons/Result1D.png similarity index 100% rename from GhSA/Properties/Icons/Result1D.png rename to GsaGH/Properties/Icons/Result1D.png diff --git a/GhSA/Properties/Icons/Result2D.png b/GsaGH/Properties/Icons/Result2D.png similarity index 100% rename from GhSA/Properties/Icons/Result2D.png rename to GsaGH/Properties/Icons/Result2D.png diff --git a/GhSA/Properties/Icons/Result3D.png b/GsaGH/Properties/Icons/Result3D.png similarity index 100% rename from GhSA/Properties/Icons/Result3D.png rename to GsaGH/Properties/Icons/Result3D.png diff --git a/GhSA/Properties/Icons/ResultGlobal.png b/GsaGH/Properties/Icons/ResultGlobal.png similarity index 100% rename from GhSA/Properties/Icons/ResultGlobal.png rename to GsaGH/Properties/Icons/ResultGlobal.png diff --git a/GhSA/Properties/Icons/ResultParam.png b/GsaGH/Properties/Icons/ResultParam.png similarity index 100% rename from GhSA/Properties/Icons/ResultParam.png rename to GsaGH/Properties/Icons/ResultParam.png diff --git a/GhSA/Properties/Icons/SaveModel.png b/GsaGH/Properties/Icons/SaveModel.png similarity index 100% rename from GhSA/Properties/Icons/SaveModel.png rename to GsaGH/Properties/Icons/SaveModel.png diff --git a/GhSA/Properties/Icons/SectionModifierParam.png b/GsaGH/Properties/Icons/SectionModifierParam.png similarity index 100% rename from GhSA/Properties/Icons/SectionModifierParam.png rename to GsaGH/Properties/Icons/SectionModifierParam.png diff --git a/GhSA/Properties/Icons/SectionParam.png b/GsaGH/Properties/Icons/SectionParam.png similarity index 100% rename from GhSA/Properties/Icons/SectionParam.png rename to GsaGH/Properties/Icons/SectionParam.png diff --git a/GhSA/Properties/Icons/SectionProperties.png b/GsaGH/Properties/Icons/SectionProperties.png similarity index 100% rename from GhSA/Properties/Icons/SectionProperties.png rename to GsaGH/Properties/Icons/SectionProperties.png diff --git a/GhSA/Properties/Icons/SelectResult.png b/GsaGH/Properties/Icons/SelectResult.png similarity index 100% rename from GhSA/Properties/Icons/SelectResult.png rename to GsaGH/Properties/Icons/SelectResult.png diff --git a/GhSA/Properties/Icons/SpringParam.png b/GsaGH/Properties/Icons/SpringParam.png similarity index 100% rename from GhSA/Properties/Icons/SpringParam.png rename to GsaGH/Properties/Icons/SpringParam.png diff --git a/GhSA/Properties/Icons/SpringReactionForces.png b/GsaGH/Properties/Icons/SpringReactionForces.png similarity index 100% rename from GhSA/Properties/Icons/SpringReactionForces.png rename to GsaGH/Properties/Icons/SpringReactionForces.png diff --git a/GhSA/Properties/Icons/StrainEnergyDensity.png b/GsaGH/Properties/Icons/StrainEnergyDensity.png similarity index 100% rename from GhSA/Properties/Icons/StrainEnergyDensity.png rename to GsaGH/Properties/Icons/StrainEnergyDensity.png diff --git a/GhSA/Properties/Icons/Stress2D.png b/GsaGH/Properties/Icons/Stress2D.png similarity index 100% rename from GhSA/Properties/Icons/Stress2D.png rename to GsaGH/Properties/Icons/Stress2D.png diff --git a/GhSA/Properties/Icons/Stress3D.png b/GsaGH/Properties/Icons/Stress3D.png similarity index 100% rename from GhSA/Properties/Icons/Stress3D.png rename to GsaGH/Properties/Icons/Stress3D.png diff --git a/GhSA/Properties/Icons/TaperProfile.png b/GsaGH/Properties/Icons/TaperProfile.png similarity index 100% rename from GhSA/Properties/Icons/TaperProfile.png rename to GsaGH/Properties/Icons/TaperProfile.png diff --git a/GhSA/Properties/Icons/Titles.png b/GsaGH/Properties/Icons/Titles.png similarity index 100% rename from GhSA/Properties/Icons/Titles.png rename to GsaGH/Properties/Icons/Titles.png diff --git a/GhSA/Properties/Icons/TotalLoadAndReaction.png b/GsaGH/Properties/Icons/TotalLoadAndReaction.png similarity index 100% rename from GhSA/Properties/Icons/TotalLoadAndReaction.png rename to GsaGH/Properties/Icons/TotalLoadAndReaction.png diff --git a/GhSA/Properties/Icons/UnitParam.png b/GsaGH/Properties/Icons/UnitParam.png similarity index 100% rename from GhSA/Properties/Icons/UnitParam.png rename to GsaGH/Properties/Icons/UnitParam.png diff --git a/GhSA/Properties/Icons/Units.png b/GsaGH/Properties/Icons/Units.png similarity index 100% rename from GhSA/Properties/Icons/Units.png rename to GsaGH/Properties/Icons/Units.png diff --git a/GhSA/Properties/Icons/path1220.png b/GsaGH/Properties/Icons/path1220.png similarity index 100% rename from GhSA/Properties/Icons/path1220.png rename to GsaGH/Properties/Icons/path1220.png diff --git a/GhSA/Properties/Icons/unused.png b/GsaGH/Properties/Icons/unused.png similarity index 100% rename from GhSA/Properties/Icons/unused.png rename to GsaGH/Properties/Icons/unused.png diff --git a/GhSA/Properties/Resources.Designer.cs b/GsaGH/Properties/Resources.Designer.cs similarity index 100% rename from GhSA/Properties/Resources.Designer.cs rename to GsaGH/Properties/Resources.Designer.cs diff --git a/GhSA/Properties/Resources.resx b/GsaGH/Properties/Resources.resx similarity index 100% rename from GhSA/Properties/Resources.resx rename to GsaGH/Properties/Resources.resx diff --git a/GhSA/UI/AboutBox.Designer.cs b/GsaGH/UI/AboutBox.Designer.cs similarity index 100% rename from GhSA/UI/AboutBox.Designer.cs rename to GsaGH/UI/AboutBox.Designer.cs diff --git a/GhSA/UI/AboutBox.cs b/GsaGH/UI/AboutBox.cs similarity index 100% rename from GhSA/UI/AboutBox.cs rename to GsaGH/UI/AboutBox.cs diff --git a/GhSA/UI/AboutBox.resx b/GsaGH/UI/AboutBox.resx similarity index 100% rename from GhSA/UI/AboutBox.resx rename to GsaGH/UI/AboutBox.resx diff --git a/GhSA/UI/Comp_Bool6.cs b/GsaGH/UI/Comp_Bool6.cs similarity index 100% rename from GhSA/UI/Comp_Bool6.cs rename to GsaGH/UI/Comp_Bool6.cs diff --git a/GhSA/UI/Comp_Button.cs b/GsaGH/UI/Comp_Button.cs similarity index 100% rename from GhSA/UI/Comp_Button.cs rename to GsaGH/UI/Comp_Button.cs diff --git a/GhSA/UI/Comp_CheckBox.cs b/GsaGH/UI/Comp_CheckBox.cs similarity index 100% rename from GhSA/UI/Comp_CheckBox.cs rename to GsaGH/UI/Comp_CheckBox.cs diff --git a/GhSA/UI/Comp_DropDown.cs b/GsaGH/UI/Comp_DropDown.cs similarity index 100% rename from GhSA/UI/Comp_DropDown.cs rename to GsaGH/UI/Comp_DropDown.cs diff --git a/GhSA/UI/Comp_MultiDropDowns.cs b/GsaGH/UI/Comp_MultiDropDowns.cs similarity index 100% rename from GhSA/UI/Comp_MultiDropDowns.cs rename to GsaGH/UI/Comp_MultiDropDowns.cs diff --git a/GhSA/UI/Comp_MultiDropDownsCheckBoxes.cs b/GsaGH/UI/Comp_MultiDropDownsCheckBoxes.cs similarity index 100% rename from GhSA/UI/Comp_MultiDropDownsCheckBoxes.cs rename to GsaGH/UI/Comp_MultiDropDownsCheckBoxes.cs diff --git a/GhSA/UI/Comp_MultiDropDownsSlider.cs b/GsaGH/UI/Comp_MultiDropDownsSlider.cs similarity index 100% rename from GhSA/UI/Comp_MultiDropDownsSlider.cs rename to GsaGH/UI/Comp_MultiDropDownsSlider.cs diff --git a/GhSA/UI/Comp_Profile.cs b/GsaGH/UI/Comp_Profile.cs similarity index 100% rename from GhSA/UI/Comp_Profile.cs rename to GsaGH/UI/Comp_Profile.cs diff --git a/GhSA/UI/Comp_Releases.cs b/GsaGH/UI/Comp_Releases.cs similarity index 100% rename from GhSA/UI/Comp_Releases.cs rename to GsaGH/UI/Comp_Releases.cs diff --git a/GhSA/UI/Comp_Slider.cs b/GsaGH/UI/Comp_Slider.cs similarity index 100% rename from GhSA/UI/Comp_Slider.cs rename to GsaGH/UI/Comp_Slider.cs diff --git a/GhSA/UI/Comp_Support.cs b/GsaGH/UI/Comp_Support.cs similarity index 100% rename from GhSA/UI/Comp_Support.cs rename to GsaGH/UI/Comp_Support.cs diff --git a/GhSA/UI/Comp_TripleButton.cs b/GsaGH/UI/Comp_TripleButton.cs similarity index 100% rename from GhSA/UI/Comp_TripleButton.cs rename to GsaGH/UI/Comp_TripleButton.cs diff --git a/GhSA/UI/GraphicButtons.cs b/GsaGH/UI/GraphicButtons.cs similarity index 100% rename from GhSA/UI/GraphicButtons.cs rename to GsaGH/UI/GraphicButtons.cs diff --git a/GhSA/UI/UnitSettingsBox.Designer.cs b/GsaGH/UI/UnitSettingsBox.Designer.cs similarity index 100% rename from GhSA/UI/UnitSettingsBox.Designer.cs rename to GsaGH/UI/UnitSettingsBox.Designer.cs diff --git a/GhSA/UI/UnitSettingsBox.cs b/GsaGH/UI/UnitSettingsBox.cs similarity index 100% rename from GhSA/UI/UnitSettingsBox.cs rename to GsaGH/UI/UnitSettingsBox.cs diff --git a/GhSA/UI/UnitSettingsBox.resx b/GsaGH/UI/UnitSettingsBox.resx similarity index 100% rename from GhSA/UI/UnitSettingsBox.resx rename to GsaGH/UI/UnitSettingsBox.resx diff --git a/GhSA/UI/WidthFix.cs b/GsaGH/UI/WidthFix.cs similarity index 100% rename from GhSA/UI/WidthFix.cs rename to GsaGH/UI/WidthFix.cs diff --git a/GhSA/lib/OasysUnits.dll b/GsaGH/lib/OasysUnits.dll similarity index 100% rename from GhSA/lib/OasysUnits.dll rename to GsaGH/lib/OasysUnits.dll diff --git a/GhSA/licenses/Newtonsoft b/GsaGH/licenses/Newtonsoft similarity index 100% rename from GhSA/licenses/Newtonsoft rename to GsaGH/licenses/Newtonsoft diff --git a/GhSA/licenses/README.md b/GsaGH/licenses/README.md similarity index 100% rename from GhSA/licenses/README.md rename to GsaGH/licenses/README.md diff --git a/GhSA/licenses/UnitsNet b/GsaGH/licenses/UnitsNet similarity index 100% rename from GhSA/licenses/UnitsNet rename to GsaGH/licenses/UnitsNet diff --git a/GhSA/packages.config b/GsaGH/packages.config similarity index 100% rename from GhSA/packages.config rename to GsaGH/packages.config diff --git a/GsaGHTests/GsaGHTests.csproj b/GsaGHTests/GsaGHTests.csproj index 8894eed9d..0d09d1efe 100644 --- a/GsaGHTests/GsaGHTests.csproj +++ b/GsaGHTests/GsaGHTests.csproj @@ -26,7 +26,7 @@ - + diff --git a/IntegrationTests/IntegrationTests.csproj b/IntegrationTests/IntegrationTests.csproj index 4676a7fb3..2fb573e98 100644 --- a/IntegrationTests/IntegrationTests.csproj +++ b/IntegrationTests/IntegrationTests.csproj @@ -26,7 +26,7 @@ - + diff --git a/UnitTestGhSA/ComponentsTest/0_Model/OpenTest.cs b/UnitTestGsaGH/ComponentsTest/0_Model/OpenTest.cs similarity index 100% rename from UnitTestGhSA/ComponentsTest/0_Model/OpenTest.cs rename to UnitTestGsaGH/ComponentsTest/0_Model/OpenTest.cs diff --git a/UnitTestGhSA/ComponentsTest/1_Properties/OffsetTests.cs b/UnitTestGsaGH/ComponentsTest/1_Properties/OffsetTests.cs similarity index 100% rename from UnitTestGhSA/ComponentsTest/1_Properties/OffsetTests.cs rename to UnitTestGsaGH/ComponentsTest/1_Properties/OffsetTests.cs diff --git a/UnitTestGhSA/ComponentsTest/ComponentTestHelper.cs b/UnitTestGsaGH/ComponentsTest/ComponentTestHelper.cs similarity index 100% rename from UnitTestGhSA/ComponentsTest/ComponentTestHelper.cs rename to UnitTestGsaGH/ComponentsTest/ComponentTestHelper.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/0_Model/ModelTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/0_Model/ModelTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/0_Model/ModelTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/0_Model/ModelTests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/1_Properties/Bool6Tests.cs b/UnitTestGsaGH/ParamsIntegrationTests/1_Properties/Bool6Tests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/1_Properties/Bool6Tests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/1_Properties/Bool6Tests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/1_Properties/OffsetTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/1_Properties/OffsetTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/1_Properties/OffsetTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/1_Properties/OffsetTests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/1_Properties/Prop2dTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/1_Properties/Prop2dTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/1_Properties/Prop2dTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/1_Properties/Prop2dTests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/1_Properties/SectionTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/1_Properties/SectionTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/1_Properties/SectionTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/1_Properties/SectionTests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Elem1dTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Elem1dTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Elem1dTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Elem1dTests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Elem2dTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Elem2dTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Elem2dTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Elem2dTests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Mem1dTests .cs b/UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Mem1dTests .cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Mem1dTests .cs rename to UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Mem1dTests .cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Mem2dTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Mem2dTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/2_Geometry/Mem2dTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/Mem2dTests.cs diff --git a/UnitTestGhSA/ParamsIntegrationTests/2_Geometry/NodeTests.cs b/UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/NodeTests.cs similarity index 100% rename from UnitTestGhSA/ParamsIntegrationTests/2_Geometry/NodeTests.cs rename to UnitTestGsaGH/ParamsIntegrationTests/2_Geometry/NodeTests.cs diff --git a/UnitTestGhSA/Properties/AssemblyInfo.cs b/UnitTestGsaGH/Properties/AssemblyInfo.cs similarity index 85% rename from UnitTestGhSA/Properties/AssemblyInfo.cs rename to UnitTestGsaGH/Properties/AssemblyInfo.cs index cf0d0acdd..a611c72ed 100644 --- a/UnitTestGhSA/Properties/AssemblyInfo.cs +++ b/UnitTestGsaGH/Properties/AssemblyInfo.cs @@ -2,11 +2,11 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -[assembly: AssemblyTitle("UnitTestGhSA")] +[assembly: AssemblyTitle("UnitTestGsaGH")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("UnitTestGhSA")] +[assembly: AssemblyProduct("UnitTestGsaGH")] [assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/UnitTestGhSA/UnitTestGhSA.csproj b/UnitTestGsaGH/UnitTestGsaGH.csproj similarity index 97% rename from UnitTestGhSA/UnitTestGhSA.csproj rename to UnitTestGsaGH/UnitTestGsaGH.csproj index 5aa1935e2..9e6fb7a11 100644 --- a/UnitTestGhSA/UnitTestGhSA.csproj +++ b/UnitTestGsaGH/UnitTestGsaGH.csproj @@ -9,8 +9,8 @@ {CE4EB299-EA12-48B1-BB13-0C5B83FF0B52} Library Properties - UnitTestGhSA - UnitTestGhSA + UnitTestGsaGH + UnitTestGsaGH v4.8 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} @@ -59,7 +59,7 @@ ..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll - ..\GhSA\lib\OasysUnits.dll + ..\GsaGH\lib\OasysUnits.dll ..\packages\RhinoCommon.6.27.20176.5001\lib\net45\Rhino.UI.dll @@ -99,7 +99,7 @@ - + {362f5ed1-ba80-4f21-881d-6bd8784612e4} GsaGH diff --git a/UnitTestGhSA/UnitTestSetup.cs b/UnitTestGsaGH/UnitTestSetup.cs similarity index 93% rename from UnitTestGhSA/UnitTestSetup.cs rename to UnitTestGsaGH/UnitTestSetup.cs index edd23e398..b96fb510c 100644 --- a/UnitTestGhSA/UnitTestSetup.cs +++ b/UnitTestGsaGH/UnitTestSetup.cs @@ -20,29 +20,29 @@ public void RunBeforeAnyTests() // Executes once before any test run // load GsaAPI.dll and set process user-rights to GSA installation folder - UnitTestGhSA.InitiateGsa.LoadRefs(); + UnitTestGsaGH.InitiateGsa.LoadRefs(); // use GsaAPI once to open a model and force loading of sectlib.db3 SQL library - UnitTestGhSA.InitiateGsa.UseGsaAPI(); + UnitTestGsaGH.InitiateGsa.UseGsaAPI(); // set units used in the unit-test (kN-m). Avoids conflict with trying to read Rhino doc units - UnitTestGhSA.InitiateGsa.SetUnits(); + UnitTestGsaGH.InitiateGsa.SetUnits(); // add current project (for GSA.gha) to grasshopper folder: string rootfolder = AppDomain.CurrentDomain.BaseDirectory; - rootfolder = rootfolder.Split(new string[] { "UnitTestGhSA" }, StringSplitOptions.None)[0]; + rootfolder = rootfolder.Split(new string[] { "UnitTestGsaGH" }, StringSplitOptions.None)[0]; Grasshopper.Folders.CustomAssemblyFolders.Add(rootfolder); // setup Rhino7 (headless) and resolve assembly conflicts for RhinoCommon.dll and Grasshopper.dll - UnitTestGhSA.InitiateRhinoGH.LoadRhino7GH(); + UnitTestGsaGH.InitiateRhinoGH.LoadRhino7GH(); } [OneTimeTearDown] public void RunAfterAnyTests() { // Executes once after the test run. (Optional) - UnitTestGhSA.InitiateRhinoGH.ExitInProcess(); + UnitTestGsaGH.InitiateRhinoGH.ExitInProcess(); } } namespace ComponentsTest @@ -65,7 +65,7 @@ public void RunAfterAnyTests() } } } -namespace UnitTestGhSA +namespace UnitTestGsaGH { public class InitiateGsa { diff --git a/UnitTestGhSA/packages.config b/UnitTestGsaGH/packages.config similarity index 100% rename from UnitTestGhSA/packages.config rename to UnitTestGsaGH/packages.config diff --git a/build-test-deploy.yml b/build-test-deploy.yml index 0b6a0eebd..1de2ee026 100644 --- a/build-test-deploy.yml +++ b/build-test-deploy.yml @@ -14,7 +14,7 @@ variables: - name: latest_released_gsa_version value: GSA/10.1/10.1.60/10.1.60.42/2022-07-01/36296/Arup_GSA_x64_10.1.60.42 -pool: 'vs17_2' +pool: 'rhino-compute' steps: - powershell: aws s3 cp s3://oasys-installer-store/$(latest_released_gsa_version).msi .\gsa.msi @@ -55,17 +55,26 @@ steps: MSBUILDDISABLENODEREUSE: 1 #- powershell: | -# dotnet test --collect:"XPlat Code Coverage" /TestAdapterPath:$env:UserProfile\.nuget\packages\coverlet.collector\3.1.0\build --results-directory .\results .\AdSecGHTests\bin\Release\net6.0\AdSecGHTests.dll +# dotnet test --collect:"XPlat Code Coverage" /TestAdapterPath:$env:UserProfile\.nuget\packages\coverlet.collector\3.1.0\build --results-directory .\results\gsagh .\AdSecGHTests\bin\x64\Release\net48\AdSecGHTests.dll +# dotnet test --collect:"XPlat Code Coverage" /TestAdapterPath:$env:UserProfile\.nuget\packages\coverlet.collector\3.1.0\build --results-directory .\results\integration .\AdSecGHTests\bin\x64\Release\net48\IntegrationTests.dll # displayName: dotnet tests #- task: PublishCodeCoverageResults@1 # inputs: # codeCoverageTool: 'cobertura' -# summaryFileLocation: '$(System.DefaultWorkingDirectory)/results/**/coverage.cobertura.xml' +# summaryFileLocation: '$(System.DefaultWorkingDirectory)/results/gsagh/**/coverage.cobertura.xml' # pathToSources: '$(System.DefaultWorkingDirectory)' #- powershell: | -# codecov -t $env:CODECOV_TOKEN -f ComposTests\coverage.json -F unittests +# $coverage_file_gsagh = (Resolve-Path $(System.DefaultWorkingDirectory)/results/gsagh/*/coverage.cobertura.xml).Path +# echo $coverage_file_gsagh +# $coverage_file_integration = (Resolve-Path $(System.DefaultWorkingDirectory)/results/integration/*/coverage.cobertura.xml).Path +# echo $coverage_file_integration +# Copy-Item $coverage_file_gsagh $(System.DefaultWorkingDirectory)\results\coverage_gsagh.xml +# Copy-Item $coverage_file_integration $(System.DefaultWorkingDirectory)\results\coverage_integration.xml +# ls $(System.DefaultWorkingDirectory)\results\ +# codecov -t $env:CODECOV_TOKEN --dir $(System.DefaultWorkingDirectory)\results --file coverage_gsagh.xml -F gsagh +# codecov -t $env:CODECOV_TOKEN --dir $(System.DefaultWorkingDirectory)\results --file coverage_integration.xml -F integration # env: # CODECOV_TOKEN: $(CODECOV_TOKEN) # displayName: Upload Code Coverage to codecovio @@ -76,7 +85,7 @@ steps: inputs: targetType: 'inline' script: | - $versionInfo = $(Get-Item .\GhSA\bin\x64\Release\GsaGH.dll).VersionInfo + $versionInfo = $(Get-Item .\GsaGH\bin\x64\Release\GsaGH.dll).VersionInfo echo $versionInfo $fullVersion = [array]${versionInfo}.FileVersion.split('.') $currentTime = $(Get-Date -Format "dddd MM/dd/yyyy HH:mm") @@ -105,7 +114,7 @@ steps: ignoreLASTEXITCODE: true - powershell: | - cd GhSA\bin\x64 + cd GsaGH\bin\x64 curl https://files.mcneel.com/yak/tools/latest/yak.exe -o yak.exe .\yak version cd Release @@ -122,7 +131,7 @@ steps: - task: NuGetCommand@2 inputs: command: 'pack' - packagesToPack: 'GhSA/*.csproj' + packagesToPack: 'GsaGH/*.csproj' versioningScheme: 'byEnvVar' versionEnvVar: 'dotSeparatedTag' condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables.TAG_EXISTS, 'true')) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..6e054e676 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,10 @@ +#codecov: +# notify: +# after_n_builds: 2 +flags: + gsagh: + carryforward: false + integration: + carryforward: false +ignore: + - "GsaGHTests" # ignore folders and all its contents \ No newline at end of file