{
  "Uuid": "701411a4-9613-4fd5-836b-b021f6030b6f",
  "IsCustomNode": true,
  "Category": "infeeeee.Revit.FamilyType",
  "Description": "Layer widths of compound structure in meter. Works in 2022",
  "Name": "CompoundStructureLayerWidths",
  "ElementResolver": {
    "ResolutionMap": {
      "Math": {
        "Key": "DSCore.Math",
        "Value": "DSCoreNodes.dll"
      }
    }
  },
  "Inputs": [],
  "Outputs": [],
  "Nodes": [
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
      "FunctionSignature": "1e3b5d82-c924-4649-a653-7fa7ead9cd1c",
      "FunctionType": "Graph",
      "NodeType": "FunctionNode",
      "Id": "a0c9e52b32904fb9864402c298c5c57f",
      "Inputs": [
        {
          "Id": "85c8f6b7056e468fa9091c0429234854",
          "Name": "elementType",
          "Description": "var[]..[]",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "399c2fa5404c4f51ac985ed110f7c63a",
          "Name": "materials",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "baacf544c12b4642864c1f7984c3346d",
          "Name": "functions",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "55d90bfade7944e4805258444e816c3a",
          "Name": "widths",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "323746546cab4372a4e8a982787ccafd",
          "Name": "isCore",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "a85f4cdcd53b4a6188842d0c79e4e978",
          "Name": "wraps",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "c300e89429194fb2baae80feb34eb1fc",
          "Name": "isVariable",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "d7a563d8d4364514a56ac25828669966",
          "Name": "isStructuralDeck",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "a48ab4ce861c42dda08515adf1bf943d",
          "Name": "layers",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Retrieves the compound layers of any layered family type (wall types, roof types, floor types etc.)"
    },
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "NodeType": "PythonScriptNode",
      "Code": "# based on Clockwork's FamilyType.CompoundStructureLayers\r\nimport clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\nclr.ImportExtensions(Revit.Elements)\r\n\r\nitems = UnwrapElement(IN[0])\r\n\r\noutput = []\r\n\r\nfor item in items:\r\n\tlayerwidth = []\r\n\ttry:\r\n\t\tif hasattr(item, \"GetCompoundStructure\"):\r\n\t\t\tcompstruc = item.GetCompoundStructure()\r\n\t\t\tnum = compstruc.LayerCount\r\n\t\t\tcounter = 0\r\n\t\t\twhile counter < num:\r\n\t\t\t\tlw = compstruc.GetLayerWidth(counter)\r\n\t\t\t\tlc = UnitUtils.ConvertFromInternalUnits(lw,ForgeTypeId('autodesk.unit.unit:meters'))\r\n\t\t\t\tlayerwidth.append(lc)\r\n\t\t\t\tcounter += 1\r\n\t\t\toutput.append(layerwidth)\r\n\texcept: pass\r\n\t\r\nOUT = output\r\n",
      "Engine": "IronPython2",
      "VariableInputPorts": true,
      "Id": "278c55d10f03481fb31c8fbb12a14e5c",
      "Inputs": [
        {
          "Id": "84eaac1602c14102bbb4e34262b9ee3a",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "403eaf42d9f7442e81ef54806490944f",
          "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": "0a580cf8-9c53-48b1-8a4d-1acb49d472b5",
      "FunctionType": "Graph",
      "NodeType": "FunctionNode",
      "Id": "28639d545986476bb970b29de101d459",
      "Inputs": [
        {
          "Id": "440d083bd00746e7a022a626c86fc15d",
          "Name": "length",
          "Description": "double",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "09e05ac219244837ada5b237088f1b84",
          "Name": "Meter",
          "Description": "return value",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Auto",
      "Description": "Convert from Revit display unit to meter"
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
      "NodeType": "CodeBlockNode",
      "Code": "a>2021;",
      "Id": "12f4919f41244b5b9078c91433b0d1d6",
      "Inputs": [
        {
          "Id": "f0b3636fa4784bdda35f15842b87f73f",
          "Name": "a",
          "Description": "a",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "9fe2603f122946ce9a654ce7251f1f66",
          "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": "CoreNodeModels.Logic.If, CoreNodeModels",
      "NodeType": "ExtensionNode",
      "Id": "2a18de17cd5c4359b15ef0eaee43dbb5",
      "Inputs": [
        {
          "Id": "d66c342c2a714ba4860b1f7fd1be6828",
          "Name": "test",
          "Description": "Boolean test",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "bb895d2f512046af8e8aa378caa4372c",
          "Name": "true",
          "Description": "Returned if test is true",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "571b615e9b914857939e769c61df4e7d",
          "Name": "false",
          "Description": "Returned if test is false",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "2e2096cfe08641059fd7c472f3cd2d5a",
          "Name": "result",
          "Description": "Result block produced",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Conditional statement"
    },
    {
      "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
      "NodeType": "InputNode",
      "Parameter": {
        "Name": "familyType",
        "TypeName": "var",
        "TypeRank": 0,
        "DefaultValue": null,
        "Description": ""
      },
      "Id": "cfe1cb0369814e408909e9def13e288b",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "601c87e5c14e41c3b0bb535bde962f8b",
          "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": "widths",
      "Id": "812ba296a82e4ff5b5b0c11b44b4b53d",
      "Inputs": [
        {
          "Id": "90bc08ef2e794a129ce0b90fff4ad685",
          "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.CustomNodes.Symbol, DynamoCore",
      "NodeType": "InputNode",
      "Parameter": {
        "Name": "revitVersion",
        "TypeName": "int",
        "TypeRank": 0,
        "DefaultValue": null,
        "Description": ""
      },
      "Id": "7e2fb3704dc84ee8a9691bb477cfa1b6",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "0e979923f6a04251b12f7065cccde7ee",
          "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"
    }
  ],
  "Connectors": [
    {
      "Start": "55d90bfade7944e4805258444e816c3a",
      "End": "440d083bd00746e7a022a626c86fc15d",
      "Id": "68c1743306074787bb6e7a55bf021b83"
    },
    {
      "Start": "403eaf42d9f7442e81ef54806490944f",
      "End": "bb895d2f512046af8e8aa378caa4372c",
      "Id": "38d28b72bb884bdc9e6c3760c7cde19e"
    },
    {
      "Start": "09e05ac219244837ada5b237088f1b84",
      "End": "571b615e9b914857939e769c61df4e7d",
      "Id": "249ed2f41f3d4183b54347ef6ad5c4b9"
    },
    {
      "Start": "9fe2603f122946ce9a654ce7251f1f66",
      "End": "d66c342c2a714ba4860b1f7fd1be6828",
      "Id": "7a719d30e9b24a12b405bf292965013e"
    },
    {
      "Start": "2e2096cfe08641059fd7c472f3cd2d5a",
      "End": "90bc08ef2e794a129ce0b90fff4ad685",
      "Id": "1336a70e37b4480c9586bdc83cb85fb8"
    },
    {
      "Start": "601c87e5c14e41c3b0bb535bde962f8b",
      "End": "85c8f6b7056e468fa9091c0429234854",
      "Id": "abb13729911547debd8225659ca5061e"
    },
    {
      "Start": "601c87e5c14e41c3b0bb535bde962f8b",
      "End": "84eaac1602c14102bbb4e34262b9ee3a",
      "Id": "9b7ab654c4f34536a57cf553cd2b0b20"
    },
    {
      "Start": "0e979923f6a04251b12f7065cccde7ee",
      "End": "f0b3636fa4784bdda35f15842b87f73f",
      "Id": "2fb3dd69f8fb44d08905ed91b6e62060"
    }
  ],
  "Dependencies": [
    "1e3b5d82-c924-4649-a653-7fa7ead9cd1c",
    "0a580cf8-9c53-48b1-8a4d-1acb49d472b5"
  ],
  "NodeLibraryDependencies": [
    {
      "Name": "Clockwork for Dynamo 2.x",
      "Version": "2.3.0",
      "ReferenceType": "Package",
      "Nodes": [
        "a0c9e52b32904fb9864402c298c5c57f"
      ]
    }
  ],
  "Bindings": [],
  "View": {
    "Dynamo": {
      "ScaleFactor": 1.0,
      "HasRunWithoutCrash": false,
      "IsVisibleInDynamoLibrary": true,
      "Version": "2.10.1.3976",
      "RunType": "Manual",
      "RunPeriod": "1000"
    },
    "Camera": {
      "Name": "Background Preview",
      "EyeX": 29.079783934082467,
      "EyeY": 16.776168007768419,
      "EyeZ": -10.906455497398817,
      "LookX": -26.796219843353708,
      "LookY": -12.611168045915392,
      "LookZ": 4.6336312099842658,
      "UpX": -0.21327446603351286,
      "UpY": 0.97629600711994025,
      "UpZ": 0.036879650483638178
    },
    "NodeViews": [
      {
        "Id": "a0c9e52b32904fb9864402c298c5c57f",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "FamilyType.CompoundStructureLayers",
        "ShowGeometry": true,
        "Excluded": false,
        "X": 250.0,
        "Y": 0.0
      },
      {
        "Id": "278c55d10f03481fb31c8fbb12a14e5c",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "LayerWidths 2022",
        "ShowGeometry": true,
        "Excluded": false,
        "X": 332.971292544235,
        "Y": 299.56717929291972
      },
      {
        "Id": "28639d545986476bb970b29de101d459",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "ConvertToMeter",
        "ShowGeometry": true,
        "Excluded": false,
        "X": 614.270872257526,
        "Y": 53.8837643669267
      },
      {
        "Id": "12f4919f41244b5b9078c91433b0d1d6",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "Code Block",
        "ShowGeometry": true,
        "Excluded": false,
        "X": 625.824520148695,
        "Y": 449.86301930756872
      },
      {
        "Id": "2a18de17cd5c4359b15ef0eaee43dbb5",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "If",
        "ShowGeometry": true,
        "Excluded": false,
        "X": 951.74968859653563,
        "Y": 299.16508178508775
      },
      {
        "Id": "cfe1cb0369814e408909e9def13e288b",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "Input",
        "ShowGeometry": true,
        "Excluded": false,
        "X": 0.0,
        "Y": 0.0
      },
      {
        "Id": "812ba296a82e4ff5b5b0c11b44b4b53d",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "Output",
        "ShowGeometry": true,
        "Excluded": false,
        "X": 1195.7496885965356,
        "Y": 132.0
      },
      {
        "Id": "7e2fb3704dc84ee8a9691bb477cfa1b6",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Name": "Input",
        "ShowGeometry": true,
        "Excluded": false,
        "X": -72.0,
        "Y": 309.0
      }
    ],
    "Annotations": [],
    "X": 398.0,
    "Y": 370.0,
    "Zoom": 1.0
  }
}