CreateStyle Method (ExporterIFC, IFCAnyHandle)


Creates and populates an IfcStyledItem for an IfcRepresentationItem with a IfcSurfaceStyle, IfcCurveStyle, and/or an IfcFillStyle, and assigns them to the file.

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

Syntax

C#
public IFCAnyHandle CreateStyle(
	ExporterIFC exporterIFC,
	IFCAnyHandle repItem
)
Visual Basic
Public Function CreateStyle ( _
	exporterIFC As ExporterIFC, _
	repItem As IFCAnyHandle _
) As IFCAnyHandle
Visual C++
public:
IFCAnyHandle^ CreateStyle(
	ExporterIFC^ exporterIFC, 
	IFCAnyHandle^ repItem
)

Parameters

exporterIFC
Type: Autodesk.Revit.DB.IFCExporterIFC
The exporter.
repItem
Type: Autodesk.Revit.DB.IFCIFCAnyHandle
The representation item.

Return Value

The handle.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException A transaction is required for this operation.

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 →