/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("lines", "BEAM", "Line of elements", GH_ParamAccess.list); pManager.AddNumberParameter("Material No. List", "mat", "[...](DataList)", GH_ParamAccess.list, new List <double> { -9999 }); /// pManager.AddNumberParameter("Section No. List", "sec", "[...](DataList)", GH_ParamAccess.list, new List <double> { -9999 }); /// pManager.AddNumberParameter("Element Angle List", "angle", "[...](DataList)", GH_ParamAccess.list, new List <double> { -9999 }); /// pManager.AddSurfaceParameter("shells", "SHELL", "Plate of elements", GH_ParamAccess.list); pManager.AddNumberParameter("Material No. List(shell)", "mat(shell)", "[...](DataList)", GH_ParamAccess.list, new List <double> { -9999 }); /// pManager.AddNumberParameter("thickness List", "thick", "[...](DataList)", GH_ParamAccess.list, new List <double> { -9999 }); /// pManager.AddLineParameter("springs", "slines", "Line of spring elements", GH_ParamAccess.list); pManager.AddNumberParameter("E", "E", "[[kx+,kx-,ky+,ky-,kz+,kz-,kmx,kmy,kmz],...(DataTree)]", GH_ParamAccess.tree, -9999); /// pManager.AddLineParameter("dampers", "dlines", "Line of viscous damper elements", GH_ParamAccess.list); pManager.AddNumberParameter("KCa", "KCa", "[[Kd[kN/m], ad, Cd[kN/(m/sec)^(1/ad)],...(DataTree)]", GH_ParamAccess.tree, -9999); /// pManager[0].Optional = true; pManager[4].Optional = true; pManager[7].Optional = true; pManager[9].Optional = true; }
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddMeshParameter("Mesh", "Mesh", "Mesh needed for topology", GH_ParamAccess.item); pManager.AddVectorParameter("InsertionVec", "InsertionVec", "Insertion vectors", GH_ParamAccess.tree); pManager.AddCurveParameter("Panels", "Panels", "Panel outlines as polylines", GH_ParamAccess.tree); //pManager.AddGenericParameter("Joints", "Joints", "Joint Parameters", GH_ParamAccess.tree); pManager.AddPointParameter("TwoJoints", "TwoJoints", "Two joint points markers", GH_ParamAccess.list); pManager.AddLineParameter("ExtendedJoints", "ExtendedJoints", "Extended joint as lines markers", GH_ParamAccess.list); pManager.AddLineParameter("DeeperCutsJoints", "DeeperCutsJoints", "DeeperCutsJoints as lines markers", GH_ParamAccess.list); pManager.AddBooleanParameter("Center", "Center", "Orient joint to the centre", GH_ParamAccess.item, false); pManager.AddBooleanParameter("Finger", "Finger", "Create finger joint", GH_ParamAccess.item, false); pManager.AddIntegerParameter("Iterations", "Iterations", "Iterations", GH_ParamAccess.item, 1); pManager.AddIntegerParameter("Sequence", "Sequence", "Sequence", GH_ParamAccess.list, 1); pManager.AddNumberParameter("TextScale", "TextScale", "0 - Panel Size, 1 - Joint Size, 2 - Adj Size, 3 - Adj Pos, 4 - Adj Scale Center, 5 - Joint Pos, 6 - last elements, 7 - extend" + "", GH_ParamAccess.list, new List <double> { 30, 12, 15, 0.5, 0.6, 0, 1, 5 }); for (int i = 0; i < pManager.ParamCount; i++) { pManager[i].Optional = true; } }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Floor Edges", "F", "Edges for the Floors", GH_ParamAccess.list); pManager.AddLineParameter("Wall Edges", "W", "Edges for the Walls", GH_ParamAccess.list); pManager.AddLineParameter("Ceiling Edges", "C", "Edges for the Ceilings", GH_ParamAccess.list); pManager.AddPointParameter("Electric Devices", "D", "Electrical Devices", GH_ParamAccess.list); pManager.AddPointParameter("Electric Source", "S", "Electrical Devices", GH_ParamAccess.item); pManager.AddIntegerParameter("Algo Type", "T", "Source of Electricity", GH_ParamAccess.item); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddMeshParameter("Mesh", "M", "Mesh", GH_ParamAccess.item); pManager.AddLineParameter("Mountain Crease Lines", "M", "Mountain Crease Lines List", GH_ParamAccess.list); pManager.AddLineParameter("Valley Crease Lines", "V", "Valley Crease Lines List", GH_ParamAccess.list); pManager[1].Optional = true; pManager[2].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("线段A", "L", "夹角边A", GH_ParamAccess.item); pManager.AddLineParameter("线段B", "L", "夹角边B", GH_ParamAccess.item); pManager.AddIntegerParameter("平分数量", "N", "将A,B两边形成的夹角平分为N个", GH_ParamAccess.item, 10); pManager.HideParameter(0); pManager.HideParameter(1); Message = "按数量平分角"; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("LineA", "LnA", "Line representing the first segment [m]", GH_ParamAccess.item); pManager.AddLineParameter("LineB", "LnB", "Line representing the consecutive segment [m]", GH_ParamAccess.item); pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item); pManager.AddNumberParameter("Inertia", "I", "The moment of inertia [mm4]", GH_ParamAccess.item); pManager.AddNumberParameter("z-distance", "z", "The distance from the section axis to the extreme fiber [mm]", GH_ParamAccess.item); pManager.AddIntegerParameter("RestAngleOption", "Opt", "Specify the rest angle. 0: straight. 1: current angle", GH_ParamAccess.item, 0); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { //register all of the parameters pManager.AddLineParameter("Floor Edges", "F", "Edges for the Floors", GH_ParamAccess.list); pManager.AddLineParameter("Wall Edges", "W", "Edges for the Walls", GH_ParamAccess.list); pManager.AddLineParameter("Ceiling Edges", "C", "Edges for the Ceilings", GH_ParamAccess.list); pManager.AddPointParameter("Electric Devices", "D", "Electrical Devices", GH_ParamAccess.list); pManager.AddPointParameter("Electric Source", "S", "Electrical Devices", GH_ParamAccess.item); pManager.AddNumberParameter("Floor Weight Maultiplier", "FW", "Source of Electricity", GH_ParamAccess.item); pManager.AddNumberParameter("Wall Weight Maultiplier", "WW", "Source of Electricity", GH_ParamAccess.item); pManager.AddNumberParameter("Ceiling Weight Maultiplier", "CW", "Source of Electricity", GH_ParamAccess.item); }
}//eof /// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddCurveParameter("Curve", "Crv", "curve to be aligned", GH_ParamAccess.item); pManager.AddLineParameter("Line", "Ln", "destination lines", GH_ParamAccess.item); pManager.AddBooleanParameter("Inverse", "Inv", "invert curves", GH_ParamAccess.item,false); pManager.AddNumberParameter("Height", "H", "height", GH_ParamAccess.item, 10); }//eof
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddPointParameter("Points", "P", "Points to apply Boundary Conditions", GH_ParamAccess.list); pManager.AddLineParameter("Geometry", "G", "Geometry", GH_ParamAccess.list); pManager.AddIntegerParameter("Boundary Conditions", "BDC", "Boundary Conditions x,y,z where 0=clamped and 1=free", GH_ParamAccess.list, new List <int>(new int[] { 0, 0, 0 })); pManager.AddTextParameter("Locked direction", "Ldir", "Lock x, y or z direction for deformation", GH_ParamAccess.item, ""); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddNumberParameter("xCell", "x", "", GH_ParamAccess.item, 2000); pManager.AddNumberParameter("yCell", "y", "", GH_ParamAccess.item, 3000); pManager.AddNumberParameter("zCell", "z", "", GH_ParamAccess.item, 1000); pManager.AddLineParameter("grid", "g", "", GH_ParamAccess.list); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Lines", "l", "Lines representing individual bars in grid", GH_ParamAccess.list); pManager.AddNumberParameter("Force densities", "q", "The force densities of the bars", GH_ParamAccess.list); pManager.AddPointParameter("Support points", "sp", "The strucutres suport points", GH_ParamAccess.list); pManager.AddVectorParameter("Force Vector", "F", "The force applied to the nodes", GH_ParamAccess.item); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddPointParameter("Point", "P", "type hint: string", GH_ParamAccess.item); pManager.AddVectorParameter("Vector", "V", "type hint: string", GH_ParamAccess.item); pManager.AddCurveParameter("Boundary", "B", "boundary", GH_ParamAccess.item); pManager.AddLineParameter("RefLine", "L", "ref line", GH_ParamAccess.item); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("直线", "L", "用于合并的一组直线", GH_ParamAccess.list); pManager.AddBooleanParameter("自动排序", "O", "true,自动将该组直线排序,然后生成多段线,该种情况下只能生成凸多边形(如果是空间线段无法自动排序)\nfalse,按照输入直线的本来顺序依次合并成多段线", GH_ParamAccess.item, false); pManager.AddBooleanParameter("闭合", "C", "是否生成闭合的多段线", GH_ParamAccess.item, false); pManager.HideParameter(0); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Line", "L", "The line representing the web axis of the member.", GH_ParamAccess.item); pManager.AddVectorParameter("Vector", "V", "The vector representing the web normal of the member.", GH_ParamAccess.item); pManager.AddTextParameter("Name", "N", "The name of the member.", GH_ParamAccess.item); pManager[2].Optional = true; }
//protected override Bitmap Icon => Resources.CrossSections; #endregion #region Custom UI //This region overrides the typical component layout #endregion #region Input and output protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddGenericParameter("1D Element", "Elem1d", "GSA 1D Element to Modify", GH_ParamAccess.item); pManager.AddLineParameter("Line", "Ln", "Reposition Element Line", GH_ParamAccess.item); pManager.AddGenericParameter("Section", "PB", "Change Section Property", GH_ParamAccess.item); pManager.AddGenericParameter("Offset", "Off", "Set Element Offset", GH_ParamAccess.item); pManager.AddGenericParameter("Start release", "B6-S", "Set Release (Bool6) at Start of Element", GH_ParamAccess.item); pManager.AddGenericParameter("End release", "B6-E", "Set Release (Bool6) at End of Element", GH_ParamAccess.item); pManager.AddNumberParameter("Orientation Angle", "OrA", "Set Element Orientation Angle in degrees", GH_ParamAccess.item); pManager.AddIntegerParameter("Orientation Node", "OrN", "Set Element Orientation Node (ID referring to node number in model)", GH_ParamAccess.item); pManager.AddIntegerParameter("Type", "Typ", "Set Element Type", GH_ParamAccess.item); pManager.AddIntegerParameter("Number", "ID", "Set Element Number. If ID is set it will replace any existing 1D Element in the model", GH_ParamAccess.item); pManager.AddTextParameter("Name", "Na", "Set Element Name", GH_ParamAccess.item); pManager.AddIntegerParameter("Group", "Grp", "Set Element Group", GH_ParamAccess.item); pManager.AddColourParameter("Colour", "Col", "Set Element Colour", GH_ParamAccess.item); pManager[1].Optional = true; pManager[2].Optional = true; pManager[3].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; pManager[6].Optional = true; pManager[7].Optional = true; pManager[8].Optional = true; pManager[9].Optional = true; pManager[10].Optional = true; pManager[11].Optional = true; pManager[12].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("线段", "L", "待分组的线段", GH_ParamAccess.list); AddNumberInput(); pManager.AddNumberParameter("距离公差", "T", "相邻线段如果距离在此公差范围内,则视为共线", GH_ParamAccess.item, 0); pManager.HideParameter(0); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Lines", "ln", "The lines to display", GH_ParamAccess.list); pManager.AddPointParameter("DisplacedNodes", "pFinal", "The displaced nodes", GH_ParamAccess.list); pManager.AddNumberParameter("Displacement", "displ", "The nodal displacements", GH_ParamAccess.list); pManager.AddColourParameter("ColourRange", "c", "The colour range (use gradient)", GH_ParamAccess.list); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Line", "L", "A line to convert into a va3c JSON representation of the line", GH_ParamAccess.item); pManager.AddGenericParameter("Line Material", "Lm", "Line Material", GH_ParamAccess.item); pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item); pManager[2].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddTextParameter("UnitDefCSV", "UnitDefCSV", "Unit Definition CSV", GH_ParamAccess.item); pManager.AddTextParameter("UnitMixCSV", "UnitMixCSV", "Unit Mix CSV", GH_ParamAccess.item); pManager.AddLineParameter("MainCorridor", "Main Corridor", "Main Corridor", GH_ParamAccess.item); pManager.AddLineParameter("LeftLeg", "Left Corridor", "Left Corridor", GH_ParamAccess.item); pManager.AddLineParameter("MiddleLeg", "Middle Corridor", "Middle Corridor", GH_ParamAccess.item); pManager.AddLineParameter("RightLeg", "Right Corridor", "Right Corridor", GH_ParamAccess.item); pManager.AddNumberParameter("Unit Depth", "Unit Depth", "Unit Depth", GH_ParamAccess.item); pManager.AddNumberParameter("Hall Width", "Hall Width", "Hall Width", GH_ParamAccess.item); 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_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("待筛选的线段", "L", "待筛选的线段", GH_ParamAccess.list); pManager.AddVectorParameter("用户指定向量", "V", "用户指定的向量如果线段不与之平行则被选出", GH_ParamAccess.list, Vector3d.XAxis); AddNumberInput(); pManager.HideParameter(0); Message = "与指定向量不平行的线段"; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Line", "Ln", "Line representing the cable element [m]", GH_ParamAccess.item); pManager.AddNumberParameter("E-Modulus", "E", "E-Modulus of the material [MPa]", GH_ParamAccess.item); pManager.AddNumberParameter("Area", "A", "Cross-section area [mm2]", GH_ParamAccess.item); pManager.AddNumberParameter("PreTension", "P", "Optional pre-tension [N]", GH_ParamAccess.item); pManager[3].Optional = true; }
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Lines", "LNS", "Geometry, in form of Lines)", GH_ParamAccess.list); pManager.AddTextParameter("Boundary Conditions", "BDC", "Boundary Conditions in form (x,z):1,1 where 1=free and 0=restrained", GH_ParamAccess.list); pManager.AddNumberParameter("Crossection area", "A", "Crossectional area, initial value 3600 [mm^2]", GH_ParamAccess.item, 3600); pManager.AddNumberParameter("Material E modulus", "E", "Material Property, initial value 200e3 [MPa]", GH_ParamAccess.item, 200000); pManager.AddTextParameter("Loads", "L", "Load given as Vector [N]", GH_ParamAccess.list); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddPointParameter("3DPointsCloud", "3DPtCloud", "三维点云信息", GH_ParamAccess.list); pManager.AddIntegerParameter("2DPointsIndex", "2DPtInd", "二维点云索引", GH_ParamAccess.list); pManager.AddPointParameter("2DPointsCoord", "2DPtCoord", "二维点云坐标", GH_ParamAccess.list); pManager.AddLineParameter("2DLines", "2DLines", "二维线信息", GH_ParamAccess.list); pManager.AddNumberParameter("error", "err", "节点合并误差", GH_ParamAccess.item, (double)20); }
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Lines", "L", "Line(s) Representing the Structure", GH_ParamAccess.list); pManager.AddParameter(new Parameters.MaterialParameter()); pManager.AddTextParameter("Section", "S", "Section Type for the Structure: Rod or Square", GH_ParamAccess.item); pManager.AddBooleanParameter("IsFrame?", "Frame?", "Type of Structure", GH_ParamAccess.item); //pManager.AddParameter(new CustomParameters.SectionParameter()); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Line", "L", "Axis of the column", GH_ParamAccess.list); pManager.AddTextParameter("Section", "S", "Section of the column", GH_ParamAccess.list); pManager.AddTextParameter("Material", "M", "Material of the column", GH_ParamAccess.list, new List <string>() { "C20/25" }); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddNumberParameter("Intensity", "I", "---", GH_ParamAccess.item, -1); pManager[0].Optional = true; pManager.AddColourParameter("Color", "C", "---", GH_ParamAccess.item, System.Drawing.Color.White); pManager[1].Optional = true; pManager.AddLineParameter("Direction", "L", "---", GH_ParamAccess.item, new Line(0, 0, 0, 0, 0, 1)); pManager[2].Optional = true; }
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Line", "L", "Base Line", GH_ParamAccess.list); pManager.AddGenericParameter("CircleModule", "C/M", "Tangent Circle or Module", GH_ParamAccess.list); pManager.AddNumberParameter("Teeth", "T", "Teeth number", GH_ParamAccess.item); pManager.AddNumberParameter("Angle", "A", "pressure angle(Degree), default is 22.5 and range should 15 to 35", GH_ParamAccess.item, 22.5); pManager.AddNumberParameter("addendum", "ad", "addendum, 1.0 module", GH_ParamAccess.item, 1.0); pManager.AddNumberParameter("dedendum", "de", "dedendum, 1.25 module", GH_ParamAccess.item, 1.25); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Curve", "Curve", "Bar curve.", GH_ParamAccess.item); pManager.AddGenericParameter("Profile", "Profile", "Bar profile.", GH_ParamAccess.item); pManager.AddGenericParameter("Material", "Material", "Bar material.", GH_ParamAccess.item); pManager.AddNumberParameter("Rotation", "Rotation", "Rotation.", GH_ParamAccess.item, 0); pManager.AddNumberParameter("XOffset", "XOffset", "Offset along the local X axis.", GH_ParamAccess.item, 0); pManager.AddNumberParameter("YOffset", "YOffset", "Offset along the local Y axis.", GH_ParamAccess.item, 0); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("List of lines", "Lines", "线组", GH_ParamAccess.item); pManager.AddIntegerParameter("Material Number", "Material", "材料编号", GH_ParamAccess.item, (int)1); pManager.AddIntegerParameter("Section Number", "Section", "截面编号", GH_ParamAccess.item, (int)2); pManager.AddNumberParameter("Beta Angle", "Beta", "Beta角度", GH_ParamAccess.item, (double)0); pManager.AddTextParameter("GroupNames", "GName", "所属组别", GH_ParamAccess.item); pManager[4].Optional = true; }
protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager) { pManager.AddLineParameter("Lines", "LNS", "Geometry, in form of Lines)", GH_ParamAccess.list); pManager.AddTextParameter("Boundary Conditions", "BDC", "Boundary Conditions in form x,y,z,vx,vy,vz,rx,ry,rz", GH_ParamAccess.list); pManager.AddTextParameter("Material properties", "Mat", "Material Properties: E, A, Iy, Iz, v, alpha (rotation about x)", GH_ParamAccess.item, "200000,3600,4920000,4920000, 0.3, 0"); pManager.AddTextParameter("PointLoads", "PL", "Load given as Vector [N]", GH_ParamAccess.list); pManager.AddTextParameter("PointMoment", "PM", "Moment set in a point in [Nm]", GH_ParamAccess.list, ""); pManager.AddIntegerParameter("Sub-Elements", "n", "Number of sub-elements", GH_ParamAccess.item, 1); }