{
  "Uuid": "665ec89f-9862-459c-8d3f-974150dc6bde",
  "IsCustomNode": false,
  "Description": "",
  "Name": "ToWallDimension",
  "ElementResolver": {
    "ResolutionMap": {}
  },
  "Inputs": [],
  "Outputs": [],
  "Nodes": [
    {
      "ConcreteType": "Dynamo.Nodes.DSModelElementSelection, DSRevitNodesUI",
      "NodeType": "ExtensionNode",
      "InstanceId": [
        "f6e524e6-b848-42b8-99e6-fa105857ae7b-00161562"
      ],
      "Id": "d3f5e60653dd40e789532972ea2a60e1",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "ebc475c6079744cb8510c082799a3dfd",
          "Name": "Element",
          "Description": "The selected elements.",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Select a model element from the document."
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "Code": "import clr\r\n# Import RevitAPI\r\nclr.AddReference(\"RevitAPI\")\r\nimport Autodesk\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Import DocumentManager and TransactionManager\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = doc.ActiveView\r\n\r\ncolumn = UnwrapElement(IN[2])\r\n# Use ReferenceArrays directly instead of lists\r\nx_ref_array = ReferenceArray()\r\n\r\nx_ref_array.Append(IN[0])\r\nx_ref_array.Append(IN[1])\r\n\r\nresults = []\r\n\r\n# Get column location and view Z-level to ensure the dimension is flat\r\nloc = column.Location\r\n# Force the Z coordinate to match the view's origin so it's coplanar\r\nz_val = view.Origin.Z \r\npt = XYZ(loc.Point.X, loc.Point.Y, z_val)\r\n\r\n# Set offset to 1000mm (converted to internal feet)\r\noffset_mm = 1000 \r\noffset = UnitUtils.ConvertToInternalUnits(offset_mm, UnitTypeId.Millimeters)\r\n\r\n# Create dimension line Y (Parallel to Y axis)\r\npt_x1 = pt.Add(XYZ(-offset, offset, 0))\r\npt_x2 = pt.Add(XYZ(offset, offset, 0))\r\nx_line = Line.CreateBound(pt_x1, pt_x2)\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\n\r\ndims = []\r\n\r\ntry:\r\n    #detail_line = doc.Create.NewDetailCurve(view, x_line)\r\n    x_dim = doc.Create.NewDimension(view, x_line, x_ref_array)\r\n    dims.append(x_dim)\r\nexcept Exception as e:\r\n    dims.append(e)\r\n\r\nTransactionManager.Instance.TransactionTaskDone()\r\n\r\n\r\nOUT = dims, results\r\n",
      "Engine": "CPython3",
      "EngineName": "CPython3",
      "VariableInputPorts": true,
      "Id": "7faf0c8afcfe4d8282f8f131853e5c1f",
      "NodeType": "PythonScriptNode",
      "Inputs": [
        {
          "Id": "e780d5a1546846368db8f6bad0338057",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "b24a4f9ae09846629813445eb1bedc2c",
          "Name": "IN[1]",
          "Description": "Input #1",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "48ee8846607e4807b075c06ef731d884",
          "Name": "IN[2]",
          "Description": "Input #2",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "f714642011114b7a839cc6d40ca3d8b6",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded Python script."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
      "FunctionSignature": "12050b47-2098-4101-af6d-79523545a310",
      "FunctionType": "Graph",
      "Id": "d1feed8600f44755a08025523ff27bcd",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "f834b08d010942f38e4f30c2a35d2c87",
          "Name": "refresh",
          "Description": "bool\nDefault value : false",
          "UsingDefaultValue": true,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "3c9d54ba759145f3bfc0bed13a5c282e",
          "Name": "Element",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "b5ff80b67fce4a4aa4e2b54507748ec0",
          "Name": "RevitLinkInstance",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "9fc9402043bf4bb684a67746749d617a",
          "Name": "Transform",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Selects the linked elements."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
      "FunctionSignature": "5c770bc5-de60-41c7-a2cd-2bccd79a6a89",
      "FunctionType": "Graph",
      "Id": "fa9f2c4f882e4512bc20575f6b65402e",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "603c941665ff40cdbd2bd95f84af111b",
          "Name": "reference",
          "Description": "Autodesk.DB.Reference\n\nvar[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "db24001ad8984c37883e28246428504b",
          "Name": "RevitLinkInstance",
          "Description": "var[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "0bbbc65074bf4648a24db6d131233add",
          "Name": "Reference",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Creates a usable reference from a reference from a linked document."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
      "FunctionSignature": "ca02399c-f013-4808-bcc7-1488d5ad4d21",
      "FunctionType": "Graph",
      "Id": "0fa4a5d2da274f248f23f939b523e9fb",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "402829197bd4475d833780c7ee912bf5",
          "Name": "element",
          "Description": "Linked element\n\nvar[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "9503c15026434b9bb14acab1f20b0bcd",
          "Name": "RevitLinkInstance",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "24aa8cad73fe49e093d1b69f1bae76b2",
          "Name": "LinkInstanceName",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Returns the RevitLinkInstance in which the linked Element resides."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
      "Id": "b01a3e80ed5a41a2aeda547776212df7",
      "NodeType": "CodeBlockNode",
      "Inputs": [
        {
          "Id": "3db7e6062acd4e28aaa650afa29c2a29",
          "Name": "a",
          "Description": "a",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "85298a84ca8d40cd9e3c8114bd93e1a0",
          "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",
      "Code": "a[1];"
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
      "FunctionSignature": "0e4b754b-3ca7-4cd9-9f54-c5012f1763fd",
      "FunctionType": "Graph",
      "Id": "a78922dd0142465aa71d04d27b54701a",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "ada12a585e1e4bb7adb9282258a493f1",
          "Name": "familyInstance",
          "Description": "var[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "791cd49b8d294515b016b9fa04c1bd1a",
          "Name": "Reference",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "43dd7a9fdc5544eba10680c6365cf142",
          "Name": "ReferenceName",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "258780a84216419493d0d95d9a8d9698",
          "Name": "Plane",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Returns all references and references names."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
      "Id": "1a626621207c4ddba6481f65ccbfe9fc",
      "NodeType": "CodeBlockNode",
      "Inputs": [
        {
          "Id": "029ea7fa0a9c4f90a4f5c8dd6797762a",
          "Name": "a",
          "Description": "a",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "7655a3e2d03946bd84531fa679e97abc",
          "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",
      "Code": "a[4];"
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "Code": "import clr\r\n# Import RevitAPI\r\nclr.AddReference(\"RevitAPI\")\r\nimport Autodesk\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Import DocumentManager and TransactionManager\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = doc.ActiveView\r\n\r\nrefs = [IN[0]]\r\nresults = []\r\nfor r in refs:\r\n results.append(r.ConvertToStableRepresentation(doc))\r\n\r\nOUT = results",
      "Engine": "CPython3",
      "EngineName": "CPython3",
      "VariableInputPorts": true,
      "Id": "d528f422b3b84d6ba95c301cf241d5a5",
      "NodeType": "PythonScriptNode",
      "Inputs": [
        {
          "Id": "f7e8aa5a79ad49f9a8cb8a584ae7e600",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "9d41d9c2b52e48058b4d1abc19b0c5bb",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded Python script."
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "Code": "import clr\r\n# Import RevitAPI\r\nclr.AddReference(\"RevitAPI\")\r\nimport Autodesk\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Import DocumentManager and TransactionManager\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = doc.ActiveView\r\n\r\nrefs = [IN[0]]\r\nresults = []\r\nfor r in refs:\r\n results.append(r.ConvertToStableRepresentation(doc))\r\n\r\nOUT = results",
      "Engine": "CPython3",
      "EngineName": "CPython3",
      "VariableInputPorts": true,
      "Id": "d403aa37656b467b84c281b0a1d9e340",
      "NodeType": "PythonScriptNode",
      "Inputs": [
        {
          "Id": "ae46a8b621294f97bbd883a4b6f3d934",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "d69bf628018448fe89c0ce7112d84688",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded Python script."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
      "FunctionSignature": "ba8b7d16-46d3-4c93-96c3-df912d9c1f9e",
      "FunctionType": "Graph",
      "Id": "f9b3aef2181042099d74b45519b10f27",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "ea94ef5c65c34849800084570af3c61d",
          "Name": "view",
          "Description": "View to place dimension in\n\nView\nDefault value : Revit.Application.Document.Current.ActiveView",
          "UsingDefaultValue": true,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "df7e8f219d24472bba50634831c41c76",
          "Name": "line",
          "Description": "Location of the dimension\n\nCurve[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "2cabdb5254bf4337bc32208ba5edccd4",
          "Name": "references",
          "Description": "Autodesk.Revit.DB.Reference\n\nvar[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "ca53cf65083a4aab80605055f5fe0a02",
          "Name": "dimensionType",
          "Description": "var[]..[]\nDefault value : null",
          "UsingDefaultValue": true,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "27b0a54a4e5a41b5b927ddd60d809c28",
          "Name": "Dimension",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Creates a new linear dimension from at least two geometric references of an object."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
      "Id": "412991fa2e3843b4a938a24d1b4e7ec4",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "4df3075cf48042e8aca8c163747f0780",
          "Name": "document",
          "Description": "Revit.Application.Document",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "6152ef4f4eeb421c869db075650ca020",
          "Name": "View",
          "Description": "View",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "FunctionSignature": "Revit.Application.Document.ActiveView",
      "Replication": "Auto",
      "Description": "Get the active view for the document\n\nDocument.ActiveView: View"
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
      "Id": "3926517a9b7d43379835de52e3cc9e34",
      "NodeType": "FunctionNode",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "0fec8adf1d08459e8aa9b1c3f030e334",
          "Name": "Document",
          "Description": "Document",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "FunctionSignature": "Revit.Application.Document.Current",
      "Replication": "Auto",
      "Description": "Get the current document\n\nDocument.Current: Document"
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "Code": "import clr\r\n# Import RevitAPI\r\nclr.AddReference(\"RevitAPI\")\r\nimport Autodesk\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Import DocumentManager and TransactionManager\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\n\r\nclr.ImportExtensions(Revit.GeometryConversion)\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = doc.ActiveView\r\n\r\ncolumn = UnwrapElement(IN[0])\r\n\r\nresults = []\r\n\r\n# Get column location and view Z-level to ensure the dimension is flat\r\nloc = column.Location\r\n# Force the Z coordinate to match the view's origin so it's coplanar\r\nz_val = view.Origin.Z \r\npt = XYZ(loc.Point.X, loc.Point.Y, z_val)\r\n\r\n# Set offset to 1000mm (converted to internal feet)\r\noffset_mm = 1000 \r\noffset = UnitUtils.ConvertToInternalUnits(offset_mm, UnitTypeId.Millimeters)\r\n\r\n# Create dimension line Y (Parallel to Y axis)\r\npt_x1 = pt.Add(XYZ(-offset, offset, 0))\r\npt_x2 = pt.Add(XYZ(offset, offset, 0))\r\nx_line = Line.CreateBound(pt_x1, pt_x2)\r\n\r\n\r\n\r\nOUT = x_line.ToProtoType()\r\n",
      "Engine": "CPython3",
      "EngineName": "CPython3",
      "VariableInputPorts": true,
      "Id": "5df3409fbe5d440a9fdceb14d1eb25b7",
      "NodeType": "PythonScriptNode",
      "Inputs": [
        {
          "Id": "6e531459d1a3429c8713fd155420aa81",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "52485e69bd0d4c0683d3912eb91a9731",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded Python script."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSVarArgFunction, DynamoCore",
      "FunctionSignature": "DSCore.List.Join@var[]..[]",
      "FunctionType": "VariableArgument",
      "Id": "d6631c42799a4ebeb76ee7e1c2ec0d71",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "376da5fa7fde43bcb3c0041f197b249e",
          "Name": "list0",
          "Description": "Lists to join into one.\n\nvar[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "3d566a2240154ca5b744a08c89c354c7",
          "Name": "list1",
          "Description": "var[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "158b3c603d08436e961dc37fab2f5f18",
          "Name": "list",
          "Description": "Joined list.",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Concatenates all given lists into a single list.\n\nList.Join (lists: var[]..[]): var[]..[]"
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "Code": "import clr\r\n# Import RevitAPI\r\nclr.AddReference(\"RevitAPI\")\r\nimport Autodesk\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Import DocumentManager and TransactionManager\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = doc.ActiveView\r\nimport clr\r\n\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference('RevitServices')\r\nfrom RevitServices.Persistence import DocumentManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\n\r\n\r\n\r\n# Collect walls in linked model\r\ncollector =  [UnwrapElement(IN[0])]\r\n\r\nrefs = []\r\n\r\nopt = Options()\r\nopt.ComputeReferences = True\r\nopt.IncludeNonVisibleObjects = True\r\n\r\nfor wall in collector:\r\n    geo = wall.get_Geometry(opt)\r\n    \r\n    for g in geo:\r\n        solid = g if isinstance(g, Solid) else None\r\n        \r\n        if solid:\r\n            for face in solid.Faces:\r\n                if face.Reference:\r\n                    refs.append(face.Reference)\r\n\r\nOUT = refs",
      "Engine": "CPython3",
      "EngineName": "CPython3",
      "VariableInputPorts": true,
      "Id": "30cb6f7b1de24824aa5124ff7dc9ad78",
      "NodeType": "PythonScriptNode",
      "Inputs": [
        {
          "Id": "54363ce5d4c64a38a10850301af16bef",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "90b19c2d0a474d9f90d156a3977e81dd",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded Python script."
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "Code": "import clr\r\n# Import RevitAPI\r\nclr.AddReference(\"RevitAPI\")\r\nimport Autodesk\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Import DocumentManager and TransactionManager\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = doc.ActiveView\r\n\r\nrefs = IN[0]\r\nresults = []\r\nfor r in refs:\r\n results.append(r.ConvertToStableRepresentation(doc))\r\n\r\nOUT = results",
      "Engine": "CPython3",
      "EngineName": "CPython3",
      "VariableInputPorts": true,
      "Id": "57a8d919df4d4849be1eb69448cd5927",
      "NodeType": "PythonScriptNode",
      "Inputs": [
        {
          "Id": "2de7139aa306406c94922846f86fb4bc",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "a6315a38d72d49ce9a7cc9cd290b428f",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded Python script."
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
      "FunctionSignature": "c74cdf50-fd7b-436a-8e2d-6b6e50879034",
      "FunctionType": "Graph",
      "Id": "d77254e49a6e4a6eb6724131d5e76e37",
      "NodeType": "FunctionNode",
      "Inputs": [
        {
          "Id": "e3c70d178f47439198530d116a44881f",
          "Name": "element",
          "Description": "var[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "2536034136484671b70f3edc35c368f4",
          "Name": "Reference",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Gets the reference of a geometric object or a dimension or a reference plane."
    },
    {
      "ConcreteType": "Dynamo.Nodes.DSModelElementSelection, DSRevitNodesUI",
      "NodeType": "ExtensionNode",
      "InstanceId": [
        "6a4c53a1-5d68-4a51-b95e-b84828d5a786-00178d86"
      ],
      "Id": "c3e0c9c1d9284d81a2aca54e6a52b88f",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "ab22e9916cc849f1bede2c33ae6ef0f2",
          "Name": "Element",
          "Description": "The selected elements.",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Select a model element from the document."
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "Code": "import clr\r\n# Import RevitAPI\r\nclr.AddReference(\"RevitAPI\")\r\nimport Autodesk\r\nfrom Autodesk.Revit.DB import *\r\n\r\n# Import DocumentManager and TransactionManager\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nview = doc.ActiveView\r\n\r\nrefs = IN[0]\r\nresults = []\r\nfor r in refs:\r\n results.append(r.ConvertToStableRepresentation(doc))\r\n\r\nOUT = results",
      "Engine": "CPython3",
      "EngineName": "CPython3",
      "VariableInputPorts": true,
      "Id": "d557391f49604677b39cf8525f66c372",
      "NodeType": "PythonScriptNode",
      "Inputs": [
        {
          "Id": "5ce0efeb79214b35aac587a4014ffaaf",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "f9bf2019211d45f083f16b4a0b770b59",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded Python script."
    }
  ],
  "Connectors": [
    {
      "Start": "ebc475c6079744cb8510c082799a3dfd",
      "End": "48ee8846607e4807b075c06ef731d884",
      "Id": "b07d357e27694889a2bf3fb5223f6c71",
      "IsHidden": "False"
    },
    {
      "Start": "ebc475c6079744cb8510c082799a3dfd",
      "End": "ada12a585e1e4bb7adb9282258a493f1",
      "Id": "ca2423d834824db0b3318a7fa8387ebd",
      "IsHidden": "False"
    },
    {
      "Start": "ebc475c6079744cb8510c082799a3dfd",
      "End": "6e531459d1a3429c8713fd155420aa81",
      "Id": "c6c84d9b132e46a49f81babcc24038c8",
      "IsHidden": "False"
    },
    {
      "Start": "3c9d54ba759145f3bfc0bed13a5c282e",
      "End": "402829197bd4475d833780c7ee912bf5",
      "Id": "09f52885a3a84a7a94012604c860296f",
      "IsHidden": "False"
    },
    {
      "Start": "3c9d54ba759145f3bfc0bed13a5c282e",
      "End": "54363ce5d4c64a38a10850301af16bef",
      "Id": "7373ac74930c45aa957bca49766da08e",
      "IsHidden": "False"
    },
    {
      "Start": "0bbbc65074bf4648a24db6d131233add",
      "End": "3db7e6062acd4e28aaa650afa29c2a29",
      "Id": "879c377f4c6a4f578cf642e6bbd48f04",
      "IsHidden": "False"
    },
    {
      "Start": "0bbbc65074bf4648a24db6d131233add",
      "End": "2de7139aa306406c94922846f86fb4bc",
      "Id": "e108db5c43104c09b9d019bf2a26a30c",
      "IsHidden": "False"
    },
    {
      "Start": "9503c15026434b9bb14acab1f20b0bcd",
      "End": "db24001ad8984c37883e28246428504b",
      "Id": "e18292d7c9a741ada9eb3d7979922daf",
      "IsHidden": "False"
    },
    {
      "Start": "85298a84ca8d40cd9e3c8114bd93e1a0",
      "End": "e780d5a1546846368db8f6bad0338057",
      "Id": "8e4ad50cb95e4ca4b1d1bb4152fe6ba4",
      "IsHidden": "False"
    },
    {
      "Start": "85298a84ca8d40cd9e3c8114bd93e1a0",
      "End": "ae46a8b621294f97bbd883a4b6f3d934",
      "Id": "80cc81785fad4cd2abf5220e5448d583",
      "IsHidden": "False"
    },
    {
      "Start": "85298a84ca8d40cd9e3c8114bd93e1a0",
      "End": "376da5fa7fde43bcb3c0041f197b249e",
      "Id": "04b329f85361400abe12e654a4722d7c",
      "IsHidden": "False"
    },
    {
      "Start": "791cd49b8d294515b016b9fa04c1bd1a",
      "End": "029ea7fa0a9c4f90a4f5c8dd6797762a",
      "Id": "2feeb78fa3e846379695722374c70671",
      "IsHidden": "False"
    },
    {
      "Start": "7655a3e2d03946bd84531fa679e97abc",
      "End": "b24a4f9ae09846629813445eb1bedc2c",
      "Id": "9b1aedc8ab0c423095978ae2a2ba938f",
      "IsHidden": "False"
    },
    {
      "Start": "7655a3e2d03946bd84531fa679e97abc",
      "End": "f7e8aa5a79ad49f9a8cb8a584ae7e600",
      "Id": "acdc81a9c0194903afe07bab2afca782",
      "IsHidden": "False"
    },
    {
      "Start": "7655a3e2d03946bd84531fa679e97abc",
      "End": "3d566a2240154ca5b744a08c89c354c7",
      "Id": "c6da7b18b8e74a32983c1be23da3ac80",
      "IsHidden": "False"
    },
    {
      "Start": "6152ef4f4eeb421c869db075650ca020",
      "End": "ea94ef5c65c34849800084570af3c61d",
      "Id": "4586dfecbc2a4bbe91015b6acdd25c0c",
      "IsHidden": "False"
    },
    {
      "Start": "0fec8adf1d08459e8aa9b1c3f030e334",
      "End": "4df3075cf48042e8aca8c163747f0780",
      "Id": "45b440a05eef444880b20b405f4540e6",
      "IsHidden": "False"
    },
    {
      "Start": "52485e69bd0d4c0683d3912eb91a9731",
      "End": "df7e8f219d24472bba50634831c41c76",
      "Id": "cbe6f12cde6d4f3cacf64c3641d6f5d5",
      "IsHidden": "False"
    },
    {
      "Start": "158b3c603d08436e961dc37fab2f5f18",
      "End": "2cabdb5254bf4337bc32208ba5edccd4",
      "Id": "4ee1938422e14866968c915e4f8ef8ff",
      "IsHidden": "False"
    },
    {
      "Start": "90b19c2d0a474d9f90d156a3977e81dd",
      "End": "603c941665ff40cdbd2bd95f84af111b",
      "Id": "196ef72c86224674904d0040ae7b9fd0",
      "IsHidden": "False"
    },
    {
      "Start": "2536034136484671b70f3edc35c368f4",
      "End": "5ce0efeb79214b35aac587a4014ffaaf",
      "Id": "2d8cf41ec14345ce92be678ba0dea28d",
      "IsHidden": "False"
    },
    {
      "Start": "ab22e9916cc849f1bede2c33ae6ef0f2",
      "End": "e3c70d178f47439198530d116a44881f",
      "Id": "61b2d42ecd394fb3b1a633d18bdbea8d",
      "IsHidden": "False"
    }
  ],
  "Dependencies": [
    "12050b47-2098-4101-af6d-79523545a310",
    "5c770bc5-de60-41c7-a2cd-2bccd79a6a89",
    "ca02399c-f013-4808-bcc7-1488d5ad4d21",
    "0e4b754b-3ca7-4cd9-9f54-c5012f1763fd",
    "ba8b7d16-46d3-4c93-96c3-df912d9c1f9e",
    "c74cdf50-fd7b-436a-8e2d-6b6e50879034"
  ],
  "NodeLibraryDependencies": [
    {
      "Name": "Genius Loci",
      "Version": "2024.5.29",
      "ReferenceType": "Package",
      "Nodes": [
        "d1feed8600f44755a08025523ff27bcd",
        "fa9f2c4f882e4512bc20575f6b65402e",
        "0fa4a5d2da274f248f23f939b523e9fb",
        "a78922dd0142465aa71d04d27b54701a",
        "f9b3aef2181042099d74b45519b10f27",
        "d77254e49a6e4a6eb6724131d5e76e37"
      ]
    }
  ],
  "Thumbnail": "",
  "GraphDocumentationURL": null,
  "ExtensionWorkspaceData": [
    {
      "ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670",
      "Name": "Properties",
      "Version": "2.16",
      "Data": {}
    },
    {
      "ExtensionGuid": "DFBD9CC0-DB40-457A-939E-8C8555555A9D",
      "Name": "Generative Design",
      "Version": "3.0",
      "Data": {}
    }
  ],
  "Author": "",
  "Linting": {
    "activeLinter": "None",
    "activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a",
    "warningCount": 0,
    "errorCount": 0
  },
  "Bindings": [],
  "View": {
    "Dynamo": {
      "ScaleFactor": 1.0,
      "HasRunWithoutCrash": true,
      "IsVisibleInDynamoLibrary": true,
      "Version": "2.19.3.6394",
      "RunType": "Manual",
      "RunPeriod": "1000"
    },
    "Camera": {
      "Name": "_Background Preview",
      "EyeX": -329.149169921875,
      "EyeY": 4945.76806640625,
      "EyeZ": 6651.21142578125,
      "LookX": 1579.481201171875,
      "LookY": -1711.1044921875,
      "LookZ": -7634.1591796875,
      "UpX": 0.042425896972417831,
      "UpY": 0.95403873920440674,
      "UpZ": -0.2050585001707077
    },
    "ConnectorPins": [],
    "NodeViews": [
      {
        "Id": "d3f5e60653dd40e789532972ea2a60e1",
        "Name": "Select Model Element",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 118.1561076231427,
        "Y": 1589.9213086870675
      },
      {
        "Id": "7faf0c8afcfe4d8282f8f131853e5c1f",
        "Name": "Python Script",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": true,
        "ShowGeometry": true,
        "X": 2450.5074597150378,
        "Y": 1526.1834431504972
      },
      {
        "Id": "d1feed8600f44755a08025523ff27bcd",
        "Name": "Select Linked Element",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": -586.99181712167194,
        "Y": 823.10094329581568
      },
      {
        "Id": "fa9f2c4f882e4512bc20575f6b65402e",
        "Name": "Convert Linked Reference",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 660.71373170282686,
        "Y": 349.59223539771966
      },
      {
        "Id": "0fa4a5d2da274f248f23f939b523e9fb",
        "Name": "Element ToLinkInstance",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 22.970509858271839,
        "Y": 816.59223918696262
      },
      {
        "Id": "b01a3e80ed5a41a2aeda547776212df7",
        "Name": "Code Block",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1329.1749681698138,
        "Y": 1165.6137813733828
      },
      {
        "Id": "a78922dd0142465aa71d04d27b54701a",
        "Name": "FamilyInstance References",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 633.64119892564531,
        "Y": 1040.4516488983247
      },
      {
        "Id": "1a626621207c4ddba6481f65ccbfe9fc",
        "Name": "Code Block",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1331.8256304180557,
        "Y": 1349.0682261124605
      },
      {
        "Id": "d528f422b3b84d6ba95c301cf241d5a5",
        "Name": "Python Script",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1820.3597879189892,
        "Y": 1357.1234597048431
      },
      {
        "Id": "d403aa37656b467b84c281b0a1d9e340",
        "Name": "Python Script",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1805.7510002881518,
        "Y": 1076.5096758941661
      },
      {
        "Id": "f9b3aef2181042099d74b45519b10f27",
        "Name": "Dimension ByReferences",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 2415.4867459794727,
        "Y": 1038.7079975755687
      },
      {
        "Id": "412991fa2e3843b4a938a24d1b4e7ec4",
        "Name": "Document.ActiveView",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 2155.9112668586886,
        "Y": 818.8386668252499
      },
      {
        "Id": "3926517a9b7d43379835de52e3cc9e34",
        "Name": "Document.Current",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1869.9223874137688,
        "Y": 813.98777057213329
      },
      {
        "Id": "5df3409fbe5d440a9fdceb14d1eb25b7",
        "Name": "Python Script",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 2108.5237184066509,
        "Y": 980.14475700184516
      },
      {
        "Id": "d6631c42799a4ebeb76ee7e1c2ec0d71",
        "Name": "List.Join",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 2142.9521565200625,
        "Y": 1155.2177150186487
      },
      {
        "Id": "30cb6f7b1de24824aa5124ff7dc9ad78",
        "Name": "Python Script",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 81.016045948832016,
        "Y": 353.47207422380245
      },
      {
        "Id": "57a8d919df4d4849be1eb69448cd5927",
        "Name": "Python Script",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1252.7559277405476,
        "Y": 351.62658716704232
      },
      {
        "Id": "d77254e49a6e4a6eb6724131d5e76e37",
        "Name": "Element Reference",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1901.2352981711401,
        "Y": 19.891725195426389
      },
      {
        "Id": "c3e0c9c1d9284d81a2aca54e6a52b88f",
        "Name": "Select Model Element",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 1538.1051192455309,
        "Y": 20.473673327085265
      },
      {
        "Id": "d557391f49604677b39cf8525f66c372",
        "Name": "Python Script",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "ShowGeometry": true,
        "X": 2287.0320164943423,
        "Y": 19.426393548286612
      }
    ],
    "Annotations": [
      {
        "Id": "0afb9dab70694c0ab8033f5d48f38397",
        "Title": "Wall",
        "DescriptionText": "Description <Double click here to edit group description>",
        "IsExpanded": true,
        "WidthAdjustment": 0.0,
        "HeightAdjustment": 0.0,
        "Nodes": [
          "d1feed8600f44755a08025523ff27bcd"
        ],
        "HasNestedGroups": false,
        "Left": -596.99181712167194,
        "Top": 741.10094329581568,
        "Width": 295.0,
        "Height": 284.0,
        "FontSize": 36.0,
        "GroupStyleId": "00000000-0000-0000-0000-000000000000",
        "InitialTop": 823.10094329581568,
        "InitialHeight": 145.0,
        "TextblockHeight": 72.0,
        "Background": "#FFC1D676"
      },
      {
        "Id": "e1312e4723b04bfc8e09e159fc98a343",
        "Title": "Fitting",
        "DescriptionText": "Description <Double click here to edit group description>",
        "IsExpanded": true,
        "WidthAdjustment": 0.0,
        "HeightAdjustment": 0.0,
        "Nodes": [
          "d3f5e60653dd40e789532972ea2a60e1"
        ],
        "HasNestedGroups": false,
        "Left": 108.1561076231427,
        "Top": 1507.9213086870675,
        "Width": 256.0,
        "Height": 233.0,
        "FontSize": 36.0,
        "GroupStyleId": "00000000-0000-0000-0000-000000000000",
        "InitialTop": 1589.9213086870675,
        "InitialHeight": 145.0,
        "TextblockHeight": 72.0,
        "Background": "#FFC1D676"
      }
    ],
    "X": -1414.8396444748839,
    "Y": -754.30213099259925,
    "Zoom": 0.88267808763755662
  }
}