arlaApplication: DividedSurfaceByIntersects
Revit Platform: All
Revit Version: 2011.0
First Released For: 2011.0
Programming Language: C#
Skill Level: Medium
Category: Families
Type: ExternalCommand

Subject: Divide surface with intersects.
Summary: 
 This sample demonstrates 2 main features:
1.	How to add intersects to DividedSurface.
2.	How to remove intersects to DividedSurface.

Classes: 
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB.CurtainSystem

Project Files: 
Command.cs
This file contains the class “Command” which inherits from “IExternalCommand” interface and implements the “Execute” method.

Description: 
Functionalities:
-	Divide the surface with intersect elements ( Level, ReferencePlane, ModelCurve, etc).
-	Remove the intersects that don’t need any more.

Implementations:
-	Add/ remove Intersects via 
void AddIntersectionElement(ElementId ^newIntersectionElemId)
void RemoveIntersectionElement(ElementId ^referenceElemIdToRemove)

Instructions: 
1.	Open the family file “DividedSurface.rfa” in the sample’s folder;
2.	Run the command;
3.	The DividedSurface changes;