Skip to content

IFCTransaction

Public Class

IFC transactions are context-like objects that guard any changes made to an IFC file.

Inheritance Hierarchy

System.Object
Autodesk.Revit.DB.IFC.IFCTransaction

Namespace: Autodesk.Revit.DB.IFC

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

Syntax

public class IFCTransaction : IDisposable

The IFCTransaction type exposes the following members.

Constructors

Name

Description


Public Method
IFCTransaction

Instantiates a transaction object.


Properties

Name

Description


Public Property
IsValidObject

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


Methods

Name

Description


Public Method

Commits all changes made to the IFC file during the transaction.


Public Method

Releases all resources used by the IFCTransaction


Public Method

Equals

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


Public Method

GetHashCode

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


Public Method

GetType

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


Public Method

Rolls back all changes made to the IFC file during the transaction.


Public Method

ToString

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


Remarks

Any change to an IFC file can only be made while there is an active transaction open for that file. Changes do not become a part of the file until the active transaction is

. Consequently, all changes made in a transaction can be either explicitly or implicitly (by the destructor).