C

Document

Description:
The Document Creation object is used to create new instances of elements within the Autodesk Revit project.
Remarks:
The Document Creation object is a utility object that is used to create new instances of elements within the Autodesk Revit project. This object, available from the Document.Create property should be used to create elements instead of using New. This object ensures that the elements created are added to the document correctly.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.Creation.ItemFactoryBase
      Autodesk.Revit.Creation.Document
public class Document : ItemFactoryBase
Name Return Type Description Inherited From
M Dispose() None Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) APIObject
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M NewAlignment(View, Reference, Reference) Dimension Add a new locked alignment into the Autodesk Revit document. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewArea(ViewPlan, UV) Area Creates a new area
M NewAreaBoundaryConditions(Element, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double) BoundaryConditions Creates a new Area BoundaryConditions element on a host element.
M NewAreaBoundaryConditions(Reference, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double) BoundaryConditions Creates a new Area BoundaryConditions element on a reference.
M NewAreaBoundaryLine(SketchPlane, Curve, ViewPlan) ModelCurve Creates a new boundary line as an Area border.
M NewAreas(List<AreaCreationData>) ElementSet
M NewAreaTag(ViewPlan, Area, UV) AreaTag Creates a new area tag.
M NewCrossFitting(Connector, Connector, Connector, Connector) FamilyInstance Add a new family instance of a cross fitting into the Autodesk Revit document, using four connectors.
M NewCurtainSystem(FaceArray, CurtainSystemType) CurtainSystem Creates a new CurtainSystem element from a set of faces.
M NewCurtainSystem2(ReferenceArray, CurtainSystemType) ICollection<ElementId> Creates a new CurtainSystem element from a set of face references.
M NewDetailCurve(View, Curve) DetailCurve Creates a new detail curve element. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewDetailCurveArray(View, CurveArray) DetailCurveArray Creates an array of new detail curve elements. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewDimension(View, Line, ReferenceArray) Dimension Creates a new linear dimension object using the default dimension style. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewDimension(View, Line, ReferenceArray, DimensionType) Dimension Creates a new linear dimension object using the specified dimension style. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewElbowFitting(Connector, Connector) FamilyInstance Add a new family instance of an elbow fitting into the Autodesk Revit document, using two connectors.
M NewExtrusionRoof(CurveArray, ReferencePlane, Level, RoofType, Double, Double) ExtrusionRoof Creates a new Extrusion Roof.
M NewFamilyInstance(Face, Line, FamilySymbol) FamilyInstance Inserts a new instance of a family onto a face of an existing element, using a line on that face for its position, and a type/symbol. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(Line, FamilySymbol, View) FamilyInstance Add a line based detail family instance into the Autodesk Revit document, using an line and a view where the instance should be placed. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(Reference, Line, FamilySymbol) FamilyInstance Inserts a new instance of a family onto a face referenced by the input Reference instance, using a line on that face for its position, and a type/symbol. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(XYZ, FamilySymbol, StructuralType) FamilyInstance Inserts a new instance of a family into the document, using a location and a type/symbol. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(XYZ, FamilySymbol, View) FamilyInstance Add a new family instance into the Autodesk Revit document, using an origin and a view where the instance should be placed. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(Curve, FamilySymbol, Level, StructuralType) FamilyInstance Inserts a new instance of a family into the document, using a curve, type/symbol and reference level.
M NewFamilyInstance(Face, XYZ, XYZ, FamilySymbol) FamilyInstance Inserts a new instance of a family onto a face of an existing element, using a location, reference direction, and a type/symbol. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(Reference, XYZ, XYZ, FamilySymbol) FamilyInstance Inserts a new instance of a family onto a face referenced by the input Reference instance, using a location, reference direction, and a type/symbol. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(XYZ, FamilySymbol, Element, StructuralType) FamilyInstance Inserts a new instance of a family into the document, using a location, type/symbol, and the host element. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(XYZ, FamilySymbol, Level, StructuralType) FamilyInstance Inserts a new instance of a family into the document, using a location, type/symbol, and the level. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstance(XYZ, FamilySymbol, Element, Level, StructuralType) FamilyInstance Inserts a new instance of a family into the document, using a location, type/symbol, the host element and a base level.
M NewFamilyInstance(XYZ, FamilySymbol, XYZ, Element, StructuralType) FamilyInstance Inserts a new instance of a family into the document, using a location, type/symbol, the host element and a reference direction. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFamilyInstances2(List<FamilyInstanceCreationData>) ICollection<ElementId> (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewFascia(FasciaType, Reference) Fascia Creates a fascia along a reference.
M NewFascia(FasciaType, ReferenceArray) Fascia Creates a fascia along a reference array.
M NewFlexDuct(IList<XYZ>, FlexDuctType) FlexDuct
M NewFlexDuct(Connector, Connector, FlexDuctType) FlexDuct Adds a new flexible duct into the document, using two connector, and duct type.
M NewFlexDuct(Connector, IList<XYZ>, FlexDuctType) FlexDuct
M NewFlexPipe(IList<XYZ>, FlexPipeType) FlexPipe
M NewFlexPipe(Connector, Connector, FlexPipeType) FlexPipe Adds a new flexible pipe into the document, using two connector, and flexible pipe type.
M NewFlexPipe(Connector, IList<XYZ>, FlexPipeType) FlexPipe
M NewFootPrintRoof(CurveArray, Level, RoofType, ModelCurveArray%) FootPrintRoof Creates a new FootPrintRoof element.
M NewGroup(ICollection<ElementId>) Group (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewGutter(GutterType, Reference) Gutter Creates a gutter along a reference.
M NewGutter(GutterType, ReferenceArray) Gutter Creates a gutter along a reference array.
M NewLineBoundaryConditions(Element, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double) BoundaryConditions Creates a new Line BoundaryConditions element on a host element.
M NewLineBoundaryConditions(Reference, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double) BoundaryConditions Creates a new Line BoundaryConditions element on a reference.
M NewMechanicalSystem(Connector, ConnectorSet, DuctSystemType) MechanicalSystem Creates a new MEP mechanical system element.
M NewModelCurve(Curve, SketchPlane) ModelCurve Creates a new model line element. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewModelCurveArray(CurveArray, SketchPlane) ModelCurveArray Creates an array of new model line elements. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewOpening(Element, CurveArray, eRefFace) Opening Creates a new opening in a beam, brace and column.
M NewOpening(Element, CurveArray, Boolean) Opening Creates a new opening in a roof, floor and ceiling.
M NewOpening(Level, Level, CurveArray) Opening Creates a new shaft opening between a set of levels.
M NewOpening(Wall, XYZ, XYZ) Opening Creates a rectangular opening on a wall.
M NewPipingSystem(Connector, ConnectorSet, PipeSystemType) PipingSystem Creates a new MEP piping system element.
M NewPointBoundaryConditions(Reference, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double, TranslationRotationValue, Double) BoundaryConditions Creates a new Point BoundaryConditions Element.
M NewReferencePlane(XYZ, XYZ, XYZ, View) ReferencePlane Creates a new instance of ReferencePlane. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewReferencePlane2(XYZ, XYZ, XYZ, View) ReferencePlane Creates a new instance of ReferencePlane. (Inherited from ItemFactoryBase ) ItemFactoryBase
M NewRoom(Phase) Room Creates a new unplaced room and with an assigned phase.
M NewRoom(Level, UV) Room Creates a new room on a level at a specified point.
M NewRoom(Room, PlanCircuit) Room Creates a new room within the confines of a plan circuit, or places an unplaced room within the confines of the plan circuit.
M NewRoomBoundaryLines(SketchPlane, CurveArray, View) ModelCurveArray Creates a new boundary line as an Room border.
M NewRooms2(Level) ICollection<ElementId> Creates new rooms in each plan circuit found in the given level in the last phase.
M NewRooms2(Level, Phase) ICollection<ElementId> Creates new rooms in each plan circuit found in the given level in the given phase.
M NewRooms2(Phase, Int32) ICollection<ElementId> Creates new unplaced rooms in the given phase.
M NewRoomTag(LinkElementId, UV, ElementId) RoomTag Creates a new RoomTag referencing a room in the host model or in a Revit link.
M NewSlabEdge(SlabEdgeType, Reference) SlabEdge Creates a slab edge along a reference.
M NewSlabEdge(SlabEdgeType, ReferenceArray) SlabEdge Creates a slab edge along a reference array.
M NewSpace(Phase) Space Creates a new unplaced space on a given phase.
M NewSpace(Level, UV) Space Creates a new space element on the given level at the given location.
M NewSpace(Level, Phase, UV) Space Creates a new space element on the given level, at the given location, and assigned to the given phase.
M NewSpaceBoundaryLines(SketchPlane, CurveArray, View) ModelCurveArray Creates a new boundary line as an Space border.
M NewSpaces2(Phase, Int32) ICollection<ElementId> Creates a set of new unplaced spaces on a given phase.
M NewSpaces2(Level, Phase, View) ICollection<ElementId> Creates new spaces on the available plan circuits of a the given level.
M NewSpaceTag(Space, UV, View) SpaceTag Creates a new SpaceTag.
M NewSpotCoordinate(View, Reference, XYZ, XYZ, XYZ, XYZ, Boolean) SpotDimension Generate a new spot coordinate object within the project.
M NewSpotElevation(View, Reference, XYZ, XYZ, XYZ, XYZ, Boolean) SpotDimension Generate a new spot elevation object within the project.
M NewTakeoffFitting(Connector, MEPCurve) FamilyInstance Add a new family instance of an takeoff fitting into the Autodesk Revit document, using one connector and one MEP curve.
M NewTeeFitting(Connector, Connector, Connector) FamilyInstance Add a new family instance of a tee fitting into the Autodesk Revit document, using three connectors.
M NewTransitionFitting(Connector, Connector) FamilyInstance Add a new family instance of an transition fitting into the Autodesk Revit document, using two connectors.
M NewUnionFitting(Connector, Connector) FamilyInstance Add a new family instance of an union fitting into the Autodesk Revit document, using two connectors.
M NewZone(Level, Phase) Zone Creates a new Zone element.
M PlaceGroup(XYZ, GroupType) Group Place an instance of a Model Group into the Autodesk Revit document, using a location and a group type. (Inherited from ItemFactoryBase ) ItemFactoryBase
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsReadOnly bool Identifies if the object is read-only or modifiable. (Inherited from APIObject ) APIObject