Table of Contents

Class NwcIfcExportOptions

Namespace
NwcIO
Assembly
NwcIO.dll

Options controlling IFC (Industry Foundation Classes) export. Supports IFC2x3 Coordination View V2.0 and IFC4 (ISO 10303-21 STEP physical file format).

public sealed class NwcIfcExportOptions

Inheritance

Inherited Members

Properties

Application

Application name for the STEP header (default: "NwcIO").

public string Application { get; set; }

Property Value

string

Author

Author string for the STEP header and the owner history's IfcPerson (default: empty).

public string Author { get; set; }

Property Value

string

BuildingName

Custom building name for IfcBuilding (default: "Default Building").

public string? BuildingName { get; set; }

Property Value

string?

ClipGeometryWithSectionPlanes

Whether to clip triangle geometry against active section planes/box (default: true).

public bool ClipGeometryWithSectionPlanes { get; set; }

Property Value

bool

ConvertMmToMetres

Convert millimetre source coordinates to metres when NwcIO.NwcIfcExportOptions.LengthUnit is Metre (default: true).

public bool ConvertMmToMetres { get; set; }

Property Value

bool

Default

Default export configuration.

public static NwcIfcExportOptions Default { get; }

Property Value

NwcIfcExportOptions

ExportMaterials

Export surface materials and RGB colors as IfcSurfaceStyle / IfcStyledItem (default: true).

public bool ExportMaterials { get; set; }

Property Value

bool

ExportProperties

Export properties and metadata as IfcPropertySet and IfcPropertySingleValue (default: true).

public bool ExportProperties { get; set; }

Property Value

bool

ExportTypeObjects

Export type objects (IfcTypeProduct, e.g. IfcWallType) and link via IfcRelDefinesByType (default: true).

public bool ExportTypeObjects { get; set; }

Property Value

bool

LengthUnit

Length unit for coordinates in the IFC model (default: Millimetre).

public NwcIfcLengthUnit LengthUnit { get; set; }

Property Value

NwcIfcLengthUnit

Organization

Organization string for the STEP header (default: "NwcIO").

public string Organization { get; set; }

Property Value

string

ProjectName

Custom project name for IfcProject (defaults to document or assembly name).

public string? ProjectName { get; set; }

Property Value

string?

Schema

IFC Schema version string: "IFC2X3" or "IFC4" (case-insensitive on set, same validation as the CLI --ifc-schema). Any other value throws System.ArgumentException instead of silently falling back to IFC2X3; use NwcIO.NwcIfcExportOptions.SchemaVersion for the typed equivalent.

public string Schema { get; set; }

Property Value

string

SchemaVersion

Target IFC schema version (default: Ifc2x3).

public NwcIfcSchemaVersion SchemaVersion { get; set; }

Property Value

NwcIfcSchemaVersion

SectionBox

Optional 3D section box to crop exported IFC geometry.

public NwcSectionBox? SectionBox { get; set; }

Property Value

NwcSectionBox?

SectionPlanes

Optional active clipping section planes to crop exported IFC geometry.

public IReadOnlyList<NwcSectionPlane>? SectionPlanes { get; set; }

Property Value

IReadOnlyList<NwcSectionPlane>?

SharedVertices

Share IfcCartesianPoint instances per mesh using mesh index triplets to minimize file size in IFC2x3 (default: true).

public bool SharedVertices { get; set; }

Property Value

bool

StoreyName

Custom storey name for IfcBuildingStorey (default: "Level 1").

public string? StoreyName { get; set; }

Property Value

string?

UseTessellationInIfc4

When targeting IFC4, use compact IfcTriangulatedFaceSet instead of heavy IfcFacetedBrep (default: true).

public bool UseTessellationInIfc4 { get; set; }

Property Value

bool

WorldCoordinates

Export geometry in world coordinates applying 3D transformations (default: true).

public bool WorldCoordinates { get; set; }

Property Value

bool