Search Results for

    Show / Hide Table of Contents

    Method SetViewCamera

    SetViewCamera(DocumentId, int, Point3D, Direction3D, Direction3D, double, double)

    Sets the camera of a graphic view of a document.

    Declaration
    [OperationContract]
    [AvailableSinceVersion(7, 7, 0, 0)]
    void SetViewCamera(DocumentId inDocumentId, int inViewId, Point3D inEyePosition, Direction3D inLookAtDirection, Direction3D inUpDirection, double inFieldAngle, double inFieldRadius)
    Parameters
    Type Name Description
    DocumentId inDocumentId

    Identifier of the document to modify.

    int inViewId

    Identifier of the graphic view to modify.

    Point3D inEyePosition

    Position of the eye.

    Direction3D inLookAtDirection

    Eye looking direction.

    Direction3D inUpDirection

    Vertical upwards direction.

    double inFieldAngle

    Field angle for perspective projection, or 0 if orthographic projection.

    double inFieldRadius

    Field radius for orthographic projection, or distance between camera origin and projection plane if perspective projection.

    Remarks

    StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.

    This method is available since v7.7.

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.