public XyzToSpherical() { InPortData.Add(new PortData("xyz", "XYZ to decompose", typeof(FScheme.Value.Container))); OutPortData.Add(_rPort); OutPortData.Add(_thetaPort); OutPortData.Add(_phiPort); this.ArgumentLacing = LacingStrategy.Longest; RegisterAllPorts(); }
public BoundingBoxXyz() { InPortData.Add(new PortData("trans", "The coordinate system of the box.", typeof(Value.Container))); InPortData.Add(new PortData("x size", "The size of the bounding box in the x direction of the local coordinate system.", typeof(Value.Number))); InPortData.Add(new PortData("y size", "The size of the bounding box in the y direction of the local coordinate system.", typeof(Value.Number))); InPortData.Add(new PortData("z size", "The size of the bounding box in the z direction of the local coordinate system.", typeof(Value.Number))); OutPortData.Add(new PortData("bbox", "The bounding box.", typeof(Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public Filter(WorkspaceModel workspace) : base(workspace) { InPortData.Add(new PortData("list", "List to filter")); InPortData.Add(new PortData("condition", "Predicate used to determine if an element is filtered in or out.")); OutPortData.Add( new PortData("in", "List containing all elements \"x\" where condition(x) = True")); OutPortData.Add( new PortData("out", "List containing all elements \"x\" where condition(x) = False")); RegisterAllPorts(); }
public Color() { InPortData.Add(new PortData("A", "The alpha part of the color between 0 and 255", typeof(Value.Number))); InPortData.Add(new PortData("R", "The red part of the color between 0 and 255", typeof(Value.Number))); InPortData.Add(new PortData("G", "The green part of the color between 0 and 255", typeof(Value.Number))); InPortData.Add(new PortData("B", "The blue part of the color between 0 and 255", typeof(Value.Number))); OutPortData.Add(new PortData("c", "The color", typeof(Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public dynSpatialFieldFace() { InPortData.Add(new PortData("vals", "List of values, corresponding in length, to the list of sample points.", typeof(Value.List))); InPortData.Add(new PortData("uvs", "Sample locations (UVs) on the face.", typeof(Value.List))); InPortData.Add(new PortData("sfm", "A Spatial Field Manager object.", typeof(Value.Container))); InPortData.Add(new PortData("face", "The face on which to map the analytical data.", typeof(Value.Container))); OutPortData.Add(new PortData("idx", "The index of the resulting analysis results object.", typeof(Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public Filter() { InPortData.Add(new PortData("list", "List to filter")); InPortData.Add(new PortData("p(x)", "Predicate")); OutPortData.Add( new PortData("in", "List containing all elements \"x\" where p(x) = True")); OutPortData.Add( new PortData("out", "List containing all elements \"x\" where p(x) = False")); RegisterAllPorts(); }
public SunSettings() { OutPortData.Add( new PortData("SunSettings", Properties.Resources.PortDataSunSettingToolTip)); RegisterAllPorts(); RevitServicesUpdater.Instance.ElementsUpdated += Updater_ElementsUpdated; DynamoRevitApp.EventHandlerProxy.ViewActivated += CurrentUIApplication_ViewActivated; DynamoRevitApp.AddIdleAction(() => CurrentUIApplicationOnViewActivated()); }
public NumberSeq(WorkspaceModel workspace) : base(workspace) { InPortData.Add(new PortData("start", "Number to start the sequence at")); InPortData.Add(new PortData("amount", "Amount of numbers in the sequence")); InPortData.Add(new PortData("step", "Space between numbers")); OutPortData.Add(new PortData("seq", "New sequence")); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
protected DSElementSelection(Func <string, ElementId> action, string message) { SelectionAction = action; _selectionMessage = message; OutPortData.Add(new PortData("Element", "The selected element.")); RegisterAllPorts(); dynRevitSettings.Controller.Updater.ElementsModified += Updater_ElementsModified; dynRevitSettings.Controller.Updater.ElementsDeleted += Updater_ElementsDeleted; dynRevitSettings.Controller.RevitDocumentChanged += Controller_RevitDocumentChanged; }
public LineByStartPtDirLength() { InPortData.Add(new PortData("start", "The origin of the line.", typeof(FScheme.Value.Container))); InPortData.Add(new PortData("direction", "The direction vector.", typeof(FScheme.Value.Container))); InPortData.Add(new PortData("length", "The length of the line.", typeof(FScheme.Value.Container))); OutPortData.Add(new PortData("line", "Line", typeof(FScheme.Value.Container))); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public Watch() { InPortData.Add(new PortData("", "Node to evaluate.")); OutPortData.Add(new PortData("", "Watch contents.")); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Disabled; ShouldDisplayPreviewCore = false; HasRunOnce = false; }
public DynamoConvert() { SelectedMetricConversion = ConversionMetricUnit.Length; AssociativeNode defaultNode = new DoubleNode(0.0); InPortData.Add(new PortData("", "A numeric value for conversion.", defaultNode)); OutPortData.Add(new PortData("", "A converted numeric value.")); ShouldDisplayPreviewCore = true; IsSelectionFromBoxEnabled = true; RegisterAllPorts(); }
public TransFromTo() { InPortData.Add(new PortData("o-from", "Origin(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("u-from", "Up(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("f-from", "Up(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("o-to", "Origin(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("u-to", "Up(XYZ)", typeof(Value.Container))); InPortData.Add(new PortData("f-to", "Up(XYZ)", typeof(Value.Container))); OutPortData.Add(new PortData("t", "Transform", typeof(Value.Container))); RegisterAllPorts(); }
public XyzToPolar() { InPortData.Add(new PortData("xyz", "Input XYZ", typeof(FScheme.Value.Container), FScheme.Value.NewContainer(new XYZ(1, 0, 0)))); OutPortData.Add(_rPort); OutPortData.Add(_thetaPort); OutPortData.Add(_offsetPort); this.ArgumentLacing = LacingStrategy.Longest; RegisterAllPorts(); }
public If() { InPortData.Add(new PortData("test", "Test block")); InPortData.Add(new PortData("true", "True block")); InPortData.Add(new PortData("false", "False block")); OutPortData.Add(new PortData("result", "Result")); RegisterAllPorts(); //TODO: Default Values }
//!The Bar constructor. public DynAnalyticalBar() { InPortData.Add(new PortData("start", "The start node of the bar.", typeof(AnalyticalNode))); InPortData.Add(new PortData("end", "The end node of the bar.", typeof(AnalyticalNode))); InPortData.Add(new PortData("n", "The diameter of the bar.", typeof(double))); InPortData.Add(new PortData("n", "The section type of the bar.", typeof(SectionType))); InPortData.Add(new PortData("n", "The section thickness of the bar.", typeof(double))); InPortData.Add(new PortData("n", "The the end release of the bar.", typeof(string))); OutPortData.Add(new PortData("bar", "The analytical bar.", typeof(AnalyticalBar))); NodeUI.RegisterAllPorts(); }
public DSFunction(ProcedureNode dsProcedure) { procedure = dsProcedure; foreach (var arg in procedure.argInfoList) { InPortData.Add(new PortData(arg.Name, "parameter", typeof(object))); } OutPortData.Add(new PortData("", "Object inspected", typeof(object))); RegisterAllPorts(); NickName = procedure.name; }
public DynamoConvert() { SelectedMetricConversion = ConversionMetricUnit.Length; AssociativeNode defaultNode = new DoubleNode(0.0); InPortData.Add(new PortData("", Properties.Resources.UnitNodeFromPortTooltip, defaultNode)); OutPortData.Add(new PortData("", Properties.Resources.UnitNodeToPortToolTip)); ShouldDisplayPreviewCore = true; IsSelectionFromBoxEnabled = true; RegisterAllPorts(); }
public ColorRange(WorkspaceModel workspace) : base(workspace) { InPortData.Add(new PortData("start", "The start color.")); InPortData.Add(new PortData("end", "The end color.")); InPortData.Add(new PortData("value", "The value between 0 and 1 of the selected color.")); OutPortData.Add(new PortData("color", "The selected color.")); RegisterAllPorts(); this.PropertyChanged += ColorRange_PropertyChanged; }
public RayBounce() { InPortData.Add(new PortData("origin", "The origin of the ray.", typeof(FScheme.Value.Container))); InPortData.Add(new PortData("direction", "The direction of the ray.", typeof(FScheme.Value.Container))); InPortData.Add(new PortData("maxBounces", "The maximum number of bounces allowed.", typeof(FScheme.Value.Number))); InPortData.Add(new PortData("view", "The view in which to conduct the analysis.", typeof(FScheme.Value.Container))); OutPortData.Add(intersections); OutPortData.Add(elements); RegisterAllPorts(); }
public ColorComponents() { InPortData.Add(new PortData("c", "The color", typeof(Value.Container))); OutPortData.Add(_alphaOut); OutPortData.Add(_redOut); OutPortData.Add(_greenOut); OutPortData.Add(_blueOut); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Longest; }
public dynFreeForm() { InPortData.Add(new PortData("solid", "solid to use for Freeform", typeof(object))); OutPortData.Add(new PortData("form", "Free Form", typeof(object))); RegisterAllPorts(); if (freeFormSolids == null) { freeFormSolids = new Dictionary <ElementId, Solid>(); } }
public dynFamilyInstanceCreator() { InPortData.Add(new PortData(null, "pt", "Reference points.", typeof(dynReferencePoint))); InPortData.Add(new PortData(null, "typ", "The Family Symbol to use for instantiation.", typeof(dynFamilyTypeSelector))); //StatePortData.Add(new PortData(null, "map", "Instance parameter map.", typeof(dynInstanceParameterMapper))); OutPortData.Add(new PortData(null, "fi", "Family instances created by this operation.", typeof(dynFamilyInstanceCreator))); OutPortData[0].Object = this.Tree; base.RegisterInputsAndOutputs(); }
public WriteDataToExcelWorksheet(WorkspaceModel workspace) : base(workspace) { InPortData.Add(new PortData("worksheet", "The Excel Worksheet to write to.")); InPortData.Add(new PortData("start row", "Row index to insert data.", 0)); InPortData.Add(new PortData("start column", "Column index to insert data.", 0)); InPortData.Add(new PortData("data", "A single item, a 1d list, or a 2d list to write to the worksheet")); OutPortData.Add(new PortData("worksheet", "The modified excel worksheet")); RegisterAllPorts(); }
public Symbol() { OutPortData.Add(new PortData("", Properties.Resources.ToolTipSymbol)); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Disabled; InputSymbol = String.Empty; ElementResolver = new ElementResolver(); }
public If() { InPortData.Add(new PortData("test", Resources.PortDataTestBlockToolTip)); InPortData.Add(new PortData("true", Resources.PortDataTrueBlockToolTip)); InPortData.Add(new PortData("false", Resources.PortDataFalseBlockToolTip)); OutPortData.Add(new PortData("result", Resources.PortDataResultToolTip)); RegisterAllPorts(); //TODO: Default Values }
protected ViewBase() { InPortData.Add(new PortData("eye", "The eye position point.", typeof(Value.Container))); InPortData.Add(new PortData("target", "The location where the view is pointing.", typeof(Value.Container))); InPortData.Add(new PortData("name", "The name of the view.", typeof(Value.String))); InPortData.Add(new PortData("extents", "Pass in a bounding box or an element to define the 3D crop of the view.", typeof(Value.String))); InPortData.Add(new PortData("isolate", "If an element is supplied in 'extents', it will be isolated in the view.", typeof(Value.String))); OutPortData.Add(new PortData("view", "The newly created 3D view.", typeof(Value.Container))); RegisterAllPorts(); }
public Watch() { InPortData.Add(new PortData("", Resources.WatchPortDataInputToolTip)); OutPortData.Add(new PortData("", Resources.WatchPortDataResultToolTip)); RegisterAllPorts(); ArgumentLacing = LacingStrategy.Disabled; ShouldDisplayPreviewCore = false; HasRunOnce = false; }
public WoodSpeciesAndGradeSelection() { //OutPortData.Add(new PortData("ReportEntry", "Calculation log entries (for reporting)")); OutPortData.Add(new PortData("WoodSpeciesId", "Wood species for reference value selection")); OutPortData.Add(new PortData("CommercialGradeId", "Wood commercial grade")); OutPortData.Add(new PortData("SizeClassId", "Wood species size classification for reference value selection")); OutPortData.Add(new PortData("WoodMemberType", "Wood member type")); RegisterAllPorts(); this.WoodMemberType = "SawnDimensionLumber"; //initial member type assignment to get species list SetDefaultParams(); //PropertyChanged += NodePropertyChanged; }
public CustomNode() { //Define some input ports an input port will be created for //each port data object you add to the InPortData collection InPortData.Add(new PortData("in", "The first port's description.", typeof(FScheme.Value.Container))); //Define some output ports an output port will be created for //the port data object you add to the OutPortData collection OutPortData.Add(new PortData("out", "The output value.", typeof(FScheme.Value.Container))); //Setup all the ports on the node RegisterAllPorts(); }