Table of Contents

Class IfcCsvBridge

Namespace
IfcIO.Model
Assembly
IfcIO.dll

Provides high-speed CSV tabular export and roundtrip property import for IFC models, conforming to the IfcOpenShell ifccsv specification.

public static class IfcCsvBridge

Inheritance

Inherited Members

Methods

Export(IfcModel, TextWriter, IEnumerable<string>, string)

Exports elements and selected property set parameters to a CSV System.IO.TextWriter.

public static void Export(IfcModel model, TextWriter writer, IEnumerable<string> propertyNames, string delimiter = ";")

Parameters

model IfcModel
writer TextWriter
propertyNames IEnumerable<string>
delimiter string

ExportFile(IfcModel, string, IEnumerable<string>, string)

Exports elements and selected property set parameters to a CSV spreadsheet file.

public static void ExportFile(IfcModel model, string path, IEnumerable<string> propertyNames, string delimiter = ";")

Parameters

model IfcModel
path string
propertyNames IEnumerable<string>
delimiter string

Import(IfcModel, TextReader, string)

Imports tabular CSV properties from a System.IO.TextReader into matching model elements.

public static (int ElementsUpdated, int PropertiesUpdated) Import(IfcModel model, TextReader reader, string delimiter = ";")

Parameters

model IfcModel
reader TextReader
delimiter string

Returns

(int ElementsUpdated, int PropertiesUpdated)

ImportFile(IfcModel, string, string)

Imports tabular CSV properties into matching model elements by GlobalId or Id. Adds or updates property values inside matching or custom property sets.

public static (int ElementsUpdated, int PropertiesUpdated) ImportFile(IfcModel model, string path, string delimiter = ";")

Parameters

model IfcModel
path string
delimiter string

Returns

(int ElementsUpdated, int PropertiesUpdated)

A tuple containing the number of updated elements and the total number of updated properties.