{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}} {\colortbl ;\red0\green0\blue255;} \viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 GenericModelCreation\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 2010.0\line\b Last Modified:\b0 09/18/2008\line\b Modified By:\b0 JL Autodesk\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Medium\line\b Category:\b0 Families\line\b Type:\b0 ExternalCommand\par \b\f1\par \f0 Subject: Create Generic Model\f1\par \f0 Summary: \par \b0 This sample shows how to create Generic Model through Revit API\b\f1\par \f0\par Classes: \f1\par \pard\ltrpar\nowidctlpar\fi360\b0\f0 Autodesk.Revit.IExternalCommand\par Autodesk.Revit.Document\par Autodesk.Revit.Elements\par Autodesk.Revit.Geometry\par Autodesk.Revit.Creation.FamilyItemFactory\f1\par \pard\ltrpar\nowidctlpar\b\par \f0 Project Files:\b0 \par Command.cs\f1\par \pard\ltrpar\nowidctlpar\li360\f0 This file contains the class Command that inherits from IExternalCommand. The class implements the Execute method and be used to create family in Revit\f1 .\par \pard\ltrpar\nowidctlpar\par \b\f0 Description:\b0 \par This sample mostly uses the FamilyItemFactory class for implementing the functionality: creating Extrusion/ Blend/ Revolution/ Sweep/ SweptBlend elements\f1 .\par \pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 -\tab To get a SketchPlane, use CreateSketchPlane()\f1 .\par \pard\ltrpar\nowidctlpar\fi-360\li360\f0 -\tab To get a Curve, use Autodesk.Revit.Creation.Application.Create.NewLineBound () and Append it to a CurveArray to get the array.\f1\par \f0 -\tab Autodesk.Revit.Creation.FamilyItemFactory.NewXXXX() create families.\par \pard\ltrpar\nowidctlpar\f1\par \b\f0 Instructions:\cf1\b0 \f1\par \pard\ltrpar\nowidctlpar\fi-360\li360\tx360\cf0\f0 1.\tab In order to create a family, user should manually create a family document by a template document (Generic Model wall based.rft is attached).\f1\par \pard\ltrpar\nowidctlpar\fi-360\li360\f0 2.\tab Click the extern command, five Generic Model elements should be created as Extrusion/ Blend/ Revolution/ Sweep/ SweptBlend\f1 .\par \pard\ltrpar\nowidctlpar\par \par }