Create Method (ExporterIFC, Boolean)


Establishes a new baseline product manager for elements and objects.

Namespace: Autodesk.Revit.DB.IFC
Assembly: RevitAPIIFC (in RevitAPIIFC.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2012

Syntax

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

Parameters

ExporterIFC
Type: Autodesk.Revit.DB.IFC ExporterIFC
The exporter.
allowRelateToLevel
Type: System Boolean
True to allow associated elements and objects to relate to a level, false to never allow such a relationship.

Return Value

The new baseline product manager.

Remarks

Elements and objects associated to this product manager will be associated to a top-level IfcProduct based on the world coordinate system of the output file.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException 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 →