Application: PointCurveCreation
Revit Platform: All
Revit Version: 2011.0
First Released For: 2011.0
Programming Language: C#
Skill Level: Beginning
Category: Geometry
Type: ExternalCommand

Subject: Reference point and Curve By Point creation 

Summary: 
Use equations and external data files to create massing geometry

Classes: 
	Autodesk.Revit.DB.ReferencePoint
	Autodesk.Revit.DB.PointOnEdge
	Autodesk.Revit.DB.CurveByPoints
	Autodesk.Revit.DB.Form
	System.IO.StreamReader

Project Files:

Command.cs
	This file contains the all classes and implementation of external commands for this sample
Sphere.csv
	Comma-delimited text file with XYZ data that defined a set of points on a sphere

Description: 
This sample contains the following commands:
1.	PointsParabola - create reference points following parabolic arcs (such as z = x^2)
2.	PointsOnCurve - create reference points constrained to a model curve. The points are based on PointOnEdge elements so that the points maintain their relative position if the curve is modified. 
3.	PointsFromTextFile - create reference points based on comma-delimited XYZ data in a text file
4.	SineCurve - create curve based on points placed using the equation y=cos(x)
5.	CatenaryCurve - create curve based on points placed using the equation y=ScalingFactor * CosH(x/ScalingFactor)
6.	CyclicSurface - create loft form based on curves and points created using the equation z = cos(x) + cos(y)

Instructions: 
1.	Create a new conceptual mass family
2.	Run the external commands to create the point and curve geometry