IFCTransaction Class


IFCTransaction 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.
Top
Properties
Name Description
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
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 )
Top
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 be rolled back either explicitly or implicitly (by the destructor).
See Also