IFCTransaction
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
Commit
Commits all changes made to the IFC file during the transaction.
Public Method
Dispose
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
RollBack
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
committed
. Consequently, all changes made in a transaction can berolled back
either explicitly or implicitly (by the destructor).