RVTDocs.com

IFCProductWrapper.AddElement

Method
Description:
Adds an IfcElement handle to associate with the IfcProduct in this wrapper.
Remarks:
If the IFCLevelInfo is not provided, and relateToLevel to true, the handle will be associated to the building handle.
Syntax
public void AddElement(
	IFCAnyHandle elementHandle,
	IFCLevelInfo pLevelInfo,
	IFCExtrusionCreationData params,
	bool relateToLevel
)
Parameters
Parameter Type Description
elementHandle IFCAnyHandle The IfcElement handle.
pLevelInfo IFCLevelInfo The level info.
params IFCExtrusionCreationData The extrusion creation data associated with the given element. Optional, can be <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTAC9FAC8_1"></span></span>.
relateToLevel Boolean True to relate the element to the level, false otherwise.
Return Value
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null