uc6400 (查看源代码)
 
定义在: uf_view.h
 
概述
Erases an object from a view.

返回
Flag
0 = OK
1 = View Does Not Exist
2 = Invalid Character In View Name
3 = Invalid Object Type

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6400
(
char * cp1,
tag_t np2
)
char * (字符型指针)cp1Input(输入)Name Of View (30 char max)
""= Work View
tag_t (tag_t类型)np2Input(输入)Object identifier Of Object

 


 
uc6401 (查看源代码)
 
定义在: uf_view.h
 
概述
Convert a view dependent object to model

NOTE: An individual ordinate dimension cannot be converted to a
model object by itself. You may however convert an ordinate origin
and all its associated ordinate dimensions to model objects by setting
np2 = object identifier of the ordinate origin.

This user function will convert more object types to model dependent objects than
UF_VIEW_convert_to_model().

返回
Flag
0 = OK
1 = View Does Not Exist
2 = Invalid Character In View Name
3 = Object Not View Dependent
4 = Ordinate Dimension cannot be converted
to a model object.

环境
内部和外部

参见
UF_VIEW_convert_to_model
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6401
(
char * cp1,
tag_t np2
)
char * (字符型指针)cp1Input(输入)Name Of View (30 char max)
""= Work View
tag_t (tag_t类型)np2Input(输入)Object identifier Of Object To Convert To Model

 


 
uc6402 (查看源代码)
 
定义在: uf_view.h
 
概述
Convert model object to view dependent

NOTE: An individual ordinate dimension cannot be converted to a
view dependent object by itself. You may however convert an
ordinate origin and all its associated ordinate dimensions to view
dependent objects by setting np2 = object identifier of the ordinate
origin.

This user function will convert more object types to view dependent objects than
UF_VIEW_convert_to_view().

返回
Flag
0 = OK
1 = View Does Not Exist
2 = Invalid Character In View Name
3 = Object Already View Dependent
4 = Object Not Eligible For View Dependence
5 = Operation not available when work part
and display part are different
6 = Ordinate Dimension cannot be converted
to a view dependent object.

环境
内部和外部

参见
UF_VIEW_convert_to_view
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6402
(
char * cp1,
tag_t np2
)
char * (字符型指针)cp1Input(输入)Name Of View (30 char max)
""= Work View
tag_t (tag_t类型)np2Input(输入)Object ID Of The Object To Convert To View
Dependent

 


 
uc6403 (查看源代码)
 
定义在: uf_view.h
 
概述
Removes the view dependent edits from an object.

返回
Flag
0 = OK
1 = View Does Not Exist
2 = Invalid Character In View Name
3 = Object Not View Modified

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6403
(
char * cp1,
tag_t np2
)
char * (字符型指针)cp1Input(输入)Name of View (30 char max)
"" = Work View
tag_t (tag_t类型)np2Input(输入)Object identifier of the object

 


 
uc6404 (查看源代码)
 
定义在: uf_view.h
 
概述
Converts all view dependent objects to model.

Note: This user function uses the same object filter as that of the view
dependent edit functionality in interactive NX.

返回
Flag
0 = OK
1 = View Does Not Exist
2 = Invalid Character In View Name
3 = Object Not View Modified

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6404
(
char * cp1
)
char * (字符型指针)cp1Input(输入)Name Of View (30 char max)
""= Work View

 


 
uc6405 (查看源代码)
 
定义在: uf_view.h
 
概述
Removes all view dependent edits from a view.

返回
Flag
0 = OK
1 = View Does Not Exist
2 = Invalid Character In View Name
3 = No View Modifications Exist

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6405
(
char * cp1
)
char * (字符型指针)cp1Input(输入)Name Of View (30 char max)
"" = Work View

 


 
uc6406 (查看源代码)
 
定义在: uf_view.h
 
概述
Modify the COLOR/FONT/WIDTH of a curve in a view.

RP3 is the normalized start and stop parameters for the curve along
the normalized curve from 0.0 (beginning) to 1.0 (end). The curve
display is modified between the two specified limits.

返回
Flag
0 = OK
1 = View Does Not Exist
2 = Invalid Character In View Name
3 = Invalid Color Number
4 = Invalid Font Number
5 = Invalid Width Number
6 = Invalid Object Type
7 = Data Base Limit ForObject View Mods Full
8 = Attempt To Erase Curve On Full Parameter - Use uc6400

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6406
(
char * cp1,
tag_t np2,
double * rp3,
int ip4,
int ip5,
int ip6
)
char * (字符型指针)cp1Input(输入)Name of the view (30 char max)
"" = Work View
tag_t (tag_t类型)np2Input(输入)Object ID of The object to be modified
double * (实数型指针)rp3Input(输入)Start and end parameters of the modification
0.0 <= RP3[0 ..1] <= 1.0
int (整数型)ip4Input(输入)Modification color
-1 = Do not change color
1-15 = Color number as defined in uf_obj.h
int (整数型)ip5Input(输入)Modification font
-1 = Do not change font
0 = Invisible
1-4 = Font number as defined in uf_obj.h
int (整数型)ip6Input(输入)Modification width
-1 = Do not change width
0-2 = Width Number as defined in uf_obj.h

 


 
uc6408 (查看源代码)
 
定义在: uf_view.h
 
概述
Returns view dependent edit data for an object.
Please use UF_VIEW_ask_vde_data rather than uc6408

环境
内部和外部

参见
UF_VIEW_ask_vde_data
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6408
(
tag_t np1,
int ip2,
char * cr3,
double * rr4,
int * ir5,
int * ir6,
int * ir7
)
tag_t (tag_t类型)np1Input(输入)Object ID of view dependent object
int (整数型)ip2Input(输入)Record number of modification
char * (字符型指针)cr3Output(输出)View name (30 char max)
double * (实数型指针)rr4Output(输出)Parameter Range Of Modification
- Range (0.0,1.0) returns two doubles rr4[2]
int * (整数型指针)ir5Output(输出)Color value, see uf_obj.h for values
int * (整数型指针)ir6Output(输出)Font value, see uf_obj.h for values
int * (整数型指针)ir7Output(输出)Width value, see uf_obj.h for values

 


 
uc6409 (查看源代码)
 
定义在: uf_view.h
 
概述
Returns view dependent status of an object and the associated view name when
the object is view dependent.

返回
Error Code
0 = Success
1 = Invalid Object Type

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6409
(
tag_t np1,
int * ir2,
char * cr3
)
tag_t (tag_t类型)np1Input(输入)Object Identifier for view dependent status check
int * (整数型指针)ir2Output(输出)Status for the object
0 = Not view dependent
1 = View dependent
char * (字符型指针)cr3Output(输出)View name. This must be a buffer allocated to contain at least
UF_OBJ_NAME_LEN + 1 characters.

 


 
uc6430 (查看源代码)
 
定义在: uf_view.h
 
概述
Read View Center and Scale

If cp1 is blank, the work view is used.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6430
(
char * cp1,
double * rr2,
double * rr3
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
double * (实数型指针)rr2Output(输出)View Center (Absolute CSYS) x,y and z coordinates.
double * (实数型指针)rr3Output(输出)View Scale

 


 
uc6431 (查看源代码)
 
定义在: uf_view.h
 
概述
Set View Center and Scale

If cp1 is blank, the work view is updated. The scale must be greater
than 0.0. An invalid scale is an error and does not change the view
center. uc6431 can edit a non-active view.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
31 = Invalid Scale

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6431
(
char * cp1,
double * rp2,
double rp3
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
double * (实数型指针)rp2Input(输入)View Center (Absolute CSYS), in x,y, and z coordinates
double (实数型)rp3Input(输入)View Scale
0.0 = Use Existing Scale

 


 
uc6432 (查看源代码)
 
定义在: uf_view.h
 
概述
Fit the View(s)

If cp1 is blank and ip2=1, the work view is updated. If ip2=2, the
value in cp1 is ignored.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
9 = View Not Active

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6432
(
char * cp1,
int ip2
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work view
int (整数型)ip2Input(输入)Fit option
1 = View named in cp1
2 = All active views

 


 
uc6433 (查看源代码)
 
定义在: uf_view.h
 
概述
Read View Matrix

If cp1 is blank, the work view is used.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6433
(
char * cp1,
double * rr2
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work view
double * (实数型指针)rr2Output(输出)View matrix (Nine element array)

 


 
uc6434 (查看源代码)
 
定义在: uf_view.h
 
概述
Set View Matrix

If cp1 is blank, the work view is updated. The object Identifier in np3
must reference an object that has a coordinate system associated with
it, such as an arc, conic, drafting object, CSYS, etc.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
9 = View Not Active
31 = Invalid Type Object In np3
32 = Invalid Matrix In rp4
33 = Invalid Matrix Option

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6434
(
char * cp1,
int ip2,
tag_t np3,
double * rp4
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work view
int (整数型)ip2Input(输入)Matrix option
1 = Absolute csys
2 = WCS
3 = Use CSYS of object in np3
4 = Use matrix in rp4
tag_t (tag_t类型)np3Input(输入)Object identifier (If ip2=3)
double * (实数型指针)rp4Input(输入)This argument is used when ip2 is 4. In this case, this will
be the X-axis and Y-axis of the matrix (6 element array).
rp4[0..2] will be the X-axis values and rp4[3..5] will be the
Y-Axis values. The Z axis of the view matrix will be internally
calculated by taking the cross product of the two input axis.

 


 
uc6435 (查看源代码)
 
定义在: uf_view.h
 
概述
Rotate View Point around View Center

If cp1 is blank, the work view is updated. A compound rotation can be
accomplished by setting several values of rp2 to non-zero. Negative
angles are valid. The rotations are executed in the order of rp2[0],
rp2[1], rp2[2].

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
9 = View Not Active

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6435
(
char * cp1,
double * rp2
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
double * (实数型指针)rp2Input(输入)Rotation angles in degrees.
[0] Down
[1] Right
[2] Counter-clockwise

 


 
uc6436 (查看源代码)
 
定义在: uf_view.h
 
概述
Read View Clipping Planes

If cp1 is blank, the work view is used. The values of rr3 are not
returned if the corresponding values of IR2 = 1.
NOTE: "Clipping Enabled by System" means NX
automatically detects that clipping planes are required and turns them on.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6436
(
char * cp1,
int * ir2,
double * rr3
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
int * (整数型指针)ir2Output(输出)Clipping Plane Status ir[2]
[0] Front
1 = Clipping Disabled
2 = Clipping Enabled by User
3 = Clipping Enabled by System
[1] Back
1 = Clipping Disabled
2 = Clipping Enabled by User
3 = Clipping Enabled by System
double * (实数型指针)rr3Output(输出)Clipping Plane Distance from the view origin
[0] Front
[1] Back

 


 
uc6437 (查看源代码)
 
定义在: uf_view.h
 
概述
Set View Clipping Planes

If cp1 is blank, the work view is updated. The values of rp3 are
ignored if the corresponding clipping plane is disabled (ip2) or
auto-set. Using auto-set calculates the plane to be the minimum (for
front plane) or maximum (for back plane) distance that displays all
objects.

You cannot disable clipping planes in a view that has 3D vectors (see
Uc6440 - Read view display type), and you cannot disable the front
clipping plane in perspective views (see uc6439 - Set view
perspective).

If the projection type is "PERSPECTIVE" and the front Z clipping
plane is in front of the EYE POINT (see uc6438 - Read view
perspective), the front Z clipping plane moves to the EYE POINT.
Return Codes of 33 and 34 are warnings only.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
3 = View Has 3D Vectors - Can Not
Remove Clipping Planes
9 = View Not Active
31 = Front Plane Behind Back Plane
33 = Perspective View - Can Not Remove
Front Plane
34 = Perspective View - Front Plane Moved
To Eye Point

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6437
(
char * cp1,
int * ip2,
double * rp3
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work view
int * (整数型指针)ip2Input(输入)Clipping plane status
[0] Front
[1] Back
0 = Do not change status/distance
1 = Disable clipping
2 = Enable clipping
3 = Auto-set distance
double * (实数型指针)rp3Input(输入)Clipping plane distance
(If ip2[x] = 2) (From view origin)
[0] Front
[1] Back

 


 
uc6438 (查看源代码)
 
定义在: uf_view.h
 
概述
Read View Perspective

If cp1 is blank, the work view is used. rr3 is modified only if the
projection type is "perspective" (ir2=2).

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6438
(
char * cp1,
int * ir2,
double * rr3
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work View
int * (整数型指针)ir2Output(输出)Projection type
1 = Parallel
2 = Perspective
double * (实数型指针)rr3Output(输出)Perspective distance (If ir2 = 2)

 


 
uc6439 (查看源代码)
 
定义在: uf_view.h
 
概述
Set View Perspective

If cp1 is blank, the work view is updated. The value of rp3 is used only
if ip2=2. The value of rp4 is used only if ip2=3.
If projection type is "PERSPECTIVE" and the EYE POINT is set to
be behind the current front Z clipping plane, the front Z clipping
plane is moved equal to the EYE POINT.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
3 = Drafting View Not Valid
9 = View Not Active
31 = Invalid Distance
32 = Invalid Projection Option

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6439
(
char * cp1,
int ip2,
double rp3,
double * rp4
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work View
int (整数型)ip2Input(输入)Projection Option
1 = Make view parallel
2 = Make view perspective
3 = Change eye point
double (实数型)rp3Input(输入)Perspective distance (If ip2=2)
double * (实数型指针)rp4Input(输入)X, Y and Z coordinates of the Eye Point (Absolute CSYS) (If ip2=3)

 


 
uc6440 (查看源代码)
 
定义在: uf_view.h
 
概述
Read view display type

If cp1 is blank, the work view is used.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6440
(
char * cp1,
int * ir2
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work view
int * (整数型指针)ir2Output(输出)Display type
2 = 2D display vectors
3 = 3D display vectors

 


 
uc6442 (查看源代码)
 
定义在: uf_view.h
 
概述
Read View Drawing Parameters

If cp1 is blank, the work view is used.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
3 = View Is A Drawing

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6442
(
char * cp1,
double * rr2,
double * rr3
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work View
double * (实数型指针)rr2Output(输出)X, Y and Z of drawing reference point, (Absolute CSYS)
double * (实数型指针)rr3Output(输出)Drawing scale

 


 
uc6443 (查看源代码)
 
定义在: uf_view.h
 
概述
Set view drawing parameters

If cp1 is blank, the work view is updated. The reference point and
scale are used to place a view on a drawing. The scale must be
greater than 0.0. UF6443 can edit a non-active view.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
3 = View Is A Drawing
4 = Not allowed in "Work in member view"
mode
31 = Invalid Scale

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6443
(
char * cp1,
double * rp2,
double rp3
)
char * (字符型指针)cp1Input(输入)View name (30 char max)
"" = Work View
double * (实数型指针)rp2Input(输入)X, Y and Z coordinates of the drawing reference point in
absolute coordinates.
double (实数型)rp3Input(输入)Drawing scale
0.0 = No change

 


 
uc6444 (查看源代码)
 
定义在: uf_view.h
 
概述
Read Surface/Solid Display Parameters

Please use
UF_VIEW_ask_surface_display_options
and
UF_VIEW_ask_fog_options
instead.

If cp1 is blank, the work view is used.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
Internal and External
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6444
(
char * cp1,
int * ir2,
int * ir3,
int * ir4,
int * ir5,
int * ir6,
int * ir7
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
int * (整数型指针)ir2Output(输出)Surface/Solid Face Display
1 = Grid Lines
2 = Solid Fill
3 = Flat Shading
4 = Gouraud Shading
5 = Phong Shading
6 = Hidden Surface
int * (整数型指针)ir3Output(输出)Depth Cueing
1 = Off
2 = On
int * (整数型指针)ir4Output(输出)Solid Unfixed Blends
1 = Visible
2 = Invisible
int * (整数型指针)ir5Output(输出)Solid Smooth Edges
1 = Visible
2 = Invisible
int * (整数型指针)ir6Output(输出)Solid Silhouettes
1 = Visible
2 = Invisible
int * (整数型指针)ir7Output(输出)Solid Hidden Edges
1 = Visible
2 = Invisible
3 = Dashed

 


 
uc6445 (查看源代码)
 
定义在: uf_view.h
 
概述
Set Surface/Solid Display Parameters

Please use
UF_VIEW_set_surface_display_options
and
UF_VIEW_set_fog_options
instead.

If cp1 is blank, the work view is updated.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
3 = Drafting View Not Valid
31 = Invalid Parameter

环境
Internal and External
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6445
(
char * cp1,
int ip2,
int ip3,
int ip4,
int ip5,
int ip6,
int ip7
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
int (整数型)ip2Input(输入)Surface/Solid Face Display
0 = Use Current Mode
1 = Grid Lines
2 = Solid Fill
3 = Flat Shading
4 = Gouraud Shading
5 = Phong Shading
6 = Hidden Surface
int (整数型)ip3Input(输入)Depth Cueing
0 = Use Current Mode
1 = Off
2 = On
int (整数型)ip4Input(输入)Solid Unfixed Blends
0 = Use Current Mode
1 = Visible
2 = Invisible
int (整数型)ip5Input(输入)Solid Smooth Edges
0 = Use Current Mode
1 = Visible
2 = Invisible
int (整数型)ip6Input(输入)Solid Silhouettes
0 = Use Current Mode
1 = Visible
2 = Invisible
int (整数型)ip7Input(输入)Solid Hidden Edges
0 = Use Current Mode
1 = Visible
2 = Invisible
3 = Dashed

 


 
uc6446 (查看源代码)
 
定义在: uf_view.h
 
概述
Read View Layer Visibility Mask

If cp1 is blank, the work view is used. ir3 is returned only if ir2=2. For
example, if an individual layer visibility mask exists for this view.
NOTE: This routine does not read the global layer mask.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6446
(
char * cp1,
int * ir2,
int * ir3
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
int * (整数型指针)ir2Output(输出)Mask Status
1 = Global
2 = Individual
int * (整数型指针)ir3Output(输出)256 word layer mask, indexed by layer number +1. So
ir3[0] has the status of layer 1, ir3[1] has the status
of layer 2 and so on. Each element of the array can have
one of the following two values.
0 = Invisible In View
1 = Visible In View

 


 
uc6447 (查看源代码)
 
定义在: uf_view.h
 
概述
Set View Layer Visibility Mask

If cp1 is blank, the work view is used. If ip2=1, any existing view layer
visibility mask is deleted for this view. If ip2=2, a new layer visibility
mask is created if none exists. ip3 is used only if ip2=2. For example,
if an individual layer visibility mask is to be used for this view.
UF6447 can edit a non-active view.
NOTE: This routine does not affect the global layer mask (see
routines UF500x).

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
31 = Invalid Mask Status

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6447
(
char * cp1,
int ip2,
int * ip3
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" = Work View
int (整数型)ip2Input(输入)Mask Status
1 = Global
2 = Individual
int * (整数型指针)ip3Input(输入)256 word layer mask, indexed by layer number +1. So
ip3[0] has the status of layer 1, ip3[1] has the status
of layer 2 and so on. Each element of the array can have
one of the following two values.
0 = Invisible In View
1 = Visible In View

 


 
uc6448 (查看源代码)
 
定义在: uf_view.h
 
概述
Read Work View Name
Please use UF_VIEW_ask_work_view rather than uc6448.

返回
work view name.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc6448
(
char * cr1
)
char * (字符型指针)cr1Output(输出)View Name (30 char max)

 


 
uc6449 (查看源代码)
 
定义在: uf_view.h
 
概述
Change Work View

This function has no effect if a drawing is current.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
9 = View Not Active

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6449
(
const char * cp1
)
const char *cp1Input(输入)View Name (30 char max)

 


 
uc6450 (查看源代码)
 
定义在: uf_view.h
 
概述
Save View

cp1 is the name of the view to save. If cp1 is blank, the work view is
saved.
cp2 is the name to save the view as. If cp2 is blank, the view is saved
with the same name. If cp2 is not blank and a view of that name does
not exist, a new view is created. If cp2 is not blank and a view of that
name already exists, an error is returned.
ip3 and ip4 are used only if the view is saved with a new name (i.e.,
cp2 <>"" and cp2<> cp1).
NOTE: The view orientation is not changed for a "canned" view.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
4 = View Already Exists
9 = View Not Active
10 = Operation Not Allowed in "Work in
member View" mode
11 = Can't Save View because drawing is
currently displayed
23 = Can't Save Drawing View With New
Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6450
(
const char * cp1,
const char * cp2,
const int ip3,
const int ip4
)
const char *cp1Input(输入)View Name (30 char max)
"" = Work View
const char *cp2Input(输入)Name To Save View As
"" = Current Name
const intip3Input(输入)Copy View Modifications
0 = No
1 = Yes
const intip4Input(输入)Move View Dependent Objects
0 = No
1 = Move

 


 
uc6454 (查看源代码)
 
定义在: uf_view.h
 
概述
Delete View

Many views cannot be deleted. Among them are the "canned" views
and work view. If a view contains a drawing, it cannot be deleted. In
addition, any view that belongs to a layout cannot be deleted.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
3 = Cannot Delete Canned View
4 = Cannot Delete Work View
5 = Cannot Delete Drawing View
6 = Cannot delete view. View belongs to at
least one layout.
8 = Cannot delete view. View belongs to at
least one layout.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6454
(
char * cp1
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)

 


 
uc6455 (查看源代码)
 
定义在: uf_view.h
 
概述
Rename View
Please use UF_VIEW_rename rather than uc6455.
If cp1 is blank, the work view is renamed. The "canned" views cannot
be renamed. In addition, modeling views cannot be renamed as
drawing view names and vice versa.

返回
Return Code
0 = OK
1 = Old View Does Not Exist
2 = Invalid View Name
3 = Can Not Rename Canned View
4 = New View Already Exists
5 = Can Not Rename Drawing View

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6455
(
char * cp1,
char * cp2
)
char * (字符型指针)cp1Input(输入)Old View Name (30 char max)
""= Work View
char * (字符型指针)cp2Input(输入)New View Name (30 char max)

 


 
uc6456 (查看源代码)
 
定义在: uf_view.h
 
概述
Cycle Views in Part
Please use UF_OBJ_cycle_objs_in_part with type UF_view_type rather than uc6456
This routine cycles the part and returns one view name per cycle. To
start the cycle, set CA1 to an empty string (""). The first
view name is returned in CA1. The next call returns the second view
name in CA1. When CA1 is returned with an empty string (ca1 returns ""),
all view names have been returned. View or drawing names that are
28 characters or less are appended with an "@n" string (where n is
any positive integer including zero). If your view name is more than 28
characters, the "@n" string is truncated.
NOTE: The cycle can be continued even if the view named in CA1 is
deleted.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6456
(
char * ca1,
int * ir2
)
char * (字符型指针)ca1Input / OutputOn input this is the view name returned by the last call to this
routine. Pass in an empty string, "", to start cycling. On output
this is the next view name. When all view names have been cycled,
and empty string, "", will be returned. The calling program must
allocation a 31 character buffer to hold the view name.
int * (整数型指针)ir2Output(输出)Active View Flag
0 = View Inactive
1 = View Active

 


 
uc6457 (查看源代码)
 
定义在: uf_view.h
 
概述
Cycle Objects in View
Please use UF_VIEW_cycle_objects rather than uc6457
If cp1 is blank, the work view is used. ip2=1 returns all objects which
are visible in the view. Objects which are out of the view bounds are
not returned.

Different types of cycles can be intermingled. For instance, while
cycling view dependent objects, you can also cycle objects erased in a
view. You cannot delete or un-erase objects or view modifications
during a cycle.

Warning: This function will return curves that are used to display a
solid silhouette in a drawing member view. Use UF_DRAW_ask_group_of_curve
on any curve returned to determine if the curve belongs to a
UF_solid_silhouette_type group.

NOTE: return/IR4=9 is valid only if ip2=1.

返回
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
9 = View Not Active
31 = Invalid Selection Option

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int uc6457
(
char * cp1,
int ip2,
tag_t * na3
)
char * (字符型指针)cp1Input(输入)View Name (30 char max)
"" Work View
int (整数型)ip2Input(输入)Object Selection
1 = Visible Objects
2 = View Dependent Objects
3 = Objects Erased In View
4 = Objects Modified In View
tag_t * (tag_t型的指针)na3Input / OutputOn input, the last object found by this routine. Pass in a
NULL_TAG to start the cycle. On output the next object. A
NULL_TAG is returned when the cycle is complete.

 


 
UF_VIEW_add_to_view_set (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_add_to_view_set

Description -
Add an orthographic view to view set

Return Codes -
ERROR_OK
UF_VIEW_INVALID_OBJECT
UF_VIEW_INVALID_VIEW_TAG
UF_VIEW_INVALID_ORIENTATION_TYPE


See Also -
UF_VIEW_create_view_set
UF_VIEW_remove_from_view_set
UF_VIEW_ask_view_set_by_name
UF_VIEW_ask_base_view_of_view_set
UF_VIEW_set_base_view_of_view_set
UF_VIEW_ask_views_of_view_set
UF_VIEW_delete_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_add_to_view_set
(
tag_t view_set_tag,
UF_VIEW_standard_orientation_t type
)
tag_t (tag_t类型)view_set_tagInput(输入)The view set to add
UF_VIEW_standard_orientation_ttypeInput(输入)The orthographic view type to add

 


 
UF_VIEW_ask_base_view_of_view_set (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_ask_base_view_of_view_set

Description -
Query the base view of the given a view set

Return Codes -
ERROR_OK
UF_VIEW_INVALID_OBJECT
UF_VIEW_INVALID_VIEW_TAG

See Also -
UF_VIEW_create_view_set
UF_VIEW_add_to_view_set
UF_VIEW_remove_from_view_set
UF_VIEW_ask_view_set_by_name
UF_VIEW_set_base_view_of_view_set
UF_VIEW_ask_views_of_view_set
UF_VIEW_delete_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_base_view_of_view_set
(
tag_t view_set_tag,
tag_t * base_view_tag
)
tag_t (tag_t类型)view_set_tagInput(输入)The view set
tag_t * (tag_t型的指针)base_view_tagOutput(输出)The base view of the view set

 


 
UF_VIEW_ask_current_xy_clip (查看源代码)
 
定义在: uf_view.h
 
概述
Returns the current X and Y clip boundaries of the given view. The clip
boundaries define a rectangle on the Z = 0 plane of View Space.

Please note the following:
The clip boundary returned is different to the one returned by
UF_VIEW_ask_xy_clip. UF_VIEW_ask_xy_clip return the boundary saved
in the data base for the view. UF_VIEW_ask_current_xy_clip return the
current boundary.

If the view is in the current layout, has been changed in
the layout (by, for example, a Zoom), and has not been saved since
it was changed, then the clip boundaries returned by this function
will reflect the changes.

This function is unusual in that, unlike most Open API
functions, the coordinate space is View Space. View Space is
parallel to the screen, with the center of the view at (0,0,0). The
view center is mapped from Absolute Space to View Space by
applying first the view rotation, then the view translation to it. The
scale in View Space is the same as in Absolute Space.

环境
Internal

参见
UF_VIEW_ask_xy_clip

历史
Original release was in NX5.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_current_xy_clip
(
tag_t view_tag,
double xy_clip_bounds [ 4 ]
)
tag_t (tag_t类型)view_tagInput(输入)Tag of the view whose X-Y clip bounds are needed
double (实数型)xy_clip_bounds [ 4 ] Output(输出)Array of the bounds of the view, in view space
(Minimum_X, Maximum_X, Minimum_Y, Maximum_Y)

 


 
UF_VIEW_ask_fog_options (查看源代码)
 
定义在: uf_view.h
 
概述
Returns the fog options of the specified view. The view must have type
UF_VIEW_MODEL_TYPE.

环境
Internal and External

参见
UF_VIEW_set_fog_options
UF_VIEW_fog_options_t

历史
Originally released in NX4.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_fog_options
(
tag_t view_tag,
UF_VIEW_fog_options_p_t fog_options
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG,
the work view is used.
UF_VIEW_fog_options_p_tfog_optionsOutput(输出)The fog options of the view.

 


 
UF_VIEW_ask_shaded_edge_options (查看源代码)
 
定义在: uf_view.h
 
概述
Returns the shaded edge options of the specified view. The view
must have type UF_VIEW_MODEL_TYPE.

环境
Internal and External

参见
UF_VIEW_set_shaded_edge_options
UF_VIEW_shaded_edge_options_t

历史
Originally released in NX4.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_shaded_edge_options
(
tag_t view_tag,
UF_VIEW_shaded_edge_options_p_t shaded_edge_options
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG,
the work view is used.
UF_VIEW_shaded_edge_options_p_tshaded_edge_optionsOutput(输出)The shaded edge options of
the view.

 


 
UF_VIEW_ask_surface_display_options (查看源代码)
 
定义在: uf_view.h
 
概述
Returns the rendering style and the Edge display options of
the specified view. The view must have type UF_VIEW_MODEL_TYPE.

环境
Internal and External

参见
UF_VIEW_set_surface_display_options
UF_VIEW_rendering_style_t
UF_VIEW_edge_display_options_t

历史
Originally released in NX4.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_surface_display_options
(
tag_t view_tag,
UF_VIEW_rendering_style_p_t rendering_style,
UF_VIEW_edge_display_options_p_t edge_display_options
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG,
the work view is used.
UF_VIEW_rendering_style_p_trendering_styleOutput(输出)The rendering style of the view.
UF_VIEW_edge_display_options_p_tedge_display_optionsOutput(输出)The edge display options
of the view.

 


 
UF_VIEW_ask_tag_of_view_name (查看源代码)
 
定义在: uf_view.h
 
概述
Gets the tag of an existing view that you specify by name.

环境
Internal and External
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_tag_of_view_name
(
char * view_name,
tag_t * view_tag
)
char * (字符型指针)view_nameInput(输入)The view name (30 char max); if blank, work view is used.
tag_t * (tag_t型的指针)view_tagOutput(输出)The corresponding view tag

 


 
UF_VIEW_ask_type (查看源代码)
 
定义在: uf_view.h
 
概述
This routine retrieves the type of the specified view.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_type
(
tag_t view_tag,
UF_VIEW_type_t * type,
UF_VIEW_subtype_t * subtype
)
tag_t (tag_t类型)view_tagInput(输入)The specified view tag.
UF_VIEW_type_t *typeOutput(输出)The view type.
UF_VIEW_MODEL_TYPE = 0,
UF_VIEW_DRAWING_MEMBER_TYPE = 1,
UF_VIEW_DRAWING_SHEET_TYPE = 2
UF_VIEW_subtype_t *subtypeOutput(输出)The view subtype - drawing member views
only.
UF_VIEW_INVALID_SUBTYPE = -1,
UF_VIEW_SECTION_SUBTYPE = 0,
UF_VIEW_IMPORTED_SUBTYPE = 1,
UF_VIEW_BASE_MEMBER_SUBTYPE = 2,
UF_VIEW_ORTHOGONAL_SUBTYPE = 3,
UF_VIEW_AUXILIARY_SUBTYPE = 4,
UF_VIEW_DETAIL_SUBTYPE = 5,
UF_VIEW_BREAK_SUBTYPE = 6

 


 
UF_VIEW_ask_vde_data (查看源代码)
 
定义在: uf_view.h
 
概述
Retrieves the number of view dependent edits for an object, and the
corresponding data for each modification.

环境
内部和外部

参见
For example please refer to the example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_vde_data
(
tag_t object,
int * number_edits,
UF_VIEW_vde_data_p_t * vde_data
)
tag_t (tag_t类型)objectInput(输入)Tag of object
int * (整数型指针)number_editsOutput(输出)Number of view dependent edits for the object.
UF_VIEW_vde_data_p_t *vde_dataOutput to be freed
输出并释放
Array of vde structures containing the view,
color, font, width, and range of each of the
view dependent edits. Use UF_free() to free
the memory.

 


 
UF_VIEW_ask_vde_data_with_type (查看源代码)
 
定义在: uf_view.h
 
概述
Retrieve the number of view dependent edits for an object and the
corresponding edit types

环境
Internal and External
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_vde_data_with_type
(
tag_t object,
int * number_edits,
UF_VIEW_vde_data_and_type_p_t * vde_data
)
tag_t (tag_t类型)objectInput(输入)Tag of object
int * (整数型指针)number_editsOutput(输出)Number of view dependent edits for object
UF_VIEW_vde_data_and_type_p_t *vde_dataOutput to be freed
输出并释放
Array of vde type of
each of the view dependent edits; use
UF_free () to free memory

 


 
UF_VIEW_ask_view_light (查看源代码)
 
定义在: uf_view.h
 
概述
This function returns the lighting attributes of a single specified view.
Each view can have different lights assigned to it. The lights are now
shared between the NX hardware shading and Photo shading.

If no lights were found with the part, the following 2 default lights are
turned on in each view to ensure that shaded display is lit:
1. Light name: Default 1 Ambient
Light type: UF_VIEW_AMBIENT_LIGHT
2. Light name : Default 2 Up-Front Dist
Light type: UF_VIEW_DISTANT_LIGHT
Light mode: UF_VIEW_FIXED_TO_OBSERVER
Light Location: 0.8, 0.0, 0.4
Light to: 0.0, 0.0, 0.0

环境
内部和外部

参见
UF_VIEW_set_view_light
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_view_light
(
tag_t view,
UF_VIEW_lighting_t * view_light
)
tag_t (tag_t类型)viewInput(输入)Tag of view
UF_VIEW_lighting_t *view_lightOutput(输出)Data structure containing view lighting
parameters

 


 
UF_VIEW_ask_view_set_by_name (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_ask_view_set_by_name

Description -
Query the view set by the given name

Note -
The query is only against the current displayed part. If there is
no view set with the given name, a NULL_TAG is returned.

Return Codes -
ERROR_OK
UF_VIEW_INVALID_NAME

See Also -
UF_VIEW_create_view_set
UF_VIEW_add_to_view_set
UF_VIEW_remove_from_view_set
UF_VIEW_ask_base_view_of_view_set
UF_VIEW_set_base_view_of_view_set
UF_VIEW_ask_views_of_view_set
UF_VIEW_delete_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_view_set_by_name
(
const char * name,
tag_t * view_set
)
const char *nameInput(输入)The view set name
tag_t * (tag_t型的指针)view_setOutput(输出)The view set match the name

 


 
UF_VIEW_ask_views_of_view_set (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_ask_views_of_view_set

Description -
Query the list of views in a view set

Return Codes -
ERROR_OK
UF_VIEW_INVALID_OBJECT
UF_VIEW_INVALID_VIEW_TAG

参见
UF_VIEW_create_view_set
UF_VIEW_add_to_view_set
UF_VIEW_remove_from_view_set
UF_VIEW_ask_view_set_by_name
UF_VIEW_ask_base_view_of_view_set
UF_VIEW_set_base_view_of_view_set
UF_VIEW_delete_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_views_of_view_set
(
tag_t view_set_tag,
int * num_views,
tag_p_t * views_in_set
)
tag_t (tag_t类型)view_set_tagInput(输入)The view set
int * (整数型指针)num_viewsOutput(输出)The number of views in the set
tag_p_t *views_in_setOutput to be freed
输出并释放
The list of views in the set

 


 
UF_VIEW_ask_visible_objects (查看源代码)
 
定义在: uf_view.h
 
概述
Returns visible objects in a view broken down by those which are entirely
visible within the view and those which are visible but clipped by the view
boundary (i.e those which cross the view boundary).

Note that this function is primarily designed to work with drafting member
views. While it may be used with model views or drawing sheet views, the bounds
of those latter views are not considered in the outcome. The bounds of drafting
member views, including those with non-rectangular borders are considered.

If view is NULL_TAG, the work view is used.

环境
Internal and External

参见
UF_VIEW_cycle_objects

历史
Originally released in V19.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_visible_objects
(
tag_t view,
int * n_visible,
tag_t * * visible,
int * n_clipped,
tag_t * * clipped
)
tag_t (tag_t类型)viewInput(输入)The view to cycle in
- if NULL_TAG, the work view is used
int * (整数型指针)n_visibleOutput(输出)The number of entirely visible objects
tag_t * *visibleOutput to be freed
输出并释放
The list of entirely visible objects
int * (整数型指针)n_clippedOutput(输出)The number of objects which cross the view
boundary, yet some portion is visible
tag_t * *clippedOutput to be freed
输出并释放
The list of clipped objects

 


 
UF_VIEW_ask_visualization (查看源代码)
 
定义在: uf_view.h
 
概述
Gets all of the visualization data. If you pass a NULL_TAG to the
view argument, then the work view is used.

Please use
UF_VIEW_ask_surface_display_options
and
UF_VIEW_ask_fog_options
instead.

环境
(内部和外部)

参见
UF_VIEW_visualization_t

历史
In the V15.0 release, new fields were added to the
UF_VIEW_visualization_t data structure.
In NX4.0, this function is superceded by
UF_VIEW_ask_surface_display_options and UF_VIEW_ask_fog_options.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_visualization
(
tag_t view,
UF_VIEW_visualization_t * view_data
)
tag_t (tag_t类型)viewInput(输入)View to retrieve data on
UF_VIEW_visualization_t *view_dataOutput(输出)View visualization data

 


 
UF_VIEW_ask_work_view (查看源代码)
 
定义在: uf_view.h
 
概述
This routine retrieves the work view tag.

环境
内部和外部

参见
uc6448

历史
This function was originally released in V16.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_work_view
(
tag_t * work_view
)
tag_t * (tag_t型的指针)work_viewOutput(输出)Tag of work view

 


 
UF_VIEW_ask_xy_clip (查看源代码)
 
定义在: uf_view.h
 
概述
Returns the X and Y clip boundaries of the given view. The clip
boundaries define a rectangle on the Z = 0 plane of View Space.

This function is primarily intended for use by specialized
applications such as Translators. Please note the following:
The clip boundaries returned are those saved in the data base for
the view. If the view is in the current layout, has been changed in
the layout (by, for example, a Zoom), and has not been saved since
it was changed, then the clip boundaries returned by this function
do NOT reflect the changes.

If this is not what you need, consider using uc6431 (Read View
Center and Scale), which returns the current data for the view in
the layout, if it is in the layout, or otherwise returns the data for the
view from the data base.

This function is unusual in that, unlike most Open API
functions, the coordinate space is View Space. View Space is
parallel to the screen, with the center of the view at (0,0,0). The
view center is mapped from Absolute Space to View Space by
applying first the view rotation, then the view translation to it. The
scale in View Space is the same as in Absolute Space.

环境
内部和外部

参见
UF_VIEW_set_xy_clip
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_xy_clip
(
tag_t view_tag,
double xy_clip_bounds [ 4 ]
)
tag_t (tag_t类型)view_tagInput(输入)Tag of the view whose X-Y clip bounds are needed
double (实数型)xy_clip_bounds [ 4 ] Output(输出)Array of the bounds of the view, in view space
(Minimum_X, Maximum_X, Minimum_Y, Maximum_Y)

 


 
UF_VIEW_ask_zoom_scale (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Retrieves the zoom scale of the specified view. This is the value
displayed on the Zoom View menu which is the current scale at which
the view is displayed. If there are multiple occurrences of the view in
the layout, only one arbitrary occurrence is retrieved.
The view must be on the current layout. On a drawing layout, the view
must be a drawing view or a member work view.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_ask_zoom_scale
(
tag_t view_tag,
double * scale
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, work view is used
double * (实数型指针)scaleOutput(输出)The scale for the view

 


 
UF_VIEW_convert_to_model (查看源代码)
 
定义在: uf_view.h
 
概述
This routine converts a view dependent object in the specified view
to the model.

环境
Internal and External

Note: This user function uses the same object filter as that of the view
dependent edit functionality in interactive NX; you cannot change it.

参见
For example please refer to the example

历史
This function was originally released in V15.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_convert_to_model
(
tag_t view_tag,
tag_t object_tag
)
tag_t (tag_t类型)view_tagInput(输入)The tag of the view
tag_t (tag_t类型)object_tagInput(输入)Tag of the view dependent object

 


 
UF_VIEW_convert_to_view (查看源代码)
 
定义在: uf_view.h
 
概述
Converts a model object to the view dependent object in the
specified view.

Note: This user function uses the same object filter as that of the view
dependent edit functionality in interactive NX; you cannot change it.

环境
Internal and External

参见
For example please refer to the example

历史
This function was originally released in V15.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_convert_to_view
(
tag_t view_tag,
tag_t object_tag
)
tag_t (tag_t类型)view_tagInput(输入)The specified view tag.
tag_t (tag_t类型)object_tagInput(输入)The object tag.

 


 
UF_VIEW_copy_view (查看源代码)
 
定义在: uf_view.h
 
概述
Makes a copy of the given view, creating a new view.
The view_to_copy may or may not be currently displayed. The
new_view is NOT displayed by UF_VIEW_copy_view, but you can later
replace the new view into the layout, using uc6464.

The data for the copy is taken from the "saved" parameters of the
view, which are not necessarily the view parameters currently being
used for the view. For example, if UF_VIEW_rotate_view has been
used since the view was displayed, and the view has not been saved
since the call to UF_VIEW_rotate_view, then the saved parameters do
not include the effect of the rotation. If this is not what you want, you
might call uc6450 first, but note that uc6450 does not save a change to
the rotation of one of the eight "canned" views.

This function does not copy any view modifications made to objects in
view_to_copy to new_view. Any view-dependent objects defined in
view_to_copy are not moved to new_view but remain defined in
view_to_copy.

环境
内部和外部

参见
uc6464
uc6450
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_copy_view
(
tag_t view_to_copy,
char * name_of_new_view,
tag_p_t new_view
)
tag_t (tag_t类型)view_to_copyInput(输入)The tag of the view which you want to copy. This
view may not be a drawing view, nor may it be a
view on a drawing.
char * (字符型指针)name_of_new_viewInput(输入)The name of the new view. Must contain valid
characters, must have no more than
UF_OBJ_NAME_LEN characters. There must not
already be a view of this name in the Displayed
part.
tag_p_tnew_viewOutput(输出)The tag of the newly created view

 


 
UF_VIEW_create_view_set (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_create_view_set

Description -
Create a view set from a base view and a list of orthographic view types.
The view set created will reside in the same part as the base view does.
The view set contains a list of orthographic user defined modeling views
with one of the view as base view. All the other view's orientation are
determined by the base view. When base view changes its orientation, all
the other view's orientation will update accordingly.

Note -
The base_view_tag must be a user defined modeling view, it can not
be any canned views. The base_view_type and other_view_types must
be any one within UF_VIEW_standard_orientation_t

Return Codes -
ERROR_OK
UF_VIEW_INVALID_VIEW_TAG
UF_VIEW_INVALID_OBJECT
UF_VIEW_INVALID_ORIENTATION_TYPE
UF_VIEW_CONFLICT_ORIENTATION_TYPE
UF_VIEW_INVALID_NAME
UF_VIEW_NOT_IN_DISPLAYED_PART

See Also -
UF_VIEW_add_to_view_set
UF_VIEW_remove_from_view_set
UF_VIEW_ask_view_set_by_name
UF_VIEW_ask_base_view_of_view_set
UF_VIEW_set_base_view_of_view_set
UF_VIEW_ask_views_of_view_set
UF_VIEW_delete_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_create_view_set
(
const char * name,
tag_t base_view_tag,
UF_VIEW_standard_orientation_t base_view_type,
int num_other_views,
UF_VIEW_standard_orientation_p_t other_view_types,
tag_t * view_set_tag
)
const char *nameInput(输入)The view set name
tag_t (tag_t类型)base_view_tagInput(输入)The Base View in the Set
UF_VIEW_standard_orientation_tbase_view_typeInput(输入)The Base View orthographic type
int (整数型)num_other_viewsInput(输入)The number of other views to add to the set
UF_VIEW_standard_orientation_p_tother_view_typesInput(输入)A list of other view types to add in the set
tag_t * (tag_t型的指针)view_set_tagOutput(输出)the view set object created

 


 
UF_VIEW_cycle_objects (查看源代码)
 
定义在: uf_view.h
 
概述
Cycle objects within a view.

If view is NULL_TAG, the work view is used.

A cycle type of UF_VIEW_VISISBLE_OBJECTS returns all objects which are
visible in the view; when using a cycle type of UF_VIEW_VISIBLE_OBJECTS,
objects which are outside of the view bounds are not returned.

You must not delete, or un-erase objects, or add or remove view
modifications during a cycle as the resulting changes will cause the
outcome of the cycle to be unpredictable.

Do not attempt to delete objects when cycling the database in a loop. Problems
can occur when trying to read the next object when the current object has been
deleted. To delete objects, save an array with the objects in it, and then
when you have completed cycling, use UF_OBJ_delete_array_of_objects to delete
the saved array of objects.


Warning: This function will return curves that are used to display a
solid silhouette in a drawing member view. Use UF_DRAW_ask_group_of_curve
on any curve returned to determine if the curve belongs to a
UF_solid_silhouette_type group.

环境
内部和外部

历史
Originally released in V18.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_cycle_objects
(
tag_t view,
UF_VIEW_cycle_objects_t type,
tag_t * object
)
tag_t (tag_t类型)viewInput(输入)The view to cycle in
- if NULL_TAG, the work view is used
UF_VIEW_cycle_objects_ttypeInput(输入)Object Selection - one of:
UF_VIEW_VISIBLE_OBJECTS
UF_VIEW_DEPENDENT_OBJECTS
UF_VIEW_ERASED_OBJECTS
UF_VIEW_MODIFIED_OBJECTS
tag_t * (tag_t型的指针)objectInput / OutputOn input, the last object found by this routine.
Pass in a NULL_TAG to start the cycle.
On output, is set to the next object.
A NULL_TAG is returned when the cycle is complete.

 


 
UF_VIEW_delete (查看源代码)
 
定义在: uf_view.h
 
概述
Deletes a view or returns an error code stating why view could not be
deleted.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void UF_VIEW_delete
(
tag_t view_obj_id,
int * error_flag
)
tag_t (tag_t类型)view_obj_idInput(输入)Object ID of view to delete
int * (整数型指针)error_flagOutput(输出)Status code:
0 = Success
1 = Can not delete canned view
2 = Can not delete work view
3 = Can not delete drawing view
4 = Can not delete last view in canned lay.
5 = Can not delete sketch view
6 = Can not delete view, view belongs to
at least one layout

 


 
UF_VIEW_delete_view_set (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_delete_view_set

Description -
Delete the view set

Return Codes -
ERROR_OK
UF_VIEW_INVALID_OBJECT
UF_VIEW_INVALID_VIEW_TAG

参见
UF_VIEW_create_view_set
UF_VIEW_add_to_view_set
UF_VIEW_remove_from_view_set
UF_VIEW_ask_view_set_by_name
UF_VIEW_ask_base_view_of_view_set
UF_VIEW_set_base_view_of_view_set
UF_VIEW_ask_views_of_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_delete_view_set
(
tag_t view_set_tag
)
tag_t (tag_t类型)view_set_tagInput(输入)The view set

 


 
UF_VIEW_edit_view_light (查看源代码)
 
定义在: uf_view.h
 
概述
Sets the lighting attributes of a single specified light.

You cannot change the light type, light mode, or direction of the light with
this function.

环境
内部和外部

参见
UF_VIEW_set_view_light
UF_VIEW_ask_view_light

历史
This routine is originally created in release NX3.0.3
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_edit_view_light
(
UF_VIEW_light_name_t light_name,
UF_VIEW_light_attributes_p_t light_attrs
)
UF_VIEW_light_name_tlight_nameInput(输入)Name of light to edit
UF_VIEW_light_attributes_p_tlight_attrsInput(输入)Data structure containing light
attributes

 


 
UF_VIEW_expand_view (查看源代码)
 
定义在: uf_view.h
 
概述
Makes the specified view the work view then expands the view. If the
view is already expanded or if the current layout is a single view, then
the request is ignored. An active layout must exist. The view may be a
member view in a drawing layout. Expanding a drawing member view
is equivalent to entering the Work In Member View mode.

环境
Internal

参见
For example please refer to the example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_expand_view
(
tag_t view_tag
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, work view is used

 


 
UF_VIEW_expand_work_view (查看源代码)
 
定义在: uf_view.h
 
概述
Expands the current work view. If the view was already expanded or if
the current layout is a single view, then the request is ignored. An
active layout must already exist. The layout cannot be a layout with a
drawing.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_expand_work_view
(
void
)

 


 
UF_VIEW_fit_view (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Fits the geometry to the view by the specified fraction. A 1.00 fraction
means all geometry is fitted to the whole view (There is a small
fraction for padding). A 0.50 fraction is approximately a 1.00 fraction
fit plus a half scale. This is equivalent to changing the percentage on
the Display Preferences menu and doing a fit except the value is
specified differently. If there are multiple occurrences of the view in
the layout, only one arbitrary occurrence is changed.

The view must be on the current layout. On a drawing layout, the view
must be a drawing view or a member work view.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_fit_view
(
tag_t view_tag,
double fraction
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, work view is used
double (实数型)fractionInput(输入)The fraction of the view from 0.0 to 1.0

 


 
UF_VIEW_is_expanded (查看源代码)
 
定义在: uf_view.h
 
概述
Checks the expand state of the work view. If the current layout is a
single view, the returned value for expanded is false. An active layout
must currently exist. The expanded view may be a drawing member
view. Checking the expanded state of a drawing member view is
equivalent to checking the Work In Member View mode.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_is_expanded
(
logical * expanded
)
logical *expandedOutput(输出)True if the work view is expanded, else false

 


 
UF_VIEW_map_drawing_to_model (查看源代码)
 
定义在: uf_view.h
 
概述
Maps a point in drawing space to absolute coordinates. Vectors cannot
be mapped using this function. This function maps from drawing member views
to model coordinates only. If the units of the part file and drawing are
different and the input point is in part units then scale the point to
the drawing units before calling this function.

环境
内部和外部

参见
UF_VIEW_map_model_to_drawing

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_map_drawing_to_model
(
tag_t member_view,
double drawing_pt [ 2 ] ,
double model_pt [ 3 ]
)
tag_t (tag_t类型)member_viewInput(输入)A Member View on drawing
double (实数型)drawing_pt [ 2 ] Input(输入)2-D point on the drawing member view
double (实数型)model_pt [ 3 ] Output(输出)Point in absolute space

 


 
UF_VIEW_map_model_to_drawing (查看源代码)
 
定义在: uf_view.h
 
概述
Maps a point in absolute space to drawing coordinates. Vectors cannot
be mapped using this function. This function maps from drawing member views
only. If the units of the part file and drawing are different then scale
the mapped point to the units of the part file where required.

环境
内部和外部

参见
UF_VIEW_map_drawing_to_model

历史
Originally released in V16.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_map_model_to_drawing
(
tag_t member_view,
double model_pt [ 3 ] ,
double map_pt [ 2 ]
)
tag_t (tag_t类型)member_viewInput(输入)A Member View on drawing
double (实数型)model_pt [ 3 ] Input(输入)Point in absolute space
double (实数型)map_pt [ 2 ] Output(输出)2-D point on the drawing

 


 
UF_VIEW_pan_view (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Translates the specified view to the specified center. This has the
effect of changing the view origin with the View pull down menu and
does not trigger a regen. If there are multiple occurrences of the view
in the layout, only one arbitrary occurrence is translated.
The view must be on the current layout. On a drawing layout, the view
must be a drawing view or a member work view.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_pan_view
(
tag_t view_tag,
double center [ 3 ]
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, work view is used
double (实数型)center [ 3 ] Input(输入)Coordinates in absolute space of the new center

 


 
UF_VIEW_remove_from_view_set (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_remove_from_view_set

Description -
Remove an orthographic view from the view set

Return Codes -
ERROR_OK
UF_VIEW_INVALID_OBJECT
UF_VIEW_INVALID_VIEW_TAG
UF_VIEW_INVALID_ORIENTATION_TYPE

See Also -
UF_VIEW_create_view_set
UF_VIEW_add_to_view_set
UF_VIEW_ask_view_set_by_name
UF_VIEW_ask_base_view_of_view_set
UF_VIEW_set_base_view_of_view_set
UF_VIEW_ask_views_of_view_set
UF_VIEW_delete_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_remove_from_view_set
(
tag_t view_set_tag,
UF_VIEW_standard_orientation_t type
)
tag_t (tag_t类型)view_set_tagInput(输入)The view set to add
UF_VIEW_standard_orientation_ttypeInput(输入)The view type to remove

 


 
UF_VIEW_rename (查看源代码)
 
定义在: uf_view.h
 
概述
Renames a view.

环境
内部和外部

历史
Originally released in V17.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_rename
(
tag_t view,
const char * name
)
tag_t (tag_t类型)viewInput(输入)The view that is to be renamed.
const char *nameInput(输入)The new name for the view.

 


 
UF_VIEW_restore_view (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Restores the specified view to the parameters (original scale,
translation, and rotation) that were in effect at either the last reset of
restore data, the last view regen, the last fit, or view save operation.
This is the same as the restore option on the View menu. If there is
nothing to restore, the function is ignored. If there are multiple
occurrences of the view in the layout, only one arbitrary occurrence is
restored.

The view must be on the current layout. On a drawing layout, the view
must be a drawing view or a member work view.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_restore_view
(
tag_t view_tag
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, work view is used

 


 
UF_VIEW_rotate_view (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Rotates the specified view using the view center as the origin of
rotation and about the axis specified in the view space.

It does not trigger a regen. Negative angle means clockwise direction.
If there are multiple occurrences of the view in the layout, only one
arbitrary occurrence is rotated. The view must be on the current layout.
The layout cannot be a layout with drawing.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_rotate_view
(
tag_t view_tag,
double axis [ 3 ] ,
double delta_angle,
int count
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, the work view is used
double (实数型)axis [ 3 ] Input(输入)X,Y,Z axis components in view space
double (实数型)delta_angleInput(输入)The angle in degrees
int (整数型)countInput(输入)The number of times to rotate

 


 
UF_VIEW_rotate_view_abs_csys (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Rotate the specified view using the specified center as origin of
rotation and about the specified axis. The center and the axis are
specified in absolute coordinates. This is the similar to
UF_VIEW_rotate_view but the user can specify the center in absolute
coordinates and the axis is in absolute coordinates. It does not trigger
a regen. A negative angle means rotation in the clockwise direction. If
there are multiple occurrences of the view in the layout, only one
arbitrary occurrence is rotated.

The view must be on the current layout. The layout cannot be a layout
with drawing.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_rotate_view_abs_csys
(
tag_t view_tag,
double center [ 3 ] ,
double axis [ 3 ] ,
double delta_angle,
int count
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, the work view is used.
double (实数型)center [ 3 ] Input(输入)point in abs space
double (实数型)axis [ 3 ] Input(输入)X,Y,Z axis components in abs space
double (实数型)delta_angleInput(输入)The angle in degrees
int (整数型)countInput(输入)The number of times to rotate

 


 
UF_VIEW_save_all_active_views (查看源代码)
 
定义在: uf_view.h
 
概述
Saves all "active" views (those in the current layout) and retains their
current names.

环境
内部和外部

参见
uc6450

历史
Original release was in V14.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_save_all_active_views
(
void
)

 


 
UF_VIEW_set_base_view_of_view_set (查看源代码)
 
定义在: uf_view.h
 
概述
Routine -
UF_VIEW_set_base_view_of_view_set

Description -
Set a new base view in the set.

Return Codes -
ERROR_OK
UF_VIEW_INVALID_OBJECT
UF_VIEW_INVALID_VIEW_TAG
UF_VIEW_INVALID_ORIENTATION_TYPE

参见
UF_VIEW_create_view_set
UF_VIEW_add_to_view_set
UF_VIEW_remove_from_view_set
UF_VIEW_ask_view_set_by_name
UF_VIEW_ask_base_view_of_view_set
UF_VIEW_ask_views_of_view_set
UF_VIEW_delete_view_set

环境
Internal and External

历史
This routine is originally created in release NX3.0
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_set_base_view_of_view_set
(
tag_t view_set_tag,
UF_VIEW_standard_orientation_t type
)
tag_t (tag_t类型)view_set_tagInput(输入)The view set
UF_VIEW_standard_orientation_ttypeInput(输入)The new base view type

 


 
UF_VIEW_set_fog_options (查看源代码)
 
定义在: uf_view.h
 
概述
Sets the fog options of the specified view. The view must have type
UF_VIEW_MODEL_TYPE.

环境
Internal and External

参见
UF_VIEW_ask_fog_options
UF_VIEW_fog_options_t

历史
Originally released in NX4.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_set_fog_options
(
tag_t view_tag,
UF_VIEW_fog_options_p_t fog_options
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG,
the work view is used.
UF_VIEW_fog_options_p_tfog_optionsOutput(输出)New fog options for the view.

 


 
UF_VIEW_set_shaded_edge_options (查看源代码)
 
定义在: uf_view.h
 
概述
Sets the shaded edge options of the specified view. The view must
have type UF_VIEW_MODEL_TYPE.

环境
Internal and External

参见
UF_VIEW_ask_shaded_edge_options
UF_VIEW_shaded_edge_options_t

历史
Originally released in NX4.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_set_shaded_edge_options
(
tag_t view_tag,
UF_VIEW_shaded_edge_options_p_t shaded_edge_options
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG,
the work view is used.
UF_VIEW_shaded_edge_options_p_tshaded_edge_optionsOutput(输出)New shaded edge options for
the view.

 


 
UF_VIEW_set_surface_display_options (查看源代码)
 
定义在: uf_view.h
 
概述
Sets the rendering style and the edge display options of the
specified view. The view must have type UF_VIEW_MODEL_TYPE.

环境
Internal and External

参见
UF_VIEW_ask_surface_display_options
UF_VIEW_rendering_style_t
UF_VIEW_edge_display_options_t

历史
Originally released in NX4.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_set_surface_display_options
(
tag_t view_tag,
UF_VIEW_rendering_style_t rendering_style,
UF_VIEW_edge_display_options_p_t edge_display_options
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG,
the work view is used.
UF_VIEW_rendering_style_trendering_styleInput(输入)The new rendering style for the
view.
UF_VIEW_edge_display_options_p_tedge_display_optionsInput(输入)New edge display options
for the view.

 


 
UF_VIEW_set_view_light (查看源代码)
 
定义在: uf_view.h
 
概述
Sets the lighting attributes for a single specified view. The lights are now
shared between the NX hardware shading and Photo shading.

If no lights were found with the part, the following 2 default lights are
automatically turned on in each view to ensure shaded display
becomes lit:
1. Light name: Default 1 Ambient
Light type: UF_VIEW_AMBIENT_LIGHT
2. Light name : Default 2 Up-Front Dist
Light type: UF_VIEW_DISTANT_LIGHT
Light mode: UF_VIEW_FIXED_TO_OBSERVER
Light Location: 0.8, 0.0, 0.4
Light to: 0.0, 0.0, 0.0

环境
内部和外部

参见
UF_VIEW_ask_view_light
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_set_view_light
(
tag_t view_tag,
UF_VIEW_lighting_t * view_light
)
tag_t (tag_t类型)view_tagInput(输入)Tag of view.
NULL_TAG = Work View
UF_VIEW_lighting_t *view_lightInput(输入)Data structure containing view lighting
parameters

 


 
UF_VIEW_set_visualization (查看源代码)
 
定义在: uf_view.h
 
概述
Sets all of the visualization data. If you pass a NULL_TAG to the view
argument, then the work view is used. This is not intended to work
for drawing member views. For drawing member views use UF_DRAW_set_view_display

Please use
UF_VIEW_set_surface_display_options
and
UF_VIEW_set_fog_options
instead.

环境
(内部和外部)

参见
UF_DRAW_set_view_display

For example please refer to the example

历史
In the V15.0 release, new fields were added to the
UF_VIEW_visualization_s data structure.
In NX4.0, this function is superceded by
UF_VIEW_set_surface_display_options and UF_VIEW_set_fog_options.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_set_visualization
(
tag_t view,
UF_VIEW_visualization_t * view_data
)
tag_t (tag_t类型)viewInput(输入)View to set data for
UF_VIEW_visualization_t *view_dataInput(输入)View visualization data

 


 
UF_VIEW_set_xy_clip (查看源代码)
 
定义在: uf_view.h
 
概述
Sets the X and Y clip boundaries of the given view. The clip boundaries
define a rectangle in on the Z = 0 rectangle of View Space.

This function is primarily intended for use by specialized applications such
as Translators. It is a low-level access function which only modifies the
view's data base setting for the XY clip boundaries.

If the view is currently displayed, the display of the view is not modified by
this function, and if the view is later saved, the clip boundaries given to
this function are overwritten. If this is not what you need, consider using
uc6431 (Set View Center and Scale), which, for displayed views, modifies the
displayed parameters of the view (and not the data base parameters), and for
non-displayed views modifies the data base parameters of the view. Or,
consider using UF_VIEW_pan_view and/or UF_VIEW_zoom_view, which work only on
displayed views, without regenerating the display of the view.

This function is unusual in that, unlike most Open API functions, the
coordinate space is View Space. View Space is parallel to the screen, with
the center of the view at (0,0,0). The view center is mapped from Absolute
Space to View Space by applying first the view rotation, then the view
translation to it. The scale in View Space is the same as in Absolute Space.

环境
内部和外部

参见
UF_VIEW_ask_xy_clip
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_set_xy_clip
(
tag_t view_tag,
double xy_clip_bounds [ 4 ]
)
tag_t (tag_t类型)view_tagInput(输入)Tag of the view whose X-Y clip bounds are to be set
double (实数型)xy_clip_bounds [ 4 ] Input(输入)Array of the bounds of the view, in view space
(Minimum_X, Maximum_X, Minimum_Y, Maximum_Y)

 


 
UF_VIEW_unexpand_work_view (查看源代码)
 
定义在: uf_view.h
 
概述
Unexpands the current work view. If the view is already unexpanded
or if the current layout is a single view then the request is ignored. An
active layout must currently exist. The layout can contain a drawing.
If the expanded view is a drawing member view, then the drawing is
restored. Unexpanding a drawing member view is equivalent to
exiting the Work In Member View mode.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_unexpand_work_view
(
void
)

 


 
UF_VIEW_update_view (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Updates the display of the specified view when losses in resolution
occur due to zooming or any incorrect operations that may affect the
display. This is the same as the update option on the View menu. If
there is nothing to update, the function is ignored. If there are
multiple occurrences of the view in the layout, then only one arbitrary
occurrence is updated. The view must be on the current layout.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_update_view
(
tag_t view_tag
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, work view is used

 


 
UF_VIEW_zoom_view (查看源代码)
 
定义在: uf_view_ugopenint.h
 
概述
Scales the specified view by the specified scale factor. This is the same
as changing the scale on the Zoom View menu and does not trigger a
regen. If there are multiple occurrences of the view in the layout, then
only one arbitrary occurrence is affected.

The view must be on the current layout. On a drawing layout, the view
must be a drawing view or a member work view.

环境
Internal
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_VIEW_zoom_view
(
tag_t view_tag,
double scale
)
tag_t (tag_t类型)view_tagInput(输入)The view tag; if NULL_TAG, work view is used
double (实数型)scaleInput(输入)A positive absolute scale factor