Skip to content

ExporterIFC

Public Class

The main class provided by Revit to allow implementation of IFC export.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.IFC.ExporterIFC

Namespace: Autodesk.Revit.DB.IFC

Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public class ExporterIFC : IDisposable

The ExporterIFC type exposes the following members.

Properties

Name

Description


Public Property
ExportAs2x2

Obsolete.
Identifies if the file version being exported is IFC2x2.


Public Property
ExportAs2x3

Obsolete.
Identifies if the file version being exported is IFC2x3.


Public Property

Identifies if the export should include IFC standard quantities currently supported by Revit.


Public Property

The name of the IFC file being exported.


Public Property

Identifies the file version being exported.


Public Property
IsValidObject

Specifies whether the .NET object represents a valid Revit entity.


Public Property
SpaceBoundaryLevel

Identifies the level of space boundaries being exported.


Public Property

Identifies if division of multi-level walls and columns by levels should take place during this export.


Methods

Name

Description


Public Method

Adds building storey to the exporter’s internal cache.


Public Method

Clear face with element handle map.


Public Method

Releases all resources used by the ExporterIFC


Public Method

Equals

Determines whether the specified object is equal to the current object.
(Inherited from Object)


Public Method

Looks up the handle associated to the element and level id from the ExporterIFC’s internal cache.


Public Method
Get2DContextHandle

Obsolete.
Obtains the IfcRepresentationContext handle to be used for 2D entities (Annotations).


Public Method
Get3DContextHandle

Obtains the IfcRepresentationContext or IfcRepresentationSubContext handle to be used for 3D entities (Model entities).


Public Method

Get the handle to the opening associated with a hosted (door/window) element from the internal cache.


Public Method
GetFamilyName

Gets the name of the element assigned to the current export state.


Public Method

Gets the handle to the IFC file being created during this export operation.


Public Method

GetHashCode

Serves as the default hash function.
(Inherited from Object)


Public Method
GetHostObjects

Returns a collection containing the host object handles in the document.


Public Method

Get the layer name associated with an element from the default layer mapping table.


Public Method
GetLevelInfo

Returns an object representing the information about a level in the document.


Public Method
GetLevelInfos

Returns a collection containing the information about all levels in the document.


Public Method
GetMaterialIdForCurrentExportState

This gets the material id that is associated with the element in the current export state.


Public Method

Gets the collection of named options set by the exporter client.


Public Method

Get (or create) the IfcFillPatternStyle associated with an ElementId.


Public Method

Get the list of the internally IfcPresentationLayerAssignments and their respective shape representations.


Public Method

Gets all elements not associated to stories.


Public Method

Gets all products not associated to stories.


Public Method

GetType

Gets the Type of the current instance.
(Inherited from Object)


Public Method

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.


Public Method

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.


Public Method
PushExportState

Sets the internal state of the exporter to process the geometry and properties of the input element.


Public Method

Sets the internal transform of the exporter to process the geometry and properties of the input element.


Public Method

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.


Public Method

Register face with element handle to make sure the openings created are related to the right element.


Public Method
RegisterSpaceBoundingElementHandle

Stores a handle representing a space bounding element to the ExporterIFC’s internal cache.


Public Method

Removes an IFCLevelInfo corresponding to a level from the exporter’s internal cache.


Public Method

Obsolete.
Sets the IfcRepresentationContext handle to be used for 2D entities (Annotations).


Public Method

Sets the IfcRepresentationContext or IfcRepresentationSubContext handle to be used for 3D entities (Model entities).


Public Method
SetCurrentExportedDocument

Sets the exporter to process a particular document during export.


Public Method

Sets the handle to the IFC file being created during this export operation.


Public Method
SetMaterialIdForCurrentExportState

This sets the material id that is to be associated with the element in the current export state.


Public Method

Sets the handle to the IfcOwnerHistory for the file.


Public Method

ToString

Returns a string that represents the current object.
(Inherited from Object)


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.