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 NwcClashMatrixInheritance
Inherited Members
Constructors
NwcClashMatrix()
public NwcClashMatrix()NwcClashMatrix(string)
public NwcClashMatrix(string name)Parameters
namestring
Properties
Cells
public List<NwcClashMatrixCell> Cells { get; }Property Value
Disciplines
public List<NwcClashDiscipline> Disciplines { get; }Property Value
GlobalRules
public List<NwcClashRule> GlobalRules { get; }Property Value
Name
public string Name { get; set; }Property Value
TotalClashesCount
public int TotalClashesCount { get; }Property Value
Methods
AddDiscipline(string, string?)
Adds a discipline to the matrix.
public NwcClashDiscipline AddDiscipline(string name, string? modelNameFilter = null)Parameters
Returns
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
assemblyNwcAssemblydefaultTolerancedouble
Returns
Execute(NwcAssembly)
Executes all enabled clash tests in the matrix against a federated NwcIO.Model.NwcAssembly.
public void Execute(NwcAssembly assembly)Parameters
assemblyNwcAssembly
PopulateStandardMatrix(double, bool)
Populates standard pairwise cells between all added disciplines.
public void PopulateStandardMatrix(double defaultTolerance = 0.002, bool includeSelfClash = false)Parameters
Run(NwcAssembly)
Executes all enabled clash tests in the matrix against a federated NwcIO.Model.NwcAssembly.
public void Run(NwcAssembly assembly)Parameters
assemblyNwcAssembly
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
filePathstring
SaveJson(string, bool)
Exports the clash matrix results to a structured JSON file.
public void SaveJson(string filePath, bool indent = true)Parameters
ToMarkdownTable()
Generates a formatted Markdown summary table of the clash matrix results.
public string ToMarkdownTable()