Table of Contents

Class NwcXmlClashSerializer

Namespace
NwcIO.Model.Clash
Assembly
NwcIO.dll

Serializes and deserializes Autodesk Navisworks Clash Detective reports and batch tests according to the official XML schema (nw-clashreport-11.0.xsd).

public static class NwcXmlClashSerializer

Inheritance

Inherited Members

Methods

Open(string)

Reads a Navisworks Clash Report XML file from disk.

public static List<NwcClashTest> Open(string path)

Parameters

path string

Returns

List<NwcClashTest>

ParseDocument(XDocument)

Parses an System.Xml.Linq.XDocument representing a Navisworks Clash Report.

public static List<NwcClashTest> ParseDocument(XDocument doc)

Parameters

doc XDocument

Returns

List<NwcClashTest>

Read(Stream)

Reads a Navisworks Clash Report from a stream.

public static List<NwcClashTest> Read(Stream stream)

Parameters

stream Stream

Returns

List<NwcClashTest>

Save(string, IEnumerable<NwcClashTest>, string)

Saves a collection of clash tests as a Navisworks Clash Report XML file.

public static void Save(string path, IEnumerable<NwcClashTest> tests, string batchName = "BatchTest")

Parameters

path string
tests IEnumerable<NwcClashTest>
batchName string

Write(Stream, IEnumerable<NwcClashTest>, string)

Writes clash tests into a stream as a Navisworks Clash Report XML document.

public static void Write(Stream stream, IEnumerable<NwcClashTest> tests, string batchName = "BatchTest")

Parameters

stream Stream
tests IEnumerable<NwcClashTest>
batchName string

WriteDocument(XmlWriter, IEnumerable<NwcClashTest>, string)

Writes clash tests to an System.Xml.XmlWriter.

public static void WriteDocument(XmlWriter xml, IEnumerable<NwcClashTest> tests, string batchName = "BatchTest")

Parameters

xml XmlWriter
tests IEnumerable<NwcClashTest>
batchName string