public override void Calculate() { Document doc = Autodesk.Navisworks.Api.Application.ActiveDocument; List <object> output = new List <object>(); OutputPorts[0].Data = MainTools.RunFunction(getAPIPropertyValue, InputPorts); }
public override void Calculate() { var viewpoint = InputPorts[0].Data; OutputPorts[0].Data = MainTools.RunFunction(getViewpointsComments, InputPorts); }
public override void Calculate() { if (InputPorts[0].Data != null && InputPorts[1].Data != null && InputPorts[2].Data != null) { OutputPorts[0].Data = MainTools.RunFunction(GetValuesFromProperties, InputPorts); } }
public override void Calculate() { Document doc = Autodesk.Navisworks.Api.Application.ActiveDocument; var viewpoints = doc.SavedViewpoints; object item = null; object name = null; object path = null; OutputPorts[0].Data = MainTools.RunFunction(exportViewpoint, InputPorts); }
public override void Calculate() { var Name = InputPorts[0].Data; var Category = InputPorts[1].Data; var Property = InputPorts[2].Data; var Value = InputPorts[3].Data; var search = MainTools.RunFunction(createSearchSet, InputPorts); OutputPorts[0].Data = search; }
public override void Calculate() { var stack = ControlElements[0] as StackPanel; //Basic grouping var RelationComboBox = stack.Children[1] as ComboBox; relation = "AND"; if (RelationComboBox.SelectedItem != null && RelationComboBox.SelectedItem.GetType() == typeof(string)) { relation = RelationComboBox.SelectedItem.ToString(); } var search = MainTools.RunFunction(setSearchRelation, InputPorts); OutputPorts[0].Data = search; }
public override void Calculate() { var stack = ControlElements[0] as StackPanel; //Basic grouping var OverrideComboBox = stack.Children[1] as ComboBox; Override = false; if (OverrideComboBox.SelectedItem != null) { Override = bool.Parse(OverrideComboBox.SelectedItem.ToString()); } doc = Autodesk.Navisworks.Api.Application.ActiveDocument; SavedViewpoints = new List <object>(); List <SelectionSet> Viewpoints = new List <SelectionSet>(); if (doc.SavedViewpoints != null) { SavedItemCollection viewpoints = doc.SavedViewpoints.ToSavedItemCollection(); try { foreach (SavedItem view in viewpoints) { var t = view.GetType(); var name = view.DisplayName; RecursionViewpoint(view); } } catch (System.Exception e) { System.Windows.MessageBox.Show(e.Message); } } OutputPorts[0].Data = MainTools.RunFunction(setAppearanceBySelections, InputPorts); }
public override void Calculate() { var search = MainTools.RunFunction(createSearchSetFromSearch, InputPorts); OutputPorts[0].Data = search; }
public override void Calculate() { OutputPorts[0].Data = MainTools.RunFunction(getAPIParameters, InputPorts); }