Table of Contents

Class NwcSavedViewpoint

Namespace
NwcIO.Model
Assembly
NwcIO.dll

Represents a saved viewpoint / camera view in a Navisworks document or federated assembly.

public sealed record NwcSavedViewpoint : IEquatable<NwcSavedViewpoint>

Inheritance

Implements

Inherited Members

Properties

Camera

Camera orientation and projection parameters.

public required NwcCamera Camera { get; init; }

Property Value

NwcCamera

CameraPosition

Convenience accessor for the 3D position of the camera.

public Vector3d? CameraPosition { get; }

Property Value

Vector3d?

Comments

Optional user comments or review notes associated with this viewpoint.

public IReadOnlyList<string> Comments { get; init; }

Property Value

IReadOnlyList<string>

Id

Unique identifier of this saved viewpoint.

public Guid Id { get; init; }

Property Value

Guid

Name

Display name of the saved viewpoint.

public required string Name { get; init; }

Property Value

string

Redlines

Review redline markup annotations (arrows, text, clouds, tags) drawn on this viewpoint.

public IReadOnlyList<NwcRedline> Redlines { get; init; }

Property Value

IReadOnlyList<NwcRedline>

SectionBox

Optional 3D bounding section box cropping visible geometry in this viewpoint.

public NwcSectionBox? SectionBox { get; init; }

Property Value

NwcSectionBox?

SectionPlanes

Dynamic clipping section planes active in this viewpoint (up to 6 planes).

public IReadOnlyList<NwcSectionPlane> SectionPlanes { get; init; }

Property Value

IReadOnlyList<NwcSectionPlane>

Methods

CreateDefault(BoundingBox3d, string)

Creates a default perspective viewpoint framing the provided bounding box.

public static NwcSavedViewpoint CreateDefault(BoundingBox3d bounds, string name = "Default View")

Parameters

bounds BoundingBox3d
name string

Returns

NwcSavedViewpoint

CreateTop(BoundingBox3d, string)

Creates an orthographic top (plan) view looking down along -Z.

public static NwcSavedViewpoint CreateTop(BoundingBox3d bounds, string name = "Top View")

Parameters

bounds BoundingBox3d
name string

Returns

NwcSavedViewpoint

LookRotation(Vector3d, Vector3d)

Computes a rotation quaternion looking along direction with the given up vector.

public static Quaterniond LookRotation(Vector3d forward, Vector3d up)

Parameters

forward Vector3d
up Vector3d

Returns

Quaterniond