示例#1
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("一组相交曲线", "C", "一组有交点的曲线或线段", GH_ParamAccess.list);
     pManager.AddNumberParameter("公差1", "T1", "公差范围内两曲线创建交点", GH_ParamAccess.item, 0);
     pManager.AddNumberParameter("公差2", "T2", "The tolerance with which the curves are tested(我也不知道啥意思)", GH_ParamAccess.item, 0);
     pManager.HideParameter(0);
     Message = "相交位置打断曲线";
 }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "C", "BaseCurve", GH_ParamAccess.item);
     pManager.AddNumberParameter("Resolution Spacing", "S", "Sample length of the curve", GH_ParamAccess.item, 2.5);
     pManager.AddIntegerParameter("LayerCount", "Lc", "Total amount ", GH_ParamAccess.item, 15);
     pManager.AddNumberParameter("LayerHeight", "Lh", "Layer height", GH_ParamAccess.item, 2.5);
     pManager.AddBooleanParameter("AlternatingPoints", "Ap", "Whether the points are above each other or alternating", GH_ParamAccess.item, true);
 }
示例#3
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curve", "C", "Curve", GH_ParamAccess.item);
            pManager.AddPointParameter("Points", "P", "Points to fix points", GH_ParamAccess.list);
            pManager.AddNumberParameter("Tolerance", "D", "Distance where points will affect the curve", GH_ParamAccess.item, 0.01);

            pManager[2].Optional = true;
        }
        //This region overrides the typical component layout

        #endregion

        #region Input and output

        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Line", "L", "Line to create GSA Element", GH_ParamAccess.item);
            pManager.AddGenericParameter("Section", "PB", "GSA Section Property. Input either a GSA Section or an Integer to use a Section already defined in model", GH_ParamAccess.item);

            pManager[1].Optional = true;
            pManager.HideParameter(0);
        }
示例#5
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curve", "Crv", "Curve (will be converted to Arcs and Lines automatically if NURBS)", GH_ParamAccess.item);
            pManager.AddGenericParameter("Section", "PB", "GSA Section Property. Input either a GSA Section or an Integer to use a Section already defined in model", GH_ParamAccess.item);

            pManager[1].Optional = true;
            pManager.HideParameter(0);
        }
示例#6
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("多段线", "P", "待分类的多边形", GH_ParamAccess.list);
     pManager.AddNumberParameter("长度公差", "T", "长度在此公差范围内的多段线视为边长相等", GH_ParamAccess.item, 0);
     AddNumberInput();
     pManager.HideParameter(0);
     Message = "多段线统计";
 }
示例#7
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Polylines", "polylines", "Polylines from which to generate mesh patches.  The first polyine in a branch will be considered the outer boundary, " +
                                "any others will be considered holes and should be completely within the outer boundary.", GH_ParamAccess.tree);
     pManager.AddNumberParameter("Extrude Height", "extrude", "Height to extrude mesh patches.", GH_ParamAccess.tree);
     pManager[1].Optional = true;
     Message = extrudeDir + "\n(" + totalMaxConcurrancy + " threads)";
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("点", "P", "用于判断关系的点", GH_ParamAccess.list);
     pManager.AddCurveParameter("曲线", "C", "用于判断的闭合曲线", GH_ParamAccess.list);
     pManager.HideParameter(0);
     pManager.HideParameter(1);
     Message = "点与闭合曲线关系";
 }
示例#9
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Write Toggle", "Write", "Set to 'True' to write CSV file", GH_ParamAccess.item);                                       // 0
     pManager.AddTextParameter("FolderPath", "Path", "Path to folder", GH_ParamAccess.item);                                                              // 1
     pManager.AddTextParameter("CsvFileName", "File", "Name of CSV File to be created", GH_ParamAccess.item);                                             // 2
     pManager[2].Optional = true;
     pManager.AddCurveParameter("Curves", "Curves", "Rhino curves to convert to Revit grid lines, Only works with Lines & Arcs", GH_ParamAccess.tree);    // 3
 }
示例#10
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Line", "L", "Line geometry", GH_ParamAccess.item);
     pManager.AddTextParameter("Name", "N", "Line name", GH_ParamAccess.item, "");
     pManager.AddGenericParameter("Line Material", "M", "Line material", GH_ParamAccess.item);
     pManager.AddIntegerParameter("Decimal Accuracy", "D", "The number of decimal points in accuracy (impacts export size)", GH_ParamAccess.item, 3);
     pManager[2].Optional = true;
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curves", "C", "Curves to attract agents", GH_ParamAccess.list);
     pManager.AddBooleanParameter("StartPosition/Position", "P", "This switch makes you choose between attracting the agents to closest" +
                                  "point from the start point of the agent or from it's current postion in each iteration",
                                  GH_ParamAccess.item, true);
     pManager.AddNumberParameter("Multiplier", "M", "strength of the behaviour", GH_ParamAccess.item, 1);
 }
示例#12
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     // 0. input curves
     pManager.AddCurveParameter("input-site", "site", "street grids on site", GH_ParamAccess.item);
     // 1. Subtract curve
     pManager.AddCurveParameter("internal-crv", "int-poly", "subtract the internal curve from site", GH_ParamAccess.list);
     // 2. Number of Parcels
     pManager.AddIntegerParameter("number-parcels", "num-of-parcels ", "The number of parcels required", GH_ParamAccess.item);
     // 3. standard deviation to restrict area of individual partition & boundary
     pManager.AddNumberParameter("dev-dim (0,1)", "dev-mean-(0,1)", "standard deviation in DIMENSION to restrict parcels", GH_ParamAccess.item);
     // 4. rotation
     pManager.AddAngleParameter("angle-alignment (degrees 0, 360)", "angle-alignment", "rotate the entire parcel generation", GH_ParamAccess.item);
     // 5. show this iteration
     pManager.AddIntegerParameter("show-this-iterations", "this-itr", "showing the iteration to show - optimization", GH_ParamAccess.item);
     // 6. reset values
     pManager.AddBooleanParameter("reset-all-values", "reset-vals", "set everything to 0 and clear all values", GH_ParamAccess.item);
 }
示例#13
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Geom", "G", "需要分组的线", GH_ParamAccess.list);
            pManager.AddNumberParameter("ThreadHold", "Th", "进行分组的容差,需大于1", GH_ParamAccess.item, 0.1);
            pManager.AddTextParameter("Sign", "S", "成组的依据,只能取值'x','y','z'", GH_ParamAccess.item, "z");

            pManager[1].Optional = true;
        }
示例#14
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("多段线", "P", "待偏移的闭合多段线", GH_ParamAccess.item);
     pManager.AddNumberParameter("偏移列表", "D", "多段线中的每段线段按照列表中的数值统一或者分段偏移", GH_ParamAccess.list);
     pManager.AddBooleanParameter("切换", "B", "如果为true,则多段线的每段线段按照列表中的数值统一偏移,如果为false,则每段对应列表的每个数值分别偏移", GH_ParamAccess.item, true);
     pManager.HideParameter(0);
     Message = "偏移闭合多段线";
 }
示例#15
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curve", "Crv", "Glulam centreline curve.", GH_ParamAccess.item);
            pManager.AddPlaneParameter("Frames", "F", "Frames to orient cross-section to.", GH_ParamAccess.list);
            pManager.AddGenericParameter("Data", "D", "Glulam data.", GH_ParamAccess.item);

            pManager[1].Optional = true;
        }
示例#16
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     int[] start = { 0 };
     pManager.AddCurveParameter("曲线", "C", "待分类的曲线(多段线或线段与曲线组合的曲线)", GH_ParamAccess.list);
     pManager.AddIntegerParameter("边数", "E", "待分类曲线的边数", GH_ParamAccess.list, start.ToList());
     pManager.HideParameter(0);
     Message = "曲线按边数分类";
 }
示例#17
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.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.AddCurveParameter("Primary", "P", "Primary Grid Curves", GH_ParamAccess.list);
            pManager.AddCurveParameter("Primary Int", "P1", "Intermediate Primary Grid Curves", GH_ParamAccess.list);
            pManager.AddCurveParameter("Secondary", "S", "Secondary Grid Curves", GH_ParamAccess.list);
            pManager.AddCurveParameter("Secondary Int", "S1", "Intermediate Secondary Grid Curves", GH_ParamAccess.list);

            // If you want to change properties of certain parameters,
            // you can use the pManager instance to access them by index:
            //pManager[0].Optional = true;
            pManager[1].Optional = true;
            pManager[3].Optional = true;
        }
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBrepParameter("Brep", "B", "Brep", GH_ParamAccess.item);
     pManager.AddCurveParameter("Curves", "C", "Curves", GH_ParamAccess.list);
     pManager[1].Optional = true;
     pManager.AddPointParameter("Points", "P", "Points", GH_ParamAccess.list);
     pManager[2].Optional = true;
 }
示例#19
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("曲线", "C", "待确定方向的曲线", GH_ParamAccess.item);
     pManager.AddGeometryParameter("物件", "G", "一组影响曲线方向的物件(点,线,面,体及mesh)", GH_ParamAccess.list);
     pManager.AddBooleanParameter("反转", "R", "true:则靠近物件的一端为终点 。false:靠近物件的一端为起点", GH_ParamAccess.item, false);
     pManager.HideParameter(0);
     pManager.HideParameter(1);
 }
示例#20
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "Points - 00", "Points", GH_ParamAccess.list);
     pManager.AddCircleParameter("Apicals", "Apicals - 01", "Apicals", GH_ParamAccess.list);
     pManager.AddNumberParameter("Masses", "Masses - 02", "Masses", GH_ParamAccess.list);
     pManager.AddCurveParameter("Boundary Curve", "Boundary Curve - 03", "Boundary Curve", GH_ParamAccess.item);
     pManager.AddNumberParameter("Rest Length Scale", "Rest Length Scale - 04", "Rest Length Scale", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Rest Length Offset", "Rest Length Offset - 05", "Rest Length Offset", GH_ParamAccess.item, 0.0);
     pManager.AddNumberParameter("Stiffness", "Stiffness- 06", "Stiffness Scale", GH_ParamAccess.item, 1.0);
     pManager.AddNumberParameter("Bending Stiffness", "Bending Stiffness - 07", "Stiffness Offset", GH_ParamAccess.item, 0.0);
     pManager.AddBooleanParameter("In/Out Switch", "In/Out Switch - 08", "In/Out Switch", GH_ParamAccess.item, false);
     pManager.AddNumberParameter("In/Out Threshold", "In/Out Threshold - 09", "In/Out Threshold", GH_ParamAccess.item, 0.1);
     pManager.AddNumberParameter("Fixed Point Threshold", "Fixed Point Threshold - 10", "Fixed Point Threshold", GH_ParamAccess.item, 0.05);
     pManager.AddCurveParameter("Fixed Point Exclusion", "Fixed Point Exclusion - 11", "Fixed Point Exclusion", GH_ParamAccess.list);
     pManager.AddCurveParameter("Fixed Point Inclusion", "Fixed Point Inclusion - 12", "Fixed Point Inclusion", GH_ParamAccess.list);
     pManager.AddNumberParameter("Initial Curving Bias", "Initial Curving Bias - 13", "Initial Curving Bias", GH_ParamAccess.item, 0.0);
     pManager.AddBooleanParameter("Bias Apical Regions", "Bias Apical Regions - 14", "Bias Apical Regions", GH_ParamAccess.item, false);
 }
示例#21
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Boundary", "boundary", "Boundary curve(s) for vector data", GH_ParamAccess.list);
     pManager.AddTextParameter("Vector Data Location", "filePath", "File path for the vector data input", GH_ParamAccess.item);
     pManager.AddTextParameter("User Spatial Reference System", "userSRS", "Custom SRS", GH_ParamAccess.item, "WGS84");
     pManager.AddBooleanParameter("Crop file", "cropIt", "Crop the file to boundary?", GH_ParamAccess.item, true);
     pManager[0].Optional = true;
     pManager[2].Optional = true;
 }
示例#22
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Boundary", "boundary", "Boundary curve(s) for imagery", GH_ParamAccess.list);
            pManager.AddTextParameter("File Location", "fileLocation", "Folder to place image files", GH_ParamAccess.item, Path.GetTempPath());
            pManager.AddTextParameter("Prefix", "prefix", "Prefix for image file name", GH_ParamAccess.item, topoService);
            pManager.AddBooleanParameter("Run", "get", "Go ahead and download imagery from the service", GH_ParamAccess.item, false);

            Message = TopoService;
        }
示例#23
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Curve", "C", "Glulam centreline curve.", GH_ParamAccess.item);
            pManager.AddGenericParameter("Orientation", "O", "Orientation of Glulam cross-section.", GH_ParamAccess.list);
            pManager.AddGenericParameter("Data", "D", "Glulam data.", GH_ParamAccess.item);

            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.AddCurveParameter("Node Skeleton", "NS", "Nodes from Node Skeleton Component.", GH_ParamAccess.tree);
     pManager.AddNumberParameter("Layer Height", "H", "Layer height for printing", GH_ParamAccess.item, 5d);
     pManager.AddNumberParameter("Grid Resolution", "RES", "Resolution of builder grid", GH_ParamAccess.item, 2d);
     pManager.AddNumberParameter("Grid Width", "XDIM", "Width of builder grid", GH_ParamAccess.item, 200d);
     pManager.AddNumberParameter("Grid Depth", "YDIM", "Depth of builder grid", GH_ParamAccess.item, 200d);
     pManager.AddNumberParameter("Node Radius", "JR", "Radius of resulting node.", GH_ParamAccess.item, 15d);
 }
示例#25
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddGenericParameter("Material Properties", "MP", "Properties for steel and concrete materials", GH_ParamAccess.item);
            pManager.AddCurveParameter("Concrete Section", "Ag", "Concrete sections to analyze for flexural capacity", GH_ParamAccess.list);

            pManager.AddNumberParameter("Shear Reinforcement Diameter (mm)", "dv", "Diameter (mm) of transverse reinforcement", GH_ParamAccess.item, 10);
            pManager.AddNumberParameter("Shear Reinforcement Spacing (mm)", "s", "Spaceing (mm) of transverse reinforcement", GH_ParamAccess.item, 100);
            pManager.AddNumberParameter("Shear Reinforcement Inclination Angle (rads)", "θ", "Inclination angle (radians) of transverse reinforcement", GH_ParamAccess.item, (Math.PI / 2));
        }
示例#26
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Path", "P", "Path to Sketchup File (skp)", GH_ParamAccess.item);
            int a = pManager.AddCurveParameter("Curves", "C", "Curves", GH_ParamAccess.list);
            int b = pManager.AddSurfaceParameter("Surfaces", "S", "Surfaces", GH_ParamAccess.list);

            pManager[a].Optional = true;
            pManager[b].Optional = true;
        }
示例#27
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curves", "C", "Curves to color", GH_ParamAccess.tree);
     pManager.AddIntegerParameter("Thickness", "T", "Curve thickness to display", GH_ParamAccess.item, 5);
     pManager.AddColourParameter("Colour", "C", "Colours to display", GH_ParamAccess.item, Color.FromArgb(255, 255, 128));
     pManager.AddIntegerParameter("Seed", "S", "Seed of random colours for each branch", GH_ParamAccess.item, 0);
     pManager.HideParameter(0);
     Message = "Colour Curve";
 }
示例#28
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Curve", "C", "Base curve", GH_ParamAccess.item);
     pManager.AddNumberParameter("Radius", "R", "Pipe radius", GH_ParamAccess.item, 20);
     pManager.AddIntegerParameter("Sides", "S", "Number of sides", GH_ParamAccess.item, 6);
     pManager.AddNumberParameter("Angle", "A", "Rotation angle (radians)", GH_ParamAccess.item, 0);
     pManager.HideParameter(0);
     Message = "Polygonal Pipe";
 }
示例#29
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Boundary", "boundary", "Boundary curve(s) for imagery", GH_ParamAccess.list);
     pManager.AddIntegerParameter("Resolution", "resolution", "Maximum resolution for images", GH_ParamAccess.item);
     pManager.AddTextParameter("File Location", "fileLocation", "Folder to place image files", GH_ParamAccess.item);
     pManager.AddTextParameter("Prefix", "prefix", "Prefix for image file name", GH_ParamAccess.item);
     pManager.AddTextParameter("REST URL", "URL", "ArcGIS REST Service website to query", GH_ParamAccess.item);
     pManager.AddBooleanParameter("run", "get", "Go ahead and download imagery from the Service", GH_ParamAccess.item, false);
 }
示例#30
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     IN_AutoColor = pManager.AddBooleanParameter("Auto preview Perimeter Metric Visualization", "Autocolor Perimeter", "A build it analysis coloring of the voxels of the plan for the perimeter metric. Make sure to have the component preview on in order to view.", GH_ParamAccess.item, false);
     pManager[IN_AutoColor].Optional = true;
     IN_plane = pManager.AddPlaneParameter("Base Plane", "Plane", "The base plane for the floor plan under analysis", GH_ParamAccess.item);
     pManager[IN_plane].Optional = true;
     IN_rects      = pManager.AddRectangleParameter("Plan Voxels", "Voxels", "The rectangular voxels representing the analysis units of the floor plan", GH_ParamAccess.list);
     IN_perimCurve = pManager.AddCurveParameter("Perimeter Curve", "Perimeter", "The curve that describes the extents of the floor plan boundary", GH_ParamAccess.item);
 }