PML Customisation User Guide

Gadget Set : View Gadgets : Defining MODEL’s Volume (3D) Views
The area occupied by borders and status line is within the area the use specifies for the gadget.
To enable colour-shaded representation use the .shaded() method. By default a wireline representation .shaded(false) is used.
All aspects of the 3D view transformation may be specified:
To enable PERSPECTIVE mode use the .projection(‘PERSPECTIVE’) method. By default the projection is PARALLEL.
The view direction is controlled via the 3D view’s .direction member. This is a 3 element array of REAL, representing a direction vector in model space ( DEAST, DNORTH, DUP ). So to look east you would specify:
The centre of interest or through point of the 3D view is controlled via the .through member. This is a 3 element array of REAL, representing a position in model space (EAST, NORTH, UP).
The .radius() method specifies the radius of the view in current units - an imaginary sphere around the through point.
The .range() method specifies how far away from the Through point you want the Eye point to be.
To enable WALKTHROUGH mode specify .walkthrough(true) together with the walking step size in current units using the .step() method.
For a full list of View Members and methods, refer to Software Customisation Reference Manual for further information.
Looks from the East.
Looks towards the East.
Looks towards specified direction.
Looks through specified point.
Looks through named elements origin.
looks from specified point (defines eye position)
Looks from named element (as eye position).
Looks towards the given direction.
Looks towards named element .
Looks in specified isometric direction.
Each volume view needs to know what region of the design model is to be displayed (the 3D view limits). The MODEL application has the notion of a current limits box. Unless you specify otherwise, the limits set for a new view gadget will default to the MODEL current limits box (as set by, say, the LIMITS or AUTOLIMITS commands in MODEL).
In addition, each volume view has an AUTO flag associated with it, which determines whether or not that view will be updated automatically whenever the MODEL current limits box is changed.
LIMITS AUTO
In MODEL you may change the current limits box at any time by using one of the command formats
Any volume views which have LIMITS AUTO set will be redrawn to match the new limits.
3D views have a mousemode member which can be set to Zoom, Pan, Rotate, or Walk
3D views have two methods which are used to save and restore up to four views, until you leave MODEL:

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo