API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

View Class

The View class contains methods related to views.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Model.UI
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2020.0.0.0 (2020.0.55582.0)
public sealed class View

The View type exposes the following members.

  Name Description
Public method View
Initializes a new instance of the View class
  Name Description
Public property CurrentRepresentation
Gets or sets the current representation.
Public property DisplayCoordinateSystem
The local coordinate system for the display.
Public property DisplayType
The display plane type.
Public property Identifier
The view identifier.
Public property Name
The name of the view. 84 characters at most.
Public property SharedView
The property which tells if the view is shared. The value is meaningful only when the model is shared.
Public property ViewCoordinateSystem
The local coordinate system for the view. Can be set when creating a view. The origin is always set to zero.
Public property ViewDepthDown
The view depth down.
Public property ViewDepthUp
The view depth up.
Public property ViewFilter
The name of the view filter. 256 characters at most.
Public property ViewProjection
The view projection type.
Public property ViewRendering
The view rendering type.
Public property VisibilitySettings
The property which tells the view visibility settings for objects.
Public property WorkArea
The view working area.
  Name Description
Public method Delete
Deletes the view.
Public methodCode example GetClipPlanes
Returns all the clip planes of the view.
Public method Insert
Inserts a new view to the model.
Public method IsPerspectiveViewProjection
Tells whether the view projection is a perspective projection.
Public method IsVisible
Tells whether the view is currently visible.
Public method Modify
Modifies the view parameters.
Public method Select
Selects the view.
An example of using the View and ViewHandler classes:
using System;
using Tekla.Structures.Model.UI;
using Tekla.Structures.Geometry3d;

public class ViewExample
       public void ViewExample1()
           View View = new View();
           View.Name = "Example View";
           View.ViewCoordinateSystem.AxisX = new Vector(1, 0, 0);
           View.ViewCoordinateSystem.AxisY = new Vector(0, 1, 0);
           // Work area has to be set for new views
           View.WorkArea.MinPoint = new Point(-3000, -3000, -3000);
           View.WorkArea.MaxPoint = new Point(15000, 33000, 12000);
           View.ViewDepthUp = 10000;
           View.ViewDepthDown = 2000;
           View.WorkArea.MinPoint = new Point(-3000, -3000, -3000);
           View.WorkArea.MaxPoint = new Point(5000, 3000, 2000);
using Tekla.Structures.Model.UI;

public class Example
       public void Example1()
           ModelViewEnumerator ViewEnum = ViewHandler.GetAllViews();
               View View = ViewEnum.Current;
See Also