protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new StructureParam(), "Structure", "Str", "The structure to solve", GH_ParamAccess.item);
     pManager.AddParameter(new LoadCombParameter(), "Load Combinations", "LC", "Diffrent loadcombinations for the structure", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Solve", "Go", "Toggle the solver", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Modes", "m", "The modes to optimize for", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Max Iterations", "MI", "Maximum iterations to run before brake", GH_ParamAccess.item, 100);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 /// <param name="pManager">GH_InputParamManager: This class is used during Components constructions to add input parameters.</param>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "G", "Closed Curves", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Copies", "C", "Copies", GH_ParamAccess.item,1);
     pManager.AddIntegerParameter("Priority", "P", "Priority", GH_ParamAccess.item,1);
     pManager.AddParameter(new Orientation(),"Orientation", "O", "Orientation", GH_ParamAccess.item);
         // Ha de ser un ObjectOrientation
     pManager.AddParameter(new Criterion(),"Criterion", "Cr", "Criterion", GH_ParamAccess.item);
         // Ha de ser un ObjectCriterion
 }
Exemplo n.º 3
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);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new StructureParam(), "Structure", "Str", "The structure to solve", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Solve", "Go", "Toggle the solver", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Modes", "m", "The modes to optimize for", GH_ParamAccess.list);
     pManager.AddNumberParameter("Scale factor", "sFac", "Optional scale factor. Scales all forces based on this value. Deafaults to 1", GH_ParamAccess.item, 1);
 }
Exemplo n.º 5
0
 protected override void RegisterInputParams(GH_InputParamManager manager)
 {
     manager.AddCurveParameter("Curve", "C", string.Empty, GH_ParamAccess.item);
     manager[manager.AddBooleanParameter("Visible", "V", string.Empty, GH_ParamAccess.item)].Optional = true;
     manager[manager.AddParameter(new Parameters.Category(), "Subcategory", "S", string.Empty, GH_ParamAccess.item)].Optional = true;
     manager[manager.AddParameter(new Parameters.Param_Enum <Types.GraphicsStyleType>(), "GraphicsStyle", "G", string.Empty, GH_ParamAccess.item)].Optional = true;
     manager[manager.AddIntegerParameter("Visibility", "S", string.Empty, GH_ParamAccess.item)].Optional = true;
     manager[manager.AddBooleanParameter("Symbolic", "S", string.Empty, GH_ParamAccess.item)].Optional   = true;
 }
Exemplo n.º 6
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Origin", "O", "Distribution origin.", GH_ParamAccess.item, Point3d.Origin);
     pManager.AddGeometryParameter("Geometry", "G", "Geometry to distribute.", GH_ParamAccess.list);
     pManager.AddPlaneParameter("Geometry planes", "P", "Planes for each piece of geometry.", GH_ParamAccess.list);
     pManager.AddNumberParameter("XSpacing", "X", "Spacing in the X-direction.", GH_ParamAccess.item, 2000.0);
     pManager.AddNumberParameter("YSpacing", "Y", "Spacing in the Y-direction.", GH_ParamAccess.item, 1000.0);
     pManager.AddIntegerParameter("NumColumns", "N", "Number of columns in the distribution.", GH_ParamAccess.item, 4);
 }
Exemplo n.º 7
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);
     pManager.AddTextParameter("User Text", "User Text", "Custom User Text to be passed to the SOFiSTiK input", GH_ParamAccess.list, string.Empty);
 }
Exemplo n.º 8
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.AddNumberParameter("Transversal Stiffness", "Tr. Stf", "Stiffness of this spring in transversal direction [kN/m^3]", GH_ParamAccess.list, 0.0);
     pManager.AddVectorParameter("Direction", "Dir", "Explicit Direction of this spring", GH_ParamAccess.list, new Vector3d(0, 0, 1));
 }
Exemplo n.º 9
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Number of Clusters", "N", "Number of Clusters", GH_ParamAccess.item, 2);
     pManager.AddNumberParameter("W", "W", "W", GH_ParamAccess.list);
     pManager[1].Optional = true;
     pManager.AddNumberParameter("D", "D", "D", GH_ParamAccess.list);
     pManager.AddNumberParameter("D", "D", "D", GH_ParamAccess.list);
     pManager.AddNumberParameter("D", "D", "D", GH_ParamAccess.list);
 }
Exemplo n.º 10
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new CrossSectionParameter(), "Cross Sections", "XS", "Cross sections to group. Used in optimisations procedures", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Allow Rotation", "R", "Boolean to set if rotation of the section around its own axis should be alowed or not", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Section Chooser Procedure", "SCP", "Choose wich method to use in sectionsizer." +
                                  " \n 0= check all, bottom up. Allways checks smallest to largest\n 1 = Step to one larger when overutilized \n 2= Sted up if overutilized, down if underutilized. \n 3 = Search all from current ", GH_ParamAccess.item, 0);
     pManager.AddNumberParameter("Minimum Utilization", "minU", "The minimum utilization allowed before the elementis set to converged in optimization", GH_ParamAccess.item, 0.8);
     pManager.AddNumberParameter("Maximum Utilization", "maxU", "The maximum utilization allowed before the elementis set to converged in optimization", GH_ParamAccess.item, 1);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new CrossSectionParameter(), "Cross Sections", "XS", "Cross sections to group. Used in optimisations procedures", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Allow Rotation", "R", "Boolean to set if rotation of the section around its own axis should be alowed or not", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Section Chooser Procedure", "SCP", "Choose wich method to use in sectionsizer." +
         " \n 0= check all, bottom up. Allways checks smallest to largest\n 1 = Step to one larger when overutilized \n 2= Sted up if overutilized, down if underutilized. \n 3 = Search all from current ", GH_ParamAccess.item, 0);
     pManager.AddNumberParameter("Minimum Utilization", "minU", "The minimum utilization allowed before the elementis set to converged in optimization", GH_ParamAccess.item, 0.8);
     pManager.AddNumberParameter("Maximum Utilization", "maxU", "The maximum utilization allowed before the elementis set to converged in optimization", GH_ParamAccess.item, 1);
 }
Exemplo n.º 12
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Line", "Line", "Line of axis. Line will be projected onto XY-plane.", GH_ParamAccess.item);
     pManager.AddTextParameter("Prefix", "Prefix", "Prefix of axis identifier.", GH_ParamAccess.item, "");
     pManager[pManager.ParamCount - 1].Optional = true;
     pManager.AddIntegerParameter("Id", "Id", "Number of axis identifier. Number can be converted to letter.", GH_ParamAccess.item);
     pManager.AddBooleanParameter("IdIsLetter", "IdIsLetter", "Is identifier a letter?", GH_ParamAccess.item, false);
     pManager[pManager.ParamCount - 1].Optional = false;
 }
Exemplo n.º 13
0
 /// <summary>
 /// インプットパラメータの登録
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Model", "Model", "Model Data", GH_ParamAccess.list);
     pManager.AddNumberParameter("Result", "Result", "Analysis Result", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Output Number", "N", "Output Result Number", GH_ParamAccess.item, 100);
     pManager.AddNumberParameter("Model Scale", "MSc", "Scale Model", GH_ParamAccess.item, 10);
     pManager.AddNumberParameter("Result Scale", "RSc", "Scale Model", GH_ParamAccess.item, 100);
     pManager.AddNumberParameter("High", "H", "High Model", GH_ParamAccess.item, 3000);
 }
Exemplo n.º 14
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGenericParameter("GSA Model", "GSA", "GSA model containing some results", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Load Case", "LC", "Load Case (default 1)", GH_ParamAccess.item, 1);
     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.AddIntegerParameter("No. Positions", "nP", "Number of results (positions) for each line", GH_ParamAccess.item, 10);
     pManager.AddColourParameter("Colour", "Co", "Optional list of colours to override default colours" +
                                 System.Environment.NewLine + "A new gradient will be created from the input list of colours", GH_ParamAccess.list);
     pManager.AddNumberParameter("Scale", "x:X", "Scale the result display size", GH_ParamAccess.item, 10);
     pManager[1].Optional = true;
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
Exemplo n.º 15
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Undeformed Surface", "S", "", GH_ParamAccess.item);
     pManager.AddSurfaceParameter("Deformed Surface", "s", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Youngs Modulus", "E", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Poissons Ration", "ν", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Thickness", "t", "", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Direction", "D", "", GH_ParamAccess.item, 3);
     Utility.AddNamedValues <Path.Types>(Params.Input[5]);
 }
Exemplo n.º 16
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Name", "Name", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("f pk", "f pk", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("A p", "A p", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("E p", "E p", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Rho", "Rho", "Density", GH_ParamAccess.item);
     pManager.AddIntegerParameter("RelaxationClass", "RelaxationClass", "", GH_ParamAccess.item);
     pManager.AddNumberParameter("Rho 1000", "Rho 1000", "", GH_ParamAccess.item);
 }
Exemplo n.º 17
0
 /// <summary>
 /// インプットパラメータの登録
 /// </summary>
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Mass", "M", "Lumped Mass(ton)", GH_ParamAccess.item, 10);
     pManager.AddNumberParameter("Stiffness", "K", "Spring Stiffness(kN/m)", GH_ParamAccess.item, 10);
     pManager.AddNumberParameter("Damping ratio", "h", "Damping ratio", GH_ParamAccess.item, 0.02);
     pManager.AddNumberParameter("Time Increment", "dt", "Time Increment(sec)", GH_ParamAccess.item, 0.02);
     pManager.AddNumberParameter("Beta", "Beta", "Parameters of Newmark β ", GH_ParamAccess.item, 0.25);
     pManager.AddIntegerParameter("N", "N", "Parameters of Newmark β ", GH_ParamAccess.item, 1000);
     pManager.AddTextParameter("Wave", "Wave", "Acceleration Wave(m/s^2)", GH_ParamAccess.item);
 }
Exemplo n.º 18
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.AddNumberParameter("Transversal Stiffness", "Tr. Stf", "Stiffness of this Elastic Coupling in transversal direction [kN/m^3]", 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.º 19
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.º 20
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Type", "T", "Type of advice to offer.", GH_ParamAccess.item);
            pManager.AddCurveParameter("Bounds", "B", "Region advice is being applied to.", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Program Indices", "i", "Indices of programs to apply advice to.", GH_ParamAccess.list);
            pManager.AddNumberParameter("Program Adjustments", "a", "Adjustment to be made to program.", GH_ParamAccess.list);

            pManager[2].Optional = true;
            pManager[3].Optional = true;
        }
Exemplo n.º 21
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        /// <param name="pManager">Use the pManager to register new parameters. pManager is never null.</param>
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            // set the message for this component.
            pManager.AddCurveParameter("Polylines", "P", "A list of polylines to offset", GH_ParamAccess.list);
            pManager.AddNumberParameter("Distance", "D", "Offset Distance", GH_ParamAccess.item);
            pManager.AddPlaneParameter("Plane", "Pln", "Plane to project the polylines to", GH_ParamAccess.item, default);


            pManager.AddNumberParameter("Tolerance", "T", "Tolerance: all floating point data beyond this precision will be discarded.", GH_ParamAccess.item, RhinoDoc.ActiveDoc.ModelAbsoluteTolerance);
            //public enum ClosedFilletType { Round, Square, Miter }
            pManager.AddIntegerParameter("ClosedFillet", "CF", "Closed fillet type (0 = Round, 1 = Square, 2 = Miter)", GH_ParamAccess.list, new List <int> {
                1
            });
            ////public enum OpenFilletType { Round, Square, Butt }
            pManager.AddIntegerParameter("OpenFillet", "OF", "Open fillet type (0 = Round, 1 = Square, 2 = Butt)", GH_ParamAccess.list, new List <int> {
                1
            });
            pManager.AddNumberParameter("Miter", "M", "If closed fillet type of Miter is selected: the maximum extension of a curve is Distance * Miter", GH_ParamAccess.item, 2);
        }
Exemplo n.º 22
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Text", "T", "Text to convert", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Conversion", "C", "Specify conversion type", GH_ParamAccess.item, 0);

            var conVals = pManager[1] as Param_Integer;

            conVals.AddNamedValue("PascalCase", 0);
            conVals.AddNamedValue("camelCase", 1);
            conVals.AddNamedValue("Title Case", 2);
        }
Exemplo n.º 23
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddGeometryParameter("Structural Elements", "Se", "Collection of SOFiSTiK Structural elements", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Init System", "Init System", "Initializes a new SOFiSTiK calculation system. At least one SOFiMSHC component needs this to be true. If true, all existing system data gets deleted", GH_ParamAccess.item, true);
     pManager.AddBooleanParameter("Create mesh", "Create Mesh", "Activates mesh generation", GH_ParamAccess.item, true);
     pManager.AddNumberParameter("Mesh Density", "Mesh Density", "Sets the maximum element size in [m] (parameter HMIN in SOFiMSHC)", GH_ParamAccess.item, 0.0);
     pManager.AddNumberParameter("Intersection tolerance", "Tolerance", "Geometric intersection tolerance in [m]", GH_ParamAccess.item, 0.01);
     pManager.AddIntegerParameter("Start Index", "Start Index", "Start index for automatically assigned element numbers", GH_ParamAccess.item, 10000);
     pManager.AddTextParameter("Control Values", "Add. Ctrl", "Additional SOFiMSHC control values", GH_ParamAccess.item, string.Empty);
     pManager.AddTextParameter("User Text", "User Text", "Additional text input being placed after the definition of structural elements", GH_ParamAccess.item, string.Empty);
 }
Exemplo n.º 24
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Path", "P", "Path to folder", GH_ParamAccess.item);
            pManager.AddBooleanParameter("Recursive", "R", "Include recursive folder", GH_ParamAccess.item, recursive);
            pManager.AddBooleanParameter("As Mesh", "M", "Create Mesh instead of PointCloud", GH_ParamAccess.item, asMesh);
            pManager.AddIntegerParameter("Point Skip", "S", "# of points to ignore", GH_ParamAccess.item, 1);

            pManager[1].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
        }
Exemplo n.º 25
0
 void Inputs(GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Polylines", "P", "Polylines", GH_ParamAccess.list);
     pManager.AddNumberParameter("Variables", "V", "0. Extrusion diameter (mm).\r\n1. Plunge distance (mm).\r\n2. Unsupported nodes vertical offset (mm).\r\n3. Unsupported segments rotation compensation (rad). \r\n4. Distance ahead to stop in upwards segments as a factor of length (0..1).\r\n5. Horizontal displacement before downward segment (mm).", GH_ParamAccess.list);
     pManager.AddParameter(new TargetParameter(), "Target", "T", "Target reference. Will use tool, frame and orientation of this target.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Speeds", "S", "0. Approach speed.\r\n1. Plunge speed.\r\n2. Supported segments\r\n3. Downward segments\r\n4. Unsupported nodes", GH_ParamAccess.list);
     pManager.AddNumberParameter("Wait times", "W", "0. Wait time after extrusion.\r\n1. Wait time ahead stop.\r\n2. Wait on supported node before unsupported segment.\r\n3. Wait on unsupported node.", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Digital outputs", "D", "The indices of the two digital outputs connected to the extruder.", GH_ParamAccess.list);
     pManager.AddGeometryParameter("Environment", "E", "Environment to detect supported nodes and segments. Should be only meshes or polylines.", GH_ParamAccess.list);
     pManager[6].Optional = true;
 }
Exemplo n.º 26
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new CurveOnSurfaceParameter(), "Curve on Surface", "C", "", GH_ParamAccess.item);
            pManager.AddNumberParameter("Start Parameter", "A", "", GH_ParamAccess.item);
            pManager.AddNumberParameter("End Parameter", "B", "", GH_ParamAccess.item);
            pManager.AddNumberParameter("Tolerance", "T", "", GH_ParamAccess.item, 1e-6);
            pManager.AddIntegerParameter("Maximum Iterations", "N", "", GH_ParamAccess.item, 1000);

            pManager[1].Optional = true;
            pManager[2].Optional = true;
        }
Exemplo n.º 27
0
        protected override void RegisterInputParams(GH_InputParamManager manager)
        {
            manager.AddBrepParameter("Brep", "B", "Brep to set its solid orientation", GH_ParamAccess.item);
            var param = manager[manager.AddIntegerParameter("Orientation", "O", "Outward=1, Inward=-1", GH_ParamAccess.item)];

            if (param is Param_Integer orientation)
            {
                orientation.AddNamedValue("Outward", (int)Rhino.Geometry.BrepSolidOrientation.Outward);
                orientation.AddNamedValue("Inward", (int)Rhino.Geometry.BrepSolidOrientation.Inward);
            }
        }
Exemplo n.º 28
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Gamma mu", "Gamma mu", "Gamma mu.", GH_ParamAccess.item);
     pManager.AddNumberParameter("Gamma ma", "Gamma ma", "Gamma ma.", GH_ParamAccess.item);
     pManager.AddNumberParameter("kdef U", "kdef U", "kdef (U, Ua, Us).", GH_ParamAccess.item);
     pManager.AddNumberParameter("kdef Sq", "kdef Sq", "kdef (Sq).", GH_ParamAccess.item);
     pManager.AddNumberParameter("kdef Sf", "kdef Sf", "kdef (Sf).", GH_ParamAccess.item);
     pManager.AddNumberParameter("kdef Sc", "kdef Sc", "kdef (Sc).", GH_ParamAccess.item);
     pManager.AddIntegerParameter("serviceClass", "serviceClass", "Service class 1/2/3.", GH_ParamAccess.item);
     pManager.AddNumberParameter("systemFactor", "systemFactor", "System factor.", GH_ParamAccess.item);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddSurfaceParameter("Surface", "S", "Base landscape form (as a surface) for the flow calculation", GH_ParamAccess.item);
     pManager.AddPointParameter("Points", "P", "Start points for the flow paths. These should be above the surface (they will be projected on to it)", GH_ParamAccess.list);
     pManager.AddNumberParameter("Fidelity", "F", "Amount to move for each flow iteration. Small numbers may take a long time to compute. If not specified or set to 0 a (hopefully) sensible step size will be calculated.", GH_ParamAccess.item, 0);
     pManager[2].Optional = true;
     pManager.AddIntegerParameter("Steps", "L", "A limit to the number of flow iterations. Leave unset or to 0 for an unlimited set of iterations", GH_ParamAccess.item, 0);
     pManager[3].Optional = true;
     pManager.AddBooleanParameter("Thread", "T", "Whether to multithread the solution (this can speed up long calculations)", GH_ParamAccess.item, false);
     pManager[4].Optional = true;
 }
Exemplo n.º 30
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new DisplayGeometryParameter(), "Display style", "D", "Display style.", GH_ParamAccess.list);
            pManager.AddIntegerParameter("Export type", "E", "Export type.", GH_ParamAccess.item, 0);
            pManager.AddTextParameter("Folder", "F", "Folder to export to. End without backslash.", GH_ParamAccess.item);
            pManager.AddTextParameter("File name", "N", "File name. Omit the extension.", GH_ParamAccess.item);
            var param = pManager[1] as Param_Integer;

            param.AddNamedValue("HTML (WebGL model, requires the Iris plugin)", 0);
            param.AddNamedValue("FBX (flips YZ components for Unity interop)", 1);
        }
Exemplo n.º 31
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            base.RegisterInputParams(pManager);

            pManager.AddBrepParameter("Brep", "B", "Surface as a Brep.", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Side", "S", "Side of the surface to use for flank machining as a bitmask.", GH_ParamAccess.item, 0);
            pManager.AddBooleanParameter("Zigzag", "Z", "Alternate the cutting direction of each pass.", GH_ParamAccess.item, false);
            pManager.AddNumberParameter("PathExtension", "Pe", "Extend the path by an amount.", GH_ParamAccess.item, 0.0);
            pManager.AddNumberParameter("DepthExtension", "De", "Extend the depth of the rules by an amount.", GH_ParamAccess.item, 0.0);
            pManager.AddNumberParameter("MaxDepth", "Md", "Maximum depth of the cut.", GH_ParamAccess.item, 50.0);
        }
Exemplo n.º 32
0
        protected override void RegisterInputParams(GH_InputParamManager manager)
        {
            var type = manager[manager.AddIntegerParameter("Type", "T", "Category type", GH_ParamAccess.item, (int)Autodesk.Revit.DB.CategoryType.Model)] as Grasshopper.Kernel.Parameters.Param_Integer;

            type.AddNamedValue("Model", 1);
            type.AddNamedValue("Annotation", 2);
            type.AddNamedValue("Analytical", 4);
            type.Optional = true;
            manager[manager.AddBooleanParameter("AllowsParameters", "A", "Allows bound parameters", GH_ParamAccess.item, true)].Optional = true;
            manager[manager.AddBooleanParameter("HasMaterialQuantities", "M", "Has material quantities", GH_ParamAccess.item)].Optional  = true;
        }
Exemplo n.º 33
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Name", "Name", "Name of LoadGroup.", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Type", "Type", "LoadGroup type.", GH_ParamAccess.item, 0);
            pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase to include in LoadGroup. Single LoadCase or list of LoadCases.", GH_ParamAccess.list);
            pManager.AddGenericParameter("LoadCategory", "LoadCategory", "Psi (\u03A8) values to apply when combining loads (not needed for permanent group).", GH_ParamAccess.item);
            pManager.AddNumberParameter("StandardUnfavourableSafetyFactor", "StandardUnfavourableSafetyFactor", "Unfavourable safety factor to multiply load with. [-]", GH_ParamAccess.item);
            pManager.AddNumberParameter("StandardFavourableSafetyFactor", "StandardFavourableSafetyFactor", "Favourable safety factor to multiply load with  (only needed for permanent loads). [-]", GH_ParamAccess.item, 1);
            pManager.AddNumberParameter("AccidentalUnfavourableSafetyFactor", "AccidentalUnfavourableSafetyFactor", "Unfavourable safety factor to multiply load with (for accidental combinations). [-]", GH_ParamAccess.item, 1);
            pManager.AddNumberParameter("AccidentalFavourableSafetyFactor", "AccidentalFavourableSafetyFactor", "Favourable safety factor to multiply load with (for accidental combinations). [-]", GH_ParamAccess.item, 1);
            pManager.AddIntegerParameter("LoadCaseRelationship", "LoadCaseRelationship", "Specifies how the load cases are related.", GH_ParamAccess.item, 0);
            pManager.AddNumberParameter("Xi", "Xi", "Factor to multiply permanent load with (only needed for permanent loads). [-]", GH_ParamAccess.item);
            pManager.AddIntegerParameter("PotentiallyLeadingAction", "PotentiallyLeadingAction", "True if the load cases in the group can be leading actions.", GH_ParamAccess.item, 1);

            // Named values instead of integers
            Param_Integer type = pManager[1] as Param_Integer;

            type.AddNamedValue("permanent", 0);
            type.AddNamedValue("temporary", 1);

            Param_Integer loadCaseRelation = pManager[8] as Param_Integer;

            loadCaseRelation.AddNamedValue("entire", 0);
            loadCaseRelation.AddNamedValue("alternative", 1);

            Param_Integer potentiallyLeadingAction = pManager[10] as Param_Integer;

            potentiallyLeadingAction.AddNamedValue("False", 0);
            potentiallyLeadingAction.AddNamedValue("True", 1);

            // Set optional parameters
            List <int> optionalParameters = new List <int>()
            {
                1, 3, 5, 6, 7, 9, 10
            };

            foreach (int parameter in optionalParameters)
            {
                pManager[parameter].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
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        /// <param name="pManager">Use the pManager to register new parameters. pManager is never null.</param>
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            EvenOdd = EvenOdd;
            pManager.AddCurveParameter("A", "A", "The first polyline", GH_ParamAccess.list);
            pManager.AddCurveParameter("B", "B", "The first polyline", GH_ParamAccess.list);
            pManager[1].Optional = true;
            // ctIntersection, ctUnion, ctDifference, ctXor };
            pManager.AddIntegerParameter("BooleanType", "BT", "Type: (0: intersection, 1: union, 2: difference, 3: xor)", GH_ParamAccess.item, 0);

            pManager.AddPlaneParameter("Plane", "Pln", "Plane to project the polylines to", GH_ParamAccess.item, default);
            pManager.AddNumberParameter("Tolerance", "T", "Tolerance: all floating point data beyond this precision will be discarded.", GH_ParamAccess.item, RhinoDoc.ActiveDoc.ModelAbsoluteTolerance);
        }
Exemplo n.º 36
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("ShowColor", "PC", "Whether pixels are colored or not.", GH_ParamAccess.item,
                                  _showPixelColor);
     pManager.AddBooleanParameter("PointsList", "PL", "Write out a list of points (will be slow).",
                                  GH_ParamAccess.item, _writeOutPoints);
     pManager.AddNumberParameter("PointSize", "PS", "The size of the points within the point cloud, as displayed by this component.",
                                 GH_ParamAccess.item, _pixelSize);
     pManager.AddIntegerParameter("AverageFrames", "AF",
                                  "Amount of depth frames to average across. This number has to be greater than zero.",
                                  GH_ParamAccess.item, averageFrames);
     pManager.AddIntegerParameter("BlurRadius", "BR", "Radius for Gaussian blur.", GH_ParamAccess.item,
                                  blurRadius);
     pManager.AddGenericParameter("SandwormOptions", "SWO", "Setup & Calibration options", 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;
 }
Exemplo n.º 37
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Name", "N", "Program name", GH_ParamAccess.item, "DefaultProgram");
     pManager.AddParameter(new RobotSystemParameter(), "Robot system", "R", "Robot system used in program", GH_ParamAccess.item);
     pManager.AddParameter(new TargetParameter(), "Targets 1", "T1", "List of targets for the first robot", GH_ParamAccess.list);
     pManager.AddParameter(new TargetParameter(), "Targets 2", "T2", "List of targets for the second robot", GH_ParamAccess.list);
     pManager.AddParameter(new CommandParameter(), "Init commands", "C", "Optional list of commands that will run at the start of the program", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Multifile indices", "I", "Optional list of indices to split the program into multiple files. The indices correspond to the first target of the aditional files", GH_ParamAccess.list);
     pManager.AddNumberParameter("Step Size", "S", "Distance in mm to step through linear motions, used for error checking and program simulation. Smaller is more accurate but slower", GH_ParamAccess.item, 1);
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new NodeParam(), "Restraint Nodes", "RN",
                "A list of nodes that may contain restraints", GH_ParamAccess.list);

            pManager.AddParameter(new BeamParam(), "Beams", "B",
                "Beams that the structure should consist of", GH_ParamAccess.list);

            // Woops, should be restraints!
            //pManager.AddParameter(
            //    new BeamReleaseParameter(), "Releases", "R", "Releases for the structure", GH_ParamAccess.list);

            pManager.AddIntegerParameter("Mode", "m", "The mode to evaluate", GH_ParamAccess.item);
            pManager.AddBooleanParameter("Solve", "Go", "Toggle the solver", GH_ParamAccess.item);
        }
Exemplo n.º 39
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Integer", "I", "An integer", GH_ParamAccess.item);
     pManager.AddBooleanParameter("CrazyException", "Ex", "Throws an exception from C++", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Boolean", "B", "A boolean", GH_ParamAccess.item);
 }
Exemplo n.º 40
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            pManager.AddParameter(new ProgramParameter(), "Program", "P", "Program", GH_ParamAccess.item);
            pManager.AddIntegerParameter("First set", "A", "First set of objects. Input a list of index values that correspond to the first collision group. The order is the same as the meshes output of the kinematics component. The environment would be an additional last mesh.", GH_ParamAccess.list, new int[] { 7 });
            pManager.AddIntegerParameter("Second set", "B", "Second set of objects. Input a list of index values that correspond to the second collision group. The order is the same as the meshes output of the kinematics component. The environment would be an additional last mesh.", GH_ParamAccess.list, new int[] { 4 });
            pManager.AddMeshParameter("Environment", "E", "Single mesh object representing the environment", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Environment plane", "P", "If attached to the robot, plane index where the environment is attached to", GH_ParamAccess.item, -1);
            pManager.AddNumberParameter("Linear step size", "Ls", "Linear step size in mm to check for collisions", GH_ParamAccess.item, 100);
            pManager.AddNumberParameter("Angular step size", "As", "Angular step size in rad to check for collisions", GH_ParamAccess.item, PI / 4);

            pManager[3].Optional = true;
        }
Exemplo n.º 41
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("AO", "A", "Analog output number", GH_ParamAccess.item);
     pManager.AddNumberParameter("Value", "V", "Analog output value", GH_ParamAccess.item);
 }
Exemplo n.º 42
0
        protected override void RegisterInputParams(GH_InputParamManager pManager)
        {
            //0
            pManager.AddGeometryParameter("Geometry", "Geom", "Input Surface or Mesh", GH_ParamAccess.item);

            //1
            pManager.AddGenericParameter("TargetLengthFunction", "L", "A function determining local edge length", GH_ParamAccess.item);

            //2
            pManager.AddCurveParameter("FixCurves", "FixC", "Curves which will be kept sharp during remeshing. Can be boundary or internal curves", GH_ParamAccess.list);
            pManager[2].Optional = true;

            //3
            pManager.AddPointParameter("FixVertices", "FixV", "Points to keep fixed during remeshing", GH_ParamAccess.list);
            pManager[3].Optional = true;

            //4
            pManager.AddIntegerParameter("Flip", "Flip", "Criterion used to decide when to flip edges (0 for valence based, 1 for angle based)", GH_ParamAccess.item, 1);

            //5
            pManager.AddNumberParameter("PullStrength", "Pull", "Strength of pull to target geometry (between 0 and 1). Set to 0 for minimal surfaces", GH_ParamAccess.item, 0.8);

            //6
            pManager.AddIntegerParameter("Iterations", "Iter", "Number of steps between outputs", GH_ParamAccess.item, 1);

            //7
            pManager.AddBooleanParameter("Reset", "Reset", "True to initialize, false to run remeshing. Connect a timer for continuous remeshing", GH_ParamAccess.item, true);
        }
Exemplo n.º 43
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddParameter(new StructureParam(), "Structure", "Str", "The structure to solve", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Modes", "m", "The modes to evaluate", GH_ParamAccess.list);
     pManager.AddBooleanParameter("Solve", "Go", "Toggle the solver", GH_ParamAccess.item);
 }
Exemplo n.º 44
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);
 }
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("Mode number", "M", "The mode number that you want to evaluate", GH_ParamAccess.item);
 }
Exemplo n.º 46
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Plane", "P", "Frame plane", GH_ParamAccess.item, Plane.WorldXY);
     pManager.AddIntegerParameter("Coupled mechanical group", "G", "Index of the mechanical group where the coupled mechanism or robot belongs, or -1 for no coupling.", GH_ParamAccess.item, -1);
     pManager.AddIntegerParameter("Coupled mechanism", "M", "Index of kinematically coupled mechanism or -1 for coupling of a robot in a multi robot cell. If input G is -1 this has no effect.", GH_ParamAccess.item, -1);
 }
Exemplo n.º 47
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("DO", "D", "Digital output number", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Value", "V", "Digital output value", GH_ParamAccess.item);
 }
Exemplo n.º 48
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("DI", "D", "Digital input number", GH_ParamAccess.item);
 }
Exemplo n.º 49
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddIntegerParameter("DO", "D", "Digital output number", GH_ParamAccess.item);
     pManager.AddNumberParameter("Time", "T", "Duration of pulse", GH_ParamAccess.item,0.2);
 }
Exemplo n.º 50
0
 protected override void RegisterInputParams(GH_InputParamManager pManager)
 {
     pManager.AddNumberParameter("Degrees", "D", "Degrees", GH_ParamAccess.list);
     pManager.AddParameter(new RobotSystemParameter(), "Robot system", "R", "Robot system", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Mechanical group", "G", "Mechanical group index", GH_ParamAccess.item, 0);
 }