{\rtf1\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\b\f0\fs20 Application:\b0 StructSample\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 8.0\line\b Last Modified:\b0 3/5/2008\cf1\f1\par \cf0\b\f0 Modified By:\b0 JJ Autodesk\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Column creation and placing.\line\b Summary:\b0 \line This sample demonstrates how to place a set of columns in the selected wall\f1 .\par \f0\par \b Classes:\b0 \f1\par \pard\fi360\f0 Autodesk.Revit.IExternalCommand\f1\par \f0 Autodesk.Revit.ElementSet\f1\par \f0 Autodesk.Revit.Elements.Wall\par Autodesk.Revit.Paramete\par Autodesk.Revit.Parameters.BuiltInParameter\f1\par \f0 Autodesk.Revit.Elements.FamilyInstance\par Autodesk.Revit.Elements.Family\par Autodesk.Revit.Symbols.FamilySymbol\f1\par \f0 Autodesk.Revit.Geometry.XYZ\f1\par \f0 Autodesk.Revit.Geometry.UV\par Autodesk.Revit.Geometry.Line\par \pard\par \b Project Files:\b0 \par Command.cs\f1\par \pard\li360\tx720\f0 This file contains the class Command which inherits from IExternalCommand interface and implements the Execute method\f1 .\f0 The class implements all functions for placing column to wall, such as finding one specialized column symbol from Family and placing column\f1 .\par \pard\par \b\f0 Description:\b0 \par This sample uses FamilyInstance, Family, FamilySymbol methods mostly to find a specialized column; then place this column to some selected walls with specialized spacing. (Note: the column type and interval between two columns are hard codes).\f1\par \pard\fi-360\li360\tx360\f0 -\tab To retrieve all the symbols of one Family, use Autodesk.Revit.Elements.Family.Symbols property and use Autodesk.Revit.Symbols.FamilySymbol.Name to get specialized column type\f1 .\par \pard\fi-360\li360\f0 -\tab To create new column, use Autodesk.Revit.Document.Create.NewFamilyInstance method; Use Autodesk.Revit.Elements.FamilyInstance.Location to change or rotate column\f1 .\par \pard\fi-360\li360\tx360\f0 -\tab To get/set the Column\rquote s base & top levels, use Autodesk.Revit.Parameters.BuiltInParameter.FAMILY_BASE_LEVEL_PARAM and FAMILY_TOP_LEVEL_PARAM parameters in FamilyInstance.get_Parameter () method\f1 .\f0 \f1\par \pard\fi-360\li360\f0 -\tab To get/set the relevant information (vector, length) of wall and column, use methods and properties of classes Autodesk.Revit.Geometry.XYZ, UV, Line\f1 .\par \pard\par \b\f0 Instructions:\cf1\b0 \f1\par \pard\fi-360\li360\tx360\cf0\f0 1.\tab Start Revit, load \ldblquote M_Wood Timber Column\rdblquote column family from Revit library file (M_Wood Timber Column.rfa)\f1 ,\f0 afterwards, there should have \ldblquote 191 x 292mm\rdblquote type column in project\f1 .\f0 \f1\par \pard\fi-360\li360\f0 2.\tab One .rvt sample named StructSample.rvt is available under sample project folder, this file contain required family symbol and four walls, you can select one or more walls and then run this sample, columns will placed to walls after running. \f1\par \pard\fi-360\li360\tx360\f0 3.\tab Draw some walls and constrain their top and bottom to the levels in the properties dialog, then select them\f1 .\par \f0 4.\tab Run the command, it will place columns along each selected wall with the interval of 5 feet\f1 .\par \pard\par \b\f0 Note:\par \b0 The column type and interval between two columns are hard codes.\f1\par \par }