Table of Contents

Class NwcDocumentBuilder

Namespace
NwcIO
Assembly
NwcIO.dll

A fluent builder for programmatically creating new NwcIO.NwcDocument instances.

public sealed class NwcDocumentBuilder

Inheritance

Inherited Members

Methods

AddAppearanceRule(NwcAppearanceRule)

Adds an appearance profiler rule to colorize matching scene graph elements.

public NwcDocumentBuilder AddAppearanceRule(NwcAppearanceRule rule)

Parameters

rule NwcAppearanceRule

Returns

NwcDocumentBuilder

AddClashTest(NwcClashTest)

Adds a Clash Detective test to the document.

public NwcDocumentBuilder AddClashTest(NwcClashTest test)

Parameters

test NwcClashTest

Returns

NwcDocumentBuilder

AddGuid(Guid)

Adds an element GUID to the document.

public NwcDocumentBuilder AddGuid(Guid id)

Parameters

id Guid

Returns

NwcDocumentBuilder

AddMaterial(NwcMaterial)

Adds a surface material to the document.

public NwcDocumentBuilder AddMaterial(NwcMaterial material)

Parameters

material NwcMaterial

Returns

NwcDocumentBuilder

AddMesh(NwcMesh)

Adds a 3D polygon mesh to the document.

public NwcDocumentBuilder AddMesh(NwcMesh mesh)

Parameters

mesh NwcMesh

Returns

NwcDocumentBuilder

AddPropertyRecord(NwcPropertyRecord)

Adds a property record to the document.

public NwcDocumentBuilder AddPropertyRecord(NwcPropertyRecord record)

Parameters

record NwcPropertyRecord

Returns

NwcDocumentBuilder

AddSavedViewpoint(NwcSavedViewpoint)

Adds a saved viewpoint and camera to the document.

public NwcDocumentBuilder AddSavedViewpoint(NwcSavedViewpoint viewpoint)

Parameters

viewpoint NwcSavedViewpoint

Returns

NwcDocumentBuilder

AddSelectionSet(NwcSetItem)

Adds a selection set, search set, or set folder to the document.

public NwcDocumentBuilder AddSelectionSet(NwcSetItem setItem)

Parameters

setItem NwcSetItem

Returns

NwcDocumentBuilder

AddTransform(NwcTransform)

Adds a spatial transform to the document.

public NwcDocumentBuilder AddTransform(NwcTransform transform)

Parameters

transform NwcTransform

Returns

NwcDocumentBuilder

Build()

Builds and returns the constructed NwcIO.NwcDocument.

public NwcDocument Build()

Returns

NwcDocument

SetAppearanceProfiler(NwcAppearanceProfiler)

Sets the Navisworks Appearance Profiler for colorizing the model based on rules.

public NwcDocumentBuilder SetAppearanceProfiler(NwcAppearanceProfiler profiler)

Parameters

profiler NwcAppearanceProfiler

Returns

NwcDocumentBuilder

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

sourcePath string
loaderPlugin string?
timestampUtc DateTime?

Returns

NwcDocumentBuilder

SetRootNode(NwcNode)

Sets the root scene hierarchy node.

public NwcDocumentBuilder SetRootNode(NwcNode rootNode)

Parameters

rootNode NwcNode

Returns

NwcDocumentBuilder

SetTimeLiner(NwcTimeLinerSchedule)

Sets the 4D TimeLiner construction schedule for the document.

public NwcDocumentBuilder SetTimeLiner(NwcTimeLinerSchedule schedule)

Parameters

schedule NwcTimeLinerSchedule

Returns

NwcDocumentBuilder