diff --git a/README.md b/README.md index 80b7111..8b5943a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ For more info see readme.md in each folder ## Scripts -### building-pad-from-elemens +### building-pad-from-elements Create building pad from selected elements. @@ -16,6 +16,24 @@ Parse exported excel tables from kimai1. It will create summaries per project pe State: stable, not maintained any more, only for 1.x +### dwg-import-cleaner + +Removes all imported dwgs + +State: stable + +### importobj-batch + +Imports all objs from a folder to separate rfa files. Designed to be used with Revit Batch Processor + +State: stable, under developement + +### list-all-inplace elements + +Lists all inplace elements in model + +State: stable + ## Nodes ### WeekDayNumber @@ -25,5 +43,3 @@ Created for kimai-export-parser Input: Weekday. Output: number of the day starting from monday State: stable, should work in 2.x as well. - - diff --git a/dwg-import-cleaner/1.x/DwgImportCleaner.dyn b/dwg-import-cleaner/1.x/DwgImportCleaner.dyn new file mode 100644 index 0000000..ed7deef --- /dev/null +++ b/dwg-import-cleaner/1.x/DwgImportCleaner.dyn @@ -0,0 +1,33 @@ + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dwg-import-cleaner/2.x/dwg-import-cleaner.dyn b/dwg-import-cleaner/2.x/dwg-import-cleaner.dyn new file mode 100644 index 0000000..0b999e2 --- /dev/null +++ b/dwg-import-cleaner/2.x/dwg-import-cleaner.dyn @@ -0,0 +1,248 @@ +{ + "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "IsCustomNode": false, + "Description": "", + "Name": "dwg-import-cleaner", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels", + "NodeType": "BooleanInputNode", + "InputValue": true, + "Id": "c456f88cb662433dbd83d6220cdec336", + "Inputs": [], + "Outputs": [ + { + "Id": "d7078398e3cf47789204428886c997c1", + "Name": "", + "Description": "Boolean", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Selection between a true and false." + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "archilab.Revit.Elements.Elements.Delete@Revit.Elements.Element", + "Id": "0f8b56853fca498ea235493c88ee163a", + "Inputs": [ + { + "Id": "80205f73b377487d899892f932079d67", + "Name": "element", + "Description": "Element to delete.\n\nElement", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "b06dc8b5fa10410a85541eeab4c5de06", + "Name": "bool", + "Description": "bool", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Delete element from Revit DB.\n\nElements.Delete (element: Element): bool" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "CAD.ReportInstances@string,bool,bool", + "Id": "2ed47be158014ff7b7d4e241959ac189", + "Inputs": [ + { + "Id": "c8844e163bd84e45a512e1832f8b4bae", + "Name": "filePath", + "Description": "Leave unconnected to report the active document or input a File Path to report an external Revit document or Family\n\nstring\nDefault value : null", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "45837f9bfa10481da8655172bc56bc65", + "Name": "refresh", + "Description": "To refresh, switch a bool input to its opposing state\n\nbool\nDefault value : true", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "718687162c684a6da7e5b6aa6ccb5f0e", + "Name": "close", + "Description": "Set to true to close any external files opened using the filePath input. Closing disposes all ouput objects\n\nbool\nDefault value : false", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "d3acd40bec3e4ef4bf9d47f5ee624c03", + "Name": "report[][]", + "Description": "string[][]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "b22317c0c19649479ac73f3308a5835b", + "Name": "CADLinks[]", + "Description": "ImportInstance[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "e4e1cd9565464a7e9b3beabda5061648", + "Name": "CADImports[]", + "Description": "ImportInstance[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Generates a report of all CAD links and imports in the document with key metrics. Linked and Imported CAD links are output into lists to aid with CAD link management.\r\rVisit bimorph.com/bimorph-nodes for support\n\nCAD.ReportInstances (filePath: string = null, refresh: bool = true, close: bool = false): var[]..[]" + } + ], + "Connectors": [ + { + "Start": "d7078398e3cf47789204428886c997c1", + "End": "45837f9bfa10481da8655172bc56bc65", + "Id": "de3d442892064c19a65508245de79ecb" + }, + { + "Start": "e4e1cd9565464a7e9b3beabda5061648", + "End": "80205f73b377487d899892f932079d67", + "Id": "4a4bb8eea590405a969f817beb280cad" + } + ], + "Dependencies": [], + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": true, + "IsVisibleInDynamoLibrary": true, + "Version": "2.0.2.6826", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "NodeViews": [ + { + "ShowGeometry": true, + "Name": "Boolean", + "Id": "c456f88cb662433dbd83d6220cdec336", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 1509.94450445684, + "Y": -349.105934757922 + }, + { + "ShowGeometry": true, + "Name": "Elements.Delete", + "Id": "0f8b56853fca498ea235493c88ee163a", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 2081.42568542399, + "Y": -328.086319149476 + }, + { + "ShowGeometry": true, + "Name": "CAD.ReportInstances", + "Id": "2ed47be158014ff7b7d4e241959ac189", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 1730.3999211777927, + "Y": -377.98014266790528 + } + ], + "Annotations": [ + { + "Id": "25fc7463fb2a423a9c8ae9ac18bb66af", + "Title": "Archilab", + "Nodes": [ + "0f8b56853fca498ea235493c88ee163a" + ], + "Left": 2071.42568542399, + "Top": -374.086319149476, + "Width": 216.0, + "Height": 139.0, + "FontSize": 30.0, + "InitialTop": -328.086319149476, + "InitialHeight": 123.0, + "TextblockHeight": 36.0, + "Background": "#FFA4E1FF" + }, + { + "Id": "d3f5bcc6561542eb9f3763522cefa238", + "Title": "Bimorph", + "Nodes": [ + "2ed47be158014ff7b7d4e241959ac189" + ], + "Left": 1720.3999211777927, + "Top": -430.98014266790528, + "Width": 267.0, + "Height": 198.0, + "FontSize": 36.0, + "InitialTop": -377.98014266790528, + "InitialHeight": 175.0, + "TextblockHeight": 43.0, + "Background": "#FFA4E1FF" + }, + { + "Id": "9eea704f77ce4ab39eba777525df9278", + "Title": "Bimorph\r\nArchilab", + "Nodes": [], + "Left": 1654.1729802016073, + "Top": -630.55299187257719, + "Width": 0.0, + "Height": 0.0, + "FontSize": 36.0, + "InitialTop": 0.0, + "InitialHeight": 0.0, + "TextblockHeight": 0.0, + "Background": "#FFC1D676" + } + ], + "X": -1269.89022373573, + "Y": 710.279567267629, + "Zoom": 0.87895433218201 + } +} \ No newline at end of file diff --git a/dwg-import-cleaner/readme.md b/dwg-import-cleaner/readme.md new file mode 100644 index 0000000..ebb8136 --- /dev/null +++ b/dwg-import-cleaner/readme.md @@ -0,0 +1,9 @@ +# Dwg import cleaner + +Removes **all** imported dwgs from drawing + +## Required packages + +- Bimorph nodes + +- Archilab diff --git a/list-all-inplace-elements/1.x/list-all-inplace-elements.dyn b/list-all-inplace-elements/1.x/list-all-inplace-elements.dyn new file mode 100644 index 0000000..c4d3d0a --- /dev/null +++ b/list-all-inplace-elements/1.x/list-all-inplace-elements.dyn @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/list-all-inplace-elements/2.x/list-all-inplace-elements.dyn b/list-all-inplace-elements/2.x/list-all-inplace-elements.dyn new file mode 100644 index 0000000..d29410a --- /dev/null +++ b/list-all-inplace-elements/2.x/list-all-inplace-elements.dyn @@ -0,0 +1,1028 @@ +{ + "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "IsCustomNode": false, + "Description": "", + "Name": "list-all-inplace-elements", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [ + { + "Id": "48bf9be1da01487f88492025bfd5d6b0", + "Name": "Boolean", + "Type": "boolean", + "Value": "true", + "Description": "Selection between a true and false." + } + ], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", + "FunctionSignature": "4f4e619c-bd49-4fa6-8f0c-b6db9d346c37", + "FunctionType": "Graph", + "NodeType": "FunctionNode", + "Id": "b42c45ca0e584195a8292d121550b39f", + "Inputs": [ + { + "Id": "479213f7190c4bf0bf300808d14b0c02", + "Name": "family", + "Description": "Family", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "9597e34da0a844f4bb784b751e1f2ff7", + "Name": "bool", + "Description": "return value", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Determines if a family is an in-place family" + }, + { + "ConcreteType": "DSRevitNodesUI.ElementsAtLevel, DSRevitNodesUI", + "NodeType": "ExtensionNode", + "Id": "33354fead4e04520bf08d6ef0f0e5ae6", + "Inputs": [ + { + "Id": "fb0f7d445d1a4debbd17afb5d45793e9", + "Name": "Level", + "Description": "A Level", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "021146826beb4521b7443eaaa9d75a25", + "Name": "Elements", + "Description": "Elements at the given level.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Get all the elements at the specified Level from the model." + }, + { + "ConcreteType": "DSRevitNodesUI.ElementsOfCategory, DSRevitNodesUI", + "NodeType": "ExtensionNode", + "Id": "ca6d8fdfc2e34f4d9394a289cb61f747", + "Inputs": [ + { + "Id": "434e8c6b75f14bbaa879f32d78f6c554", + "Name": "Category", + "Description": "The Category", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "a420d350f8f347dea123d224439ae5dd", + "Name": "Elements", + "Description": "An element type.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Get all elements of the specified category from the model." + }, + { + "ConcreteType": "DSRevitNodesUI.Categories, DSRevitNodesUI", + "SelectedIndex": 248, + "NodeType": "ExtensionNode", + "Id": "3112000b752148e39afe7e4d055a13b5", + "Inputs": [], + "Outputs": [ + { + "Id": "b37baa84f7bf4d848afa1f4f59ce511a", + "Name": "Category", + "Description": "The selected Category.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "All built-in categories." + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "DSCore.List.FilterByBoolMask@var[]..[],var[]..[]", + "Id": "f2b3ba3339414f1788d3ae8c5c7c0a7a", + "Inputs": [ + { + "Id": "418197b004634fafa9adb16630b137de", + "Name": "list", + "Description": "List to filter.\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "ea8e283305a7415b926f174ca19fb895", + "Name": "mask", + "Description": "List of booleans representing a mask.\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "4e4bd6b1769d419b959f09cea441cc41", + "Name": "in", + "Description": "Items whose mask index is true.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "8cd7cd557a0b4d269584ecbffd4b4585", + "Name": "out", + "Description": "Items whose mask index is false.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Filters a sequence by looking up corresponding indices in a separate list of booleans.\n\nList.FilterByBoolMask (list: var[]..[], mask: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "Revit.Elements.Element.GetParameterValueByName@string", + "Id": "9d53880b5ea9406aa60d801549ce58f0", + "Inputs": [ + { + "Id": "0715826831ee4491afaca56eb5027eda", + "Name": "element", + "Description": "Revit.Elements.Element", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "aef316c608644c54844ae0e2815fa18a", + "Name": "parameterName", + "Description": "The name of the parameter whose value you want to obtain.\n\nstring", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "378bb305f4964fd0ae33b9350bedc775", + "Name": "var[]..[]", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Get the value of one of the element's parameters.\n\nElement.GetParameterValueByName (parameterName: string): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "NodeType": "CodeBlockNode", + "Code": "\"Family\";", + "Id": "9ec3c87fcfd14708a471431d094c8d2a", + "Inputs": [], + "Outputs": [ + { + "Id": "3d7f6d0ec2304dcda503685fbb2e8bca", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "DSCore.List.UniqueItems@var[]..[]", + "Id": "b6a2fee33b0943c4ac354334fa362a91", + "Inputs": [ + { + "Id": "16ca3a2196bd409998cb1f4756ec1f8e", + "Name": "list", + "Description": "List to filter duplicates out of.\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "a6b28241d3844737938e69432937c54e", + "Name": "list", + "Description": "Filtered list.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Creates a new list containing all unique items in the given list.\n\nList.UniqueItems (list: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "DSCore.List.Flatten@var[]..[],int", + "Id": "278590edbde24eeb8a6ad71f70fa2550", + "Inputs": [ + { + "Id": "e7f1ba79408347b294e1145312e9926d", + "Name": "list", + "Description": "List to flatten.\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "ce11420029f542579c7a9c3f3fc36cda", + "Name": "amt", + "Description": "Layers of nesting to remove.\n\nint\nDefault value : -1", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "bb1c286b3c19473eba603f8ee053567a", + "Name": "var[]..[]", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Flattens a nested list of lists by a certain amount.\n\nList.Flatten (list: var[]..[], amt: int = -1): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.HigherOrder.Map, CoreNodeModels", + "NodeType": "ExtensionNode", + "Id": "39bdd4634ea24e93ab70e3144eff8dc5", + "Inputs": [ + { + "Id": "95ad8aae465744e9b9b80dff26de1ff4", + "Name": "list", + "Description": "The list to map over.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "7575d63eaabb4987965ccfaf09bb9357", + "Name": "f(x)", + "Description": "The procedure used to map element", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "b524ac4d21ff45799e27a6926d301e29", + "Name": "mapped", + "Description": "Mapped list", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Applies a function over all elements of a list, generating a new list from the results." + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "Revit.Elements.FamilyType.Family", + "Id": "1a16357b55a844ee87c8574995fb7f54", + "Inputs": [ + { + "Id": "0b780132216a4f3687236303c770f7b2", + "Name": "familyType", + "Description": "Revit.Elements.FamilyType", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "62d36a600f0740f1a4cd6793c9b3034b", + "Name": "Family", + "Description": "Family", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Get the parent family of this FamilyType\n\nFamilyType.Family: Family" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "DSCore.List.Clean@var[]..[],bool", + "Id": "7b1e028f987f481bb74e57f49a8fe5a2", + "Inputs": [ + { + "Id": "b507a9210d214859b631ae376e36f560", + "Name": "list", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "dcf8b8f6909746898fc2782800bff5fb", + "Name": "preserveIndices", + "Description": "Provide an option to preserve the indices of the data such that non-trailing nulls may not be filtered out\n\nbool\nDefault value : true", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "10c3521f4ee94bf2a84bf81c97f3f371", + "Name": "var[]..[]", + "Description": "A list cleaned of nulls and empty lists", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Cleans data of nulls and empty lists from a given list of arbitrary dimension\n\nList.Clean (list: var[]..[], preserveIndices: bool = true): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore", + "NodeType": "CodeBlockNode", + "Code": "false;", + "Id": "b27d9b5c7a1147ba95875b1837807030", + "Inputs": [], + "Outputs": [ + { + "Id": "c60197838d9d469cb341084d0b7998ea", + "Name": "", + "Description": "Value of expression at line 1", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Allows for DesignScript code to be authored directly" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "DSCore.List.UniqueItems@var[]..[]", + "Id": "01d22809898d4b6d9c038558ab9d9519", + "Inputs": [ + { + "Id": "4432e0ab4b0d436da7551b94fe30a496", + "Name": "list", + "Description": "List to filter duplicates out of.\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "b01ce1e990e54ecd8c05035957e5dfe9", + "Name": "list", + "Description": "Filtered list.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Creates a new list containing all unique items in the given list.\n\nList.UniqueItems (list: var[]..[]): var[]..[]" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "Revit.Elements.Family.Name", + "Id": "796b61e7fcb5435a96e0ffa060f66a3c", + "Inputs": [ + { + "Id": "6fa18bb0471b49488d6cb4a0cbe4f9f1", + "Name": "family", + "Description": "Revit.Elements.Family", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "77c22a2b75c547dfab03160f0ecd727c", + "Name": "string", + "Description": "string", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "The name of this family\n\nFamily.Name: string" + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "List.SortByFunction@var[]..[],Function", + "Id": "c0be67500c7c42f88f3d17e6573f2e70", + "Inputs": [ + { + "Id": "0fcb7fdff59841a1b360b0427366e3c5", + "Name": "list", + "Description": "list of values\n\nvar[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "127c7898cf834a7b8249d883d465b4b4", + "Name": "func", + "Description": "Function", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "dd87cc92b59340779c1232016458e402", + "Name": "var[]..[]", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Use a function to determine how list items should be sorted.\n\nList.SortByFunction (list: var[]..[], func: Function): var[]..[]" + }, + { + "ConcreteType": "CoreNodeModels.Watch, CoreNodeModels", + "NodeType": "ExtensionNode", + "Id": "fe309a0fa126460b8068ce0dd10f699a", + "Inputs": [ + { + "Id": "c3a68dcff9844fdfb0d8e373504f00f5", + "Name": "", + "Description": "Node to evaluate.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "78afd5f50d1c498984f4e734d3a5fbba", + "Name": "", + "Description": "Watch contents.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Visualize the output of node." + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", + "FunctionSignature": "46a3a667-ec7a-49ed-8675-ed77333ecd8e", + "FunctionType": "Graph", + "NodeType": "FunctionNode", + "Id": "ef7398e03f6547a292337aba7c68306a", + "Inputs": [ + { + "Id": "3c5e2bac74a341aca293e2df64791521", + "Name": "input", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "0f1052c5072d406e9f1c1e461acdac71", + "Name": "addIndexes", + "Description": "bool\nDefault value : true", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "671a7e5c33994d89ba91771ab053f14d", + "Name": "reset", + "Description": "bool\nDefault value : true", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "c6d060951355465eb335119cf322a14b", + "Name": "str", + "Description": "return value", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "This node that serializes the input information and presents it in a resizable text window." + }, + { + "ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels", + "NodeType": "BooleanInputNode", + "InputValue": true, + "Id": "48bf9be1da01487f88492025bfd5d6b0", + "Inputs": [], + "Outputs": [ + { + "Id": "42cf0040ca9540d5b48da7e6fef37c45", + "Name": "", + "Description": "Boolean", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Selection between a true and false." + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore", + "NodeType": "FunctionNode", + "FunctionSignature": "Revit.Elements.Parameter.Id", + "Id": "da633061a4484d2499e9b18a97562ba7", + "Inputs": [ + { + "Id": "f1896ffd1bf44c9da3412613c83585b5", + "Name": "parameter", + "Description": "Revit.Elements.Parameter", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "a9ba342ca81a407ca0da9ab82fce19d8", + "Name": "int", + "Description": "int", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "Get the parameter's element Id\n\nParameter.Id: int" + } + ], + "Connectors": [ + { + "Start": "9597e34da0a844f4bb784b751e1f2ff7", + "End": "ea8e283305a7415b926f174ca19fb895", + "Id": "14601b346f8b47d6935dfaac05e50909" + }, + { + "Start": "021146826beb4521b7443eaaa9d75a25", + "End": "0715826831ee4491afaca56eb5027eda", + "Id": "968db28a5e7243e1bd9386b283289d8f" + }, + { + "Start": "a420d350f8f347dea123d224439ae5dd", + "End": "fb0f7d445d1a4debbd17afb5d45793e9", + "Id": "e983ea67d1f9409682f7570d31d6f512" + }, + { + "Start": "b37baa84f7bf4d848afa1f4f59ce511a", + "End": "434e8c6b75f14bbaa879f32d78f6c554", + "Id": "ca66637c67de41448848a5b6880d7519" + }, + { + "Start": "4e4bd6b1769d419b959f09cea441cc41", + "End": "0fcb7fdff59841a1b360b0427366e3c5", + "Id": "e00c64cb0d8a4430842a4bff3dfd5c56" + }, + { + "Start": "378bb305f4964fd0ae33b9350bedc775", + "End": "e7f1ba79408347b294e1145312e9926d", + "Id": "00a597b0ed554e8cb905defe6447cf34" + }, + { + "Start": "3d7f6d0ec2304dcda503685fbb2e8bca", + "End": "aef316c608644c54844ae0e2815fa18a", + "Id": "605c5e556d144a2f9d2d802db050711e" + }, + { + "Start": "a6b28241d3844737938e69432937c54e", + "End": "95ad8aae465744e9b9b80dff26de1ff4", + "Id": "1ecd131497e54308b90d553fa58fe7a4" + }, + { + "Start": "bb1c286b3c19473eba603f8ee053567a", + "End": "16ca3a2196bd409998cb1f4756ec1f8e", + "Id": "91f538f197a64c70ad3a59235637e1cf" + }, + { + "Start": "b524ac4d21ff45799e27a6926d301e29", + "End": "b507a9210d214859b631ae376e36f560", + "Id": "57b140dc879e441b9bbbadfdb54a241e" + }, + { + "Start": "62d36a600f0740f1a4cd6793c9b3034b", + "End": "7575d63eaabb4987965ccfaf09bb9357", + "Id": "b787dba90c27421a8492bfee7c49b43e" + }, + { + "Start": "10c3521f4ee94bf2a84bf81c97f3f371", + "End": "4432e0ab4b0d436da7551b94fe30a496", + "Id": "cd170185463c4fbc9d03b90f8a7054ee" + }, + { + "Start": "c60197838d9d469cb341084d0b7998ea", + "End": "dcf8b8f6909746898fc2782800bff5fb", + "Id": "9292e7b6c36d4c4cb377fe20e602fe05" + }, + { + "Start": "b01ce1e990e54ecd8c05035957e5dfe9", + "End": "479213f7190c4bf0bf300808d14b0c02", + "Id": "7b29e040536e4a78842dc77333e2ae20" + }, + { + "Start": "b01ce1e990e54ecd8c05035957e5dfe9", + "End": "418197b004634fafa9adb16630b137de", + "Id": "3a88fe64547f49a68b61b4a2331cfa69" + }, + { + "Start": "77c22a2b75c547dfab03160f0ecd727c", + "End": "127c7898cf834a7b8249d883d465b4b4", + "Id": "d238ece619cf4ad9ae2ec80f7e8d752f" + }, + { + "Start": "dd87cc92b59340779c1232016458e402", + "End": "c3a68dcff9844fdfb0d8e373504f00f5", + "Id": "5261786c7ed04b7583fe6eb22dd06b82" + }, + { + "Start": "dd87cc92b59340779c1232016458e402", + "End": "f1896ffd1bf44c9da3412613c83585b5", + "Id": "7902412dab024997a901ba97b5828deb" + }, + { + "Start": "42cf0040ca9540d5b48da7e6fef37c45", + "End": "0f1052c5072d406e9f1c1e461acdac71", + "Id": "269c58765d474583a22390a91775704d" + }, + { + "Start": "a9ba342ca81a407ca0da9ab82fce19d8", + "End": "3c5e2bac74a341aca293e2df64791521", + "Id": "252c52cac09f44a3891f2fbd6c91be46" + } + ], + "Dependencies": [ + "4f4e619c-bd49-4fa6-8f0c-b6db9d346c37", + "46a3a667-ec7a-49ed-8675-ed77333ecd8e" + ], + "Bindings": [], + "View": { + "Dynamo": { + "ScaleFactor": 1.0, + "HasRunWithoutCrash": false, + "IsVisibleInDynamoLibrary": true, + "Version": "2.0.2.6826", + "RunType": "Manual", + "RunPeriod": "1000" + }, + "Camera": { + "Name": "Background Preview", + "EyeX": -17.0, + "EyeY": 24.0, + "EyeZ": 50.0, + "LookX": 12.0, + "LookY": -13.0, + "LookZ": -58.0, + "UpX": 0.0, + "UpY": 1.0, + "UpZ": 0.0 + }, + "NodeViews": [ + { + "ShowGeometry": true, + "Name": "Family.IsInPlace", + "Id": "b42c45ca0e584195a8292d121550b39f", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 2715.44305524121, + "Y": 176.079736106545 + }, + { + "ShowGeometry": true, + "Name": "All Elements at Level", + "Id": "33354fead4e04520bf08d6ef0f0e5ae6", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 650.279073397319, + "Y": -81.0309616536216 + }, + { + "ShowGeometry": true, + "Name": "All Elements of Category", + "Id": "ca6d8fdfc2e34f4d9394a289cb61f747", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 376.279073397319, + "Y": -81.0309616536216 + }, + { + "ShowGeometry": true, + "Name": "Categories", + "Id": "3112000b752148e39afe7e4d055a13b5", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "X": 110.279073397319, + "Y": -81.0309616536216 + }, + { + "ShowGeometry": true, + "Name": "List.FilterByBoolMask", + "Id": "f2b3ba3339414f1788d3ae8c5c7c0a7a", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3015.27907339732, + "Y": 37.9690383463784 + }, + { + "ShowGeometry": true, + "Name": "Element.GetParameterValueByName", + "Id": "9d53880b5ea9406aa60d801549ce58f0", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 901.279073397319, + "Y": -42.0309616536216 + }, + { + "ShowGeometry": true, + "Name": "Code Block", + "Id": "9ec3c87fcfd14708a471431d094c8d2a", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 650.279073397319, + "Y": 27.1823716797118 + }, + { + "ShowGeometry": true, + "Name": "List.UniqueItems", + "Id": "b6a2fee33b0943c4ac354334fa362a91", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 1543.27907339732, + "Y": -42.0309616536216 + }, + { + "ShowGeometry": true, + "Name": "List.Flatten", + "Id": "278590edbde24eeb8a6ad71f70fa2550", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 1264.27907339732, + "Y": -42.0309616536216 + }, + { + "ShowGeometry": true, + "Name": "List.Map", + "Id": "39bdd4634ea24e93ab70e3144eff8dc5", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 1867.27907339732, + "Y": -1.03096165362157 + }, + { + "ShowGeometry": true, + "Name": "FamilyType.Family", + "Id": "1a16357b55a844ee87c8574995fb7f54", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 1543.27907339732, + "Y": 65.9690383463785 + }, + { + "ShowGeometry": true, + "Name": "List.Clean", + "Id": "7b1e028f987f481bb74e57f49a8fe5a2", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 2101.27907339732, + "Y": 50.9690383463784 + }, + { + "ShowGeometry": true, + "Name": "Code Block", + "Id": "b27d9b5c7a1147ba95875b1837807030", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 1867.27907339732, + "Y": 133.182371679712 + }, + { + "ShowGeometry": true, + "Name": "List.UniqueItems", + "Id": "01d22809898d4b6d9c038558ab9d9519", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 2459.27907339732, + "Y": 50.9690383463784 + }, + { + "ShowGeometry": true, + "Name": "Family.Name", + "Id": "796b61e7fcb5435a96e0ffa060f66a3c", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3015.27907339732, + "Y": 171.969038346378 + }, + { + "ShowGeometry": true, + "Name": "List.SortByFunction", + "Id": "c0be67500c7c42f88f3d17e6573f2e70", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3305.27907339732, + "Y": 91.9690383463784 + }, + { + "ShowGeometry": true, + "Name": "Watch", + "Id": "fe309a0fa126460b8068ce0dd10f699a", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3586.07585160999, + "Y": 202.712532475323 + }, + { + "ShowGeometry": true, + "Name": "ꟿ WatchDialog", + "Id": "ef7398e03f6547a292337aba7c68306a", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 4024.98829290424, + "Y": -68.2969717289321 + }, + { + "ShowGeometry": true, + "Name": "Boolean", + "Id": "48bf9be1da01487f88492025bfd5d6b0", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3662.74072954852, + "Y": -109.602130334315 + }, + { + "ShowGeometry": true, + "Name": "Parameter.Id", + "Id": "da633061a4484d2499e9b18a97562ba7", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3623.5745857438, + "Y": 61.0184779393011 + } + ], + "Annotations": [ + { + "Id": "1570529ab90e4ec8bee8d3679f558a2c", + "Title": "Clockwork", + "Nodes": [ + "b42c45ca0e584195a8292d121550b39f" + ], + "Left": 2705.44305524121, + "Top": 130.079736106545, + "Width": 203.0, + "Height": 139.0, + "FontSize": 30.0, + "InitialTop": 176.079736106545, + "InitialHeight": 123.0, + "TextblockHeight": 36.0, + "Background": "#FFA4E1FF" + }, + { + "Id": "4c4ff5ecce9d49b7a97f5641995c87ba", + "Title": "Spring nodes", + "Nodes": [ + "ef7398e03f6547a292337aba7c68306a" + ], + "Left": 4014.98829290424, + "Top": -114.29697172893211, + "Width": 178.0, + "Height": 191.0, + "FontSize": 30.0, + "InitialTop": -68.2969717289321, + "InitialHeight": 149.0, + "TextblockHeight": 36.0, + "Background": "#FFA4E1FF" + } + ], + "X": -1198.1549230644218, + "Y": 304.98546234385782, + "Zoom": 0.63290769273897984 + } +} \ No newline at end of file diff --git a/list-all-inplace-elements/readme.md b/list-all-inplace-elements/readme.md new file mode 100644 index 0000000..ff3033d --- /dev/null +++ b/list-all-inplace-elements/readme.md @@ -0,0 +1,9 @@ +# List all inplace elements + +What title says + +## Requirements + +- Clockwork + +- Spring nodes