2022 Class
Changes 5
C

ExporterIFC

Description:
The main class provided by Revit to allow implementation of IFC export.
Remarks:
An instance of this class is provided to clients which implement IExporterIFC in order to provide an implementation for IFC export. It contains information on the options selected by the user for the export operation, as well as members used to access specific types of data needed to implement the export properly.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.IFC.ExporterIFC
public class ExporterIFC : IDisposable
Name Return Type Description
M AddBuildingStorey(ElementId, IFCLevelInfo) None Adds building storey to the exporter's internal cache.
M ClearFaceWithElementHandleMap() None Clear face with element handle map.
M Dispose() None Releases all resources used by the
M FindSpaceBoundingElementHandle(ElementId, ElementId) IFCAnyHandle Looks up the handle associated to the element and level id from the ExporterIFC's internal cache.
M Get2DContextHandle() The IfcRepresentationContext. Obtains the IfcRepresentationContext handle to be used for 2D entities (Annotations).
M Get3DContextHandle(String) IFCAnyHandle Obtains the IfcRepresentationContext or IfcRepresentationSubContext handle to be used for 3D entities (Model entities).
M GetDoorWindowOpeningHandle(ElementId) The opening handle. Get the handle to the opening associated with a hosted (door/window) element from the internal cache.
M GetFamilyName() The family name. Gets the name of the element assigned to the current export state.
M GetFile() IFCFile Gets the handle to the IFC file being created during this export operation.
M GetHostObjects() IList Returns a collection containing the host object handles in the document.
M GetLayerNameForPresentationLayer(Element, ElementId) The layer name. Get the layer name associated with an element from the default layer mapping table.
M GetLevelInfo(ElementId) The level information. Returns an object representing the information about a level in the document.
M GetLevelInfos() IDictionary Returns a collection containing the information about all levels in the document.
M GetMaterialIdForCurrentExportState() The material id. This gets the material id that is associated with the element in the current export state.
M GetOptions() IDictionary Gets the collection of named options set by the exporter client.
M GetOrCreateFillPattern(ElementId, Color, Double) The IfcSurfaceStyle. Get (or create) the IfcFillPatternStyle associated with an ElementId.
M GetPresentationLayerAssignments() The map. Get the list of the internally IfcPresentationLayerAssignments and their respective shape representations.
M GetRelatedElements() ICollection<IFCAnyHandle> Gets all elements not associated to stories.
M GetRelatedProducts() ICollection<IFCAnyHandle> Gets all products not associated to stories.
M PopExportState() None Resets the internal state of the exporter to process the previously active input element (if any), or the default state if the stack is empty.
M PopTransform() None Resets the internal transform of the exporter to process the previously active input element (if any), or the default transform if the stack is empty.
M PushExportState(Element, GeometryElement) None Sets the internal state of the exporter to process the geometry and properties of the input element.
M PushTransform(Transform) None Sets the internal transform of the exporter to process the geometry and properties of the input element.
M RegisterDoorWindowForUncreatedOpening(ElementId, IFCAnyHandle) None Registers a door or window in the ExporterIFC's internal cache. The ids registered correspond to openings in walls which have not been processed and created yet.
M RegisterFaceWithElementHandle(Face, IFCAnyHandle) None Register face with element handle to make sure the openings created are related to the right element.
M RegisterShapeForPresentationLayer(Element, ElementId, IFCAnyHandle) None Sets an IfcShapeRepresentation to be used for the IfcPresentationLayerAssignment associated with the given Revit category and element.
M RegisterSpaceBoundingElementHandle(IFCAnyHandle, ElementId, ElementId) None Stores a handle representing a space bounding element to the ExporterIFC's internal cache.
M RemoveBuildingStorey(ElementId) None Removes an IFCLevelInfo corresponding to a level from the exporter's internal cache.
M Set2DContextHandle(IFCAnyHandle) None Sets the IfcRepresentationContext handle to be used for 2D entities (Annotations).
M Set3DContextHandle(IFCAnyHandle, String) None Sets the IfcRepresentationContext or IfcRepresentationSubContext handle to be used for 3D entities (Model entities).
M SetFile(IFCFile) None Sets the handle to the IFC file being created during this export operation.
M SetMaterialIdForCurrentExportState(ElementId) None This sets the material id that is to be associated with the element in the current export state.
M SetOwnerHistoryHandle(IFCAnyHandle) None Sets the handle to the IfcOwnerHistory for the file.
Name Return Type Description
P ExportAs2x2 bool Identifies if the file version being exported is 2x2.
P ExportAs2x3 bool Identifies if the file version being exported is 2x3.
P ExportBaseQuantities bool Identifies if the export should include IFC standard quantities currently supported by Revit.
P FileName string The name of the IFC file being exported.
P FileVersion IFCVersion Identifies the file version being exported.
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.
P SpaceBoundaryLevel int Identifies the level of space boundaries being exported.
P WallAndColumnSplitting bool Identifies if division of multi-level walls and columns by levels should take place during this export.