Files
dynamo-scripts/WIP/spot-elevation-on-element.dyn
2020-01-17 15:48:11 +01:00

653 lines
20 KiB
Plaintext

{
"Uuid": "af146dcb-2525-4083-b586-22473a90000f",
"IsCustomNode": false,
"Description": null,
"Name": "spot-elevation-on-element",
"ElementResolver": {
"ResolutionMap": {
"Revit.Elements.Views.View": {
"Key": "Revit.Elements.Views.View",
"Value": "RevitNodes.dll"
},
"Autodesk.DesignScript.Geometry.Point": {
"Key": "Autodesk.DesignScript.Geometry.Point",
"Value": "ProtoGeometry.dll"
},
"Autodesk.DesignScript.Geometry.Vector": {
"Key": "Autodesk.DesignScript.Geometry.Vector",
"Value": "ProtoGeometry.dll"
}
}
},
"Inputs": [],
"Outputs": [],
"Nodes": [
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
"FunctionSignature": "89e68d5c-018d-4aba-9d03-a5079b957162",
"FunctionType": "Graph",
"NodeType": "FunctionNode",
"Id": "d2f31f8e6fd6480bb02d52b3fef9da8e",
"Inputs": [
{
"Id": "f0f5749fc74f4bda9e2f2ca915b2ed34",
"Name": "point",
"Description": "Point",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "b2744f3a1ea04a1e8bb873036cb45695",
"Name": "view",
"Description": "View",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "858bca0e20d1473c80ff7a1bde2cf088",
"Name": "bend",
"Description": "Vector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "d422e748269a47dc93d0da3a06bdf0c5",
"Name": "end",
"Description": "Vector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "69e59cb5a63540c784d9711fbbe1c0ac",
"Name": "hasLeader",
"Description": "bool\nDefault value : false",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "034945e810174e63809f855e0ca10a4b",
"Name": "spotElevation",
"Description": "return value",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Places a spot elevation at a given point in a given view. May not work in all view types."
},
{
"ConcreteType": "Dynamo.Nodes.DSModelElementSelection, DSRevitNodesUI",
"NodeType": "ExtensionNode",
"InstanceId": [
"d746bfa1-6378-4aa8-a849-951cc6b22fae-003c1909"
],
"Id": "63b5293774a54407828078ce66863575",
"Inputs": [],
"Outputs": [
{
"Id": "68429bc398624a75ad0c1ad79f1ba4b2",
"Name": "Element",
"Description": "The selected elements.",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Autodesk.DesignScript.Geometry.BoundingBox.MinPoint",
"Id": "13c65b68e4394fdc81d523783a104602",
"Inputs": [
{
"Id": "497efa37450545f795a8dbbb7a187f99",
"Name": "boundingBox",
"Description": "Autodesk.DesignScript.Geometry.BoundingBox",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "60cce77ff5814ccb8ea845ac687a3203",
"Name": "Point",
"Description": "Point",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "The minimum point\n\nBoundingBox.MinPoint: Point"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Element.BoundingBox",
"Id": "32928d81b7ad43ac8385208cb4895854",
"Inputs": [
{
"Id": "cde51d2a3e36433db4e16c4f6fe66f82",
"Name": "element",
"Description": "Revit.Elements.Element",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "1c8f50f57ed94a808d73a7f1d763c98a",
"Name": "BoundingBox",
"Description": "BoundingBox",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Get an Axis-aligned BoundingBox of the Element\n\nElement.BoundingBox: BoundingBox"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "120;",
"Id": "83b77cdf823a4c77a29888628067bd32",
"Inputs": [],
"Outputs": [
{
"Id": "abb6bbf605424467a8cd9366f4652c35",
"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": "Autodesk.DesignScript.Geometry.Vector.ByCoordinates@double,double,double",
"Id": "1848605699f643dc88b5da9094f58379",
"Inputs": [
{
"Id": "3ecc6c4bba2847989d90d32f43c0d0dd",
"Name": "x",
"Description": "X coordinate\n\ndouble\nDefault value : 0",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "65f1851651244ed4a115ccb7e18e3f49",
"Name": "y",
"Description": "Y coordinate\n\ndouble\nDefault value : 0",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "be84ea6abc234686b8a7e86e201b09a1",
"Name": "z",
"Description": "Z coordinate\n\ndouble\nDefault value : 0",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "474a4dab1c8a402c9363984bba2147c2",
"Name": "Vector",
"Description": "Vector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Form a Vector by 3 Euclidean coordinates\n\nVector.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Vector"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Autodesk.DesignScript.Geometry.Point.Add@Autodesk.DesignScript.Geometry.Vector",
"Id": "1832d270abd441f2954d63cef3efb2b1",
"Inputs": [
{
"Id": "21ac05fa0a1842208df2efb92cfb072f",
"Name": "point",
"Description": "Autodesk.DesignScript.Geometry.Point",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "768c5ebdef7f4735b6cde9f4eee31a3b",
"Name": "vectorToAdd",
"Description": "Vector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "26a343825e8249b9aec02a03ceb676a6",
"Name": "Point",
"Description": "Point",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Add a vector to a point. The same as Translate(Vector).\n\nPoint.Add (vectorToAdd: Vector): Point"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Application.Document.ActiveView",
"Id": "6a8ee7ab4b4d4b47b97cadbf19ef5d02",
"Inputs": [
{
"Id": "41a0384bfa354878a0c6640a9e700bae",
"Name": "document",
"Description": "Revit.Application.Document",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "90c8a3cf479b40de8e74f9719e13a060",
"Name": "View",
"Description": "View",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Get the active view for the document\n\nDocument.ActiveView: View"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Application.Document.Current",
"Id": "add97b0d231b4af797e28dc313266b9f",
"Inputs": [],
"Outputs": [
{
"Id": "7660bb8144fa4656a6e5b4bdc8c7d648",
"Name": "Document",
"Description": "Document",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Get the current document\n\nDocument.Current: Document"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Autodesk.DesignScript.Geometry.Vector.ByCoordinates@double,double,double",
"Id": "9a8a6457ab204d9994f838cb7c554963",
"Inputs": [
{
"Id": "bfa5ef3ca1ad486381966bdbd5b814e9",
"Name": "x",
"Description": "X coordinate\n\ndouble\nDefault value : 0",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "0df54121a3084e3492771f9981e72158",
"Name": "y",
"Description": "Y coordinate\n\ndouble\nDefault value : 0",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "f64044f4eb01454fa69eede9f62011e4",
"Name": "z",
"Description": "Z coordinate\n\ndouble\nDefault value : 0",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "13fd366866844b1a917490000187d87f",
"Name": "Vector",
"Description": "Vector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Form a Vector by 3 Euclidean coordinates\n\nVector.ByCoordinates (x: double = 0, y: double = 0, z: double = 0): Vector"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "10;",
"Id": "002816c5f3f8429eb04464cfb8e7df54",
"Inputs": [],
"Outputs": [
{
"Id": "9fca12a051ec4512ace465f1bff8a3fc",
"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.CodeBlockNodeModel, DynamoCore",
"NodeType": "CodeBlockNode",
"Code": "true;",
"Id": "fb38b156be0c4d5fbdf4bc1c7803e3b4",
"Inputs": [],
"Outputs": [
{
"Id": "d6235010639c46cfa1e4e21597ca68d5",
"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": [
{
"Start": "68429bc398624a75ad0c1ad79f1ba4b2",
"End": "cde51d2a3e36433db4e16c4f6fe66f82",
"Id": "ad1e649499e14d08a68788d7d9a0d413"
},
{
"Start": "60cce77ff5814ccb8ea845ac687a3203",
"End": "21ac05fa0a1842208df2efb92cfb072f",
"Id": "3d70b802026b4ab0ab8b2508d5dd7611"
},
{
"Start": "1c8f50f57ed94a808d73a7f1d763c98a",
"End": "497efa37450545f795a8dbbb7a187f99",
"Id": "b24f88e9b7e24a91983ffdfcf23ba371"
},
{
"Start": "abb6bbf605424467a8cd9366f4652c35",
"End": "3ecc6c4bba2847989d90d32f43c0d0dd",
"Id": "10f635b451814e3fa5eb2fa0fe575b20"
},
{
"Start": "abb6bbf605424467a8cd9366f4652c35",
"End": "65f1851651244ed4a115ccb7e18e3f49",
"Id": "3ab5e2e96175443f9072c7f902b261ca"
},
{
"Start": "abb6bbf605424467a8cd9366f4652c35",
"End": "be84ea6abc234686b8a7e86e201b09a1",
"Id": "80023ed645144811bcfdd96e2286370e"
},
{
"Start": "474a4dab1c8a402c9363984bba2147c2",
"End": "768c5ebdef7f4735b6cde9f4eee31a3b",
"Id": "485ec091555f48d1aaaa82a239ccc0aa"
},
{
"Start": "26a343825e8249b9aec02a03ceb676a6",
"End": "f0f5749fc74f4bda9e2f2ca915b2ed34",
"Id": "4dbdb912ff5a4e4b917e1cef2cd32575"
},
{
"Start": "90c8a3cf479b40de8e74f9719e13a060",
"End": "b2744f3a1ea04a1e8bb873036cb45695",
"Id": "2e3d8a11f7ed42e3baa4949f5fe78024"
},
{
"Start": "7660bb8144fa4656a6e5b4bdc8c7d648",
"End": "41a0384bfa354878a0c6640a9e700bae",
"Id": "a8859af02adc4dc7b530528b9da42a47"
},
{
"Start": "13fd366866844b1a917490000187d87f",
"End": "858bca0e20d1473c80ff7a1bde2cf088",
"Id": "0566abfafc1d47fd8542c697c5ae2a88"
},
{
"Start": "13fd366866844b1a917490000187d87f",
"End": "d422e748269a47dc93d0da3a06bdf0c5",
"Id": "e64279a04882444dab1deeb646a6bf05"
},
{
"Start": "9fca12a051ec4512ace465f1bff8a3fc",
"End": "bfa5ef3ca1ad486381966bdbd5b814e9",
"Id": "4f017ea363624fa9a8b9ce7fae79effd"
},
{
"Start": "9fca12a051ec4512ace465f1bff8a3fc",
"End": "0df54121a3084e3492771f9981e72158",
"Id": "df320c1f892949cbb00283e7e1f2233d"
},
{
"Start": "9fca12a051ec4512ace465f1bff8a3fc",
"End": "f64044f4eb01454fa69eede9f62011e4",
"Id": "85ce3d9d1eec4b2eac168ab0888dfa3c"
},
{
"Start": "d6235010639c46cfa1e4e21597ca68d5",
"End": "69e59cb5a63540c784d9711fbbe1c0ac",
"Id": "55fb7c66df534f878ae9c50cf80211f8"
}
],
"Dependencies": [
"89e68d5c-018d-4aba-9d03-a5079b957162"
],
"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": [
{
"Id": "d2f31f8e6fd6480bb02d52b3fef9da8e",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "SpotElevation.ByPoint",
"ShowGeometry": true,
"Excluded": false,
"X": 1121.2091033974336,
"Y": 252.09639914815384
},
{
"Id": "63b5293774a54407828078ce66863575",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Select Model Element",
"ShowGeometry": true,
"Excluded": false,
"X": -369.9463750862808,
"Y": 407.01829132716614
},
{
"Id": "13c65b68e4394fdc81d523783a104602",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "BoundingBox.MinPoint",
"ShowGeometry": true,
"Excluded": false,
"X": 209.67984618840313,
"Y": 408.95853224693155
},
{
"Id": "32928d81b7ad43ac8385208cb4895854",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Element.BoundingBox",
"ShowGeometry": true,
"Excluded": false,
"X": -142.22427000337581,
"Y": 407.37022026097384
},
{
"Id": "83b77cdf823a4c77a29888628067bd32",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Code Block",
"ShowGeometry": true,
"Excluded": false,
"X": -53.0,
"Y": 627.0
},
{
"Id": "1848605699f643dc88b5da9094f58379",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Vector.ByCoordinates",
"ShowGeometry": true,
"Excluded": false,
"X": 186.137618103153,
"Y": 614.09379841389
},
{
"Id": "1832d270abd441f2954d63cef3efb2b1",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Point.Add",
"ShowGeometry": true,
"Excluded": false,
"X": 538.157055476486,
"Y": 419.84160073130727
},
{
"Id": "6a8ee7ab4b4d4b47b97cadbf19ef5d02",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Document.ActiveView",
"ShowGeometry": true,
"Excluded": false,
"X": 656.8762920140166,
"Y": 103.25696996455906
},
{
"Id": "add97b0d231b4af797e28dc313266b9f",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Document.Current",
"ShowGeometry": true,
"Excluded": false,
"X": 436.81136574932589,
"Y": 90.709408379291688
},
{
"Id": "9a8a6457ab204d9994f838cb7c554963",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Vector.ByCoordinates",
"ShowGeometry": true,
"Excluded": false,
"X": 595.87863183665081,
"Y": 180.76508574764551
},
{
"Id": "002816c5f3f8429eb04464cfb8e7df54",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Code Block",
"ShowGeometry": true,
"Excluded": false,
"X": 326.0,
"Y": 207.0
},
{
"Id": "fb38b156be0c4d5fbdf4bc1c7803e3b4",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Code Block",
"ShowGeometry": true,
"Excluded": false,
"X": 884.0,
"Y": 415.0
}
],
"Annotations": [],
"X": 173.28523935415092,
"Y": 284.94972390268316,
"Zoom": 0.66718547475127432
}
}