Class NwcDocumentBuilder
- Namespace
- NwcIO
- Assembly
- NwcIO.dll
A fluent builder for programmatically creating new NwcIO.NwcDocument instances.
public sealed class NwcDocumentBuilderInheritance
Inherited Members
Methods
AddAppearanceRule(NwcAppearanceRule)
Adds an appearance profiler rule to colorize matching scene graph elements.
public NwcDocumentBuilder AddAppearanceRule(NwcAppearanceRule rule)Parameters
ruleNwcAppearanceRule
Returns
AddClashTest(NwcClashTest)
Adds a Clash Detective test to the document.
public NwcDocumentBuilder AddClashTest(NwcClashTest test)Parameters
testNwcClashTest
Returns
AddGuid(Guid)
Adds an element GUID to the document.
public NwcDocumentBuilder AddGuid(Guid id)Parameters
idGuid
Returns
AddMaterial(NwcMaterial)
Adds a surface material to the document.
public NwcDocumentBuilder AddMaterial(NwcMaterial material)Parameters
materialNwcMaterial
Returns
AddMesh(NwcMesh)
Adds a 3D polygon mesh to the document.
public NwcDocumentBuilder AddMesh(NwcMesh mesh)Parameters
meshNwcMesh
Returns
AddPropertyRecord(NwcPropertyRecord)
Adds a property record to the document.
public NwcDocumentBuilder AddPropertyRecord(NwcPropertyRecord record)Parameters
recordNwcPropertyRecord
Returns
AddSavedViewpoint(NwcSavedViewpoint)
Adds a saved viewpoint and camera to the document.
public NwcDocumentBuilder AddSavedViewpoint(NwcSavedViewpoint viewpoint)Parameters
viewpointNwcSavedViewpoint
Returns
AddSelectionSet(NwcSetItem)
Adds a selection set, search set, or set folder to the document.
public NwcDocumentBuilder AddSelectionSet(NwcSetItem setItem)Parameters
setItemNwcSetItem
Returns
AddTransform(NwcTransform)
Adds a spatial transform to the document.
public NwcDocumentBuilder AddTransform(NwcTransform transform)Parameters
transformNwcTransform
Returns
Build()
Builds and returns the constructed NwcIO.NwcDocument.
public NwcDocument Build()Returns
SetAppearanceProfiler(NwcAppearanceProfiler)
Sets the Navisworks Appearance Profiler for colorizing the model based on rules.
public NwcDocumentBuilder SetAppearanceProfiler(NwcAppearanceProfiler profiler)Parameters
profilerNwcAppearanceProfiler
Returns
SetFileInfo(string, string?, DateTime?)
Sets the source path, loader plugin, and options for the document.
public NwcDocumentBuilder SetFileInfo(string sourcePath, string? loaderPlugin = "LcOpRevitExport", DateTime? timestampUtc = null)Parameters
Returns
SetRootNode(NwcNode)
Sets the root scene hierarchy node.
public NwcDocumentBuilder SetRootNode(NwcNode rootNode)Parameters
rootNodeNwcNode
Returns
SetTimeLiner(NwcTimeLinerSchedule)
Sets the 4D TimeLiner construction schedule for the document.
public NwcDocumentBuilder SetTimeLiner(NwcTimeLinerSchedule schedule)Parameters
scheduleNwcTimeLinerSchedule