Class NwcXmlViewpointSerializer
- Namespace
- NwcIO.Model.Sectioning
- Assembly
- NwcIO.dll
Serializes and deserializes saved viewpoints, cameras, clipping section planes, and redline markups
to and from Autodesk Navisworks XML viewpoints exchange format (.xml).
public static class NwcXmlViewpointSerializerInheritance
Inherited Members
Methods
Deserialize(string)
Deserializes saved viewpoints from a Navisworks exchange XML string.
public static List<NwcSavedViewpoint> Deserialize(string xml)Parameters
xmlstring
Returns
Deserialize(TextReader)
Deserializes saved viewpoints from a System.IO.TextReader.
public static List<NwcSavedViewpoint> Deserialize(TextReader reader)Parameters
readerTextReader
Returns
Open(string)
Deserializes saved viewpoints from a file.
public static List<NwcSavedViewpoint> Open(string path)Parameters
pathstring
Returns
Save(string, IEnumerable<NwcSavedViewpoint>, string)
Writes saved viewpoints to a file in Navisworks XML format.
public static void Save(string path, IEnumerable<NwcSavedViewpoint> viewpoints, string units = "m")Parameters
pathstringviewpointsIEnumerable<NwcSavedViewpoint>unitsstring
Serialize(IEnumerable<NwcSavedViewpoint>, string)
Serializes a list of saved viewpoints to a Navisworks exchange XML string.
public static string Serialize(IEnumerable<NwcSavedViewpoint> viewpoints, string units = "m")Parameters
viewpointsIEnumerable<NwcSavedViewpoint>unitsstring