http://images.businessweek.com/ss/05/06/sharing/image/sharing.jpgPPT_LOGO_4b
‹#›
Autodesk Confidential Information
Developer Days Online 
The Wine – Conceptual Design API
DividedSurfaceData class
•GetDividedSurfaceForReference
Find the DividedSurface element associated with a surface of this element
•GetReferencesWithDividedSurfaces
§ Find the set of references that have associated DividedSurface elements
•
Find all divided surfaces
ReferenceArray dsRefs = new ReferenceArray();
foreach (Autodesk.Revit.Element e in list)
            {
  Form form = e as Form;
  DividedSurfaceData dsData = form.GetDividedSurfaceData();
                if (dsData != null)
                {
                    foreach (Reference r in dsData.GetReferencesWithDividedSurfaces())
                    {
                        dsRefs.Append(r);
                    }
                }
            }
To talk more on divided surface – This slide talks about some important methods used in previous sample to find all divided surfaces in the panel. On each form we can call the getDividedSurfaceData method that gives us the DividedSurfaceData class and we can work on that using the GetReferencesWithDividedSurfaces. This gives us for each form its divided surface references and they can be stored in reference arrays and we iterate through to get access to each divided surface and perform some operation on them.