IFCProductWrapper
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.
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)
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.