-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
member eccentricities and cross sextions
member eccentricities added new geometric properties in cross section component member eccentricities considered in visualization of extruded members
- Loading branch information
1 parent
dbe5983
commit 62203af
Showing
77 changed files
with
4,571 additions
and
555 deletions.
There are no files selected for viewing
Binary file modified
BIN
+4.09 KB
(110%)
Examples/01 - Get Data/01 Parametric FEM Toolbox - Get Data.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/01 - Get Data/01 Parametric FEM Toolbox - Get Data.rf5
Binary file not shown.
Binary file modified
BIN
+6.44 KB
(110%)
Examples/02 - Set Data/02 Parametric FEM Toolbox - Set Data.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/02 - Set Data/02 Parametric FEM Toolbox - Set Data.rf5
Binary file not shown.
Binary file modified
BIN
+6.87 KB
(110%)
Examples/03 - Concrete Building/03 Parametric FEM Toolbox - Concrete Building.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/03 - Concrete Building/03 Parametric FEM Toolbox - Concrete Building.rf5
Binary file not shown.
Binary file modified
BIN
+1.44 KB
(110%)
Examples/04 - Scripting/04 Parametric FEM Toolbox - Scripting.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/04 - Scripting/04 Parametric FEM Toolbox - Scripting.rf5
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-3.24 KB
(85%)
Examples/06 - Extrude Members/06 Parametric FEM Toolbox - Extrude Members.gh
Binary file not shown.
Binary file modified
BIN
+2.45 MB
(560%)
Examples/06 - Extrude Members/06 Parametric FEM Toolbox - Extrude Members.rf5
Binary file not shown.
Binary file modified
BIN
+1.89 KB
(110%)
Examples/07 - Calculation/07 Parametric FEM Toolbox - Calculation.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/07 - Calculation/07 Parametric FEM Toolbox - Calculation.rf5
Binary file not shown.
Binary file modified
BIN
-1.53 KB
(96%)
Examples/08 - Optimization/08 Parametric FEM Toolbox - Optimization.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/08 - Optimization/08 Parametric FEM Toolbox - Optimization.rf5
Binary file not shown.
Binary file modified
BIN
-2.71 KB
(100%)
Examples/09 - NurbsSurfaces/09 Parametric FEM Toolbox - NurbsSurfaces.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/09 - NurbsSurfaces/09 Parametric FEM Toolbox - NurbsSurfaces.rf5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
504 changes: 504 additions & 0 deletions
504
Parametric_FEM_Toolbox/Parametric_FEM_Toolbox/Deprecated/Component_GetData_GUI_OBSOLETE_6.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 154 additions & 0 deletions
154
...metric_FEM_Toolbox/Parametric_FEM_Toolbox/Deprecated/Component_RFCroSec_GUI_OBSOLETE_3.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
using Grasshopper.Kernel; | ||
using Rhino.Geometry; | ||
|
||
using Parametric_FEM_Toolbox.RFEM; | ||
using Parametric_FEM_Toolbox.Utilities; | ||
using Dlubal.RFEM5; | ||
using System.Runtime.InteropServices; | ||
using Parametric_FEM_Toolbox.UIWidgets; | ||
using Grasshopper.Kernel.Parameters; | ||
using Grasshopper.Kernel.Types; | ||
|
||
namespace Parametric_FEM_Toolbox.Deprecated | ||
{ | ||
public class Component_RFCroSec_GUI_OBSOLETE_3 : GH_SwitcherComponent | ||
{ | ||
// Declare class variables outside the method "SolveInstance" so their values persist | ||
// when the method is called again. | ||
private List<SubComponent> subcomponents_ = new List<SubComponent>(); | ||
public override string UnitMenuName => "Type of Component"; | ||
protected override string DefaultEvaluationUnit => subcomponents_[0].name(); | ||
|
||
|
||
/// <summary> | ||
/// Each implementation of GH_Component must provide a public | ||
/// constructor without any arguments. | ||
/// Category represents the Tab in which the component will appear, | ||
/// Subcategory the panel. If you use non-existing tab or panel names, | ||
/// new tabs/panels will automatically be created. | ||
/// </summary> | ||
public Component_RFCroSec_GUI_OBSOLETE_3() | ||
: base("RF Cross Section", "RFCroSec", "Assembles and Disassembles RFCroSec objects.", "B+G Toolbox", "RFEM") | ||
{ | ||
this.Hidden = (true); | ||
} | ||
|
||
// Define Keywords to search for this Component more easily in Grasshopper | ||
public override IEnumerable<string> Keywords => new string[] {"rf", "rfcrosssection",}; | ||
|
||
|
||
/// <summary> | ||
/// Registers all the input parameters for this component. | ||
/// </summary> | ||
protected override void RegisterInputParams(GH_InputParamManager pManager) | ||
{ | ||
// Use the pManager object to register your input parameters. | ||
//pManager.AddBooleanParameter("Nodes in RFEM Model", "Nodes", "Nodes to get from the RFEM Model.", GH_ParamAccess.item, false); | ||
|
||
// If you want to change properties of certain parameters, | ||
// you can use the pManager instance to access them by index: | ||
// pManager[0].Optional = true; | ||
|
||
|
||
} | ||
|
||
/// <summary> | ||
/// Registers all the output parameters for this component. | ||
/// </summary> | ||
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager) | ||
{ | ||
// Use the pManager object to register your output parameters. | ||
// Output parameters do not have default values, but they too must have the correct access type. | ||
|
||
|
||
// Sometimes you want to hide a specific parameter from the Rhino preview. | ||
// You can use the HideParameter() method as a quick way: | ||
// pManager.HideParameter(0); | ||
} | ||
|
||
protected override void OnComponentLoaded() | ||
{ | ||
base.OnComponentLoaded(); | ||
foreach (SubComponent item in subcomponents_) | ||
{ | ||
item.OnComponentLoaded(); | ||
} | ||
} | ||
|
||
// The PostConstructor is called from within each constructor.DO NOT OVERRIDE THIS unless you know what you are doing. | ||
protected override void RegisterEvaluationUnits(EvaluationUnitManager mngr) | ||
{ | ||
subcomponents_.Add(new SubComponent_RFCroSec_Assemble_GUI_OBSOLETE()); | ||
subcomponents_.Add(new SubComponent_RFCroSec_Disassemble_GUI_OBSOLETE_2()); | ||
|
||
foreach (SubComponent item in subcomponents_) | ||
{ | ||
item.registerEvaluationUnits(mngr); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// This is the method that actually does the work. | ||
/// </summary> | ||
/// <param name="DA">The DA object can be used to retrieve data from input parameters and | ||
/// to store data in output parameters.</param> | ||
protected override void SolveInstance(IGH_DataAccess DA, EvaluationUnit unit) | ||
{ | ||
if (unit != null) | ||
{ | ||
foreach (SubComponent item in subcomponents_) | ||
{ | ||
if (unit.Name.Equals(item.name())) | ||
{ | ||
item.SolveInstance(DA, out string msg, out GH_RuntimeMessageLevel level); | ||
if (msg != "") | ||
{ | ||
this.AddRuntimeMessage(level, msg + "It may cause errors."); | ||
} | ||
return; | ||
} | ||
} | ||
throw new Exception("Invalid sub-component"); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// The Exposure property controls where in the panel a component icon | ||
/// will appear. There are seven possible locations (primary to septenary), | ||
/// each of which can be combined with the GH_Exposure.obscure flag, which | ||
/// ensures the component will only be visible on panel dropdowns. | ||
/// </summary> | ||
public override GH_Exposure Exposure | ||
{ | ||
get { return GH_Exposure.hidden; } | ||
} | ||
|
||
/// <summary> | ||
/// Provides an Icon for every component that will be visible in the User Interface. | ||
/// Icons need to be 24x24 pixels. | ||
/// </summary> | ||
protected override System.Drawing.Bitmap Icon | ||
{ | ||
get | ||
{ | ||
// You can add image files to your project resources and access them like this: | ||
//return Resources.IconForThisComponent; | ||
return Properties.Resources.Assemble_CroSec; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Each component must have a unique Guid to identify it. | ||
/// It is vital this Guid doesn't change otherwise old ghx files | ||
/// that use the old ID will partially fail during loading. | ||
/// </summary> | ||
public override Guid ComponentGuid | ||
{ | ||
get { return new Guid("c5e6486e-a735-4c6c-964e-c9074239892c"); } | ||
} | ||
} | ||
} |
Oops, something went wrong.