title: How to create and set compound structure for ceiling type?
body: <p>I am trying to set compound structure for ceiling type and wall type for wall type it working good but when I tried to set for ceiling type then it gives me exception that<br>
   "Autodesk.Revit.Exceptions.ArgumentException: 'Input compound structure has wrong End Cap condition for this element type. Parameter name: src Structure'"</p>
  
  <p>CompoundStructure cStructure = CompoundStructure.CreateSingleLayerCompoundStructure(materialFunctionAssignment, width, materialId1);</p>
  
  <pre><code>                        cStructure.SetLayers(clayer);
  
                          ceilingType.SetCompoundStructure(cStructure);
  </code></pre>
  
  <p>Is there any other way to set compound structure for ceiling type </p>
  
  <p>Thanks .</p>