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

Subject: Create Form
Summary: 
This sample shows how to create form through Revit API

Classes: 
Autodesk.Revit.UI.IExternalCommand
Autodesk.Revit.DB.Document
Autodesk.Revit.DB.ModelCurve
Autodesk.Revit.DB.Form
Autodesk.Revit.Creation.FamilyItemFactory

Project Files: 
Command.cs
This file contains the class Command that inherits from IExternalCommand. The class implements the Execute method and be used to create forms in Revit.

Description: 
This sample mostly uses the FamilyItemFactory class for implementing the functionality: creating ExtrusionForm/ CapForm/ RevolveForm/ SweptBlendForm/ Loft Form elements.
-	To create a profile, use MakeLine() or MakeArc() to create a ModelCurve and append it to a ReferenceArray.
-	To create a path, use MakeLine() to create a ModelCurve.
-	Use Autodesk.Revit.Creation.FamilyItemFactory.NewXXXForm() to create forms.

Instructions: 
1.	In order to create a form, user should manually create a family document by a template document  (For Imperial is: \Imperial\Templates\Conceptual Mass\ Mass.rft ; 
 For Metric is: \Metric\Templates\Conceptual Mass\Metric Mass.rft).