Overview | Statement List


创建视图

Synopsis

VIEWC/'view name',{csys|'base view name'[,VMODS][,VDEP]}[,WORK[,{AUTO|SCALE,s}]][,IFERR,label:]

Description

Creates a view of a specified name and automatically saves it. You can set the view parameters by specifying a base view or by specifying the view coordinate system and allowing the system view defaults to set the rest of the parameters. The system view defaults are:

CENTER = 0,0,0
SCALE = 1.0
NO Z CLIPPING
PARALLEL PROJECTION
OUTPUT VECTORS = 2D
DRAWING REFERENCE POINT = 0,0,0
DRAWING SCALE = 1.0
SURFACE DISPLAY = GRID LINES
DEPTH CUEING = OFF

When a new view is created, it can also be placed in the current layout by specifying the minor word WORK. Even though this can be accomplished in a single GRIP statement, it is actually two operations. The view is created and then retrieved into the current layout. Therefore, the created view can be retrieved in three different ways: at its created scale, by using an Auto Max/Min operation, or at a specified scale. In any case this does not affect the created view.

Parameters

Parameter

Description

'view name'

A string or string variable which represents the name of the created view.

csys

An existing coordinate system object which defines the view orientation. The view is created with the view center at the origin of the coordinate system, the positive X horizontal pointing to the right, and the positive Y vertical pointing up.

'base view name'

A string or string variable which represents the name of an existing view. The parameters of this view are used to set the parameters for the created view.

VMODS

Minor word which indicates that the view modification parameters of the base view are copied to the created view.

VDEP

Minor word which indicates that the view dependent geometry of the base view is moved to the created view.

WORK

Minor word which indicates that the new view replaces the current work view in the layout. This cannot be used if the current layout is a drawing.

AUTO

Minor word which indicates that an Auto Max/Min operation is performed on the created view.

SCALE

Minor word which indicates that the view is retrieved at a specified scale.

s

A positive real number which represents the scale at which the view is retrieved.

IFERR,label:

Label to which program execution jumps if an error occurs during view creation.

 


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