Welcome to the Revit Platform API
Revit 2011 API User Manual
Code Region 14-7: Dividing a surface ................................................................................. 171
Code Region 14-8: Patterning a surface .............................................................................. 173
Code Region 14-9: Editing a curtain panel family ................................................................. 174
Code Region 15-1: Retrieving all Levels .............................................................................. 178
Code Region 15-2: Creating a new Level ............................................................................. 179
Code Region 15-3: Using the Grid class .............................................................................. 179
Code Region 15-4: NewGrid() ............................................................................................ 180
Code Region 15-5: Creating a grid with a line or an arc ........................................................ 181
Code Region 15-6: Displaying all supported phases .............................................................. 182
Code Region 15-7: Using design options ............................................................................. 183
Code Region 16-1: Distinguishing permanent dimensions from constraints .............................. 184
Code Region 16-2: NewDimension() ................................................................................... 189
Code Region 16-3: Duplicating a dimension with NewDimension() .......................................... 189
Code Region 16-4: NewDetailCurve() and NewModelCurve() ................................................. 190
Code Region 16-5: Creating an IndependentTag .................................................................. 191
Code Region 16-6: NewAnnotationSymbol() ........................................................................ 193
Code Region 16-7: Using addLeader() and removeLeader() ................................................... 193
Code Region 17-1: Creating a new SketchPlane ................................................................... 196
Code Region 17-2: Creating a new model curve ................................................................... 204
Code Region 17-3: Getting a specific Curve from a ModelCurve ............................................. 205
Code Region 18-1: Determining the View class type ............................................................. 211
Code Region 18-2: Determining the View type ..................................................................... 211
Code Region 18-3: Counting elements in the active view....................................................... 213
Code Region 18-4: NewView3D() ....................................................................................... 218
Code Region 18-5: Creating a 3D view ................................................................................ 218
Code Region 18-6: Showing the Section Box ....................................................................... 218
Code Region 18-7: Hiding the Section Box .......................................................................... 219
Code Region 18-8: NewViewPlan() ..................................................................................... 220
Code Region 18-9: Creating a floor plan and ceiling plan ....................................................... 220
Code Region 18-10: NewViewSection() ............................................................................... 221
Code Region 18-11: AddView() .......................................................................................... 223
Code Region 18-12: Creating a sheet view .......................................................................... 223
Code Region 19-1: Downcasting using RTTI......................................................................... 226
Code Region 19-2: Determining material type ..................................................................... 228
Code Region 19-3: Getting a material parameter ................................................................. 229
Code Region 19-4: Setting the fill pattern ........................................................................... 231
Code Region 19-5: Getting a material by name .................................................................... 232
Code Region 19-6: Duplicating a material............................................................................ 232