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 NwcXmlClashSerializerInheritance
Inherited Members
Methods
Open(string)
Reads a Navisworks Clash Report XML file from disk.
public static List<NwcClashTest> Open(string path)Parameters
pathstring
Returns
ParseDocument(XDocument)
Parses an System.Xml.Linq.XDocument representing a Navisworks Clash Report.
public static List<NwcClashTest> ParseDocument(XDocument doc)Parameters
docXDocument
Returns
Read(Stream)
Reads a Navisworks Clash Report from a stream.
public static List<NwcClashTest> Read(Stream stream)Parameters
streamStream
Returns
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
pathstringtestsIEnumerable<NwcClashTest>batchNamestring
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
streamStreamtestsIEnumerable<NwcClashTest>batchNamestring
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
xmlXmlWritertestsIEnumerable<NwcClashTest>batchNamestring