-
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.
- nodal releases - free line loads - surface support - support non-linearities - result combinations fixed - component for input for LCA - Nurbs Surfaces Supported - fix arc lines
- Loading branch information
1 parent
0d2869a
commit 1d2775c
Showing
122 changed files
with
8,881 additions
and
631 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+511 Bytes
(100%)
Examples/03 - Concrete Building/03 RFCOM - Concrete Building.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/03 - Concrete Building/03 RFCOM - Concrete Building.rf5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2.35 KB
(110%)
Examples/06 - Extrude Members/06 RFCOM - Extrude Members.gh
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Examples/06 - Extrude Members/06 RFCOM - Extrude Members.rf5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added
BIN
+456 KB
Parametric_FEM_Toolbox/.vs/Parametric_FEM_Toolbox/v16/-DESKTOP-KET-DAQ.suo
Binary file not shown.
Binary file not shown.
176 changes: 176 additions & 0 deletions
176
...tric_FEM_Toolbox/Parametric_FEM_Toolbox/Deprecated/Component_FilterData_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,176 @@ | ||
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; | ||
using Parametric_FEM_Toolbox.GUI; | ||
|
||
namespace Parametric_FEM_Toolbox.Deprecated | ||
{ | ||
public class Component_FilterData_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 Filter"; | ||
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_FilterData_GUI_OBSOLETE_3() | ||
: base("Filter Data", "Filter Data", "Filter RFEM Objects from the Model.", "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", "filter", "data"}; | ||
|
||
|
||
/// <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; | ||
|
||
pManager.AddTextParameter("Item Numbers", "No", "Item Numbers. The RFEM criterium for defining lists is accepted.", GH_ParamAccess.list); | ||
pManager[0].Optional = true; | ||
pManager.AddTextParameter("Comment", "Comment", "Comment", GH_ParamAccess.list); | ||
pManager[1].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. | ||
|
||
pManager.RegisterParam(new Param_Filter(), "Filter", "Filter", "Output Filter.", GH_ParamAccess.item); | ||
|
||
// 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_Filter_Nodes_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_Lines_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_Members_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_Surfaces_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_Openings_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_SupsP_GUI_OBSOLETE()); | ||
subcomponents_.Add(new SubComponent_Filter_SupsL_GUI_OBSOLETE()); | ||
subcomponents_.Add(new SubComponent_Filter_SupsS_GUI_OBSOLETE()); | ||
subcomponents_.Add(new SubComponent_Filter_MemberHinges_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_LineHinges_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_CroSecs_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_Materials_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_NodalLoads_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_LineLoads_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_MemberLoads_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_SurfaceLoads_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_FreePolygonLoads_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_LoadCases_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_LoadCombos_GUI()); | ||
subcomponents_.Add(new SubComponent_Filter_ResultCombos_GUI()); | ||
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.icon_RFEM_Filter; | ||
} | ||
} | ||
|
||
/// <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("3013b1f6-6ec1-40bc-a1bc-8f4f10deaaf3"); } | ||
} | ||
} | ||
} |
Oops, something went wrong.