<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/2fa1af6169af4124ad4648c220249747&quot; frameborder=&quot;0&quot; width=&quot;1920&quot; height=&quot;1440&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1440</height><width>1920</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1440</thumbnail_height><thumbnail_width>1920</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/2fa1af6169af4124ad4648c220249747-959b4637bcc7cf30.gif</thumbnail_url><duration>1608.667</duration><title>Day 19 - Wall Splitter - 04 Code</title><description>This Loom demonstrates the proof of concept for a Revit wall splitter by reading wall compound structure layers from a selected wall’s type and recreating them in the API. The author iterates through compound structure layers, capturing material ID, layer width (converting from internal units to centimeters), and layer ID order, then builds a proposed wall type name from material name and thickness. They then focus on duplicating the wall using ElementTransformUtils copy logic, adjusting the new wall’s location curve with a curve offset. The author notes common debugging issues such as needing to handle material being None and that CopyElement returns a collection of IDs, then confirms the PoC works after fixing those errors.</description></oembed>