Table of Contents

Class NwcClashMatrix

Namespace
NwcIO.Model.Clash
Assembly
NwcIO.dll

Manages and executes a multi-discipline Clash Matrix across architectural, structural, and MEP models, generating consolidated cross-discipline reports, HTML dashboards, and BCF 2.1 archives.

public sealed class NwcClashMatrix

Inheritance

Inherited Members

Constructors

NwcClashMatrix()

public NwcClashMatrix()

NwcClashMatrix(string)

public NwcClashMatrix(string name)

Parameters

name string

Properties

Cells

public List<NwcClashMatrixCell> Cells { get; }

Property Value

List<NwcClashMatrixCell>

Disciplines

public List<NwcClashDiscipline> Disciplines { get; }

Property Value

List<NwcClashDiscipline>

GlobalRules

public List<NwcClashRule> GlobalRules { get; }

Property Value

List<NwcClashRule>

Name

public string Name { get; set; }

Property Value

string

TotalClashesCount

public int TotalClashesCount { get; }

Property Value

int

Methods

AddDiscipline(string, string?)

Adds a discipline to the matrix.

public NwcClashDiscipline AddDiscipline(string name, string? modelNameFilter = null)

Parameters

name string
modelNameFilter string?

Returns

NwcClashDiscipline

CreateFromAssembly(NwcAssembly, double)

Creates a default clash coordination matrix automatically populated from the contributing models of an assembly.

public static NwcClashMatrix CreateFromAssembly(NwcAssembly assembly, double defaultTolerance = 0.002)

Parameters

assembly NwcAssembly
defaultTolerance double

Returns

NwcClashMatrix

Execute(NwcAssembly)

Executes all enabled clash tests in the matrix against a federated NwcIO.Model.NwcAssembly.

public void Execute(NwcAssembly assembly)

Parameters

assembly NwcAssembly

PopulateStandardMatrix(double, bool)

Populates standard pairwise cells between all added disciplines.

public void PopulateStandardMatrix(double defaultTolerance = 0.002, bool includeSelfClash = false)

Parameters

defaultTolerance double
includeSelfClash bool

Run(NwcAssembly)

Executes all enabled clash tests in the matrix against a federated NwcIO.Model.NwcAssembly.

public void Run(NwcAssembly assembly)

Parameters

assembly NwcAssembly

SaveBcf(string)

Exports all clashes detected across the entire matrix into a unified buildingSMART BCF 2.1 zip archive.

public void SaveBcf(string filePath)

Parameters

filePath string

SaveJson(string, bool)

Exports the clash matrix results to a structured JSON file.

public void SaveJson(string filePath, bool indent = true)

Parameters

filePath string
indent bool

ToMarkdownTable()

Generates a formatted Markdown summary table of the clash matrix results.

public string ToMarkdownTable()

Returns

string