Fixed revision scripts

This commit is contained in:
2020-10-27 18:32:05 +01:00
parent e933081be6
commit f07406fe42
3 changed files with 302 additions and 135 deletions

View File

@@ -18,7 +18,7 @@
"Inputs": [
{
"Id": "b0f744c47bb0442cb7f8af04190fa311",
"Name": "Sheet",
"Name": "_sheet",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
@@ -27,7 +27,7 @@
},
{
"Id": "71c1366fd1664198bd026bc09e93f431",
"Name": "Revision",
"Name": "_revision",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
@@ -36,7 +36,7 @@
},
{
"Id": "fa128cadfafa4ce79ba7dc0f010df104",
"Name": "RunIt",
"Name": "_runIt",
"Description": "bool\nDefault value : false",
"UsingDefaultValue": true,
"Level": 2,
@@ -47,7 +47,7 @@
"Outputs": [
{
"Id": "303d7d0fb98b4857a99a25a14906c41b",
"Name": "Sheet",
"Name": "_sheet",
"Description": "return value",
"UsingDefaultValue": false,
"Level": 2,
@@ -67,7 +67,7 @@
"Inputs": [
{
"Id": "6e291c8c69924f299e79126551aa0d23",
"Name": "RunIt",
"Name": "_runIt",
"Description": "bool\nDefault value : false",
"UsingDefaultValue": true,
"Level": 2,
@@ -78,7 +78,7 @@
"Outputs": [
{
"Id": "ec1704fa82f24198bf7af5d8a9b7cf43",
"Name": "Revision",
"Name": "_revision",
"Description": "return value",
"UsingDefaultValue": false,
"Level": 2,
@@ -139,16 +139,46 @@
"Description": "Get all elements of the specified category from the model."
},
{
"ConcreteType": "DSRevitNodesUI.Categories, DSRevitNodesUI",
"SelectedIndex": 447,
"NodeType": "ExtensionNode",
"Id": "a257cc85cad14f55a1a750fc2cb8cc72",
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Category.ByName@string",
"Id": "196f272d8da94e6ca6c185deb24c1338",
"Inputs": [
{
"Id": "8ed899fa935c4f16bf30984b7ab1d83c",
"Name": "name",
"Description": "The built in category name.\n\nstring",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "8d2687e2310c4e31ad97f081cc0b4208",
"Name": "Category",
"Description": "Category",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Gets a Revit category by the built-in category name.\n\nCategory.ByName (name: string): Category"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "\"Sheets\";",
"Id": "ecef84dbfe974797b83c3445e6739e15",
"Inputs": [],
"Outputs": [
{
"Id": "16653c24e4c344998d63250606c1d577",
"Name": "Category",
"Description": "The selected Category.",
"Id": "11eb54f98614453b845fe90e0f964e4d",
"Name": "",
"Description": "Value of expression at line 1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
@@ -156,7 +186,7 @@
}
],
"Replication": "Disabled",
"Description": "All built-in categories."
"Description": "Allows for DesignScript code to be authored directly"
}
],
"Connectors": [
@@ -181,22 +211,38 @@
"Id": "d6b30447aa43436ab02a6b30c94f8c45"
},
{
"Start": "16653c24e4c344998d63250606c1d577",
"Start": "8d2687e2310c4e31ad97f081cc0b4208",
"End": "6d8468ba9e404d80a3d2a4e7fcdf5709",
"Id": "1f6532401d604660b18e7f6a3cab569f"
"Id": "73839c96ef2046daa21f2c7e16241fd7"
},
{
"Start": "11eb54f98614453b845fe90e0f964e4d",
"End": "8ed899fa935c4f16bf30984b7ab1d83c",
"Id": "ad741b2ecab74671b963d71a8e5c3849"
}
],
"Dependencies": [
"b489e87e-6c60-4887-ab3c-88ef8a099209",
"e4f67d90-ea21-4d85-acbf-a9388cf512c8"
],
"NodeLibraryDependencies": [
{
"Name": "archi-lab.net",
"Version": "2021.25.4",
"ReferenceType": "Package",
"Nodes": [
"95b9719aeade4cb8815d185eb8dfd3ff",
"e40961d4071b4eb4b62f816cee79cfac"
]
}
],
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.2.6826",
"Version": "2.3.0.5885",
"RunType": "Manual",
"RunPeriod": "1000"
},
@@ -255,13 +301,23 @@
},
{
"ShowGeometry": true,
"Name": "Categories",
"Id": "a257cc85cad14f55a1a750fc2cb8cc72",
"Name": "Category.ByName",
"Id": "196f272d8da94e6ca6c185deb24c1338",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 2816.2407371433519,
"Y": 651.10785353272479
"X": 2915.0912230990907,
"Y": 658.65894131051414
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "ecef84dbfe974797b83c3445e6739e15",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 2747.2067970870708,
"Y": 668.93220163553
}
],
"Annotations": [
@@ -274,7 +330,7 @@
],
"Left": 3387.9611841839296,
"Top": 796.32061144745853,
"Width": 559.7398071982002,
"Width": 568.7398071982002,
"Height": 185.468173629033,
"FontSize": 30.0,
"InitialTop": 842.32061144745853,
@@ -297,8 +353,8 @@
"Background": "#FFC1D676"
}
],
"X": -1888.2019668751,
"Y": -63.152857441085075,
"Zoom": 0.71334304733390941
"X": -1893.4188908067767,
"Y": 162.13694908375578,
"Zoom": 0.679723448268878
}
}

View File

@@ -2,7 +2,7 @@
"Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209",
"IsCustomNode": false,
"Description": "",
"Name": "AddOneRevisionsToAllSheets",
"Name": "AddOneRevisionsToAllSheets-DP",
"ElementResolver": {
"ResolutionMap": {}
},
@@ -18,7 +18,7 @@
"Inputs": [
{
"Id": "a92b8c0091da408598e3c7a9d33ff6ab",
"Name": "Sheet",
"Name": "_sheet",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
@@ -27,7 +27,7 @@
},
{
"Id": "9e47165a133c41faa23b6a91d87e8e1c",
"Name": "Revision",
"Name": "_revision",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
@@ -36,7 +36,7 @@
},
{
"Id": "b8e47f8873db44bca9218cdec372f263",
"Name": "RunIt",
"Name": "_runIt",
"Description": "bool\nDefault value : false",
"UsingDefaultValue": true,
"Level": 2,
@@ -47,7 +47,7 @@
"Outputs": [
{
"Id": "ed6939e745fe44e297a2800cc8318f2a",
"Name": "Sheet",
"Name": "_sheet",
"Description": "return value",
"UsingDefaultValue": false,
"Level": 2,
@@ -107,29 +107,10 @@
"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,
"SelectedString": "Seq. 1 - Révision",
"NodeType": "ExtensionNode",
"Id": "24d9a652979b417980c9de4dfbe9d81d",
"Inputs": [],
@@ -146,6 +127,56 @@
],
"Replication": "Disabled",
"Description": "Select an existing Revit Revision from the active document."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Category.ByName@string",
"Id": "17bc7604bf6647f487f4a442390b00ea",
"Inputs": [
{
"Id": "51e4d81aebb54240a203221df05462e1",
"Name": "name",
"Description": "The built in category name.\n\nstring",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "76490d4abbd9466c854f1fb871c3d409",
"Name": "Category",
"Description": "Category",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Gets a Revit category by the built-in category name.\n\nCategory.ByName (name: string): Category"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "\"Sheets\";",
"Id": "ac142c715c5049c79fda0022eb406349",
"Inputs": [],
"Outputs": [
{
"Id": "f9f71fcc48ae4d62ae1b82335499ccd8",
"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"
}
],
"Connectors": [
@@ -159,27 +190,42 @@
"End": "a92b8c0091da408598e3c7a9d33ff6ab",
"Id": "f30df703032845bbab627f9fc5e690a6"
},
{
"Start": "919fa4aaa27c4f4a888e06b3d4c48d48",
"End": "762d9e47687442839af5f79d76c9600e",
"Id": "171570d2a1234321ab39313b45bff3f1"
},
{
"Start": "d7caf0e101784eaaa14155fef1fe383d",
"End": "9e47165a133c41faa23b6a91d87e8e1c",
"Id": "330b66181c9a4abfbdc0ba8a78ddf1f1"
},
{
"Start": "76490d4abbd9466c854f1fb871c3d409",
"End": "762d9e47687442839af5f79d76c9600e",
"Id": "aa93103703584a1bbfcc742937f8e4ae"
},
{
"Start": "f9f71fcc48ae4d62ae1b82335499ccd8",
"End": "51e4d81aebb54240a203221df05462e1",
"Id": "3ef3b19efb9b4e29a9a483c0a18d694f"
}
],
"Dependencies": [
"b489e87e-6c60-4887-ab3c-88ef8a099209"
],
"NodeLibraryDependencies": [
{
"Name": "archi-lab.net",
"Version": "2021.25.4",
"ReferenceType": "Package",
"Nodes": [
"95b9719aeade4cb8815d185eb8dfd3ff"
]
}
],
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"HasRunWithoutCrash": true,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.2.6826",
"Version": "2.3.0.5885",
"RunType": "Manual",
"RunPeriod": "1000"
},
@@ -226,16 +272,6 @@
"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",
@@ -243,8 +279,28 @@
"IsSetAsInput": true,
"IsSetAsOutput": false,
"Excluded": false,
"X": 2979.43579731577,
"Y": 815.907150532393
"X": 2942.4229727977695,
"Y": 908.73056260866042
},
{
"ShowGeometry": true,
"Name": "Category.ByName",
"Id": "17bc7604bf6647f487f4a442390b00ea",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 2967.3965477970264,
"Y": 696.46341613429308
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "ac142c715c5049c79fda0022eb406349",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 2810.3295820446247,
"Y": 715.16704179553744
}
],
"Annotations": [
@@ -256,7 +312,7 @@
],
"Left": 3493.54110958517,
"Top": 793.787405213118,
"Width": 223.0,
"Width": 232.0,
"Height": 191.0,
"FontSize": 30.0,
"InitialTop": 839.787405213118,
@@ -279,8 +335,8 @@
"Background": "#FFC1D676"
}
],
"X": -2522.1982609966644,
"Y": -377.83839036521033,
"Zoom": 0.90002773577644624
"X": -1786.075357332069,
"Y": 178.45915900808666,
"Zoom": 0.65526186611887527
}
}

View File

@@ -2,7 +2,7 @@
"Uuid": "3c9d0464-8643-5ffe-96e5-ab1769818209",
"IsCustomNode": false,
"Description": "",
"Name": "QuickRevisionSchedule",
"Name": "QuickRevisionSchedule-DP",
"ElementResolver": {
"ResolutionMap": {}
},
@@ -46,26 +46,6 @@
"Replication": "Disabled",
"Description": "Get all elements of the specified category from the model."
},
{
"ConcreteType": "DSRevitNodesUI.Categories, DSRevitNodesUI",
"SelectedIndex": 404,
"NodeType": "ExtensionNode",
"Id": "21e7509661bc43bd895b5f6945207640",
"Inputs": [],
"Outputs": [
{
"Id": "f8e07095d77e473ba4618a00fc28f228",
"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.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
@@ -1757,15 +1737,6 @@
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "210b2d52053b4440b1b5fabf9757ef2e",
"Name": "font",
"Description": "string\nDefault value : \"Calibri\"",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
@@ -1859,6 +1830,56 @@
],
"Replication": "Disabled",
"Description": "Allows for DesignScript code to be authored directly"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Category.ByName@string",
"Id": "a86cc0bb433247c1aa6075dff6a74215",
"Inputs": [
{
"Id": "e972aef5266040bb8819b95ba01b57f5",
"Name": "name",
"Description": "The built in category name.\n\nstring",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "cf201e1f6d21462eb17641f5a1a23bf1",
"Name": "Category",
"Description": "Category",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Gets a Revit category by the built-in category name.\n\nCategory.ByName (name: string): Category"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "\"Revision Clouds\";",
"Id": "bd7ea19dce5549e18c5ff6f843a7c03d",
"Inputs": [],
"Outputs": [
{
"Id": "255a64e2afc44576a9c2642940130e11",
"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"
}
],
"Connectors": [
@@ -1872,11 +1893,6 @@
"End": "ee1b067993b049f8a998206a42b7aaab",
"Id": "aef32b76052649399e323206bf38f092"
},
{
"Start": "f8e07095d77e473ba4618a00fc28f228",
"End": "d729f4f7fc0e4c07b6b0d04f819e1f19",
"Id": "a04f62933fb44679a738ba90d9fdcebc"
},
{
"Start": "fbaf4c0375b740f6bbac43c9a93c46c0",
"End": "3017f7a7bdd143c693d58875dfafba66",
@@ -2186,19 +2202,47 @@
"Start": "ab0c4c8625dc4cf489b3f29b42f31e13",
"End": "f1dfaf520c7348689c545b5f26b5a125",
"Id": "ff6deca3576946bfb1983527743da374"
},
{
"Start": "cf201e1f6d21462eb17641f5a1a23bf1",
"End": "d729f4f7fc0e4c07b6b0d04f819e1f19",
"Id": "3e6a949cf05f44dc90e6f4ac4167788b"
},
{
"Start": "255a64e2afc44576a9c2642940130e11",
"End": "e972aef5266040bb8819b95ba01b57f5",
"Id": "09446b54a5f34c8aa365151dfa59a601"
}
],
"Dependencies": [
"a0fc8138-f7bc-4425-abe6-2ef1b411d447",
"46a3a667-ec7a-49ed-8675-ed77333ecd8e"
],
"NodeLibraryDependencies": [
{
"Name": "Clockwork for Dynamo 2.x",
"Version": "2.3.0",
"ReferenceType": "Package",
"Nodes": [
"0c9292b4968d453c9ef4ac81b6714e95"
]
},
{
"Name": "spring nodes",
"Version": "203.2.0",
"ReferenceType": "Package",
"Nodes": [
"ae4a607108844a1980aef2131800ff61"
]
}
],
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": true,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.2.6826",
"Version": "2.3.0.5885",
"RunType": "Manual",
"RunPeriod": "1000"
},
@@ -2222,18 +2266,8 @@
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 976.312598834577,
"Y": 1371.63915297432
},
{
"ShowGeometry": true,
"Name": "Categories",
"Id": "21e7509661bc43bd895b5f6945207640",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 694.312598834573,
"Y": 1371.63915297432
"X": 1032.1562994172884,
"Y": 1476.9776579464974
},
{
"ShowGeometry": true,
@@ -2523,7 +2557,7 @@
"IsSetAsOutput": false,
"Excluded": false,
"X": 2037.97770689733,
"Y": 633.96160540679
"Y": 632.730450354986
},
{
"ShowGeometry": true,
@@ -2764,6 +2798,26 @@
"Excluded": false,
"X": 7568.157904352267,
"Y": 2512.4473713056805
},
{
"ShowGeometry": true,
"Name": "Category.ByName",
"Id": "a86cc0bb433247c1aa6075dff6a74215",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 724.15629941728844,
"Y": 1476.9776579464974
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "bd7ea19dce5549e18c5ff6f843a7c03d",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 446.15629941728844,
"Y": 1481.1909912798308
}
],
"Annotations": [
@@ -2869,14 +2923,15 @@
"Title": "Get revision clouds",
"Nodes": [
"fe1d923b32ce401ab33f9b4efa6427d2",
"21e7509661bc43bd895b5f6945207640"
"a86cc0bb433247c1aa6075dff6a74215",
"bd7ea19dce5549e18c5ff6f843a7c03d"
],
"Left": 684.312598834573,
"Top": 1325.63915297432,
"Width": 476.000000000004,
"Height": 139.0,
"Left": 436.15629941728844,
"Top": 1430.9776579464974,
"Width": 780.0,
"Height": 143.21333333333337,
"FontSize": 30.0,
"InitialTop": 1371.63915297432,
"InitialTop": 1476.9776579464974,
"InitialHeight": 145.0,
"TextblockHeight": 36.0,
"Background": "#FFC1D676"
@@ -2940,11 +2995,11 @@
"95fbe7e195e2401db05b52511c1fc25e"
],
"Left": 2027.97770689733,
"Top": 551.96160540679,
"Top": 550.730450354986,
"Width": 155.0,
"Height": 150.0,
"FontSize": 30.0,
"InitialTop": 633.96160540679,
"InitialTop": 632.730450354986,
"InitialHeight": 145.0,
"TextblockHeight": 72.0,
"Background": "#FFFF7BAC"
@@ -2958,10 +3013,10 @@
"Left": 7817.9995845784242,
"Top": 2016.7096207297609,
"Width": 225.0,
"Height": 267.0,
"Height": 241.0,
"FontSize": 36.0,
"InitialTop": 2112.7096207297609,
"InitialHeight": 201.0,
"InitialHeight": 145.0,
"TextblockHeight": 86.0,
"Background": "#FF48B9FF"
},
@@ -3008,8 +3063,8 @@
"Background": "#FFC1D676"
}
],
"X": -844.76440932680919,
"Y": -14.739136711504386,
"Zoom": 0.47439322449332266
"X": -6673.7144370247415,
"Y": -1321.6146519633758,
"Zoom": 0.88287936448093518
}
}