IFCProductWrapper Class


IFCProduct Wrapper Class

This class is used to ensure that elements and objects are associated with the current IfcProduct.
Inheritance Hierarchy
System Object
Autodesk.Revit.DB.IFC IFCProductWrapper

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class IFCProductWrapper : IDisposable

The IFCProductWrapper type exposes the following members.

Properties
Name Description
Public property Count The number of objects associated with the IfcProduct in this wrapper.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
Methods
Name Description
Public method AddAnnotation Adds an annotation handle to associate with the IfcProduct in this wrapper.
Public method AddBuilding Adds an IfcBuilding handle to associate with the IfcProduct in this wrapper.
Public method AddElement Adds an IfcElement handle to associate with the IfcProduct in this wrapper.
Public method AddFinishMaterial Adds a material handle to associate with the IfcProduct in this wrapper.
Public method AddSite Adds a site (IfcObject) handle to associate with the IfcProduct in this wrapper.
Public method AddSpace Adds an IfcSpace handle to associate with the IfcProduct in this wrapper.
Public method ClearFinishMaterials Clear finish materials in this wrapper.
Public method Static member Create(IFCProductWrapper) Establishes a new product manager for elements and objects derived from a parent product manager.
Public method Static member Create(ExporterIFC, Boolean) Establishes a new baseline product manager for elements and objects.
Public method Static member Create(IFCProductWrapper, Boolean) Establishes a new product manager for elements and objects derived from a parent product manager, allowing override of allowRelateToLevel
Public method Dispose Releases all resources used by the IFCProductWrapper
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method FindExtrusionCreationParameters Obtains the extrusion creation data associated with the given element.
Public method GetAllObjects Gets all objects associated with the IfcProduct in this wrapper.
Public method GetAnElement Gets the first element handle added to this wrapper.
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 ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
Each instance makes sure that any elements and products created during its lifetime are properly associated to their parent level (or other containing object). To ensure that the lifetime of the object is correctly managed, you should declare an instance of this class as a part of a 'using' statement in C# or similar construct in other lanuguages.
See Also