Create Method (IFCProductWrapper, Boolean)


Establishes a new product manager for elements and objects derived from a parent product manager, allowing override of allowRelateToLevel

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2013

Syntax

C#
public static IFCProductWrapper Create(
	IFCProductWrapper pProductWrapper,
	bool allowRelateToLevel
)
Visual Basic
Public Shared Function Create ( _
	pProductWrapper As IFCProductWrapper, _
	allowRelateToLevel As Boolean _
) As IFCProductWrapper
Visual C++
public:
static IFCProductWrapper^ Create(
	IFCProductWrapper^ pProductWrapper, 
	bool allowRelateToLevel
)

Parameters

pProductWrapper
Type: Autodesk.Revit.DB.IFCIFCProductWrapper
The parent product manager.
allowRelateToLevel
Type: SystemBoolean
True to allow associated elements and objects to relate to a level, false to never allow such a relationship.

Return Value

The new product manager.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →