The View class contains methods related to views. Inheritance Hierarchy Namespace: Tekla.Assembly: Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2022.0.13611 Syntax The View type exposes the following members. Constructors Properties
Methods
Examples 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.Insert(); View.WorkArea.MinPoint = new Point(-3000, -3000, -3000); View.WorkArea.MaxPoint = new Point(5000, 3000, 2000); View.Modify(); }} using Tekla.Structures.Model.UI;public class Example{ public void Example1() { ModelViewEnumerator ViewEnum = ViewHandler.GetAllViews(); while(ViewEnum.MoveNext()) { View View = ViewEnum.Current; ViewHandler.HideView(View); } }} See Also Reference |
|