Exemplo n.º 1
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddVectorParameter("Direction", "V", "Translation vector", GH_ParamAccess.item, Vector3d.Zero);
     pManager.AddVectorParameter("Axis", "V", "Rotation axis (positive rotation direction is defined by the right-hand rule).", GH_ParamAccess.item, Vector3d.XAxis);
     pManager.AddNumberParameter("Angle", "A", "Rotation angle in degrees", GH_ParamAccess.item, 0);
     pManager.AddBooleanParameter("TranslationFirst", "t", "Apply translation first? Note that when performing relative transformations, the R+T versus T+R order matters.", GH_ParamAccess.item, true);
 }
Exemplo n.º 2
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Srf", "Surface.", GH_ParamAccess.item);
     pManager.AddGenericParameter("StiffnessMatrix4Type", "D", "Membrane stiffness matrix", GH_ParamAccess.item);
     pManager.AddGenericParameter("StiffnessMatrix4Type", "K", "Flexural stiffness matrix", GH_ParamAccess.item);
     pManager.AddGenericParameter("StiffnessMatrix2Type", "H", "Shear stiffness matrix", GH_ParamAccess.item);
     pManager.AddNumberParameter("Density", "Density", "Density [t/m2]", GH_ParamAccess.item, 1);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("t1", "t1", "t1 [m]", GH_ParamAccess.item, 0.1);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("t2", "t2", "t2 [m]", GH_ParamAccess.item, 0.1);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("Alpha1", "Alpha1", "Alpha1 [1/°C]", GH_ParamAccess.item, 0.00001);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("Alpha2", "Alpha2", "Alpha2 [1/°C]", GH_ParamAccess.item, 0.00001);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddBooleanParameter("IgnoreInStImpCalc", "IgnoreInStImpCalc", "Ignore in stability/imperfection calculation", GH_ParamAccess.item, false);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("EdgeConnection", "EdgeConnection", "Optional, rigid if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("AverageSurfaceElementSize", "AvgSrfElemSize", "Finite element size. Set average surface element size. If set to 0 FEM-Design will automatically caculate the average surface element size. [m]", GH_ParamAccess.item, 0);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("Identifier", "Identifier", "Identifier.", GH_ParamAccess.item, "FS");
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 3
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Hosting Curve", "Crv", "Hosting Curve / SOFiSTiK Structural Line", GH_ParamAccess.list);
     pManager.AddIntegerParameter("LoadCase", "LoadCase", "Id of Load Case", GH_ParamAccess.list, 1);
     pManager.AddVectorParameter("Force", "Force", "Acting Force", GH_ParamAccess.list, new Vector3d());
     pManager.AddVectorParameter("Moment", "Moment", "Acting Moment", GH_ParamAccess.list, new Vector3d());
     pManager.AddBooleanParameter("HostLocal", "HostLocal", "Use local coordinate system of host", GH_ParamAccess.list, false);
 }
Exemplo n.º 4
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Point", "Pt", "Point Geometry", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Number", "Number", "Identifier of structural point", GH_ParamAccess.list, 0);
     pManager.AddVectorParameter("Dir x", "Dir x", "Direction of local x-axis", GH_ParamAccess.list, new Vector3d());
     pManager.AddVectorParameter("Dir z", "Dir z", "Direction of local z-axis", GH_ParamAccess.list, new Vector3d());
     pManager.AddTextParameter("Fixation", "Fixation", "Support condition literal", GH_ParamAccess.list, string.Empty);
 }
Exemplo n.º 5
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Hosting Point / Spt", "Pt / Spt", "Hosting Point / SOFiSTiK Structural Point", GH_ParamAccess.list);
     pManager.AddIntegerParameter("LoadCase", "LoadCase", "Id of Load Case", GH_ParamAccess.list, 1);
     pManager.AddVectorParameter("Force", "Force", "Acting Force [kN]", GH_ParamAccess.list, new Vector3d());
     pManager.AddVectorParameter("Moment", "Moment", "Acting Moment [kNm]", GH_ParamAccess.list, new Vector3d());
     pManager.AddVectorParameter("Displacement", "Disp", "Displacement [mm]", GH_ParamAccess.list, new Vector3d());
     pManager.AddVectorParameter("Rotational Displacement", "RotDisp", "Rotational Displacement [rad]", GH_ParamAccess.list, new Vector3d());
     pManager.AddBooleanParameter("HostLocal", "HostLocal", "Use local coordinate system of host", GH_ParamAccess.list, false);
 }
Exemplo n.º 6
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "Curve", "Curve defining the line load.", GH_ParamAccess.item);
     pManager.AddVectorParameter("StartForce", "StartForce", "StartForce (Moment). The start force will define the direction of the line load.", GH_ParamAccess.item);
     pManager.AddVectorParameter("EndForce", "EndForce", "EndForce (Moment). Optional. If undefined LineLoad will be uniform with a force (moment) of StartForce.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("ConstLoadDir", "ConstLoadDir", "Constant load direction? If true direction of load will be constant along action line. If false direction will vary along action line - characteristic direction is in the middle point of line. Optional.", GH_ParamAccess.item, true);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddVectorParameter("Up Direction", "U",
                                 "The up direction for the calculation of the initial orientation.", GH_ParamAccess.item,
                                 Vector3d.ZAxis);
     pManager.AddVectorParameter(RS.accelerationName, RS.accelerationNickName,
                                 RS.accelerationDescription, GH_ParamAccess.item, Vector3d.Zero);
     pManager.AddIntegerParameter(RS.lifespanName, RS.lifespanNickname, RS.lifespanDescription, GH_ParamAccess.item, RS.lifespanDefault);
     pManager.AddNumberParameter(RS.massName, RS.massNickname, RS.massDescription, GH_ParamAccess.item, RS.massDefault);
     pManager.AddNumberParameter(RS.bodySizeName, RS.bodySizeNickname, RS.bodySizeDescription, GH_ParamAccess.item, RS.bodySizeDefault);
     pManager.AddIntegerParameter(RS.historyLengthName, RS.historyLengthNickName, RS.historyLengthDescription, GH_ParamAccess.item, RS.historyLenDefault);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   pManager.AddVectorParameter("Up Direction", "U",
     "The up direction for the calculation of the initial orientation.", GH_ParamAccess.item,
     Vector3d.ZAxis);
   pManager.AddVectorParameter(RS.accelerationName, RS.accelerationNickName, 
                               RS.accelerationDescription, GH_ParamAccess.item, Vector3d.Zero);
   pManager.AddIntegerParameter(RS.lifespanName, RS.lifespanNickname, RS.lifespanDescription, GH_ParamAccess.item, RS.lifespanDefault);
   pManager.AddNumberParameter(RS.massName, RS.massNickname, RS.massDescription, GH_ParamAccess.item, RS.massDefault);
   pManager.AddNumberParameter(RS.bodySizeName, RS.bodySizeNickname, RS.bodySizeDescription, GH_ParamAccess.item, RS.bodySizeDefault);
   pManager.AddIntegerParameter(RS.historyLengthName, RS.historyLengthNickName, RS.historyLengthDescription, GH_ParamAccess.item, RS.historyLenDefault);
 }
Exemplo n.º 9
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface defining the SurfaceSupport.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Motions", "Motions", "Motions release for the surface support.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Plastic Limits Forces Motions", "PlaLimM", "Plastic limits forces for motion springs. Optional.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional, default value if undefined.", GH_ParamAccess.item, "S");
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 10
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "Curve", "Curve defining the line load.", GH_ParamAccess.item);
     pManager.AddVectorParameter("StartForce", "StartForce", "StartForce. The start force will define the direction of the line load. [kN]", GH_ParamAccess.item);
     pManager.AddVectorParameter("EndForce", "EndForce", "EndForce. Optional. If undefined LineLoad will be uniform with a force of StartForce. [kN]", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("ConstLoadDir", "ConstLoadDir", "Constant load direction? If true direction of load will be constant along action line. If false direction of load will vary along action line - characteristic direction is in the middle point of line. Optional.", GH_ParamAccess.item, true);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddBooleanParameter("LoadProjection", "LoadProjection", "LoadProjection. \nFalse: Intensity meant along action line (eg. dead load). \nTrue: Intensity meant perpendicular to direction of load (eg. snow load).", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 11
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Polyline", "P", "Polyline to extrude", GH_ParamAccess.item);
     pManager.AddVectorParameter("Direction", "D", "Extrusion direction", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Cap", "C", "Set True to cap extrusion",
                                  GH_ParamAccess.item, false);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddVectorParameter("Vec", "V", "Input Vector data.", GH_ParamAccess.tree);
     pManager[0].Optional = true;  // avoid "failed to collect data"
     pManager.AddNumberParameter("Epsilon", "E", "Precision threshold for coordinate comparison", GH_ParamAccess.item, 0.0001);
     pManager[1].Optional = true;
 }
Exemplo n.º 13
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "The terrain mesh", GH_ParamAccess.item);
     pManager[0].Optional = false;
     pManager.AddVectorParameter("Aspect", "A", "Vector representing the direction to measure aspect against", GH_ParamAccess.item, new Vector3d(0, 1, 0));
     pManager[1].Optional = true;
 }
Exemplo n.º 14
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Anchor Point", "A", "Anchor point for preview vector", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector", "V", "Vector to display", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour", "C", "Colour of vector", GH_ParamAccess.item, Color.Black);
     pManager.AddIntegerParameter("Thickness", "T", "Thickness of display vector", GH_ParamAccess.item, 1);
 }
Exemplo n.º 15
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Anchor Point", "A", "Anchor point for preview vector", GH_ParamAccess.item);
     pManager.AddVectorParameter("Vector", "V", "Vector to display", GH_ParamAccess.item);
     pManager.AddColourParameter("Colour", "C", "Colour of vector", GH_ParamAccess.item, Color.Black);
     pManager.AddIntegerParameter("Thickness", "T", "Thickness of display vector", GH_ParamAccess.item, 1);
 }
Exemplo n.º 16
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new PathParameter(), "Path Type", "T", "", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Surface", "S", "", GH_ParamAccess.item);
     pManager.AddVectorParameter("Point", "P", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Step Size", "H", "", GH_ParamAccess.item, 0.1);
 }
Exemplo n.º 17
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Point / Curve", "Pt/Crv", "Structural Element (Point/Line) or Geometry Point / Curve", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Group", "Group", "Group number of this spring", GH_ParamAccess.list, 0);
     pManager.AddNumberParameter("Axial Stiffness", "Ax. Stf.", "Stiffness of this spring in axial direction [kN/m^3]", GH_ParamAccess.list, 0.0);
     pManager.AddNumberParameter("Rotational Stiffness", "Rot. Stf", "Stiffness of this spring in rotational direction [kNm/rad]", GH_ParamAccess.list, 0.0);
     pManager.AddVectorParameter("Direction", "Dir", "Explicit Direction of this spring", GH_ParamAccess.list, new Vector3d(0, 0, 1));
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "S", "The terrain surface", GH_ParamAccess.item);
     pManager[0].Optional = false;
     pManager.AddVectorParameter("Aspect", "A", "Vector representing the direction to measure aspect against", GH_ParamAccess.item, new Vector3d(0, 1, 0));
     pManager[1].Optional = true;
     // TODO: add Mesh construction settings/parameters (Param_MeshParameters)
 }
Exemplo n.º 19
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Point", "Point", "Point. [m]", GH_ParamAccess.item);
     pManager.AddVectorParameter("Force", "Force", "Force. [kN]", GH_ParamAccess.item);
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[3].Optional = true;
 }
Exemplo n.º 20
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface.", GH_ParamAccess.item);
     pManager.AddVectorParameter("Direction", "Direction", "Direction.", GH_ParamAccess.item);
     pManager.AddGenericParameter("TopBotLocationValue", "TopBotLocVal", "Temperature at top and bottom of surface. Either 1 value (uniform) or 3 values (variable). [\x00B0C]", GH_ParamAccess.list);
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Name", "N", "Name of the load combination", GH_ParamAccess.item);
            pManager.AddBooleanParameter("GravityOn", "GO", "Turns gravity on or off for the load case", GH_ParamAccess.item);
            pManager.AddVectorParameter("Gravity Field", "GF", "The driection and aplitude of the gravity. Deafault set to 9.82 m/s^2 in negative z-direction", GH_ParamAccess.item, new Rhino.Geometry.Vector3d(0, 0, -9.82));
            pManager.AddParameter(new PointLoadParameter(), "PointLoads", "PL", "A set of pointloads", GH_ParamAccess.list);

            pManager[3].Optional = true;
        }
Exemplo n.º 22
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("A: Point/Curve", "A", "Root geometry (Point / Curve) of this Elastic Coupling", GH_ParamAccess.list);
     pManager.AddGeometryParameter("B: Reference Point/Curve", "B", "Reference geometry (Point / Curve) of this Elastic Coupling", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Group", "Group", "Group number of this Elastic Coupling", GH_ParamAccess.list, 0);
     pManager.AddNumberParameter("Axial Stiffness", "Ax. Stf.", "Stiffness of this Elastic Coupling in axial direction [kN/m^3]", GH_ParamAccess.list, 0.0);
     pManager.AddNumberParameter("Rotational Stiffness", "Rot. Stf", "Stiffness of this Elastic Coupling in rotational direction [kNm/rad]", GH_ParamAccess.list, 0.0);
     pManager.AddVectorParameter("Explicit Direction", "Dir", "Explicit Direction of this Elastic Coupling. If no direction is given, the Coupling is aligned towards its reference point (default)", GH_ParamAccess.list, new Vector3d());
 }
Exemplo n.º 23
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "Crv", "Curve Geometry", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Number", "Number", "Identifier of structural line", GH_ParamAccess.list, 0);
     pManager.AddIntegerParameter("Group", "Group", "Group number of structural line", GH_ParamAccess.list, 0);
     pManager.AddIntegerParameter("Section", "Section", "Identifier of cross section", GH_ParamAccess.list, 0);
     pManager.AddVectorParameter("Dir Z", "Dir z", "Direction of local z-axis", GH_ParamAccess.list, new Vector3d());
     pManager.AddTextParameter("Fixation", "Fixation", "Support condition literal", GH_ParamAccess.list, string.Empty);
 }
Exemplo n.º 24
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface must be flat.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Thickness", "Thickness", "Thickness. [m]", GH_ParamAccess.item);
     pManager.AddGenericParameter("Material", "Material", "Material.", GH_ParamAccess.item);
     pManager.AddGenericParameter("ShellEccentricity", "Eccentricity", "ShellEccentricity. Optional.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("ShellOrthotropy", "Orthotropy", "ShellOrthotropy. Optional.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("EdgeConnection", "EdgeConnection", "EdgeConnection. Optional.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional.", GH_ParamAccess.item, "P");
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 25
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Name", "N", "Name of the load combination", GH_ParamAccess.item);
            pManager.AddBooleanParameter("GravityOn", "GO", "Turns gravity on or off for the load case", GH_ParamAccess.item);
            pManager.AddVectorParameter("Gravity Field", "GF", "The driection and aplitude of the gravity. Deafault set to 9.82 m/s^2 in negative z-direction", GH_ParamAccess.item, new Rhino.Geometry.Vector3d(0, 0, -9.82));
            pManager.AddParameter(new PointLoadParameter(), "PointLoads", "PL", "A set of pointloads", GH_ParamAccess.list);

            pManager[3].Optional = true;
        }
Exemplo n.º 26
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface.", GH_ParamAccess.item);
     pManager.AddVectorParameter("Direction", "Direction", "Vector. Direction of force.", GH_ParamAccess.item);
     pManager.AddGenericParameter("LoadLocationValue", "LoadLocationValue", "LoadLocationValue objects. List of 3 items [q1, q2, q3].", GH_ParamAccess.list);
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[4].Optional = true;
 }
Exemplo n.º 27
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "Curve", "Curve. Line or Arc.", GH_ParamAccess.item);
     pManager.AddVectorParameter("Direction", "Dir", "Direction of load. If undefined global Z-axis will be used. For more information about direction - see FEM-Design GUI.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("TopBotLocationValue", "TopBotLocVal", "Temperature at top and bottom of surface. List should contain 2 values - start and end value. [\x00B0C]", GH_ParamAccess.list);
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 28
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface.", GH_ParamAccess.item);
     pManager.AddVectorParameter("Force", "Force", "Force. [kN/m²]", GH_ParamAccess.item);
     pManager.AddBooleanParameter("LoadProjection", "LoadProjection", "LoadProjection. \nFalse: Intensity meant along action line (eg. dead load). \nTrue: Intensity meant perpendicular to direction of load (eg. snow load).", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 29
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddBrepParameter("Brep", "Brep", "Brep / Surface Geometry", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Number", "Number", "Identifier of structural area", GH_ParamAccess.list, 0);
     pManager.AddIntegerParameter("Group", "Group", "Group numbers", GH_ParamAccess.list, 0);
     pManager.AddNumberParameter("Thickness", "Thickness", "Thickness of structural area", GH_ParamAccess.list, 0.0);
     pManager.AddIntegerParameter("Material", "Material", "Material number", GH_ParamAccess.list, 0);
     pManager.AddIntegerParameter("ReinforcementMaterial", "ReinfMat", "Reinforcement material number", GH_ParamAccess.list, 0);
     pManager.AddVectorParameter("Dir x", "Dir x", "Direction of local x-axis", GH_ParamAccess.list, new Vector3d());
 }
Exemplo n.º 30
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "Curve", "Curve along where to place the LineSupport.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("MovingLocal", "MovingLocal", "LCS changes direction along line? True/false.", GH_ParamAccess.item, false);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalY", "LocalY", "Set local y-axis. Vector must be perpendicular to Curve mid-point local x-axis. This parameter overrides OrientLCS", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddBooleanParameter("OrientLCS", "OrientLCS", "Orient LCS to GCS? If true the LCS of this object will be oriented to the GCS trying to align local z to global z if possible or align local y to global y if possible (if object is vertical). If false local y-axis from Curve coordinate system at mid-point will be used.", GH_ParamAccess.item, true);
     pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional, default value if undefined.", GH_ParamAccess.item, "S");
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 31
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface.", GH_ParamAccess.item);
     pManager.AddVectorParameter("LoadDirection", "Direction", "Vector. Direction of force.", GH_ParamAccess.item);
     pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item);
     pManager.AddNumberParameter("z0", "z0", "Surface level of soil/water (on the global Z axis). [m]", GH_ParamAccess.item);
     pManager.AddNumberParameter("q0", "q0", "Load intensity at the surface level. [kN/m²]", GH_ParamAccess.item);
     pManager.AddNumberParameter("qh", "qh", "Increment of load intensity per meter (along the global Z axis). [kN/m²/m]", GH_ParamAccess.item);
     pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item);
     pManager[6].Optional = true;
 }
Exemplo n.º 32
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "Surface", "Surface.", GH_ParamAccess.item);
     pManager.AddGenericParameter("TimberPlateMaterial", "Material", "Timber plate material.", GH_ParamAccess.item);
     pManager.AddVectorParameter("SpanDirection", "Direction", "Span direction of the timber plate.", GH_ParamAccess.item);
     pManager.AddNumberParameter("PanelWidth", "PanelWidth", "Width of each individual CLT panel in region. 1.5m if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("ShellEccentricity", "Eccentricity", "ShellEccentricity. Optional.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddGenericParameter("BorderEdgeConnection", "BorderEdgeConnection", "EdgeConnection of the external border of the panel. Optional. If not defined hinged will be used.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("AvgMeshSize", "AverageMeshSize", "Average mesh size. If zero an automatic value will be used by FEM-Design. Optional. [m]", GH_ParamAccess.item, 0);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional.", GH_ParamAccess.item, "PP");
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 33
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Name", "Name", "Name of storey", GH_ParamAccess.item);
     pManager.AddPointParameter("Origo", "Origo", "Origo of storey. Storeys can only have unique Z-coordinates. If several storeys are placed in a model their origos should share XY-coordinates.", GH_ParamAccess.item);
     pManager.AddVectorParameter("Direction", "Direction", "Direction of storey x'-axis in the XY-plane. If several storeys are placed in a model their direction should be identical. Optional, default value is GCS x-axis.", GH_ParamAccess.item);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("DimensionX", "DimensionX", "Dimension in x'-direction. [m]", GH_ParamAccess.item, 50);
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddNumberParameter("DimensionY", "DimensionY", "Dimension in y'-direction. [m]", GH_ParamAccess.item, 30);
     pManager[pManager.ParamCount - 1].Optional = true;
 }
Exemplo n.º 34
0
 /// <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.
   // You can often supply default values when creating parameters.
   // All parameters must have the correct access type. If you want 
   // to import lists or trees of values, modify the ParamAccess flag.
   pManager.AddBooleanParameter(RS.continuousFlowName, RS.continuousFlowNickname, RS.continuousFlowDescription, GH_ParamAccess.item, RS.continuousFlowDefault);
   pManager.AddIntegerParameter(RS.creationRateName, RS.creationRateNickname, RS.creationRateDescription, GH_ParamAccess.item, RS.creationRateDefault);
   pManager.AddIntegerParameter(RS.numQueleaName, RS.numQueleaNickname, RS.numQueleaDescription, GH_ParamAccess.item, RS.numAgentsDefault);
   pManager.AddVectorParameter("Minimum Initial Velocity", "mV",
     "The minimum initial velocity from which a random value will be taken.", GH_ParamAccess.item,
     Constants.VelocityMin);
   pManager.AddVectorParameter("Maximum Initial Velocity", "MV",
     "The maximum initial velocity from which a random value will be taken.", GH_ParamAccess.item,
     Constants.VelocityMax);
   pManager[1].Optional = true;
   pManager[2].Optional = true;
   // If you want to change properties of certain parameters, 
   // you can use the pManager instance to access them by index:
   //pManager[0].Optional = true;
 }
Exemplo n.º 35
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddLineParameter("Centre Line", "CL", "Centre line of the beam", GH_ParamAccess.item);
     pManager.AddParameter(new BeamPropertiesParam(), "Properties", "P", "Properties for the beam", GH_ParamAccess.item);
     pManager.AddVectorParameter("Normal", "N", "Normal of the beam", GH_ParamAccess.item);
 }
Exemplo n.º 36
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddVectorParameter("Desired Velocity", "V", "The direction you would like the particle to travel in next.", GH_ParamAccess.item);
 }
Exemplo n.º 37
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Trigger", "T", "Trigger to stream the data from Grasshopper to another application.", GH_ParamAccess.item, false);
     pManager.AddPointParameter("Origin Point", "OP", "Origin points for sent objects.", GH_ParamAccess.tree, null);
     pManager.AddPointParameter("Adaptive Points", "AP", "Adaptive component points.", GH_ParamAccess.tree, null);
     pManager.AddCurveParameter("Curve", "C", "Single arc, line, or closed planar curves.  Closed planar curves can be used to generate floor, wall or roof sketches, or single segment non-closed arcs or lines can be used for line based family generation.", GH_ParamAccess.tree);
     pManager.AddVectorParameter("Orientation", "O", "Vector to orient objects.", GH_ParamAccess.tree);
     pManager.AddVectorParameter("Orientation on Face", "F", "Orientation of the element in relation to the face it will be hosted to", GH_ParamAccess.tree);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddVectorParameter("Initial Direction", "V", "The direction to travel in initially.", GH_ParamAccess.item);
 }
Exemplo n.º 39
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   base.RegisterInputParams(pManager);
   pManager.AddVectorParameter("Force Vector", "V", "The vector to be applied to the Agent position.", GH_ParamAccess.item);
 }
Exemplo n.º 40
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Load position", "P", "Position of the poit load", GH_ParamAccess.item);
     pManager.AddVectorParameter("Force", "F", "Force. Defaulted to 0 vector.", GH_ParamAccess.item, new Vector3d(0, 0, 0));
     pManager.AddVectorParameter("Moment", "M", "Moment. Defaulted to 0 vector.", GH_ParamAccess.item, new Vector3d(0,0,0));
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
   pManager.AddBrepParameter(RS.brepName, RS.brepNickname, RS.brepForEnvironmentDescription, GH_ParamAccess.item);
   pManager.AddVectorParameter("Border Extrution Direction", "D", "A vector indicating which direction to extrude the borders of the polysurface to create border walls for containment. If the zero vector is supplied, the default is to extrude each border point normal to the surface.", GH_ParamAccess.item, Vector3d.Zero);
 }