{
  "Uuid": "29856011-b170-4f1f-bd2b-d2163cb3a8b3",
  "IsCustomNode": false,
  "Description": null,
  "Name": "essai coupe",
  "ElementResolver": {
    "ResolutionMap": {}
  },
  "Inputs": [],
  "Outputs": [],
  "Nodes": [
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "NodeType": "PythonScriptNode",
      "Code": "# Activer la prise en charge de Python et charger la bibliothèque DesignScript\r\nimport clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\nclr.AddReference('RevitServices')\r\nclr.AddReference('ProtoGeometry')\r\nfrom Autodesk.DesignScript.Geometry import *\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\nDocumentOBA = DocumentManager.Instance.CurrentDBDocument\r\nElementsACouper = UnwrapElement(IN[0])\r\nVide = UnwrapElement(IN[1])\r\n\r\n#Placer votre code en dessous de cette ligne\r\nfor j in range(0,len(Vide)):\r\n\tfor i in ElementsACouper:\r\n\t\tTransactionManager.Instance.EnsureInTransaction(DocumentOBA)\r\n\t\tInstanceVoidCutUtils.AddInstanceVoidCut(DocumentOBA,i, Vide[j])\r\n\r\n\r\n# Affectez la sortie à la variable OUT.\r\nOUT = 0",
      "VariableInputPorts": true,
      "Id": "e314aee7462a452a9da14d70d5069de8",
      "Inputs": [
        {
          "Id": "d8e396fd29324a42b77b388e41c94ca5",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "1a34512a2e054676b9d4ebccb47a4165",
          "Name": "IN[1]",
          "Description": "Input #1",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "861741fd48284bc4b68055f27c9da9a7",
          "Name": "OUT",
          "Description": "Résultat du script Python",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Exécute un script IronPython intégré."
    },
    {
      "ConcreteType": "Dynamo.Nodes.DSModelElementsSelection, DSRevitNodesUI",
      "NodeType": "ExtensionNode",
      "InstanceId": [
        "bad4c278-fab8-4a87-9c22-bf05149c937f-0004024f",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040251",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040253",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040255",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040257",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040259",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-0004025b",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-0004025d",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-0004025f",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040261",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040263",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040265",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040267"
      ],
      "Id": "39b70bec298240479de4b6c844fa8b8a",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "73264a07a4034d849bd519fd96d4ba69",
          "Name": "Elements",
          "Description": "Eléments sélectionnés.",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled"
    },
    {
      "ConcreteType": "Dynamo.Nodes.DSModelElementsSelection, DSRevitNodesUI",
      "NodeType": "ExtensionNode",
      "InstanceId": [
        "bad4c278-fab8-4a87-9c22-bf05149c937f-0004023f",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040241",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040243",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040245",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040247",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-00040249",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-0004024b",
        "bad4c278-fab8-4a87-9c22-bf05149c937f-0004024d"
      ],
      "Id": "159a09e5f87d462ea6a7251ad6e3b8d1",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "58c53218a2844712be63c92f040e5243",
          "Name": "Elements",
          "Description": "Eléments sélectionnés.",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled"
    }
  ],
  "Connectors": [
    {
      "Start": "73264a07a4034d849bd519fd96d4ba69",
      "End": "d8e396fd29324a42b77b388e41c94ca5",
      "Id": "f4c5865a5ce24f4084d7f4b350eb037c"
    },
    {
      "Start": "58c53218a2844712be63c92f040e5243",
      "End": "1a34512a2e054676b9d4ebccb47a4165",
      "Id": "c6425a6e48b0447c8b811f9cf0a14633"
    }
  ],
  "Dependencies": [],
  "Bindings": [],
  "View": {
    "Dynamo": {
      "ScaleFactor": 1.0,
      "HasRunWithoutCrash": true,
      "IsVisibleInDynamoLibrary": true,
      "Version": "2.0.3.8810",
      "RunType": "Manual",
      "RunPeriod": "1000"
    },
    "Camera": {
      "Name": "Aperçu en arrière-plan",
      "EyeX": -11.881138620542297,
      "EyeY": 10.54666509235931,
      "EyeZ": 1.6515688260144268,
      "LookX": 0.72602313826078557,
      "LookY": -10.975558308981972,
      "LookZ": -2.7695290499090284,
      "UpX": 0.22594007166521909,
      "UpY": 0.45399049973954747,
      "UpZ": -0.86188381476980747
    },
    "NodeViews": [
      {
        "ShowGeometry": true,
        "Name": "Python Script",
        "Id": "e314aee7462a452a9da14d70d5069de8",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": 2781.6041114157915,
        "Y": 182.57134156302376
      },
      {
        "ShowGeometry": true,
        "Name": "Select Model Elements",
        "Id": "39b70bec298240479de4b6c844fa8b8a",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": 2348.9739725498202,
        "Y": 46.712545639029059
      },
      {
        "ShowGeometry": true,
        "Name": "Select Model Elements",
        "Id": "159a09e5f87d462ea6a7251ad6e3b8d1",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": 2382.9848784295705,
        "Y": 309.61242483083589
      }
    ],
    "Annotations": [],
    "X": -2909.5255830896617,
    "Y": -71.728543001297169,
    "Zoom": 1.3682803658810903
  }
}