Overview | Statement List | Example


检查视图

Synopsis

VIEWV/['view name',]variable _list[,IFERR,label:]

Description

Returns the specified view parameters to a list of variables.

NOTE: All parameters are not supported for all types of views. A value of -999 returns if the parameter is not supported.

The parameter returned depends upon its field position in the list. Therefore, if certain parameters are not desired, the field must be defined using two commas (,,). However, once you have specified the last desired parameter, do not use commas to define the remaining positions. For example, if you wished to only verify the orientation matrix and scale, you would specify

NUMBER/MAT(9),S
.
.
VIEWV/MAT,,S,IFERR,label:

where MAT is the orientation matrix parameter; ,, represents that the output vector size parameter is omitted; and S represents the scale parameter.

NOTE: You need to reserve 9 positions (commas) for the orientation matrix if it is omitted. The output vector size is returned to the tenth position.

The variable list is as shown in the following table.

Drawing View

Drawing Member View

Position

Parameter

Data Type

Y

Y

1-9

Orientation matrix

9 Numbers

Y

Y

10

Output vector size
2D
3D

[2,3]
2
3

Y

Y

11

Scale

Number

Y

Y

12

X coordinate of view center

Number

Y

Y

13

Y coordinate of view center

Number

Y

Y

14

Z coordinate of view center

Number

N

Y

15

Projection type
Parallel
Perspective

[1,2]
1
2

N

Y

16

Perspective distance

Number

Y

Y

17

Front Z clipping status
None
Exists

[0,1]
0
1

Y

Y

18

Front Z clipping bound

Number

Y

Y

19

Back Z clipping status
None
Exists

[0,1]
0
1

Y

Y

20

Back Z clipping bound

Number

N

Y

21

X coordinate of drawing reference point

Number

N

Y

22

Y coordinate of drawing reference point

Number

N

Y

23

Z coordinate of drawing reference point

Number

N

Y

24

Drawing scale

Number

N

N

25

Surface display type
Gridlines
Solid fill
Flat shading
Gouraud shading
Phong shading
Hidden line

[1,6]
1
2
3
4
5
6

N

N

26

Depth cueing
Off
On

[1,2]
1
2

Y

Y

27

Layer visibility mask
Global
Individual

[1,2]
1
2

N

Y

28

Unfixed blends
VSBL
INVSBL

[1,2]
1
2

N

Y

29

Smooth edges
VSBL
INVSBL

[1,2]
1
2

N

Y

30

Silhouettes
VSBL
INVSBL

[1,2]
1
2

N

Y

31

Hidden edge
VSBL
INVSBL
DASH

[1,3]
1
2
3

Parameters

Parameter

Description

'view name'

A string or string variable which represents the name of the view being verified. The view does not need to be active. If no view name is specified, the current work view is verified.

variable_list

A list of variables to which the view parameters are assigned. The variables can be any combination of simple and/or array variables.

IFERR,label:

Specifies a label to which program execution jumps if an error occurs in accessing the view.

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.