From 664f5e4767e0d9cdfc310c0bb749cfe29d9fe731 Mon Sep 17 00:00:00 2001 From: infeeeee Date: Wed, 24 Apr 2019 02:51:15 +0200 Subject: [PATCH] Added two revision to sheet scripts --- revisions/1.x/AddAllRevisionsToAllSheets.dyn | 58 ++++ revisions/1.x/AddOneRevisionsToAllSheets.dyn | 45 +++ revisions/2.x/AddAllRevisionsToAllSheets.dyn | 290 +++++++++++++++++++ revisions/2.x/AddOneRevisionsToAllSheets.dyn | 272 +++++++++++++++++ revisions/readme.md | 0 5 files changed, 665 insertions(+) create mode 100644 revisions/1.x/AddAllRevisionsToAllSheets.dyn create mode 100644 revisions/1.x/AddOneRevisionsToAllSheets.dyn create mode 100644 revisions/2.x/AddAllRevisionsToAllSheets.dyn create mode 100644 revisions/2.x/AddOneRevisionsToAllSheets.dyn create mode 100644 revisions/readme.md diff --git a/revisions/1.x/AddAllRevisionsToAllSheets.dyn b/revisions/1.x/AddAllRevisionsToAllSheets.dyn new file mode 100644 index 0000000..3aa59c4 --- /dev/null +++ b/revisions/1.x/AddAllRevisionsToAllSheets.dyn @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/revisions/1.x/AddOneRevisionsToAllSheets.dyn b/revisions/1.x/AddOneRevisionsToAllSheets.dyn new file mode 100644 index 0000000..c80c788 --- /dev/null +++ b/revisions/1.x/AddOneRevisionsToAllSheets.dyn @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/revisions/2.x/AddAllRevisionsToAllSheets.dyn b/revisions/2.x/AddAllRevisionsToAllSheets.dyn new file mode 100644 index 0000000..dd52c5c --- /dev/null +++ b/revisions/2.x/AddAllRevisionsToAllSheets.dyn @@ -0,0 +1,290 @@ +{ + "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "IsCustomNode": false, + "Description": "", + "Name": "AddAllRevisionsToAllSheets", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", + "FunctionSignature": "b489e87e-6c60-4887-ab3c-88ef8a099209", + "FunctionType": "Graph", + "NodeType": "FunctionNode", + "Id": "95b9719aeade4cb8815d185eb8dfd3ff", + "Inputs": [ + { + "Id": "b0f744c47bb0442cb7f8af04190fa311", + "Name": "Sheet", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "71c1366fd1664198bd026bc09e93f431", + "Name": "Revision", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "fa128cadfafa4ce79ba7dc0f010df104", + "Name": "RunIt", + "Description": "bool\nDefault value : false", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "303d7d0fb98b4857a99a25a14906c41b", + "Name": "Sheet", + "Description": "return value", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "This node will add specified revisions to a sheet. " + }, + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", + "FunctionSignature": "e4f67d90-ea21-4d85-acbf-a9388cf512c8", + "FunctionType": "Graph", + "NodeType": "FunctionNode", + "Id": "e40961d4071b4eb4b62f816cee79cfac", + "Inputs": [ + { + "Id": "6e291c8c69924f299e79126551aa0d23", + "Name": "RunIt", + "Description": "bool\nDefault value : false", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "ec1704fa82f24198bf7af5d8a9b7cf43", + "Name": "Revision", + "Description": "return value", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "This node will return all Revisions currently defined in the mode." + }, + { + "ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels", + "NodeType": "BooleanInputNode", + "InputValue": true, + "Id": "89a0ec2a976649138cebb8b96abe9da2", + "Inputs": [], + "Outputs": [ + { + "Id": "dd31188c2564479a8dded99af964391e", + "Name": "", + "Description": "Boolean", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Selection between a true and false." + }, + { + "ConcreteType": "DSRevitNodesUI.ElementsOfCategory, DSRevitNodesUI", + "NodeType": "ExtensionNode", + "Id": "3869f1337cc44bad867107d8c9991057", + "Inputs": [ + { + "Id": "6d8468ba9e404d80a3d2a4e7fcdf5709", + "Name": "Category", + "Description": "The Category", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "e0bb06a4cd4f44bbb06e2801e1dc4149", + "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": 447, + "NodeType": "ExtensionNode", + "Id": "a257cc85cad14f55a1a750fc2cb8cc72", + "Inputs": [], + "Outputs": [ + { + "Id": "16653c24e4c344998d63250606c1d577", + "Name": "Category", + "Description": "The selected Category.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "All built-in categories." + } + ], + "Connectors": [ + { + "Start": "ec1704fa82f24198bf7af5d8a9b7cf43", + "End": "71c1366fd1664198bd026bc09e93f431", + "Id": "4a546a06870b4307aec6f753737d2d3a" + }, + { + "Start": "dd31188c2564479a8dded99af964391e", + "End": "6e291c8c69924f299e79126551aa0d23", + "Id": "745d28001e99490a817550b8b7b63e92" + }, + { + "Start": "dd31188c2564479a8dded99af964391e", + "End": "fa128cadfafa4ce79ba7dc0f010df104", + "Id": "a2018aa2fc6c4b36a3f452c472f89c48" + }, + { + "Start": "e0bb06a4cd4f44bbb06e2801e1dc4149", + "End": "b0f744c47bb0442cb7f8af04190fa311", + "Id": "d6b30447aa43436ab02a6b30c94f8c45" + }, + { + "Start": "16653c24e4c344998d63250606c1d577", + "End": "6d8468ba9e404d80a3d2a4e7fcdf5709", + "Id": "1f6532401d604660b18e7f6a3cab569f" + } + ], + "Dependencies": [ + "b489e87e-6c60-4887-ab3c-88ef8a099209", + "e4f67d90-ea21-4d85-acbf-a9388cf512c8" + ], + "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": "Add Revisions to Sheet", + "Id": "95b9719aeade4cb8815d185eb8dfd3ff", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3503.54110958517, + "Y": 839.787405213118 + }, + { + "ShowGeometry": true, + "Name": "Get All Revisions", + "Id": "e40961d4071b4eb4b62f816cee79cfac", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3166.80130238697, + "Y": 886.255578842151 + }, + { + "ShowGeometry": true, + "Name": "Boolean", + "Id": "89a0ec2a976649138cebb8b96abe9da2", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 2987.12106598089, + "Y": 1056.06036449898 + }, + { + "ShowGeometry": true, + "Name": "All Elements of Category", + "Id": "3869f1337cc44bad867107d8c9991057", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3218.84170442825, + "Y": 683.511265531232 + }, + { + "ShowGeometry": true, + "Name": "Categories", + "Id": "a257cc85cad14f55a1a750fc2cb8cc72", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3002.78551205807, + "Y": 685.04903202497 + } + ], + "Annotations": [ + { + "Id": "8faecaa4e0bb47f5a08cead28d824660", + "Title": "archicab", + "Nodes": [ + "95b9719aeade4cb8815d185eb8dfd3ff", + "e40961d4071b4eb4b62f816cee79cfac" + ], + "Left": 3156.80130238697, + "Top": 793.787405213118, + "Width": 559.7398071982002, + "Height": 185.468173629033, + "FontSize": 30.0, + "InitialTop": 839.787405213118, + "InitialHeight": 169.468173629033, + "TextblockHeight": 36.0, + "Background": "#FFC1D676" + } + ], + "X": -2213.85892315828, + "Y": -282.39905752905304, + "Zoom": 0.808627869216021 + } +} \ No newline at end of file diff --git a/revisions/2.x/AddOneRevisionsToAllSheets.dyn b/revisions/2.x/AddOneRevisionsToAllSheets.dyn new file mode 100644 index 0000000..cb39d53 --- /dev/null +++ b/revisions/2.x/AddOneRevisionsToAllSheets.dyn @@ -0,0 +1,272 @@ +{ + "Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209", + "IsCustomNode": false, + "Description": "", + "Name": "AddOneRevisionsToAllSheets", + "ElementResolver": { + "ResolutionMap": {} + }, + "Inputs": [], + "Outputs": [], + "Nodes": [ + { + "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", + "FunctionSignature": "b489e87e-6c60-4887-ab3c-88ef8a099209", + "FunctionType": "Graph", + "NodeType": "FunctionNode", + "Id": "95b9719aeade4cb8815d185eb8dfd3ff", + "Inputs": [ + { + "Id": "a92b8c0091da408598e3c7a9d33ff6ab", + "Name": "Sheet", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "9e47165a133c41faa23b6a91d87e8e1c", + "Name": "Revision", + "Description": "var[]..[]", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + }, + { + "Id": "b8e47f8873db44bca9218cdec372f263", + "Name": "RunIt", + "Description": "bool\nDefault value : false", + "UsingDefaultValue": true, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "ed6939e745fe44e297a2800cc8318f2a", + "Name": "Sheet", + "Description": "return value", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Auto", + "Description": "This node will add specified revisions to a sheet. " + }, + { + "ConcreteType": "CoreNodeModels.Input.BoolSelector, CoreNodeModels", + "NodeType": "BooleanInputNode", + "InputValue": true, + "Id": "89a0ec2a976649138cebb8b96abe9da2", + "Inputs": [], + "Outputs": [ + { + "Id": "0b57bec2e1ed4541a2dcd87df035f498", + "Name": "", + "Description": "Boolean", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Selection between a true and false." + }, + { + "ConcreteType": "DSRevitNodesUI.ElementsOfCategory, DSRevitNodesUI", + "NodeType": "ExtensionNode", + "Id": "3869f1337cc44bad867107d8c9991057", + "Inputs": [ + { + "Id": "762d9e47687442839af5f79d76c9600e", + "Name": "Category", + "Description": "The Category", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Outputs": [ + { + "Id": "f627aefbfce14affb5505a79122ff391", + "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": 447, + "NodeType": "ExtensionNode", + "Id": "a257cc85cad14f55a1a750fc2cb8cc72", + "Inputs": [], + "Outputs": [ + { + "Id": "919fa4aaa27c4f4a888e06b3d4c48d48", + "Name": "Category", + "Description": "The selected Category.", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "All built-in categories." + }, + { + "ConcreteType": "DSRevitNodesUI.RevitRevisions, DSRevitNodesUI", + "SelectedIndex": 0, + "NodeType": "ExtensionNode", + "Id": "24d9a652979b417980c9de4dfbe9d81d", + "Inputs": [], + "Outputs": [ + { + "Id": "d7caf0e101784eaaa14155fef1fe383d", + "Name": "Revision", + "Description": "The selected Revision", + "UsingDefaultValue": false, + "Level": 2, + "UseLevels": false, + "KeepListStructure": false + } + ], + "Replication": "Disabled", + "Description": "Select an existing Revit Revision from the active document." + } + ], + "Connectors": [ + { + "Start": "0b57bec2e1ed4541a2dcd87df035f498", + "End": "b8e47f8873db44bca9218cdec372f263", + "Id": "63db40df33a04022aeeea9b1063dbf6e" + }, + { + "Start": "f627aefbfce14affb5505a79122ff391", + "End": "a92b8c0091da408598e3c7a9d33ff6ab", + "Id": "f30df703032845bbab627f9fc5e690a6" + }, + { + "Start": "919fa4aaa27c4f4a888e06b3d4c48d48", + "End": "762d9e47687442839af5f79d76c9600e", + "Id": "171570d2a1234321ab39313b45bff3f1" + }, + { + "Start": "d7caf0e101784eaaa14155fef1fe383d", + "End": "9e47165a133c41faa23b6a91d87e8e1c", + "Id": "330b66181c9a4abfbdc0ba8a78ddf1f1" + } + ], + "Dependencies": [ + "b489e87e-6c60-4887-ab3c-88ef8a099209" + ], + "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": "Add Revisions to Sheet", + "Id": "95b9719aeade4cb8815d185eb8dfd3ff", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3503.54110958517, + "Y": 839.787405213118 + }, + { + "ShowGeometry": true, + "Name": "Boolean", + "Id": "89a0ec2a976649138cebb8b96abe9da2", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3193.20578957428, + "Y": 986.822413884599 + }, + { + "ShowGeometry": true, + "Name": "All Elements of Category", + "Id": "3869f1337cc44bad867107d8c9991057", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3218.84170442825, + "Y": 683.511265531232 + }, + { + "ShowGeometry": true, + "Name": "Categories", + "Id": "a257cc85cad14f55a1a750fc2cb8cc72", + "IsSetAsInput": false, + "IsSetAsOutput": false, + "Excluded": false, + "X": 3002.78551205807, + "Y": 685.04903202497 + }, + { + "ShowGeometry": true, + "Name": "Select Revision", + "Id": "24d9a652979b417980c9de4dfbe9d81d", + "IsSetAsInput": true, + "IsSetAsOutput": false, + "Excluded": false, + "X": 2979.43579731577, + "Y": 815.907150532393 + } + ], + "Annotations": [ + { + "Id": "8faecaa4e0bb47f5a08cead28d824660", + "Title": "archilab", + "Nodes": [ + "95b9719aeade4cb8815d185eb8dfd3ff" + ], + "Left": 3493.54110958517, + "Top": 793.787405213118, + "Width": 223.0, + "Height": 191.0, + "FontSize": 30.0, + "InitialTop": 839.787405213118, + "InitialHeight": 145.0, + "TextblockHeight": 36.0, + "Background": "#FFC1D676" + } + ], + "X": -2522.1982609966644, + "Y": -377.83839036521033, + "Zoom": 0.90002773577644624 + } +} \ No newline at end of file diff --git a/revisions/readme.md b/revisions/readme.md new file mode 100644 index 0000000..e69de29