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

@@ -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
}
}