215 lines
6.6 KiB
Plaintext
215 lines
6.6 KiB
Plaintext
{
|
|
"Uuid": "879adabd-807d-426e-b91c-2aa23f50d699",
|
|
"IsCustomNode": true,
|
|
"Category": "infeeeee.Revit.Views",
|
|
"Description": "Get all displaced elements of a view",
|
|
"Name": "GetDisplacedElements",
|
|
"ElementResolver": {
|
|
"ResolutionMap": {
|
|
"List": {
|
|
"Key": "List",
|
|
"Value": "BuiltIn.ds"
|
|
}
|
|
}
|
|
},
|
|
"Inputs": [],
|
|
"Outputs": [],
|
|
"Nodes": [
|
|
{
|
|
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
|
|
"NodeType": "PythonScriptNode",
|
|
"Code": "import clr\r\n\r\nclr.AddReference('ProtoGeometry')\r\nfrom Autodesk.DesignScript.Geometry import *\r\n\r\nclr.AddReference(\"RevitAPI\")\r\nfrom Autodesk.Revit.DB import DisplacementElement\r\n\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\n\r\nif isinstance(IN[0], list):\r\n\t\tviews = UnwrapElement(IN[0])\r\nelse:\r\n\t\tviews = [UnwrapElement(IN[0])]\r\n\r\nids = []\r\n\r\nfor j in views:\r\n\tids.append(DisplacementElement.GetDisplacedElementIds(j))\r\n\t\r\nallelems = []\r\nfor x in ids:\r\n\telem = []\r\n\tfor y in x:\r\n\t\telem.append(doc.GetElement(y))\r\n\tallelems.append(elem)\t\r\n\t\r\nOUT = allelems",
|
|
"VariableInputPorts": true,
|
|
"Id": "fb5e3776eaf44697947a2ac47df2a7ca",
|
|
"Inputs": [
|
|
{
|
|
"Id": "f749d028abef4c93a60d246c71024381",
|
|
"Name": "IN[0]",
|
|
"Description": "Input #0",
|
|
"UsingDefaultValue": false,
|
|
"Level": 2,
|
|
"UseLevels": false,
|
|
"KeepListStructure": false
|
|
}
|
|
],
|
|
"Outputs": [
|
|
{
|
|
"Id": "1c614b4aee2543e7bc8f38baff0dd697",
|
|
"Name": "OUT",
|
|
"Description": "Result of the python script",
|
|
"UsingDefaultValue": false,
|
|
"Level": 2,
|
|
"UseLevels": false,
|
|
"KeepListStructure": false
|
|
}
|
|
],
|
|
"Replication": "Disabled",
|
|
"Description": "Runs an embedded IronPython script."
|
|
},
|
|
{
|
|
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
|
|
"NodeType": "InputNode",
|
|
"Parameter": {
|
|
"Name": "view",
|
|
"TypeName": "var",
|
|
"TypeRank": 0,
|
|
"DefaultValue": null,
|
|
"Description": ""
|
|
},
|
|
"Id": "181cfb7a84b541a58b75fe33b740f224",
|
|
"Inputs": [],
|
|
"Outputs": [
|
|
{
|
|
"Id": "bb41ca2cbbe64d2980f2c8a4eadf8dbe",
|
|
"Name": "",
|
|
"Description": "Symbol",
|
|
"UsingDefaultValue": false,
|
|
"Level": 2,
|
|
"UseLevels": false,
|
|
"KeepListStructure": false
|
|
}
|
|
],
|
|
"Replication": "Disabled",
|
|
"Description": "A function parameter, use with custom nodes.\r\n\r\nYou can specify the type and default value for parameter. E.g.,\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
|
|
},
|
|
{
|
|
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
|
|
"NodeType": "OutputNode",
|
|
"ElementResolver": null,
|
|
"Symbol": "elements",
|
|
"Id": "80fe6c1aa61d42449d9638948725b51f",
|
|
"Inputs": [
|
|
{
|
|
"Id": "edb0ddd102b04f36be9fa3ca50dc0bb2",
|
|
"Name": "",
|
|
"Description": "",
|
|
"UsingDefaultValue": false,
|
|
"Level": 2,
|
|
"UseLevels": false,
|
|
"KeepListStructure": false
|
|
}
|
|
],
|
|
"Outputs": [],
|
|
"Replication": "Disabled",
|
|
"Description": "A function output, use with custom nodes"
|
|
},
|
|
{
|
|
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
|
|
"NodeType": "CodeBlockNode",
|
|
"Code": "a[0];",
|
|
"Id": "2e52c87d7a964622ba11ff2bda151662",
|
|
"Inputs": [
|
|
{
|
|
"Id": "d09e7e576db140989f39141de8800d32",
|
|
"Name": "a",
|
|
"Description": "a",
|
|
"UsingDefaultValue": false,
|
|
"Level": 2,
|
|
"UseLevels": false,
|
|
"KeepListStructure": false
|
|
}
|
|
],
|
|
"Outputs": [
|
|
{
|
|
"Id": "c48015a2574f491db34a4badd2f69b4b",
|
|
"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": "1c614b4aee2543e7bc8f38baff0dd697",
|
|
"End": "d09e7e576db140989f39141de8800d32",
|
|
"Id": "43804d98f46241838f6dc276c9777e50"
|
|
},
|
|
{
|
|
"Start": "bb41ca2cbbe64d2980f2c8a4eadf8dbe",
|
|
"End": "f749d028abef4c93a60d246c71024381",
|
|
"Id": "ce62ce5cdbec4a8b97ed77cea2baf5a9"
|
|
},
|
|
{
|
|
"Start": "c48015a2574f491db34a4badd2f69b4b",
|
|
"End": "edb0ddd102b04f36be9fa3ca50dc0bb2",
|
|
"Id": "00bab7b3876041cba7739c4ba3ddb570"
|
|
}
|
|
],
|
|
"Dependencies": [],
|
|
"NodeLibraryDependencies": [],
|
|
"Bindings": [],
|
|
"View": {
|
|
"Dynamo": {
|
|
"ScaleFactor": 1.0,
|
|
"HasRunWithoutCrash": false,
|
|
"IsVisibleInDynamoLibrary": true,
|
|
"Version": "2.3.0.5885",
|
|
"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": "fb5e3776eaf44697947a2ac47df2a7ca",
|
|
"IsSetAsInput": false,
|
|
"IsSetAsOutput": false,
|
|
"Name": "Python Script",
|
|
"ShowGeometry": true,
|
|
"Excluded": false,
|
|
"X": 567.77576982463927,
|
|
"Y": 559.55697114938823
|
|
},
|
|
{
|
|
"Id": "181cfb7a84b541a58b75fe33b740f224",
|
|
"IsSetAsInput": false,
|
|
"IsSetAsOutput": false,
|
|
"Name": "Input",
|
|
"ShowGeometry": true,
|
|
"Excluded": false,
|
|
"X": 363.77576982463927,
|
|
"Y": 559.55697114938823
|
|
},
|
|
{
|
|
"Id": "80fe6c1aa61d42449d9638948725b51f",
|
|
"IsSetAsInput": false,
|
|
"IsSetAsOutput": false,
|
|
"Name": "Output",
|
|
"ShowGeometry": true,
|
|
"Excluded": false,
|
|
"X": 981.77576982463927,
|
|
"Y": 559.55697114938823
|
|
},
|
|
{
|
|
"Id": "2e52c87d7a964622ba11ff2bda151662",
|
|
"IsSetAsInput": false,
|
|
"IsSetAsOutput": false,
|
|
"Name": "Code Block",
|
|
"ShowGeometry": true,
|
|
"Excluded": false,
|
|
"X": 791.77576982463927,
|
|
"Y": 563.7703044827216
|
|
}
|
|
],
|
|
"Annotations": [],
|
|
"X": -57.229111179073413,
|
|
"Y": 0.0398473309929841,
|
|
"Zoom": 1.0141327329164149
|
|
}
|
|
} |