RVTDocs.com
Namespace: Autodesk.Revit.DB

DirectShapeLibrary

Class
Description:
DirectShapeLibrary is used to store pre-created geometry for further referencing via the definition/instance mechanism. It is not persistent: the scope of a library object is usually a single data creation session.
Remarks:
There are two ways to add a definition to the library. The first is to add the definition as an array of geometry objects. A DirectShape created as an instance of that definition will hold a copy of predefined geometry, transformed as requested. If the definition was added as a DirectShapeType, a DirectShape object created as an instance of that definition will reference the type. Its geometry would be an instance of type geometry.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.DirectShapeLibrary
Syntax
public class DirectShapeLibrary : IDisposable