{
  "Uuid": "ce6a1744-c4f1-4cb4-8611-701ac21d599b",
  "IsCustomNode": false,
  "Description": null,
  "Name": "RemoveRailingHost",
  "ElementResolver": {
    "ResolutionMap": {}
  },
  "Inputs": [],
  "Outputs": [],
  "Nodes": [
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "NodeType": "PythonScriptNode",
      "Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\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\ndoc = DocumentManager.Instance.CurrentDBDocument\r\n\r\nif isinstance(IN[0], list):\r\n    railing_list = UnwrapElement(IN[0])\r\nelse:\r\n    railing_list = [UnwrapElement(IN[0])]\r\n\r\n\r\n\r\n#railing_list = UnwrapElement(IN[0])\r\nnewhost = UnwrapElement(IN[1])\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\n\r\n#hostId = newhost.Id\r\nfor r in railing_list:\r\n\tr.RemoveHost()\r\n    #r.HostId = hostId\r\n\r\nTransactionManager.Instance.TransactionTaskDone()\r\n\r\nOUT = railing_list",
      "VariableInputPorts": true,
      "Id": "ea4d8313881644d0906148119af7d6c2",
      "Inputs": [
        {
          "Id": "8cbcc4d68791485bb15a89d0e6e78e1a",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "ca5185d777124f289a0c3c96c7db826a",
          "Name": "IN[1]",
          "Description": "Input #1",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "e0b32ee5741c4dbea462dda069f0a26d",
          "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.Nodes.DSModelElementSelection, DSRevitNodesUI",
      "NodeType": "ExtensionNode",
      "InstanceId": [],
      "Id": "95aa7fba785441b289c9a07d2c228fa9",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "ffc86bec0e7c47c5bead071bad7278ce",
          "Name": "Element",
          "Description": "The selected elements.",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled"
    }
  ],
  "Connectors": [
    {
      "Start": "ffc86bec0e7c47c5bead071bad7278ce",
      "End": "8cbcc4d68791485bb15a89d0e6e78e1a",
      "Id": "7b6f21acb9014ddabed747ccf1175f64"
    }
  ],
  "Dependencies": [],
  "Bindings": [],
  "View": {
    "Dynamo": {
      "ScaleFactor": 1.0,
      "HasRunWithoutCrash": true,
      "IsVisibleInDynamoLibrary": true,
      "Version": "2.0.4.12684",
      "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": [
      {
        "ShowGeometry": true,
        "Name": "Python Script",
        "Id": "ea4d8313881644d0906148119af7d6c2",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": 401.0,
        "Y": 549.0
      },
      {
        "ShowGeometry": true,
        "Name": "Select Model Element",
        "Id": "95aa7fba785441b289c9a07d2c228fa9",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": 72.5,
        "Y": 533.0
      }
    ],
    "Annotations": [],
    "X": 117.0,
    "Y": 87.0,
    "Zoom": 1.0
  }
}