/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("ListofURL", "ListofURL", "Bim server project URL list", GH_ParamAccess.list); pManager.AddTextParameter("Username", "Username", "Username for the BIM Server", GH_ParamAccess.item); pManager.AddTextParameter("Password", "Password", "Password for the BIM Server", GH_ParamAccess.item); pManager[1].Optional = true; pManager[2].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new ResultElementParam(), "Result Element", "RE", "Result element", GH_ParamAccess.item); pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item); pManager[1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Filepath", "F", "The full path to the image file you want to load.", GH_ParamAccess.item); pManager.AddBooleanParameter("Reload?", "R", "If true, reloads the bitmap from the source file. Use a boolean button and set it to true when you have modified the original file. Otherwise, this component only reloads the file when the filepath has changed.", GH_ParamAccess.item, false); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new ResultElementParam(), "Result Element", "RE", "Result element", GH_ParamAccess.list); pManager.AddNumberParameter("Scale factor", "s", "The displacement scale", GH_ParamAccess.item, 10); pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item); pManager[2].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new RobotSystemParameter(), "Robot system", "R", "Robot system", GH_ParamAccess.item); pManager.AddParameter(new TargetParameter(), "Target", "T", "One target per robot", GH_ParamAccess.list); pManager.AddTextParameter("Previous joints", "J", "Optional previous joint values. If the pose is ambigous is will select one based on this previous position.", GH_ParamAccess.list); pManager.AddBooleanParameter("Display geometry", "M", "Display mesh geometry of the robot", GH_ParamAccess.item, false); pManager[2].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Name", "N", "Name of the load combination", GH_ParamAccess.item); pManager.AddBooleanParameter("GravityOn", "GO", "Turns gravity on or off for the load case", GH_ParamAccess.item); pManager.AddVectorParameter("Gravity Field", "GF", "The driection and aplitude of the gravity. Deafault set to 9.82 m/s^2 in negative z-direction", GH_ParamAccess.item, new Rhino.Geometry.Vector3d(0, 0, -9.82)); pManager.AddParameter(new PointLoadParameter(), "PointLoads", "PL", "A set of pointloads", GH_ParamAccess.list); pManager[3].Optional = true; }
/// <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. // The first three arguments are always NAME, NICKNAME, and DESCRIPTION. // 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; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new ProgramParameter(), "Program", "P", "Program", GH_ParamAccess.item); pManager.AddTextParameter("IP", "IP", "IP address of robot", GH_ParamAccess.item); pManager.AddBooleanParameter("Connect", "C", "Connect to robot", GH_ParamAccess.item, false); pManager.AddBooleanParameter("Upload", "U", "Upload program", GH_ParamAccess.item, false); pManager.AddBooleanParameter("Play", "P", "Play", GH_ParamAccess.item, false); pManager.AddBooleanParameter("Pause", "S", "Pause", GH_ParamAccess.item, false); pManager[1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Name", "N", "Tool name", GH_ParamAccess.item, "DefaultGHTool"); pManager.AddPlaneParameter("TCP", "P", "TCP plane", GH_ParamAccess.item, Plane.WorldXY); pManager.AddPlaneParameter("Calibration", "4", "Optional 4 point TCP calibration. Orient the tool in 4 different ways around the same point in space and input the 4 planes that correspond to the flange", GH_ParamAccess.list); pManager.AddNumberParameter("Weight", "W", "Tool weight in kg", GH_ParamAccess.item, 0.0); pManager.AddPointParameter("Centroid", "C", "Optional tool center of mass", GH_ParamAccess.item); pManager.AddMeshParameter("Mesh", "M", "Tool geometry", GH_ParamAccess.item); pManager[2].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Input", "Input", "Input from previous Compute Component", GH_ParamAccess.item); pManager.AddTextParameter("Download Path", "Download Path", "The path from Compute to download. You can chose both a file or a folder to download.", GH_ParamAccess.item); pManager.AddTextParameter("Local Path", "Local Path", "The local path where to you want the download content to be stored.", GH_ParamAccess.item); pManager.AddTextParameter("Overrides", "Overrides", "Optional overrides to apply to the download.\n" + "The overrides lets you exclude or include files from the server in the provided path, that you want to download.\n" + "If you want to exclude all files that ends with '.txt', then you can do that with: {\"exclude\": [\".txt\"]}\n" + "The overrides takes a JSON formatted string as follows:\n" + "{\n" + " \"exclude\": List[string],\n" + " \"include\": List[string],\n" + "\n}", GH_ParamAccess.item, ""); pManager.AddBooleanParameter("Reload", "Reload", "Redownload the content from Compute", GH_ParamAccess.item); pManager.AddBooleanParameter("Clear", "Clear", "Delete all files downloaded into the local path", GH_ParamAccess.item); pManager[3].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("CountryCode", "CountryCode", "National annex of calculation code D/DK/EST/FIN/GB/H/N/PL/RO/S/TR", GH_ParamAccess.item, "S"); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("Structure Elements", "Elements", "Single structure element or list of structure elements to add. Nested lists are not supported.", GH_ParamAccess.list); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("Loads", "Loads", "Single PointLoad, LineLoad, SurfaceLoad or PressureLoad element or list of PointLoad, LineLoad, SurfaceLoad or PressureLoad to add. Nested lists are not supported.", GH_ParamAccess.list); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("LoadCases", "LoadCases", "Single LoadCase element or list of LoadCase elements to add. Nested lists are not supported.", GH_ParamAccess.list); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("LoadCombinations", "LoadCombinations", "Single LoadCombination element or list of LoadCombination elements to add. Nested lists are not supported.", GH_ParamAccess.list); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddPlaneParameter("Bricks", "B", "Center planes of bricks", GH_ParamAccess.tree); pManager.AddTextParameter("Types", "T", "Types of bricks", GH_ParamAccess.tree); pManager.AddPointParameter("Corners", "C", "Corners of bricks", GH_ParamAccess.tree); pManager.AddPlaneParameter("SuckerCenter", "SC", "Center of sucker", GH_ParamAccess.item); pManager.AddPlaneParameter("NozzleCenter", "NC", "Center of nozzle", GH_ParamAccess.item); pManager.AddPlaneParameter("HomePlane", "HP", "Home planes of bricks", GH_ParamAccess.item); pManager.AddNumberParameter("HorizontalBorder", "HB", "Horizontal border of mortar", GH_ParamAccess.item, 25); pManager.AddNumberParameter("VerticalBorder", "VB", "Vertical border of mortar", GH_ParamAccess.item, 25); pManager.AddNumberParameter("Gap", "G", "Gap of border", GH_ParamAccess.item, 25); pManager.AddNumberParameter("Retreat", "R", "Retreat of nozzle", GH_ParamAccess.item, 10); }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Input", "Input", "Input from the previous Compute Component", GH_ParamAccess.item); pManager.AddTextParameter("Probe Names", "Probes", "Give names to each branch of in the points tree. The names can later be used to identify the points.", GH_ParamAccess.list); pManager.AddIntegerParameter("CPUs", "CPUs", "CPUs to use. Valid choices are:\n1, 2, 4, 8, 16, 18, 24, 36, 48, 64, 72, 96", GH_ParamAccess.item, 4); pManager.AddTextParameter("DependentOn", "DependentOn", "By default the Pressure Coefficient task is dependent on a Probe task. If you want it to be dependent on another task. Please supply the name of that task here.", GH_ParamAccess.item, "Probe"); pManager.AddTextParameter("Overrides", "Overrides", "Optional overrides to apply to the presets.", GH_ParamAccess.item, ""); pManager.AddBooleanParameter("Create", "Create", "Whether to create a new Wind Threshold task, if one doesn't exist", GH_ParamAccess.item, false); pManager[2].Optional = true; pManager[3].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Input", "Input", "Input from previous Compute Component", GH_ParamAccess.item); pManager.AddTextParameter("Domain", "Domain", "", GH_ParamAccess.item); pManager.AddTextParameter("Default Surface", "Default Surface", "", GH_ParamAccess.item); pManager.AddTextParameter("Overrides", "Overrides", "Takes overrides for SnappyHexMesh in JSON format:\n" + "{\n" + " \"castellatedMeshControls\": {...},\n" + " \"snapControls\": {...},\n" + " \"addLayersControls\": {...},\n" + " \"meshQualityControls\": {...},\n" + " \"mergeTolerance\": number\n" + "}" + "\nA full reference of available keys can be found at: https://www.openfoam.com/documentation/guides/latest/doc/guide-meshing-snappyhexmesh-quick-reference.html", GH_ParamAccess.item); pManager.AddTextParameter("setSet", "setSet", "setSet regions", GH_ParamAccess.list); pManager[2].Optional = true; pManager[3].Optional = true; pManager[4].Optional = true; }
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; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Input", "Input", "Input from the previous Compute Component", GH_ParamAccess.item); pManager.AddTextParameter("EPW File", "EPW File", "Path to where the EPW file is located.", GH_ParamAccess.item); pManager.AddTextParameter("Probe Names", "Probes", "Give names to each branch of in the points tree. The names can later be used to identify the points.", GH_ParamAccess.list); pManager.AddTextParameter("Thresholds", "Thresholds", "Thresholds for different wind comfort categories. Input should be a list JSON formatted strings, " + "with the fields: \"field\" and \"value\", respectively describing the category name and threshold value." + "\nThe default values corresponds to the Lawson 2001 Criteria", GH_ParamAccess.list, new List <string> { "{\"field\": \"sitting\", \"value\": 4}", "{\"field\": \"standing\", \"value\": 6}", "{\"field\": \"strolling\", \"value\": 8}", "{\"field\": \"business_walking\", \"value\": 10}", "{\"field\": \"uncomfortable\", \"value\": 10}", "{\"field\": \"unsafe_frail\", \"value\": 15}", "{\"field\": \"unsafe_all\", \"value\": 20}" }); pManager.AddIntegerParameter("CPUs", "CPUs", "CPUs to use. Valid choices are:\n1, 2, 4, 8, 16, 18, 24, 36, 48, 64, 72, 96", GH_ParamAccess.item, 4); pManager.AddTextParameter("DependentOn", "DependentOn", "By default the probe task is dependent on a wind tunnel task or a task running simpleFoam. If you want it to be dependent on another task. Please supply the name of that task here.", GH_ParamAccess.item, "Probe"); pManager.AddBooleanParameter("Create", "Create", "Whether to create a new Wind Threshold task, if one doesn't exist", GH_ParamAccess.item, false); pManager[2].Optional = true; pManager[3].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; pManager[6].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { var defaultFolder = ReadDefaultFolder(); var enableParam = pManager.AddBooleanParameter("Enable", "E", "Enable listening for changes for the current file?", GH_ParamAccess.tree, false); pManager[enableParam].Optional = true; var folderParam = pManager.AddTextParameter("Folder", "F", "Folder to write scripts to", GH_ParamAccess.tree, defaultFolder); pManager[folderParam].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddCurveParameter("Curve", "Curve", "Curve defining the line load.", GH_ParamAccess.item); pManager.AddVectorParameter("StartForce", "StartForce", "StartForce. The start force will define the direction of the line load. [kN]", GH_ParamAccess.item); pManager.AddVectorParameter("EndForce", "EndForce", "EndForce. Optional. If undefined LineLoad will be uniform with a force of StartForce. [kN]", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("LoadCase", "LoadCase", "LoadCase.", GH_ParamAccess.item); pManager.AddBooleanParameter("ConstLoadDir", "ConstLoadDir", "Constant load direction? If true direction of load will be constant along action line. If false direction of load will vary along action line - characteristic direction is in the middle point of line. Optional.", GH_ParamAccess.item, true); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddBooleanParameter("LoadProjection", "LoadProjection", "LoadProjection. \nFalse: Intensity meant along action line (eg. dead load). \nTrue: Intensity meant perpendicular to direction of load (eg. snow load).", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddTextParameter("Comment", "Comment", "Comment.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager manager) { var templatePath = new Grasshopper.Kernel.Parameters.Param_FilePath(); templatePath.FileFilter = "Family Template Files (*.rft)|*.rft"; manager[manager.AddParameter(templatePath, "Template", "T", string.Empty, GH_ParamAccess.item)].Optional = true; manager.AddBooleanParameter("OverrideFamily", "O", "Override Family", GH_ParamAccess.item, false); manager.AddBooleanParameter("OverrideParameters", "O", "Override Parameters", GH_ParamAccess.item, false); manager.AddTextParameter("Name", "N", string.Empty, GH_ParamAccess.item); manager[manager.AddParameter(new Parameters.Category(), "Category", "C", string.Empty, GH_ParamAccess.item)].Optional = true; manager[manager.AddGeometryParameter("Geometry", "G", string.Empty, GH_ParamAccess.list)].Optional = true; }
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.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[1].Optional = true; pManager[2].Optional = true; pManager[3].Optional = true; }
//This region overrides the typical component layout #endregion #region input and output protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddIntegerParameter("Load case", "LC", "Load case number (default 1)", GH_ParamAccess.item, 1); pManager.AddPointParameter("Point", "Pt", "Point. If you input grid plane below only x and y coordinates will be used from this point, but if not a new Grid Plane Surface (xy-plane) will be created at the z-elevation of this point.", GH_ParamAccess.item); pManager.AddGenericParameter("Grid Plane Surface", "GPS", "Grid Plane Surface or Plane (optional). If no input here then the point's z-coordinate will be used for an xy-plane at that elevation.", GH_ParamAccess.item); pManager.AddTextParameter("Direction", "Di", "Load direction (default z)." + System.Environment.NewLine + "Accepted inputs are:" + System.Environment.NewLine + "x" + System.Environment.NewLine + "y" + System.Environment.NewLine + "z", GH_ParamAccess.item, "z"); pManager.AddIntegerParameter("Axis", "Ax", "Load axis (default Global). " + System.Environment.NewLine + "Accepted inputs are:" + System.Environment.NewLine + "0 : Global" + System.Environment.NewLine + "-1 : Local", GH_ParamAccess.item, 0); pManager.AddTextParameter("Name", "Na", "Load Name", GH_ParamAccess.item); pManager.AddNumberParameter("Value (" + Units.Force + ")", "V", "Load Value (" + Units.Force + ")", GH_ParamAccess.item); pManager[0].Optional = true; pManager[2].Optional = true; pManager[3].Optional = true; pManager[4].Optional = true; pManager[5].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Endpoint", "E", "URL of Building Graph API", GH_ParamAccess.item); pManager.AddTextParameter("From Node", "frmNode", "Node name of from Element", GH_ParamAccess.item); pManager.AddTextParameter("From Id", "frmId", "From Element ID", GH_ParamAccess.item); pManager.AddTextParameter("To Node", "toNode", "Node name of to Element", GH_ParamAccess.item); pManager.AddTextParameter("To Id", "toId", "To Element ID", GH_ParamAccess.item); pManager.AddTextParameter("Relationship Name", "rn", "Name of relationship to create/merge", GH_ParamAccess.item); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddCurveParameter("Line", "Line", "Local x of line must equal positive global Z.", GH_ParamAccess.item); pManager.AddGenericParameter("Material", "Material", "Material.", GH_ParamAccess.item); pManager.AddGenericParameter("Section", "Section", "Section.", GH_ParamAccess.item); pManager.AddGenericParameter("Connectivity", "Connectivity", "Connectivity. Optional, default value if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("Eccentricity", "Eccentricity", "Eccentricity. Optional, default value if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalY", "LocalY", "Set local y-axis. Vector must be perpendicular to Curve mid-point local x-axis. This parameter overrides OrientLCS", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddBooleanParameter("OrientLCS", "OrientLCS", "Orient LCS to GCS? If true the LCS of this object will be oriented to the GCS trying to align local z to global z if possible or align local y to global y if possible (if object is vertical). If false local y-axis from Curve coordinate system at mid-point will be used.", GH_ParamAccess.item, true); pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional, default value if undefined.", GH_ParamAccess.item, "C"); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddGenericParameter("Plane", "P", "Plane for Axis and Grid Plane definition. Note that an XY-plane will be created with an axis origin Z = 0 " + "and the height location will be controlled by Grid Plane elevation. For all none-XY plane inputs, the Grid Plane elevation will be 0", GH_ParamAccess.item); pManager.AddIntegerParameter("Grid Plane ID", "ID", "GSA Grid Plane ID. Setting this will replace any existing Grid Planes in GSA model", GH_ParamAccess.item, 0); pManager.AddNumberParameter("Grid Elevation", "Ev", "Grid Elevation (Optional). Note that this value will be added to Plane origin location in the plane's normal axis direction.", GH_ParamAccess.item, 0); pManager.AddTextParameter("Name", "Na", "Grid Plane Name", GH_ParamAccess.item); pManager[0].Optional = true; pManager[1].Optional = true; pManager[2].Optional = true; pManager[3].Optional = true; _mode = FoldMode.General; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddCurveParameter("Line", "Line", "LineCurve", GH_ParamAccess.item); pManager.AddGenericParameter("Material", "Material", "Material.", GH_ParamAccess.item); pManager.AddGenericParameter("Section", "Section", "Section.", GH_ParamAccess.item); pManager.AddNumberParameter("LimitCompression", "LimitCompression", "Compression force limit", GH_ParamAccess.item); pManager.AddBooleanParameter("BehaviourCompression", "BehaviourCompression", "True if plastic behaviour. False if brittle behaviour", GH_ParamAccess.item); pManager.AddNumberParameter("LimitTension", "LimitTension", "Tension force limit", GH_ParamAccess.item); pManager.AddBooleanParameter("BehaviourTension", "BehaviourTension", "True if plastic behaviour. False if brittle behaviour", GH_ParamAccess.item); pManager.AddVectorParameter("LocalY", "LocalY", "Set local y-axis. Vector must be perpendicular to Curve mid-point local x-axis. This parameter overrides OrientLCS", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddBooleanParameter("OrientLCS", "OrientLCS", "Orient LCS to GCS? If true the LCS of this object will be oriented to the GCS trying to align local z to global z if possible or align local y to global y if possible (if object is vertical). If false local y-axis from Curve coordinate system at mid-point will be used.", GH_ParamAccess.item, true); pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional, default value if undefined.", GH_ParamAccess.item, "T"); pManager[pManager.ParamCount - 1].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager inputParamManager) { //int aIndex = -1; //Param_Boolean booleanParameter = null; int index = -1; inputParamManager.AddTextParameter("_pathTasTBD", "_pathTasTBD", "The string path to a TasTBD file.", GH_ParamAccess.item); index = inputParamManager.AddParameter(new GooAnalyticalModelParam(), "_analyticalModel_", "_analyticalModel_", "A SAM analytical model", GH_ParamAccess.item); inputParamManager[index].Optional = true; inputParamManager.AddBooleanParameter("_excludeOutdoorAir_", "_excludeOutdoorAir_", "Should the outdoor air be excluded and TBD ventilation factor set to zero?", GH_ParamAccess.item, false); inputParamManager.AddBooleanParameter("_excludePositiveInternalGains_", "_excludePositiveInternalGains_", "Should the internal conduction gains not offset the heating load from adjacent rooms? This will re-run few times, sizing the simulation for each temperature.", GH_ParamAccess.item, true); inputParamManager.AddBooleanParameter("_run", "_run", "Connect a boolean toggle to run.", GH_ParamAccess.item, false); }
protected override void RegisterInputParams(GH_InputParamManager manager) { base.RegisterInputParams(manager); var type = manager[manager.AddParameter(new Parameters.Param_Enum <Types.CategoryType>(), "Type", "T", "Category type", GH_ParamAccess.item)] as Parameters.Param_Enum <Types.CategoryType>; type.SetPersistentData(DB.CategoryType.Model); type.Optional = true; manager[manager.AddParameter(new Parameters.Category(), "Parent", "P", "Parent category", GH_ParamAccess.item)].Optional = true; manager[manager.AddTextParameter("Name", "N", "Level name", GH_ParamAccess.item)].Optional = true; manager[manager.AddBooleanParameter("AllowsSubcategories", "A", "Allows subcategories to be added", GH_ParamAccess.item)].Optional = true; manager[manager.AddBooleanParameter("AllowsParameters", "A", "Allows bound parameters", GH_ParamAccess.item)].Optional = true; manager[manager.AddBooleanParameter("HasMaterialQuantities", "M", "Has material quantities", GH_ParamAccess.item)].Optional = true; manager[manager.AddBooleanParameter("Cuttable", "C", "Has material quantities", GH_ParamAccess.item)].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager inputParamManager) { int index = -1; //Param_Boolean booleanParameter = null; inputParamManager.AddTextParameter("_pathTasTSD", "_pathTasTSD", "A string path to a TasTSD file.", GH_ParamAccess.item); index = inputParamManager.AddGenericParameter("panelDataType_", "panelDataType_", "Filters your chosen results for the type: panel.", GH_ParamAccess.list); inputParamManager[index].Optional = true; index = inputParamManager.AddGenericParameter("spaceDataType_", "spaceDataType_", "Filters your chosen results for the type: space.", GH_ParamAccess.list); inputParamManager[index].Optional = true; inputParamManager.AddBooleanParameter("_run", "_run", "Connect a boolean toggle to run.", GH_ParamAccess.item, false); }
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("Node filter list", "No", "Filter results by list." + System.Environment.NewLine + "Node list should take the form:" + System.Environment.NewLine + " 1 11 to 72 step 2 not (XY3 31 to 45)" + System.Environment.NewLine + "Refer to GSA help file for definition of lists and full vocabulary.", GH_ParamAccess.item, "All"); 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("Scalar", "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; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager inputParamManager) { string path = null; int index = -1; index = inputParamManager.AddParameter(new GooAdjacencyClusterParam(), "_adjacencyCluster", "_adjacencyCluster", "SAM Analytical Adjacency Cluster", GH_ParamAccess.item); //inputParamManager[index].DataMapping = GH_DataMapping.Flatten; index = inputParamManager.AddTextParameter("path_", "path_", "GEM file path including extension .gem", GH_ParamAccess.item, path); inputParamManager[index].Optional = true; index = inputParamManager.AddNumberParameter("_tolerance_", "_tolerance_", "Tolerance", GH_ParamAccess.item, Tolerance.Distance); inputParamManager.AddBooleanParameter("_run_", "_run_", "Run, set to True to export GEM to given path", GH_ParamAccess.item, false); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddCurveParameter("Curve", "Curve", "Curve along where to place the LineSupport.", GH_ParamAccess.item); pManager.AddGenericParameter("Motions", "Motions", "Motion springs.", GH_ParamAccess.item); pManager.AddGenericParameter("Rotations", "Rotations", "Rotation springs.", GH_ParamAccess.item); pManager.AddGenericParameter("Plastic Limits Forces Motions", "PlaLimM", "Plastic limits forces for motion springs. Optional.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("Plastic Limits Moments Rotations", "PlaLimR", "Plastic limits moments for rotation springs. Optional.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddBooleanParameter("MovingLocal", "MovingLocal", "LCS changes direction along line? True/false.", GH_ParamAccess.item, false); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalY", "LocalY", "Set local y-axis. Vector must be perpendicular to Curve mid-point local x-axis. This parameter overrides OrientLCS.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddBooleanParameter("OrientLCS", "OrientLCS", "Orient LCS to GCS? If true the LCS of this object will be oriented to the GCS trying to align local z to global z if possible or align local y to global y if possible (if object is vertical). If false local y-axis from Curve coordinate system at mid-point will be used.", GH_ParamAccess.item, true); pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional, default value if undefined.", GH_ParamAccess.item, "S"); pManager[pManager.ParamCount - 1].Optional = true; }
/// <summary> /// Registers all the input parameters for this component. /// </summary> protected override void RegisterInputParams(GH_InputParamManager inputParamManager) { //int aIndex = -1; //Param_Boolean booleanParameter = null; inputParamManager.AddTextParameter("_pathTasTBD", "_pathTasTBD", "A string path to a TasTBD file", GH_ParamAccess.item); inputParamManager.AddParameter(new GooAnalyticalObjectParam() { Optional = true }, "_coolingDesignDays_", "_coolingDesignDays_", "The SAM Analytical Design Days for Cooling", GH_ParamAccess.list); inputParamManager.AddParameter(new GooAnalyticalObjectParam() { Optional = true }, "_heatingDesignDays_", "_heatingDesignDays_", "The SAM Analytical Design Days for Heating", GH_ParamAccess.list); inputParamManager.AddIntegerParameter("_repetitions_", "_repetitions_", "Repetitions", GH_ParamAccess.item, 30); inputParamManager.AddBooleanParameter("_run", "_run", "Connect a boolean toggle to run.", GH_ParamAccess.item, false); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Name", "N", "Name", GH_ParamAccess.item, "Custom command"); pManager.AddTextParameter("ABB decl", "Ad", "ABB variable declaration and assignment", GH_ParamAccess.item); pManager.AddTextParameter("KUKA decl", "Kd", "KUKA variable declaration and assignment", GH_ParamAccess.item); pManager.AddTextParameter("UR decl", "Ud", "UR variable declaration and assignment", GH_ParamAccess.item); pManager.AddTextParameter("ABB code", "A", "ABB code", GH_ParamAccess.item); pManager.AddTextParameter("KUKA code", "K", "KUKA code", GH_ParamAccess.item); pManager.AddTextParameter("UR code", "U", "UR code", 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; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddSurfaceParameter("Surface", "Surface", "Surface must be flat.", GH_ParamAccess.item); pManager.AddNumberParameter("Thickness", "Thickness", "Thickness. [m]", GH_ParamAccess.item); pManager.AddGenericParameter("Material", "Material", "Material.", GH_ParamAccess.item); pManager.AddGenericParameter("ShellEccentricity", "Eccentricity", "ShellEccentricity. Optional.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("ShellOrthotropy", "Orthotropy", "ShellOrthotropy. Optional.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("EdgeConnection", "EdgeConnection", "EdgeConnection. Optional.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional.", GH_ParamAccess.item, "P"); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddCurveParameter("Curve", "Curve", "LineCurve or ArcCurve", GH_ParamAccess.item); pManager.AddNumberParameter("AE", "AE", "AE", GH_ParamAccess.item, 1E7); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("ItG", "ItG", "ItG", GH_ParamAccess.item, 1E7); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("I1E", "I1E", "I1E", GH_ParamAccess.item, 1E7); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("I2E", "I2E", "I2E", GH_ParamAccess.item, 1E7); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("Connectivity", "Connectivity", "Connectivity. Connectivity. If 1 item this item defines both start and end connectivity. If two items the first item defines the start connectivity and the last item defines the end connectivity.", GH_ParamAccess.list); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalY", "LocalY", "Set local y-axis. Vector must be perpendicular to Curve mid-point local x-axis. This parameter overrides OrientLCS", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddBooleanParameter("OrientLCS", "OrientLCS", "Orient LCS to GCS? If true the LCS of this object will be oriented to the GCS trying to align local z to global z if possible or align local y to global y if possible (if object is vertical). If false local y-axis from Curve coordinate system at mid-point will be used.", GH_ParamAccess.item, true); pManager.AddTextParameter("Identifier", "Identifier", "Identifier.", GH_ParamAccess.item, "BF"); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddSurfaceParameter("Surface", "Surface", "Surface.", GH_ParamAccess.item); pManager.AddGenericParameter("TimberPlateMaterial", "Material", "Timber plate material.", GH_ParamAccess.item); pManager.AddVectorParameter("SpanDirection", "Direction", "Span direction of the timber plate.", GH_ParamAccess.item); pManager.AddNumberParameter("PanelWidth", "PanelWidth", "Width of each individual CLT panel in region. 1.5m if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("ShellEccentricity", "Eccentricity", "ShellEccentricity. Optional.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("BorderEdgeConnection", "BorderEdgeConnection", "EdgeConnection of the external border of the panel. Optional. If not defined hinged will be used.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("AvgMeshSize", "AverageMeshSize", "Average mesh size. If zero an automatic value will be used by FEM-Design. Optional. [m]", GH_ParamAccess.item, 0); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional.", GH_ParamAccess.item, "PP"); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddSurfaceParameter("Surface", "Srf", "Surface.", GH_ParamAccess.item); pManager.AddGenericParameter("Material", "Mat", "Material.", GH_ParamAccess.item); pManager.AddGenericParameter("Section", "Sec", "Section.", GH_ParamAccess.item); pManager.AddGenericParameter("ShellEccentricity", "Eccentricity", "ShellEccentricity. Optional.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("OrthoRatio", "OrthoRatio", "Transversal flexural stiffness factor.", GH_ParamAccess.item, 1); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddGenericParameter("BorderEdgeConnection", "BorderEdgeConnection", "EdgeConnection of the external border of the panel. Optional. If not defined hinged will be used.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalX", "LocalX", "Set local x-axis. Vector must be perpendicular to surface local z-axis. Local y-axis will be adjusted accordingly. Optional, local x-axis from surface coordinate system used if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddVectorParameter("LocalZ", "LocalZ", "Set local z-axis. Vector must be perpendicular to surface local x-axis. Local y-axis will be adjusted accordingly. Optional, local z-axis from surface coordinate system used if undefined.", GH_ParamAccess.item); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddNumberParameter("AvgMeshSize", "AverageMeshSize", "Average mesh size. If zero an automatic value will be used by FEM-Design. Optional. [m]", GH_ParamAccess.item, 0); pManager[pManager.ParamCount - 1].Optional = true; pManager.AddTextParameter("Identifier", "Identifier", "Identifier. Optional.", GH_ParamAccess.item, "PP"); pManager[pManager.ParamCount - 1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager manager) { base.RegisterInputParams(manager); var discipline = manager[manager.AddParameter(new Parameters.Param_Enum <Types.ViewDiscipline>(), "Discipline", "Discipline", "View discipline", GH_ParamAccess.item)] as Parameters.Param_Enum <Types.ViewDiscipline>; discipline.Optional = true; var type = manager[manager.AddParameter(new Parameters.Param_Enum <Types.ViewType>(), "Type", "T", "View type", GH_ParamAccess.item)] as Parameters.Param_Enum <Types.ViewType>; type.SetPersistentData(DB.ViewType.Undefined); type.Optional = true; manager[manager.AddTextParameter("Name", "N", "View name", GH_ParamAccess.item)].Optional = true; manager[manager.AddParameter(new Parameters.View(), "Template", "T", "Views template", GH_ParamAccess.item)].Optional = true; manager[manager.AddBooleanParameter("IsTemplate", "T", "View is template", GH_ParamAccess.item, false)].Optional = true; manager[manager.AddBooleanParameter("IsAssembly", "A", "View is assembly", GH_ParamAccess.item, false)].Optional = true; manager[manager.AddBooleanParameter("IsPrintable", "P", "View is printable", GH_ParamAccess.item, true)].Optional = true; manager[manager.AddParameter(new Parameters.ElementFilter(), "Filter", "F", "Filter", GH_ParamAccess.item)].Optional = true; }
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; } }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new ProgramParameter(), "Program", "P", "Program", GH_ParamAccess.item); pManager.AddTextParameter("Code", "C", "Custom code", GH_ParamAccess.list); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new ProgramParameter(), "Program", "P", "Program", GH_ParamAccess.item); pManager.AddTextParameter("Folder", "F", "Folder", GH_ParamAccess.item); pManager[1].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new ResultElementParam(), "Result Elements", "RE", "Result elements, storing results from the calculation", GH_ParamAccess.list); pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item); pManager.AddBooleanParameter("Show deflections", "def", "Enables or disables showing deformed sections", GH_ParamAccess.item, false); pManager.AddNumberParameter("ScalingFactor", "sfac", "Scaling factor for the drawing.", GH_ParamAccess.item, 1); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Message", "M", "Message to display in teach pendant", GH_ParamAccess.item); }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddParameter(new ResultElementParam(), "Result Element", "RE", "Result element", GH_ParamAccess.list); pManager.AddBooleanParameter("DisplayToggles", "DT", "Toggles the forces to display. Input should be a list of 6 booleans (N, Vy, Vz, T, Myy, Mzz). [Normal force, shear in weak axis, shear in strong axis, torsion, bending in strong direction, bending in weak direction]", GH_ParamAccess.list); pManager.AddNumberParameter("ScalingFactor", "sfac", "Scaling factor for the drawing. Input should be either one 'global' scaling factor or a list of 6 individual ones.", GH_ParamAccess.list, 1); pManager.AddTextParameter("Load Comb", "LC", "Load combination to display results from", GH_ParamAccess.item); pManager[3].Optional = true; }
protected override void RegisterInputParams(GH_InputParamManager pManager) { pManager.AddTextParameter("Name", "N", "Name of the Robot system", GH_ParamAccess.item); pManager.AddPlaneParameter("Base", "P", "Base plane", GH_ParamAccess.item, Plane.WorldXY); parameter = pManager[0]; }