2022 Class
Changes 5
C

ItemFactoryBase

Description:
The ItemFactoryBase object is used to create new instances of elements within the Autodesk Revit document.
Remarks:
The ItemFactoryBase object is a utility object that is used to create new instances of elements within the Autodesk Revit document. This class holds common methods used in both project documents and family documents.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.Creation.ItemFactoryBase
      Autodesk.Revit.Creation.Document
      Autodesk.Revit.Creation.FamilyItemFactory
public class ItemFactoryBase : APIObject
Name Return Type Description Inherited From
M NewAlignment(View, Reference, Reference) Dimension Add a new locked alignment into the Autodesk Revit document.
M NewDetailCurveArray(View, CurveArray) nullNothingnullptr Creates an array of new detail curve elements.
M NewDetailCurve(View, Curve) nullNothingnullptr Creates a new detail curve element.
M NewDimension(View, Line, ReferenceArray) nullNothingnullptr Creates a new linear dimension object using the default dimension style.
M NewDimension(View, Line, ReferenceArray, DimensionType) nullNothingnullptr Creates a new linear dimension object using the specified dimension style.
M NewFamilyInstance(Face, Line, FamilySymbol) nullNothingnullptr 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.
M NewFamilyInstance(Face, XYZ, XYZ, FamilySymbol) nullNothingnullptr Inserts a new instance of a family onto a face of an existing element, using a location, reference direction, and a type/symbol.
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.
M NewFamilyInstance(Reference, Line, FamilySymbol) nullNothingnullptr 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.
M NewFamilyInstance(Reference, XYZ, XYZ, FamilySymbol) nullNothingnullptr 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.
M NewFamilyInstance(XYZ, FamilySymbol, Element, StructuralType) nullNothingnullptr Inserts a new instance of a family into the document, using a location, type/symbol, and the host element.
M NewFamilyInstance(XYZ, FamilySymbol, StructuralType) FamilyInstance Inserts a new instance of a family into the document, using a location and a type/symbol.
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.
M NewFamilyInstance(XYZ, FamilySymbol, XYZ, Element, StructuralType) nullNothingnullptr Inserts a new instance of a family into the document, using a location, type/symbol, the host element and a reference direction.
M NewFamilyInstances2(List<FamilyInstanceCreationData>) ICollection<ElementId> Creates Family instances within the document.
M NewGroup(ICollection<ElementId>) Group Creates a new type of group.
M NewModelCurveArray(CurveArray, SketchPlane) nullNothingnullptr Creates an array of new model line elements.
M NewModelCurve(Curve, SketchPlane) nullNothingnullptr Creates a new model line element.
M NewReferencePlane2(XYZ, XYZ, XYZ, View) ReferencePlane Creates a new instance of ReferencePlane.
M NewReferencePlane(XYZ, XYZ, XYZ, View) ReferencePlane Creates a new instance of ReferencePlane.
M PlaceGroup(XYZ, GroupType) nullNothingnullptr Place an instance of a Model Group into the Autodesk Revit document, using a location and a group type.
M Dispose() None Causes the object to release immediately any resources it may be utilizing. APIObject
Name Return Type Description Inherited From
P IsReadOnly bool Identifies if the object is read-only or modifiable. APIObject