/// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the va3c JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddTextParameter("Mesh Geo", "Me", "va3c geometry", GH_ParamAccess.list);
     pManager.AddTextParameter("Materials", "Mat", "va3c materials", GH_ParamAccess.list);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("filename", "F", "The destination filename", GH_ParamAccess.item);
     pManager.AddIntegerParameter("height", "H", "Height (pixels) of screenshot", GH_ParamAccess.item, 600);
     pManager.AddIntegerParameter("width", "W", "Width (pixels) of screenshot", GH_ParamAccess.item, 800);
     pManager.AddTextParameter("viewport", "VP", "Viewport to capture", GH_ParamAccess.item, "Perspective");
     pManager.AddBooleanParameter("enabled", "E", "Enable the screenshot", GH_ParamAccess.item, false);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "A Grasshopper Mesh", GH_ParamAccess.item);
     pManager.AddTextParameter("Attribute Names", "[aN]", "Attribute Names", GH_ParamAccess.list);
     pManager[1].Optional = true;
     pManager.AddTextParameter("Attribute Values", "[aV]", "Attribute Values", GH_ParamAccess.list);
     pManager[2].Optional = true;
 }
Beispiel #4
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPointParameter("Points", "Points", "Adaptive Points", GH_ParamAccess.list);
     pManager.AddTextParameter("Family", "Family", "Family name", GH_ParamAccess.item);
     pManager.AddTextParameter("Type", "Type", "Type name", GH_ParamAccess.item);
     int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
     pManager[a].Optional = true;
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddMeshParameter("Mesh", "M", "A Grasshopper Mesh", GH_ParamAccess.item);
     pManager.AddColourParameter("colors", "C", "A list of colors - one per face.", GH_ParamAccess.list);
     pManager.AddTextParameter("Attribute Names", "[aN]", "Attribute Names", GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager.AddTextParameter("Attribute Values", "[aV]", "Attribute Values", GH_ParamAccess.list);
     pManager[3].Optional = true;
     pManager.AddTextParameter("Layer", "[L]", "Layer", GH_ParamAccess.item);
     pManager[4].Optional = true;
 }
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            // Input is the XML-File as String
            pManager.AddTextParameter("URI", "@", "Address of the BIM+ model", GH_ParamAccess.item);
            pManager.AddTextParameter("Username", "Username", "Username to log in the server", GH_ParamAccess.item);
            pManager.AddTextParameter("Password", "Password", "Password to log in the server", GH_ParamAccess.item);
            pManager.AddTextParameter("Serializer", "Serializer", "Serializer to get the model", GH_ParamAccess.item);

            pManager[1].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
        }
Beispiel #7
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddCurveParameter("Baseline", "Line", "Baseline of the wall", GH_ParamAccess.item);
            int b = pManager.AddTextParameter("Layer", "Layer", "Layer name", GH_ParamAccess.item);
            int c = pManager.AddTextParameter("Style", "Style", "Wallstyle name", GH_ParamAccess.item);
            pManager.AddNumberParameter("Height", "Height", "Wall height", GH_ParamAccess.item);

            int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
            pManager[a].Optional = true;
            pManager[b].Optional = true;
            pManager[c].Optional = true;
        }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the va3c JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddTextParameter("Meshes", "Mj", "va3c mesh JSON objects to add to the scene.", GH_ParamAccess.list);
     pManager.AddTextParameter("Mesh Materials", "Mm", "va3c mesh materials to add to the scene.  Input one material per mesh.  If list lengths do not match we'll apply the last material to all subsequent meshses.", GH_ParamAccess.list);
     pManager.AddTextParameter("Lines", "Lj", "vA3C line JSON objects to add to the scene.", GH_ParamAccess.list);
     pManager.AddTextParameter("Line Materials", "Lm", "vA3C line materials to add to the scene.  Input one material per line.  If list lengths do not match we'll apply the last material to all subsequent lines.", GH_ParamAccess.list);
     pManager[2].Optional = true;
     pManager[3].Optional = true;
     pManager[4].Optional = true;
     pManager[5].Optional = true;
 }
Beispiel #9
0
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            int c = pManager.AddTextParameter("Style", "Style", "Columnstyle name", GH_ParamAccess.item);
            int b = pManager.AddTextParameter("Layer", "Layer", "Layer name", GH_ParamAccess.item);

            pManager.AddPointParameter("PointTop", "Top", "Top point of the column", GH_ParamAccess.item);
            pManager.AddPointParameter("PointBottom", "Bottom", "Bottom point of the column", GH_ParamAccess.item);

            int a = pManager.AddGenericParameter("Parameters", "Param", "Parameters", GH_ParamAccess.list);
            pManager[a].Optional = true;
            pManager[b].Optional = true;
            pManager[c].Optional = true;
        }
Beispiel #10
0
 //set up input parameters - auth token, name, worksheets, include blank cells, spreadsheet range, row/column order, formulas/values, and a refresh toggle.
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddParameter(new AuthToken_Param(), "Token", "T", "Google Authentication Token, obtained with Google Authenticator component.", GH_ParamAccess.item);
     pManager.AddTextParameter("Name", "N", "Name of the spreadsheet to query", GH_ParamAccess.item);
     pManager.AddTextParameter("Worksheet", "W", "Optional Worksheet name", GH_ParamAccess.item);
     pManager[2].Optional = true; //worksheets optional
     pManager.AddBooleanParameter("Include Blank Cells?", "B", "Set to true to include blank cells in data output.", GH_ParamAccess.item,false);
     pManager.AddParameter(new Range_Param(), "Spreadsheet Range", "SR", "Range of cells to query.", GH_ParamAccess.item);
     pManager[4].Optional = true; //spreadsheet range optional
     pManager.AddBooleanParameter("Organize by Rows or Columns", "R/C", "Set to true to organize data output by row - otherwise data is structured by column.", GH_ParamAccess.item,false);
     pManager.AddBooleanParameter("Read Formulas or Values", "F/V", "Set to true to return formulas rather than values from the spreadsheet", GH_ParamAccess.item,false);
     pManager.AddBooleanParameter("Refresh", "R", "Send a new value to this parameter to cause the spreadsheet data to refresh.", GH_ParamAccess.tree, true);
 }
Beispiel #11
0
        //set up input parameters - token, filter, and refresh trigger
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddParameter(new AuthToken_Param(), "Token", "T", "Google Authentication Token, obtained with Google Authenticator component.", GH_ParamAccess.item);
            //description of filter parameter
            string desc = string.Concat(new string[]
                {
                    "Allows you to filter spreadsheets from your drive.",
                    "\n",
                    "Filter is case sensitive.",
                    "\n",
                    "The following wildcards are allowed:",
                    "\n",
                    "? (any single character)",
                    "\n",
                    "* (zero or more characters)",
                    "\n",
                    "# (any single digit [0-9])",
                    "\n",
                    "[chars] (any single character in chars)",
                    "\n",
                    "[!chars] (any single character not in chars)"
                });
            pManager.AddTextParameter("Filter", "F", desc, GH_ParamAccess.item);
            pManager[1].Optional = true; //filter is optional
            pManager.AddBooleanParameter("Refresh", "R", "Send a new value to this parameter to cause the list of spreadsheets to refresh.", GH_ParamAccess.tree, true);

            //refresh parameter value is never actually used, but any new data passed into it will trigger a new solveinstance.
        }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddCurveParameter("Struts", "Struts", "Wireframe to thicken", GH_ParamAccess.list);
     pManager.AddTextParameter("Gradient String", "Grad", "The spatial gradient as an expression string", GH_ParamAccess.item, "0");
     pManager.AddNumberParameter("Maximum Radius", "Rmax", "Maximum radius in gradient", GH_ParamAccess.item, 0.5);
     pManager.AddNumberParameter("Minimum Radius", "Rmin", "Minimum radius in gradient", GH_ParamAccess.item, 0.2);
 }
Beispiel #13
0
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("write?", "W?", "Write the VA3C JSON file to disk?", GH_ParamAccess.item);
     pManager.AddTextParameter("filePath", "Fp", "Full filepath of the file you'd like to create.  Files will be overwritten automatically.", GH_ParamAccess.item);
     pManager.AddGenericParameter("Elements", "E", "va3c Elements to add to the scene.", GH_ParamAccess.list);
     pManager[2].DataMapping = GH_DataMapping.Flatten;
 }
Beispiel #14
0
 /// <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;
 }
Beispiel #15
0
        //set up component inputs - the token, name, worksheets, data to searh for, and cell offset.
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddParameter(new AuthToken_Param(), "Token", "T", "Google Authentication Token, obtained with Google Authenticator component.", GH_ParamAccess.item);
            //above is custom AuthToken_Param type
            pManager.AddTextParameter("Name", "N", "Name of the spreadsheet to query", GH_ParamAccess.item);
            pManager.AddTextParameter("Worksheet", "W", "Optional Worksheet name", GH_ParamAccess.item);
            pManager[2].Optional = true; //worksheets are optional
            pManager.AddTextParameter("Data", "D", "Data to search for in spreadsheet", GH_ParamAccess.list);

            // This is a quick and dirty way to allow the user to specify offsets by name instead of the corresponding integer value,
            // even though the parameter is just taking in an integer.
            pManager.AddIntegerParameter("Offset", "O", "An optional cell offset for address output.", GH_ParamAccess.item,0);
            Param_Integer offset = (Param_Integer)pManager[4];
            offset.AddNamedValue("No Offset", 0);
            offset.AddNamedValue("+1 Row", 1);
            offset.AddNamedValue("+1 Column", 2);
        }
Beispiel #16
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddPlaneParameter("Location", "L", "Location and orientation of the text", GH_ParamAccess.item);
     pManager.AddTextParameter("Text", "T", "Text to display", GH_ParamAccess.item);
     pManager.AddNumberParameter("Size", "S", "Size of the text", GH_ParamAccess.item);
     pManager.AddBooleanParameter("Bold", "B", "True for bold font", GH_ParamAccess.item, false);
     pManager.AddIntegerParameter("Horizontal alignment", "H", "0=Center, 1=Left, 2=Right", GH_ParamAccess.item, 0);
     pManager.AddIntegerParameter("Vertical alignment", "V", "0=Center, 1=Top, 2=Bottom, 3=Baseline", GH_ParamAccess.item, 0);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Activate", "Activate", "Activate", GH_ParamAccess.item);
     pManager.AddTextParameter("ViewportName", "ViewportName", "ViewportName", GH_ParamAccess.item);
     pManager.AddPointParameter("Location", "Location", "Camera Location", GH_ParamAccess.item);
     pManager.AddPointParameter("Target", "Target", "Camera Target", GH_ParamAccess.item);
     pManager.AddNumberParameter("Lens", "Lens", "Camera Lens Focal Length", GH_ParamAccess.item);
     pManager.AddVectorParameter("Up", "Up", "Camera's Up (Z) vector", GH_ParamAccess.item);
 }
Beispiel #18
0
        /// <summary>
        /// Registers all the output parameters for this component.
        /// </summary>
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            // Use the pManager object to register your output parameters.
            // Output parameters do not have default values, but they too must have the correct access type.
            pManager.AddTextParameter("Result", "R", "Structure to be piped in an Object", GH_ParamAccess.item);

            // Sometimes you want to hide a specific parameter from the Rhino preview.
            // You can use the HideParameter() method as a quick way:
            //pManager.HideParameter(0);
        }
Beispiel #19
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Settings Dictionary", "Settings", "Silkworm Settings Dictionary", GH_ParamAccess.list);
            pManager.AddBrepParameter("Planar Breps", "Regions", "A List of Planar Breps", GH_ParamAccess.list);

            pManager.AddIntegerParameter("Infill Type", "Infill Type", "The Type of Pattern: 0 - Perimeter Spiral, 1 - Hatch", GH_ParamAccess.item);
            pManager.AddNumberParameter("Spiral Spacing", "Spacing", "The spacing between lines for the Perimeter Spiral Pattern", GH_ParamAccess.list);
            pManager.AddNumberParameter("Infill Density", "Infill Density", "The Density of The Infill Pattern as a Value between 0 and 1.  This option only applies to Hatch Patterns", GH_ParamAccess.list);
            pManager.AddNumberParameter("Infill Rotation", "Infill Rotation", "Rotation in Degrees for Infill Hatch Pattern", GH_ParamAccess.list);

            pManager[3].Optional = true;
            pManager[4].Optional = true;
            pManager[5].Optional = true;
        }
Beispiel #20
0
        /// <summary>
        /// Registers all the input parameters for this component.
        /// </summary>
        protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
        {
            pManager.AddTextParameter("Settings Dictionary", "Settings", "Silkworm Settings Dictionary", GH_ParamAccess.list);
            pManager.AddGenericParameter("Brep or Mesh", "Solids", "A List of Solid or Enclosing Regions", GH_ParamAccess.list);

            pManager.AddPlaneParameter("Slicing Plane(s)", "Plane(s)", "Multiple or single plane to slice solid with. If you use planes that are not horizontal it is up to you to define how the printer will build these.", GH_ParamAccess.list);
            pManager.AddNumberParameter("Layer Height", "Layer", "For a single plane input. This sets the perpendicular offset to the plane, replicating the plane as far as the bounding box of the object", GH_ParamAccess.item);
            pManager.AddIntegerParameter("Thickness of Planar Shell", "Shell", "In plane shell thickness", GH_ParamAccess.item, 0);
            //pManager.Register_BooleanParam("Detect Bridges and Overhangs", "Bridges", "Only useful for horizontal slicing.  If true will generate regions for overhangs and bridges", GH_ParamAccess.item);

            //pManager[5].Optional = true;
            pManager[2].Optional = true;
            pManager[3].Optional = true;
            pManager[4].Optional = true;
        }
Beispiel #21
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.
            // The first three arguments are always NAME, NICKNAME, and DESCRIPTION.

            // Input is the XML-File as String
            pManager.AddTextParameter("IFc-File", "Ifc", "IndustryFoundationClass-String", GH_ParamAccess.item);

            // If you want to change properties of certain parameters, 
            // you can use the pManager instance to access them by index:
            //pManager[0].Optional = true;
        }
 /// <summary>
 /// Registers all the output parameters for this component.
 /// </summary>
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddTextParameter("Mesh JSON", "Mj", "Mesh JSON output to feed into scene compiler component", GH_ParamAccess.item);
     pManager.AddTextParameter("Mesh Material", "Mm", "Mesh Material JSON output to feed into scene compiler component.  Make sure to amtch this material with the corresponding mesh from Mj above.", GH_ParamAccess.list);
 }
Beispiel #23
0
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddBrepParameter("Surfaces", "S", "Surfaces", GH_ParamAccess.list);
     pManager.AddTextParameter("Layers", "L", "Layers", GH_ParamAccess.list);
     pManager.AddGenericParameter("Instances", "I", "Instances", GH_ParamAccess.list);
 }
Beispiel #24
0
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddTextParameter("Path", "P", "Path to SKP File", GH_ParamAccess.item);
 }
Beispiel #25
0
        protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
        {
            pManager.AddPointParameter("Location", "L", "Location", GH_ParamAccess.item);
            pManager.AddTextParameter("Name", "N", "Name", GH_ParamAccess.item);

            pManager.AddNumberParameter("Scale", "S", "Scale", GH_ParamAccess.item);
            pManager.AddBrepParameter("Surfaces", "Sf", "Surfaces", GH_ParamAccess.list);
            pManager.AddTextParameter("Parent Name", "PN", "Parent Name", GH_ParamAccess.item);
            pManager.AddBrepParameter("Inner", "I", "Inner", GH_ParamAccess.list);
        }
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddTextParameter("Fingerprint", "F", "A sha1 hash of the set of data", GH_ParamAccess.item);
 }
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddTextParameter("Info", "Debug - Info", "Information", GH_ParamAccess.item);
     pManager.AddGenericParameter("General List", "Degug - List ", "Debug", GH_ParamAccess.list);
     pManager.AddGenericParameter("TriLoop", "TriLoop", "TriLoop", GH_ParamAccess.list);
     pManager.AddGenericParameter("DualLoop", "DualLoop", "DualLoop", GH_ParamAccess.list);
 }
 /// <summary>
 /// Registers all the input parameters for this component.
 /// </summary>
 protected override void RegisterInputParams(GH_Component.GH_InputParamManager pManager)
 {
     pManager.AddBooleanParameter("Activate", "Activate", "Activate", GH_ParamAccess.item);
     pManager.AddTextParameter("ViewportName", "ViewportName", "ViewportName", GH_ParamAccess.item);
 }
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddTextParameter("Info", "00 - Info", "Information", GH_ParamAccess.item);
     pManager.AddGenericParameter("Debug 1", "01 - Debug 1", "This output is reserved for debugging", GH_ParamAccess.list);
     pManager.AddGenericParameter("Debug 2", "02 - Debug 2", "This output is reserved for debugging", GH_ParamAccess.list);
     pManager.AddGenericParameter("Debug 3", "03 - Debug 3", "This output is reserved for debugging", GH_ParamAccess.list);
     pManager.AddGenericParameter("Debug 4", "04 - Debug 4", "This output is reserved for debugging", GH_ParamAccess.list);
     pManager.AddGenericParameter("Debug 5", "05 - Debug 5", "This output is reserved for debugging", GH_ParamAccess.list);
     pManager.AddGenericParameter("Debug 6", "06 - Debug 6", "This output is reserved for debugging", GH_ParamAccess.list);
     pManager.AddGenericParameter("Components", "Components", "Components", GH_ParamAccess.list);
 }
Beispiel #30
0
 // set up output parameters - cell values, addresses, and some metadata about the sheet.
 protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
 {
     pManager.AddTextParameter("Values", "V", "The data retrieved from the spreadsheet", GH_ParamAccess.tree);
     pManager.AddTextParameter("Cell Addresses", "CA", "The cell addresses retrieved from the spreadsheet", GH_ParamAccess.tree);
     pManager.AddTextParameter("Sheet Info", "I", "Metadata about the selected spreadsheet", GH_ParamAccess.list);
 }