uc6476 (查看源代码)
 
定义在: uf_draw.h
 
概述
(use UF_DRAW_set_display_state)

set drawing display state in the drafting application

Return code:
1 = OK
if not 1,
error_code = UF_DRAWING_STATE_OK
error_code = UF_DRAWING_INVALID_STATE_FLAG
error_code = UF_DRAWING_NOOP_WORK_MEM_VIEW
error_code = UF_DRAWING_STATE_NOT_SET
error_code = UF_DRAWING_NO_VIEW_AVAILABLE

环境
Internal and External
 
需要许可证(S)
drafting

 
int uc6476
(
int view_type
)
int (整数型)view_typeInput(输入)type of view
1 = modeling view
2 = drawing view

 


 
uc6477 (查看源代码)
 
定义在: uf_draw.h
 
概述
(use UF_DRAW_ask_display_state)

ask drawing display state in the drafting application

Return code:
1 = modeling view
2 = drawing view
if not 1 or 2, error_code

环境
Internal and External
 
需要许可证(S)
drafting

 
int uc6477
(
void
)

 


 
uc6478 (查看源代码)
 
定义在: uf_draw.h
 
概述
(use UF_DRAW_create_drawing)

create drawing

Return code:
0 = OK
if not 0,
error_code = UF_DRAWING_DESIGN_IN_CONTEXT
error_code = UF_DRAWING_WORK_IN_MEMBER_VIEW
error_code = UF_DRAWING_INVALID_DRAWING_NAME
error_code = UF_DRAWING_DRAWING_ALREADY_EXISTS
error_code = UF_DRAWING_VIEW_ALREADY_EXISTS
error_code = UF_DRAWING_INVALID_UNITS
error_code = UF_DRAWING_INVALID_SIZE_CODE
error_code = UF_DRAWING_INVALID_DRAWING_SIZE

环境
Internal and External
 
需要许可证(S)
drafting

 
int uc6478
(
const char * drawing_name,
const int drawing_units,
const int size_code,
const double * custom_size
)
const char *drawing_nameInput(输入)drawing name
" " = current drawing
(30 characters max)
const intdrawing_unitsInput(输入)drawing units
1 = inches
2 = millimeters
const intsize_codeInput(输入)drawing size code
0 = custom size
1 = A/A0
2 = B/A1
3 = C/A2
4 = D/A3
5 = E/A4
6 = F/--
7 = H/--
8 = J/--
const double *custom_sizeInput(输入)custom drawing size
[0] height
[1] width

 


 
uc6479 (查看源代码)
 
定义在: uf_draw.h
 
概述
(use UF_DRAW_ask_drawing_info)

ask drawing size

Return code:
0 = OK
if not 0 = error code
21 = DRAWING DOES NOT EXIST
22 = INVALID DRAWING NAME
29 = NO CURRENT DRAWING

环境
Internal and External
 
需要许可证(S)
drafting

 
int uc6479
(
const char * drawing_name,
int * drawing_units,
int * size_code,
double * custom_size
)
const char *drawing_nameInput(输入)drawing name
" " = current drawing
(30 characters max)
int * (整数型指针)drawing_unitsOutput(输出)drawing units
1 = inches
2 = millimeters
int * (整数型指针)size_codeOutput(输出)drawing size code
0 = custom size
1 = A/A0
2 = B/A1
3 = C/A2
4 = D/A3
5 = E/A4
double * (实数型指针)custom_sizeOutput(输出)custom drawing size
[0] height
[1] width

 


 
uc6480 (查看源代码)
 
定义在: uf_draw.h
 
概述
(use UF_DRAW_set_drawing_info)

set drawing size

Return code:
0 = OK
if not 0 = error code
21 = DRAWING DOES NOT EXIST
22 = INVALID DRAWING NAME
29 = NO CURRENT DRAWING
31 = INVALID UNITS
32 = INVALID SIZE CODE
33 = INVALID DRAWING SIZE
36 = CANNOT CHANGE DRAWING SIZE WHILE WORK IN MEMBER VIEW

环境
Internal and External
 
需要许可证(S)
drafting

 
int uc6480
(
const char * drawing_name,
const int drawing_units,
const int size_code,
const double * custom_size
)
const char *drawing_nameInput(输入)drawing name
" " = current drawing
(30 characters max)
const intdrawing_unitsInput(输入)drawing units
1 = inches
2 = millimeters
const intsize_codeInput(输入)drawing size code
0 = custom size
1 = A/A0
2 = B/A1
3 = C/A2
4 = D/A3
5 = E/A4
6 = F/--
7 = H/--
8 = J/--
const double *custom_sizeInput(输入)custom drawing size
[0] height
[1] width

 


 
uc6481 (查看源代码)
 
定义在: uf_draw.h
 
概述
Use UF_DRAW_import_view
uc6481 add view to drawing
 
需要许可证(S)
drafting

 
int uc6481
(
const char * dwg_name,
const char * view_name,
const double * reference_pt,
const int view_status
)
const char *dwg_nameInput(输入)
const char *view_nameInput(输入)
const double *reference_ptInput(输入)
const intview_statusInput(输入)

 


 
uc6482 (查看源代码)
 
定义在: uf_draw.h
 
概述
Use UF_VIEW_delete
uc6482 remove view from drawing
 
需要许可证(S)
drafting

 
int uc6482
(
const char * dwg_name,
const char * view_name
)
const char *dwg_nameInput(输入)
const char *view_nameInput(输入)

 


 
uc6483 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6483 read view reference point on drawing
Use UF_DRAW_ask_drawing_ref_pt
This is actually the drawing reference point
 
需要许可证(S)
drafting

 
int uc6483
(
const char * dwg_name,
const char * view_name,
double * reference_pt
)
const char *dwg_nameInput(输入)
const char *view_nameInput(输入)
double * (实数型指针)reference_ptOutput(输出)

 


 
uc6484 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6484 set view reference point on drawing
Use UF_DRAW_set_drawing_ref_pt
 
需要许可证(S)
drafting

 
int uc6484
(
const char * dwg_name,
const char * view_name,
const double * reference_pt
)
const char *dwg_nameInput(输入)
const char *view_nameInput(输入)
const double *reference_ptInput(输入)

 


 
uc6485 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6485 read view borders on current drawing
Use UF_DRAW_ask_view_borders
 
需要许可证(S)
drafting

 
int uc6485
(
char * cp1,
double * rr2
)
char * (字符型指针)cp1
double * (实数型指针)rr2

 


 
uc6486 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6486 set view borders on current drawing
 
需要许可证(S)
drafting

 
int uc6486
(
char * cp1,
double * rp2
)
char * (字符型指针)cp1
double * (实数型指针)rp2

 


 
uc6488 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6488 read view status in drawing
Use UF_DRAW_ask_view_status
 
需要许可证(S)
drafting

 
int uc6488
(
const char * dwg_name,
const char * view_name,
int * view_status
)
const char *dwg_nameInput(输入)
const char *view_nameInput(输入)
int * (整数型指针)view_statusOutput(输出)

 


 
uc6489 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6489 set view status in drawing
Use UF_DRAW_set_view_status
 
需要许可证(S)
drafting

 
int uc6489
(
const char * dwg_name,
const char * view_name,
const int view_status
)
const char *dwg_nameInput(输入)
const char *view_nameInput(输入)
const intview_statusInput(输入)

 


 
uc6492 (查看源代码)
 
定义在: uf_draw.h
 
概述
Use UF_DRAW_ask_current_drawing and UF_OBJ_ask_name.
uc6492 read current drawing name
 
需要许可证(S)
drafting

 
int uc6492
(
char * cr1
)
char * (字符型指针)cr1Output(输出)This parameter must be a character buffer large enough to
hold the returned drawing name (UF_OBJ_NAME_LEN + 1).

 


 
uc6494 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6494 retrieve drawing
Use UF_DRAW_open_drawing
 
需要许可证(S)
drafting

 
int uc6494
(
const char * dwg_name
)
const char *dwg_name

 


 
uc6495 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6495 delete drawing
Use UF_DRAW_delete_drawing
 
需要许可证(S)
drafting

 
int uc6495
(
const char * dwg_name
)
const char *dwg_name

 


 
uc6496 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6496 rename drawing
Use UF_DRAW_rename_drawing
 
需要许可证(S)
drafting

 
int uc6496
(
const char * old_dwg_name,
const char * new_dwg_name
)
const char *old_dwg_nameInput(输入)
const char *new_dwg_nameInput(输入)

 


 
uc6497 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6497 cycle drawings in a part

Return code of 0 = OK
21 = Drawing does not exist
22 = Invalid Drawing Name
all other numbers - error

环境
Internal and External
 
需要许可证(S)
drafting

 
int uc6497
(
char * ca1
)
char * (字符型指针)ca1Input / OutputDrawing name - 30 characters max.
Pass in an empty string to start the cycle.
By calling this function in a loop and passing
the last drawing name - the next drawing will be
returned. An empty string is returned when
all drawings have been cycled.

 


 
uc6498 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6498 read number of views in a drawing
 
需要许可证(S)
drafting

 
int uc6498
(
char * cp1,
int * ir2
)
char * (字符型指针)cp1
int * (整数型指针)ir2

 


 
uc6499 (查看源代码)
 
定义在: uf_draw.h
 
概述
uc6499 cycle views in drawing
 
需要许可证(S)
drafting

 
int uc6499
(
char * cp1,
char * ca2
)
char * (字符型指针)cp1
char * (字符型指针)ca2

 


 
UF_DRAW_add_auxiliary_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Adds an auxiliary view to the current drawing.

环境
内部和外部

参见
See the example

历史
This function was originally released in V15.0
 
需要许可证(S)
drafting

 
int UF_DRAW_add_auxiliary_view
(
const tag_t drawing_tag,
const tag_t parent_view_tag,
const tag_t hinge_line_tag,
double dwg_reference_point [ 2 ] ,
tag_t * aux_view_tag
)
const tag_tdrawing_tagInput(输入)The drawing tag (must be current drawing).
const tag_tparent_view_tagInput(输入)tag of parent view.
const tag_thinge_line_tagInput(输入)tag of smart hinge line
double (实数型)dwg_reference_point [ 2 ] Input(输入)Drawing reference point (drawing
coordinates)
tag_t * (tag_t型的指针)aux_view_tagOutput(输出)tag of auxiliary view

 


 
UF_DRAW_add_circ_detail_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Adds an associative circular detail view to the current drawing.

环境
内部和外部

参见
See example

历史
Original release was in V15.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_add_circ_detail_view
(
const tag_t drawing_tag,
const tag_t parent_view_tag,
const tag_t center_pt_tag,
const tag_t circle_pt_tag,
const double view_scale,
double dwg_reference_point [ 2 ] ,
tag_t * detail_view_tag
)
const tag_tdrawing_tagInput(输入)The drawing tag (must be current drawing).
const tag_tparent_view_tagInput(输入)tag of parent view.
const tag_tcenter_pt_tagInput(输入)tag of smart center point for the detail
circle.
const tag_tcircle_pt_tagInput(输入)tag of smart point on the detail circle.
const doubleview_scaleInput(输入)The desired view scale
double (实数型)dwg_reference_point [ 2 ] Input(输入)Drawing reference point (drawing
coordinates)
tag_t * (tag_t型的指针)detail_view_tagOutput(输出)tag of detail view

 


 
UF_DRAW_add_detail_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This function adds a detailed view to the current drawing.
There is currently a restriction requiring the input drawing
tag to be the tag of the current drawing. We intend to relax this
restriction in the future. As a result, we are requiring the input tag to
ensure that future code changes will not be required by NX Open
API developers.

环境
内部和外部

参见
See the example

历史
Original release was in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_add_detail_view
(
const tag_t drawing_tag,
const tag_t parent_view_tag,
double xy1 [ 2 ] ,
double xy2 [ 2 ] ,
const double view_scale,
double dwg_reference_point [ 2 ] ,
tag_t * detail_view_tag
)
const tag_tdrawing_tagInput(输入)Drawing Tag, must be the current drawing.
const tag_tparent_view_tagInput(输入)tag of parent view.
double (实数型)xy1 [ 2 ] Input(输入)Left lower corner of area to create detailed view, in
drawing coordinates (x1,y1).
double (实数型)xy2 [ 2 ] Input(输入)Right upper corner of area to create detailed view,
in drawing coordinates (x2, y2). This corner should
be the diagonal corner to corner1.
const doubleview_scaleInput(输入)desired view scale of detailed view.
double (实数型)dwg_reference_point [ 2 ] Input(输入)Drawing Reference point (in drawing
coordinates x,y)
tag_t * (tag_t型的指针)detail_view_tagOutput(输出)tag of new detail view.

 


 
UF_DRAW_add_orthographic_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Adds an orthographic view to the current drawing.

环境
内部和外部

参见
UF_DRAW_proj_dir_t
See the example

历史
This function was originally released in V15.0
 
需要许可证(S)
drafting

 
int UF_DRAW_add_orthographic_view
(
const tag_t drawing_tag,
const tag_t parent_view_tag,
const UF_DRAW_proj_dir_t projection_direction,
double dwg_reference_point [ 2 ] ,
tag_t * ortho_view_tag
)
const tag_tdrawing_tagInput(输入)The drawing tag (must be current
drawing).
const tag_tparent_view_tagInput(输入)tag of parent view.
const UF_DRAW_proj_dir_tprojection_directionInput(输入)direction of projection if none
specified, the projection
direction is determined by the
location of the drawing
reference point relative to the
center of the parent view
double (实数型)dwg_reference_point [ 2 ] Input(输入)Drawing reference point (drawing
coordinates)
tag_t * (tag_t型的指针)ortho_view_tagOutput(输出)tag of orthographic view

 


 
UF_DRAW_add_sxline_sxseg (查看源代码)
 
定义在: uf_draw.h
 
概述
Adds a segment to a section line, then updates all of its associated
section views located on the current drawing. Associated section views
not on the current drawing are marked out of date. To perform this
edit on the section line without an update, use the suppress view
update feature provided in UF_DRF_set_suppress_view_update.


Figure. Adding a new segment to a section line.

环境
内部和外部

参见
UF_DRF_set_suppress_view_update
 
需要许可证(S)
drafting

 
int UF_DRAW_add_sxline_sxseg
(
tag_t sxline_tag,
UF_DRAW_sxseg_type_t sxseg_type,
UF_DRAW_sxline_leg_t sxline_leg,
UF_DRF_object_p_t object,
tag_t * sxseg_tag
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of section line
UF_DRAW_sxseg_type_tsxseg_typeInput(输入)Segment_type:
UF_DRAW_sxseg_cut = cut segment
(only type currently supported for add)
UF_DRAW_sxline_leg_tsxline_legInput(输入)If a section line is a two-legged revolved
type ,
UF_DRAW_sxline_leg1= add segment to leg 1
UF_DRAW_sxline_leg2= add segment to leg 2
UF_DRF_object_p_tobjectInput(输入)Object to associate new segment to
tag_t * (tag_t型的指针)sxseg_tagOutput(输出)Tag of added section segment

 


 
UF_DRAW_add_sxseg (查看源代码)
 
定义在: uf_draw.h
 
概述
Adds a segment to a section line, then updates all of its associated
section views located on the current drawing. Associated section views
not on the current drawing are marked out of date. To perform this
edit on the section line without an update, use the suppress view
update feature provided in UF_DRF_set_suppress_view_update.

环境
内部和外部

参见
UF_DRAW_sxline_sxsegs_t
UF_DRF_set_suppress_view_update
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_add_sxseg
(
tag_t sxline_tag,
UF_DRAW_sxline_sxsegs_p_t sxseg_data,
tag_t * sxseg_tag
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of section line
UF_DRAW_sxline_sxsegs_p_tsxseg_dataInput(输入)Segment data contains:
segment type: UF_DRAW_sxseg_cut,
linear segment angle, and object to
associate to
tag_t * (tag_t型的指针)sxseg_tagOutput(输出)Tag of newly created section line
segment.

 


 
UF_DRAW_ask_auto_update (查看源代码)
 
定义在: uf_draw.h
 
概述
Queries the current value of the Automatic Update preference
setting.

环境
内部和外部

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

 
int UF_DRAW_ask_auto_update
(
tag_t view_tag,
logical * auto_update
)
tag_t (tag_t类型)view_tagInput(输入)Tag of section view
logical *auto_updateOutput(输出)TRUE = Automatically update the view
FALSE = Do not automatically update the view

 


 
UF_DRAW_ask_body_sils_in_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Outputs an array of silhouettes of the input body that reside in the
input drawing member view.

环境
内部和外部

参见
See the example

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

 
int UF_DRAW_ask_body_sils_in_view
(
tag_t body_tag,
tag_t view_tag,
int * num_silhouettes,
tag_p_t * silhouette_tags
)
tag_t (tag_t类型)body_tagInput(输入)Tag of a body
tag_t (tag_t类型)view_tagInput(输入)Tag of a drawing member view
int * (整数型指针)num_silhouettesOutput(输出)Number of silhouettes
tag_p_t *silhouette_tagsOutput to be freed
输出并释放
If num_silhouettes > 0, this is an
array of silhouette tags. Use
UF_free to deallocate this memory.

 


 
UF_DRAW_ask_border_color (查看源代码)
 
定义在: uf_draw.h
 
概述
UF_DRAW_ask_border_color

DESCRIPTION -
Output the color of view borders


PARAMETERS -
border_color <O> Color of view borders
Returns -
0 = OK
if not 0 = error code
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRAW_ask_border_color
(
int * border_color
)
int * (整数型指针)border_colorOutput(输出)

 


 
UF_DRAW_ask_border_display (查看源代码)
 
定义在: uf_draw.h
 
概述
UF_DRAW_ask_border_display

DESCRIPTION -
Ask the view border display status


PARAMETERS -
border_display <O> True if borders are displayed
Returns -
0 = OK
if not 0 = error code
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRAW_ask_border_display
(
logical * border_display
)
logical *border_displayOutput(输出)

 


 
UF_DRAW_ask_bound_by_objects (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves the view's bounded objects.

环境
内部和外部

参见
UF_DRAW_define_bound_by_objects
See the example

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

 
int UF_DRAW_ask_bound_by_objects
(
const tag_t view_tag,
int* num_objects,
tag_t* * bounded_objects
)
const tag_tview_tagInput(输入)Tag of view whose model reference point is to be obtained.
int*num_objectsOutput(输出)Pointer to int that represents the number
of object tags returned.
tag_t* *bounded_objectsOutput to be freed
输出并释放
Pointer to tag array of objects used to
calculate the bounding box for the view
boundary. Use UF_free() to free this
array when done.

 


 
UF_DRAW_ask_boundary_curves (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves the view boundary curves, the smart defining points of those
curves, and the tolerance. These items are used to create an arbitrary
clipping bound for a view.

环境
内部和外部

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

 
int UF_DRAW_ask_boundary_curves
(
tag_t view_tag,
double * tolerance,
int * num_curves,
UF_DRAW_view_boundary_t * * boundary_curves
)
tag_t (tag_t类型)view_tagInput(输入)Tag of view whose view boundary curves are to be obtained.
double * (实数型指针)toleranceOutput(输出)The chain tolerance used to create the arbitrary clipping
bounds for this view.
int * (整数型指针)num_curvesOutput(输出)Count of structures.
= 0 if view does not have an arbitrary boundary defined.
UF_DRAW_view_boundary_t * *boundary_curvesOutput to be freed
输出并释放
Pointer to view boundary structure.
Use UF_DRAW_free_boundary to free
the pointer. If a boundary curve
has been deleted, its curve_tag will
be NULL.

 


 
UF_DRAW_ask_boundary_type (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves the view's boundary type.

环境
内部和外部

参见
See the example

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

 
int UF_DRAW_ask_boundary_type
(
const tag_t view_tag,
UF_DRAW_boundary_type_t * boundary_type
)
const tag_tview_tagInput(输入)Tag of view whose model reference point is to be
obtained.
UF_DRAW_boundary_type_t *boundary_typeOutput(输出)Boundary type of member view:
UF_DRAW_BREAK_DETAIL_TYPE,
UF_DRAW_MANUAL_RECTANGLE_TYPE,
UF_DRAW_AUTOMATIC_RECTANGLE_TYPE,
UF_DRAW_BOUND_BY_OBJECTS_TYPE

 


 
UF_DRAW_ask_break_region_data (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the break region data for a given break region.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_broken_view.c to review an example of using
this function.

环境
Internal and External

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

 
int UF_DRAW_ask_break_region_data
(
tag_t region,
UF_DRAW_break_region_data_p_t break_region_data
)
tag_t (tag_t类型)regionInput(输入)Tag of the break region.
UF_DRAW_break_region_data_p_tbreak_region_dataOutput(输出)Break region data.

 


 
UF_DRAW_ask_break_regions (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the array of break regions for a given view.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_broken_view.c to review an example of using
this function.

环境
Internal and External

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

 
int UF_DRAW_ask_break_regions
(
tag_t view_tag,
int * num_regions,
tag_p_t * break_regions
)
tag_t (tag_t类型)view_tagInput(输入)View to be queried
int * (整数型指针)num_regionsOutput(输出)Number of break regions
tag_p_t *break_regionsOutput to be freed
输出并释放
Tags of the break regions;
may be NULL

 


 
UF_DRAW_ask_breakout_data (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the breakout data from a given breakout
section.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_cre_breakout.c to review an example of using
this function.

环境
Internal and External

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

 
int UF_DRAW_ask_breakout_data
(
tag_t breakline,
tag_p_t view_tag,
UF_DRAW_breakout_data_p_t breakout_data
)
tag_t (tag_t类型)breaklineInput(输入)Tag of the breakout section.
tag_p_tview_tagOutput(输出)View which contains the
given breakout section.
UF_DRAW_breakout_data_p_tbreakout_dataOutput(输出)Breakout section data.

 


 
UF_DRAW_ask_comp_section_in_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine asks whether or not the component of a given section view
is defined to be sectioned or non-sectioned.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_comp_section_in_view.c to review an example
of using this function.

环境
Internal and External

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

 
int UF_DRAW_ask_comp_section_in_view
(
const tag_t component,
const tag_t sx_view,
UF_DRAW_comp_section_in_view_t * sx_property
)
const tag_tcomponentInput(输入)Tag of the component
in the section view.
const tag_tsx_viewInput(输入)Tag of the section view.
UF_DRAW_comp_section_in_view_t *sx_propertyOutput(输出)Sectioning property
UF_DRAW_NON_SECTIONED
UF_DRAW_SECTIONED
UF_DRAW_NOT_VIEW_SPECIFIED

 


 
UF_DRAW_ask_current_drawing (查看源代码)
 
定义在: uf_draw.h
 
概述
n
Returns the tag of the current drawing.

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

 
int UF_DRAW_ask_current_drawing
(
tag_t * drawing_tag
)
tag_t * (tag_t型的指针)drawing_tagOutput(输出)Tag of current drawing

 


 
UF_DRAW_ask_curve_group_members (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine gets members and count of members of a drafting curve group.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

环境
Internal and External

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

 
int UF_DRAW_ask_curve_group_members
(
tag_t curve_group,
tag_t* * curves,
int * curve_count
)
tag_t (tag_t类型)curve_groupInput(输入)Tag of drafting curve group
tag_t* *curvesOutput to be freed
输出并释放
curve_count
Tag array of all curves in the drafting curve group and must be freed
by UF_free()
int * (整数型指针)curve_countOutput(输出)Number of curves in the drafting curve group

 


 
UF_DRAW_ask_curve_of_sxedge (查看源代码)
 
定义在: uf_draw.h
 
概述
Given the tag of a section edge, outputs the tag of its curve. Note that
section edges that result from a section line's bend segment do not
have an associated curve tag. If a section edge from a bend segment is
input to this function, curve_tag is returned as a pointer to a null tag.

返回
Return code:
0 = No error
UF_DRAW_no_sxedge_curve = warning
not 0 = Error code

环境
内部和外部

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

 
int UF_DRAW_ask_curve_of_sxedge
(
tag_t sxseg_tag,
tag_t* curve_tag
)
tag_t (tag_t类型)sxseg_tagInput(输入)section edge tag
tag_t*curve_tagOutput(输出)section edge curve tag

 


 
UF_DRAW_ask_display_state (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the drawing display state in the drafting
application. The view_type parameter does not indicate what type of view
is being displayed, it indicates what will be displayed when you are in
the Drafting application.
To determine if a drawing is currently displayed in any application, use
UF_DRAW_ask_current_drawing.
To determine the type of the work view, use UF_VIEW_ask_work_view
then UF_VIEW_ask_type.

环境
Internal and External

参见
See the example program ufd_drw_ask_display_state.c

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

 
int UF_DRAW_ask_display_state
(
int * view_type
)
int * (整数型指针)view_typeOutput(输出)Flag Setting:
1 = Modeling View
2 = Drawing View

 


 
UF_DRAW_ask_displayed_objects (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine outputs the diusplayed objects which were defined by the user.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

环境
Internal and External

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

 
int UF_DRAW_ask_displayed_objects
(
const tag_t view,
int * num_objects,
tag_p_t * objects
)
const tag_tviewInput(输入)Tag of the view
int * (整数型指针)num_objectsOutput(输出)Number of objects
tag_p_t *objectsOutput to be freed
输出并释放
num_objects
An array of objects and must be freed
by UF_free()

 


 
UF_DRAW_ask_dmv_rotation_plane (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine outputs the plane tag which is associated with the view
orientation.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

环境
Internal and External

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

 
int UF_DRAW_ask_dmv_rotation_plane
(
const tag_t view,
tag_p_t plane
)
const tag_tviewInput(输入)Tag of the view
tag_p_tplaneOutput(输出)The associated plane

 


 
UF_DRAW_ask_drawing_info (查看源代码)
 
定义在: uf_draw.h
 
概述
This function retrieves the information about a drawing, including the
size, scale, units, and projection angle.

环境
内部和外部

参见
UF_DRAW_set_drawing_info
See the example

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

 
int UF_DRAW_ask_drawing_info
(
tag_t drawing_tag,
UF_DRAW_info_t * drawing_info
)
tag_t (tag_t类型)drawing_tagInput(输入)Drawing Tag - if a NULL_TAG is passed in for the drawing_tag,
the current drawing will be used.
UF_DRAW_info_t *drawing_infoOutput(输出)Pointer to Drawing Info Structure

 


 
UF_DRAW_ask_drawing_of_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the tag of the drawing which contains the
given member view or drawing sheet view.

环境
Internal and External

参见
See the example program ufd_drf_edit_dim_assoc.c

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

 
int UF_DRAW_ask_drawing_of_view
(
const tag_t member_view,
tag_t * drawing
)
const tag_tmember_viewInput(输入)Tag of view whose drawing is unknown.
may also be a drawing sheet view
tag_t * (tag_t型的指针)drawingOutput(输出)Tag of the drawing containing
member_view. NULL_TAG if not found.

 


 
UF_DRAW_ask_drawing_ref_pt (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine reads the drawing reference point for a view on the drawing.
This is the point which controls where the view is on the drawing sheet.

环境
Internal and External

参见
See the example program ufd_drw_cre_simple_sxvw.c

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

 
int UF_DRAW_ask_drawing_ref_pt
(
const tag_t view_tag,
double * reference_pt
)
const tag_tview_tagInput(输入)Tag of the view.
Must be a member view. If NULL_TAG,
the work view is used. It will cause
an error if the work view is not a
member view.
double * (实数型指针)reference_ptOutput(输出)Reference point
(Drawing Coordinates).
[0] - X-coordinate
[1] - Y-coordinate

 


 
UF_DRAW_ask_drawings (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine returns an array of all of the drawings in
the current work part.

Please reference ufd_drw_object_out_of_date.c to review an example of
using this function.

参见
See the example program ufd_drw_object_out_of_date.c

环境
(内部和外部)

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

 
int UF_DRAW_ask_drawings
(
int * num_drawings,
tag_p_t * drawing_tags
)
int * (整数型指针)num_drawingsOutput(输出)Number of drawings.
tag_p_t *drawing_tagsOutput to be freed
输出并释放
Array of drawing tags.
Use UF_free to free this memory.

 


 
UF_DRAW_ask_face_of_sil (查看源代码)
 
定义在: uf_draw.h
 
概述
Outputs the associated face of a given silhouette that resides in a
drawing member view. The silhouette must be a line, circle, conic or
spline type object.

环境
内部和外部

参见
See the example

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

 
int UF_DRAW_ask_face_of_sil
(
tag_t silhouette_tag,
tag_t * face_tag
)
tag_t (tag_t类型)silhouette_tagInput(输入)Tag of silhouette in a drawing member view
Must be a line, circle, conic, or spline type.
tag_t * (tag_t型的指针)face_tagOutput(输出)Tag of face that the silhouette is
associated to

 


 
UF_DRAW_ask_face_sils_in_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Outputs an array of silhouettes of the input face that reside in the
input drawing member view.

环境
内部和外部

参见
Please see the example

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

 
int UF_DRAW_ask_face_sils_in_view
(
tag_t face_tag,
tag_t view_tag,
int * num_silhouettes,
tag_p_t * sil_tags
)
tag_t (tag_t类型)face_tagInput(输入)Tag of a face
tag_t (tag_t类型)view_tagInput(输入)Tag of a drawing member view
int * (整数型指针)num_silhouettesOutput(输出)Number of silhouettes
tag_p_t *sil_tagsOutput to be freed
输出并释放
If num_silhouettes > 0, this is an
array of silhouette tags. Use UF_free
to deallocate memory when done.

 


 
UF_DRAW_ask_group_of_curve (查看源代码)
 
定义在: uf_draw.h
 
概述
Given the tag of a curve, outputs the tag of the associated drawing
member view curve group, the group's type, and subtype.

环境
内部和外部

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

 
int UF_DRAW_ask_group_of_curve
(
tag_t curve_tag,
tag_t * group_tag,
int * group_type,
int * group_subtype
)
tag_t (tag_t类型)curve_tagInput(输入)Tag of curve
tag_t * (tag_t型的指针)group_tagOutput(输出)Tag of drawing member view curve group.
The group_tag is a NULL_TAG if curve is
not a drafting edge.
int * (整数型指针)group_typeOutput(输出)Type of drawing member view curve group,
either:
UF_solid_silhouette_type,
UF_solid_section_type or
UF_curve_group_type
int * (整数型指针)group_subtypeOutput(输出)Subtype of drawing member view curve
group:
If group is UF_solid_silhouette_type,
either UF_solid_silhouette_sl_subtype,
UF_solid_silhouette_uvhatch_subtype, or
UF_vicurve_subtype
Else if group is UF_curve_group_type,
either UF_dropped_edge_group_subtype or
UF_simplified_group_subtype
Else = 0

 


 
UF_DRAW_ask_half_sxline (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves half section line information, given the tag of the section
line. If a section line has an invalid section line status it
does not independently cause the return code to be set to a non-zero
value.

环境
内部和外部

参见
UF_DRAW_sxline_status_t
See UF_DRAW_create_half_sxview
for more information about half section lines and views.
See the example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRAW_ask_half_sxline
(
tag_t sxline_tag,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t * pview_tag,
int * num_sxviews,
tag_p_t * sxview_tags,
int * num_sxsegs,
tag_p_t * sxseg_tags,
UF_DRAW_sxline_status_t * sxline_status
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of half section line to query
double (实数型)step_dir [ 3 ] Output(输出)Step direction vector (unitized) relative
to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Output(输出)Arrow direction vector (unitized) relative
to the drawing:
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t * (tag_t型的指针)pview_tagOutput(输出)Parent view tag
int * (整数型指针)num_sxviewsOutput(输出)Number of section views associated to the
input section line
tag_p_t *sxview_tagsOutput to be freed
输出并释放
Array of Section line's section views
Use UF_free to free memory
int * (整数型指针)num_sxsegsOutput(输出)Number of section line segments
tag_p_t *sxseg_tagsOutput to be freed
输出并释放
Array of section line segment tags
Use UF_free to free memory
UF_DRAW_sxline_status_t *sxline_statusOutput(输出)Section line status

 


 
UF_DRAW_ask_num_drawings (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine returns the number of drawings in the current work part.

环境
Internal and External

参见
See the example program ufd_drw_ask_num_drawings.c

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

 
int UF_DRAW_ask_num_drawings
(
int * num_drawings
)
int * (整数型指针)num_drawingsOutput(输出)Number of drawings.

 


 
UF_DRAW_ask_num_views (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine returns the number of views in the given drawing.

环境
Internal and External

参见
See the example program ufd_drw_ask_num_views.c

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

 
int UF_DRAW_ask_num_views
(
const tag_t drawing_tag,
int * num_views
)
const tag_tdrawing_tagInput(输入)Tag of the drawing.
If NULL_TAG, use current drawing.
int * (整数型指针)num_viewsOutput(输出)Number of views in the drawing.

 


 
UF_DRAW_ask_pictorial_sxline (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves information from a pictorial section
line, given the tag of the section line. A pictorial section
line cannot be revolved or unfolded.

返回
0 = OK
if not 0 = Failure error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_cre_dmv_sxvw.c to review an example of
using this function.

参见
UF_DRAW_sxline_status_t

环境
(内部和外部)

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

 
int UF_DRAW_ask_pictorial_sxline
(
tag_t sxline_tag,
UF_DRAW_sxline_type_t * sxline_type,
double cut_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t * parent_view_tag,
int * num_sxviews,
tag_p_t * sxview_tags,
int * num_sxsegs,
tag_p_t * sxseg_tags,
logical * pictorial_sxview,
UF_DRAW_sxline_status_t * sxline_status
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of the section line.
UF_DRAW_sxline_type_t *sxline_typeOutput(输出)Type of section line.
double (实数型)cut_dir [ 3 ] Output(输出)Original user-specified
cut direction:
cut_dir[0] = x value
cut_dir[1] = y value
cut_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Output(输出)Original user-specified
arrow direction:
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t * (tag_t型的指针)parent_view_tagOutput(输出)Parent view tag.
int * (整数型指针)num_sxviewsOutput(输出)Number of section
views associated
to the input section line.
tag_p_t *sxview_tagsOutput to be freed
输出并释放
Array of section
line's section views. Use
UF_free to free this.
int * (整数型指针)num_sxsegsOutput(输出)Number of section
line segments.
tag_p_t *sxseg_tagsOutput to be freed
输出并释放
Array of section line
segment tags. Use UF_free
to free this.
logical *pictorial_sxviewOutput(输出)Whether or not the
section view is pictorial.
UF_DRAW_sxline_status_t *sxline_statusOutput(输出)Section line status

 


 
UF_DRAW_ask_render_set_objects (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the objects (solids or component sets) the given
render set reference.

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

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

 
int UF_DRAW_ask_render_set_objects
(
tag_t render_set,
int * number_objects,
tag_p_t * objects
)
tag_t (tag_t类型)render_setInput(输入)Tag of render set.
int * (整数型指针)number_objectsOutput(输出)Number of objects referenced by the render set.
tag_p_t *objectsOutput to be freed
输出并释放
Array of solids or component sets to be
referenced by the render set. Use UF_free() to
free the memory pointed to by this variable.

 


 
UF_DRAW_ask_render_set_parms (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the display parameters for a given render set.

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

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

 
int UF_DRAW_ask_render_set_parms
(
tag_t render_set,
UF_DRAW_render_prefs_t * render_parms
)
tag_t (tag_t类型)render_setInput(输入)Tag of render set. If this is
a NULL_TAG, the function
retrieves the default
parameters.
UF_DRAW_render_prefs_t *render_parmsOutput(输出)Pointer to render set
preferences structure, with
settings for visible and hidden
line color, font, and widths,
edge hiding edge and hidden
line options.

 


 
UF_DRAW_ask_render_sets (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the render sets in the current part.

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

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

 
int UF_DRAW_ask_render_sets
(
int * number_render_sets,
tag_p_t * render_sets
)
int * (整数型指针)number_render_setsOutput(输出)Number of render sets in the part.
tag_p_t *render_setsOutput to be freed
输出并释放
Array of render sets in the current part.
Use UF_free to free the memory.

 


 
UF_DRAW_ask_render_sets_of_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the render sets references by the given drawing member
view. These render sets are listed in the order they are rendered in.

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

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

 
int UF_DRAW_ask_render_sets_of_view
(
tag_t view,
int * number_render_sets,
tag_p_t * render_sets
)
tag_t (tag_t类型)viewInput(输入)Tag of drawing member view.
int * (整数型指针)number_render_setsOutput(输出)Number of render sets
tag_p_t *render_setsOutput to be freed
输出并释放
Array of render sets referenced by the
given view. They are listed in the
rendering order. This array must be freed
by calling UF_free.

 


 
UF_DRAW_ask_revolved_sxline (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves revolved section line information, given the tag of the
section line. Note that if a section line has a invalid section line status
it does not independently cause the return code to be set to a
non-zero value.

环境
内部和外部

参见
UF_DRAW_sxline_status_t
See UF_DRAW_create_revolved_sxview
for more information about revolved section lines and views.
See the example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRAW_ask_revolved_sxline
(
tag_t sxline_tag,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t * pview_tag,
UF_DRF_object_t * rotpt_object,
int * num_sxviews,
tag_p_t * sxview_tags,
int * num_sxsegs,
int * num_leg1_sxsegs,
UF_DRAW_sxline_leg_t * cut_plane_leg,
tag_p_t * sxseg_tags,
UF_DRAW_sxline_status_t * sxline_status
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of revolved section line to query
double (实数型)step_dir [ 3 ] Output(输出)Step direction vector (unitized)
relative to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Output(输出)Arrow direction vector (unitized)
relative to the drawing:
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t * (tag_t型的指针)pview_tagOutput(输出)Parent view tag
UF_DRF_object_t *rotpt_objectOutput(输出)Object associated to rotation point
int * (整数型指针)num_sxviewsOutput(输出)Number of section views associated to
section line
tag_p_t *sxview_tagsOutput to be freed
输出并释放
Array of section line's section view
tags Use UF_free to free memory
int * (整数型指针)num_sxsegsOutput(输出)Number of section line segments.
int * (整数型指针)num_leg1_sxsegsOutput(输出)Number of section segments input to
define the first leg. Cannot be greater
than num_sxsegs. Any remaining segments
define leg2.
UF_DRAW_sxline_leg_t *cut_plane_legOutput(输出)Leg used to define cut plane
= UF_DRAW_sxline_leg1
= UF_DRAW_sxline_leg2
tag_p_t *sxseg_tagsOutput to be freed
输出并释放
Array of section line segment tags Use
UF_free to free memory
UF_DRAW_sxline_status_t *sxline_statusOutput(输出)Section line status

 


 
UF_DRAW_ask_simple_sxline (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves simple section line information, given the tag of the section
line. If a section line has an invalid section line status, this
does not independently cause the return code to be set to a non-zero
value.

环境
内部和外部

参见
UF_DRAW_sxline_status_t
See UF_DRAW_create_simple_sxview
for more information about simple section lines and views.
See the example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRAW_ask_simple_sxline
(
tag_t sxline_tag,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t * pview_tag,
int * num_sxviews,
tag_p_t * sxview_tags,
int * num_sxsegs,
tag_p_t * sxseg_tags,
UF_DRAW_sxline_status_t * sxline_status
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of section line to query
double (实数型)step_dir [ 3 ] Output(输出)Step direction vector (unitized) relative
to the drawing:
step_dir[0] = x value
step_dir[1]= y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Output(输出)Step direction vector (unitized) relative
to the drawing:
arrow_dir[0] = x value
arrow_dir[1]= y value
arrow_dir[2] = z value
tag_t * (tag_t型的指针)pview_tagOutput(输出)Parent view tag
int * (整数型指针)num_sxviewsOutput(输出)Number of section views associated to
section line
tag_p_t *sxview_tagsOutput to be freed
输出并释放
Array of section line's section views.
Use UF_free to free memory.
int * (整数型指针)num_sxsegsOutput(输出)Number of section line segments
tag_p_t *sxseg_tagsOutput to be freed
输出并释放
Array of section line segment tags.
Use UF_free to free memory
UF_DRAW_sxline_status_t *sxline_statusOutput(输出)Section line status

 


 
UF_DRAW_ask_simplified_curve (查看源代码)
 
定义在: uf_draw.h
 
概述
Given a drawing curve (a silhouette or a section edge) or an edge that
is a conic or a spline, and the tag to a drawing member view where
this curve or edge resides, this function returns simplified curves (if
they exist), and the simplification creation information. If a
NULL_TAG is input as the view_tag and the master_curve_tag is a
section edge or silhouette, the view is inferred, and if the
master_curve_tag is an edge, the first view found where the edge is
simplified is used.

环境
内部和外部

参见
See the example

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

 
int UF_DRAW_ask_simplified_curve
(
tag_t master_curve_tag,
tag_t * view_tag,
logical * flat_arc_to_line,
double * tolerance,
int * num_segments,
tag_p_t * segments
)
tag_t (tag_t类型)master_curve_tagInput(输入)Tag of the master curve or edge that was simplified.
tag_t * (tag_t型的指针)view_tagInput / OutputTag of the drawing member view of the
master_curve.
logical *flat_arc_to_lineOutput(输出)If TRUE, a post processing of the arc segments
output from the simplification was performed to
convert flat arc segments with chordal tolerance
less than half the view display tolerance to line
segments. Also, adjacent line segments and arc
segments may have been joined, if the result was
within half of the view display tolerance.
double * (实数型指针)toleranceOutput(输出)Tolerance that was used to produce the simplification.
int * (整数型指针)num_segmentsOutput(输出)Number of simplified curves
tag_p_t *segmentsOutput to be freed
输出并释放
Array of simplified curves. Use UF_free to free memory.

 


 
UF_DRAW_ask_solid_of_section (查看源代码)
 
定义在: uf_draw.h
 
概述
UF_DRAW_ask_solid_of_section

DESCRIPTION -
Given the tag of a section solid, output the tag of its solid.


PARAMETERS -
sxsolid_tag <I> Tag of section
solid_tag <O> Tag of solid
Returns -
0 = OK
if not 0 = error code
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRAW_ask_solid_of_section
(
tag_t sxsolid_tag,
tag_t * solid_tag
)
tag_t (tag_t类型)sxsolid_tagInput(输入)Tag of section
tag_t * (tag_t型的指针)solid_tagOutput(输出)Tag of solid

 


 
UF_DRAW_ask_stepped_sxline (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves stepped section line information, given the tag of the
section line. NOTE: If a section line has a invalid section line status it
does not independently cause the return code to be set to a non-zero
value.

环境
内部和外部

参见
UF_DRAW_sxline_status_t
See UF_DRAW_create_stepped_sxview
for more information about stepped section lines and views.
See the example
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRAW_ask_stepped_sxline
(
tag_t sxline_tag,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t * pview_tag,
int * num_sxviews,
tag_p_t * sxview_tags,
int * num_sxsegs,
tag_p_t * sxseg_tags,
UF_DRAW_sxline_status_t * sxline_status
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of stepped section line to query
double (实数型)step_dir [ 3 ] Output(输出)Step direction vector (unitized) relative
to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Output(输出)Arrow direction vector (unitized)
relative to the drawing:
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t * (tag_t型的指针)pview_tagOutput(输出)Parent view tag
int * (整数型指针)num_sxviewsOutput(输出)Number of section views associated to
section line
tag_p_t *sxview_tagsOutput to be freed
输出并释放
Array of section line's section views.
Use UF_free to free memory.
int * (整数型指针)num_sxsegsOutput(输出)Number of section line segments
tag_p_t *sxseg_tagsOutput to be freed
输出并释放
Array of section line's segment tags.
Use UF_free to free memory.
UF_DRAW_sxline_status_t *sxline_statusOutput(输出)Section line status

 


 
UF_DRAW_ask_suppress_view_updat (查看源代码)
 
定义在: uf_draw.h
 
概述
Queries the current value of the Suppress View Update preference.
This preference is saved with a part. Retrieves value from the root part.
If no parts are loaded, an error will occur.
If the preference is TRUE, then functions which perform implicit
drawing update, will not update the drawing member views.

Note: Starting in nx2, this preference was saved with the part.
Some parts may have been inadvertently saved in nx2 with suppress
view updated turned off.
To allow users to override the suppress view update setting, an
environment variable "UGII_SUPPRESS_VIEW_UPDATE" can be set with
values "0" or "1". If set to 1, this will prevent an automatic
update of the out-of-date views.

环境
内部和外部

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

 
int UF_DRAW_ask_suppress_view_updat
(
logical * suppress_view_update
)
logical *suppress_view_updateOutput(输出)Suppress View Update preference setting:
TRUE = suppress all system initiated view
updates
FALSE = allow all system initiated view
updates

 


 
UF_DRAW_ask_sxedges_of_sxsolid (查看源代码)
 
定义在: uf_draw.h
 
概述
Given the tag of a solid section, outputs the number of associated
section edges and an array of tags of these section edges.

环境
内部和外部

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

 
int UF_DRAW_ask_sxedges_of_sxsolid
(
tag_t sxsolid_tag,
int* num_sxedges,
tag_t* * sxedge_tags
)
tag_t (tag_t类型)sxsolid_tagInput(输入)solid section tag
int*num_sxedgesOutput(输出)number of section edges of solid
section
tag_t* *sxedge_tagsOutput to be freed
输出并释放
Array of section edge tags. Use
UF_free to free memory.

 


 
UF_DRAW_ask_sxline_default_prfs (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the default section line display preferences,
including section line visibility and arrow parameters.

环境
内部和外部

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

 
int UF_DRAW_ask_sxline_default_prfs
(
UF_DRAW_arrow_parms_t * arrow_parms,
UF_DRAW_sxline_display_t * sxline_display
)
UF_DRAW_arrow_parms_t *arrow_parmsOutput(输出)Section line arrow parameters
UF_DRAW_sxline_display_t *sxline_displayOutput(输出)Section line display:
UF_DRAW_display_sxline = display
section line.
UF_DRAW_no_display_sxline = do not
display section line.

 


 
UF_DRAW_ask_sxline_display (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves the input section line's display preferences, including the
the section line's visibility and its arrow parameters.

NOTE: Do not invoke this routine for section lines of type UF_DRAW_breakline.

环境
内部和外部

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

 
int UF_DRAW_ask_sxline_display
(
tag_t sxline_tag,
UF_DRAW_arrow_parms_t * arrow_parms,
UF_DRAW_sxline_display_t * sxline_display
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of section line
UF_DRAW_arrow_parms_t *arrow_parmsOutput(输出)Section line arrow parameters
UF_DRAW_sxline_display_t *sxline_displayOutput(输出)Section line display:
UF_DRAW_display_sxline = display
section line.
UF_DRAW_no_display_sxline = do not
display section line.

 


 
UF_DRAW_ask_sxline_of_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves the section line tag that is associated to the given section
view.

环境
内部和外部

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

 
int UF_DRAW_ask_sxline_of_sxview
(
tag_t sxview_tag,
tag_t * sxline_tag
)
tag_t (tag_t类型)sxview_tagInput(输入)Tag of section view
tag_t * (tag_t型的指针)sxline_tagOutput(输出)Tag of associated section line

 


 
UF_DRAW_ask_sxline_sxseg (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves section line segment information, given the tag of the
section line segment.

环境
内部和外部

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

 
int UF_DRAW_ask_sxline_sxseg
(
tag_t sxseg_tag,
UF_DRAW_sxseg_info_t * sxseg_info,
tag_t * curve_tag,
UF_DRF_object_p_t * object
)
tag_t (tag_t类型)sxseg_tagInput(输入)Tag of section line segment to query
UF_DRAW_sxseg_info_t *sxseg_infoOutput(输出)Segment information
tag_t * (tag_t型的指针)curve_tagOutput(输出)Tag of segment curve
UF_DRF_object_p_t *objectOutput to be freed
输出并释放
Object associated to segment.
Use UF_free to free the memory.

 


 
UF_DRAW_ask_sxline_type (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves the section line type, given the tag of the section line.

环境
内部和外部

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

 
int UF_DRAW_ask_sxline_type
(
tag_t sxline_tag,
UF_DRAW_sxline_type_t * sxline_type
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of section line to query its type
UF_DRAW_sxline_type_t *sxline_typeOutput(输出)UF_DRAW_simple_sxline= simple section line
UF_DRAW_stepped_sxline= stepped section
line
UF_DRAW_half_sxline = half section line
UF_DRAW_revolved_sxline = revolved section
line
UF_DRAW_unfolded_sxline = unfolded section
line

 


 
UF_DRAW_ask_sxsolids_of_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Returns the count and array of solid sections created by the sectioning
of an input leg. Depending on whether the section view is a revolved
or non-revolved type the following descriptions will apply:
For Non-Revolved Section Views
Given the tag of a section view output an array of solid section tags
that are sectioned in the input section view.
For Revolved Section Views
Given the tag of a section view and the leg number, output an array of
solid section tags that are sectioned in the input section view by the
leg of the section view's section line.

环境
内部和外部

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

 
int UF_DRAW_ask_sxsolids_of_sxview
(
tag_t sxview_tag,
UF_DRAW_sxline_leg_t leg_num,
int* num_sxsolids,
tag_t* * sxsolid_tags
)
tag_t (tag_t类型)sxview_tagInput(输入)Tag of section view
UF_DRAW_sxline_leg_tleg_numInput(输入)Leg number of the cut, UF_DRAW_sxline_leg1 or
UF_DRAW_sxline_leg2. Required only if sxview_tag
was created from a two legged revolved section
line.
int*num_sxsolidsOutput(输出)Number of solid sections created by the sectioning
of the input leg.
tag_t* *sxsolid_tagsOutput to be freed
输出并释放
Array of solid sections created by the sectioning of
the input leg. Use UF_free to free memory.

 


 
UF_DRAW_ask_sxview_display (查看源代码)
 
定义在: uf_draw.h
 
概述
Returns the structure of a single specified section view display setting.

环境
内部和外部

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

 
int UF_DRAW_ask_sxview_display
(
tag_t view_tag,
UF_DRAW_sxview_prfs_t * sxview_parms
)
tag_t (tag_t类型)view_tagInput(输入)Tag of section view
UF_DRAW_sxview_prfs_t *sxview_parmsOutput(输出)Data structure contains the section
view preference parameters.

 


 
UF_DRAW_ask_unfolded_sxline (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves unfolded section line information, given the tag of the
section line.
NOTE: If a section line has an invalid section line status it does not
independently cause the return code to be set to a non-zero value.

环境
内部和外部

参见
UF_DRAW_sxline_status_t
See UF_DRAW_create_unfolded_sxview
for more information about unfolded section lines and views.
See the example

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

 
int UF_DRAW_ask_unfolded_sxline
(
tag_t sxline_tag,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t * pview_tag,
int * num_sxviews,
tag_p_t * sxview_tags,
int * num_sxsegs,
tag_p_t * sxseg_tags,
UF_DRAW_sxline_status_t * sxline_status
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of unfolded section line to query
double (实数型)step_dir [ 3 ] Output(输出)Step direction vector (unitized)
relative to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Output(输出)Arrow direction vector (unitized)
relative to the drawing:
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t * (tag_t型的指针)pview_tagOutput(输出)Parent view tag
int * (整数型指针)num_sxviewsOutput(输出)Number of section views associated to
section line
tag_p_t *sxview_tagsOutput to be freed
输出并释放
Array of section line's section views.
Use UF_free to free memory.
int * (整数型指针)num_sxsegsOutput(输出)Number of section line segments
tag_p_t *sxseg_tagsOutput to be freed
输出并释放
Array of section line's segment tags.
Use UF_free to free memory.
UF_DRAW_sxline_status_t *sxline_statusOutput(输出)Section line status

 


 
UF_DRAW_ask_view_anchor (查看源代码)
 
定义在: uf_draw.h
 
概述
Retrieves the view's anchor point.

环境
内部和外部

参见
See the example

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

 
int UF_DRAW_ask_view_anchor
(
const tag_t view_tag,
tag_t * anchor_point
)
const tag_tview_tagInput(输入)Tag of view whose model reference point
is to be obtained.
tag_t * (tag_t型的指针)anchor_pointOutput(输出)Pointer to tag of point that represents
the view reference point.

 


 
UF_DRAW_ask_view_angle (查看源代码)
 
定义在: uf_draw.h
 
概述
Returns the view angle in degrees.

环境
Internal & External

参见
See UF_DRAW_set_view_angle
See example

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

 
int UF_DRAW_ask_view_angle
(
tag_t view_tag,
double * angle_value
)
tag_t (tag_t类型)view_tagInput(输入)The view tag
double * (实数型指针)angle_valueOutput(输出)The angle of the view in degrees

 


 
UF_DRAW_ask_view_borders (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine reads the view borders on the current drawing.

环境
Internal and External

参见
See the example program ufd_draw_ask_view_borders.c

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

 
int UF_DRAW_ask_view_borders
(
const tag_t view_tag,
double view_borders [ 4 ]
)
const tag_tview_tagInput(输入)Tag of the view.
If NULL_TAG, use Work view.
double (实数型)view_borders [ 4 ] Output(输出)View Borders (Drawing Coordinates).
[0] - X min
[1] - Y min
[2] - X max
[3] - Y max

 


 
UF_DRAW_ask_view_display (查看源代码)
 
定义在: uf_draw.h
 
概述
Returns the structure of a single specified view display setting for a
specific drawing member view. The display structures are as follows:

环境
内部和外部

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

 
int UF_DRAW_ask_view_display
(
tag_t view_tag,
UF_DRAW_view_prfs_t * view_parms
)
tag_t (tag_t类型)view_tagInput(输入)Tag of drawing member view
UF_DRAW_view_prfs_t *view_parmsOutput(输出)Data structure contains the hidden line
removal, edge hiding edge, silhouette, uv
hatch, smooth edge display, smooth edge
color, font,, width and gap, virtual
intersection color, font, width, gap, and
status, tolerance, hidden line color, font,
and width parameters, and the extracted edges
setting.

 


 
UF_DRAW_ask_view_label (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the tag of the view label associated to a view.
If no view label is associated, view_label_tag is set to NULL_TAG.

返回
0 = successful
= UF_DRAW_tag_not_view

环境
内部和外部

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

 
int UF_DRAW_ask_view_label
(
tag_t view_tag,
tag_t * view_label_tag
)
tag_t (tag_t类型)view_tagInput(输入)Drawing member view tag
tag_t * (tag_t型的指针)view_label_tagOutput(输出)View label tag

 


 
UF_DRAW_ask_view_label_parms (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the parameters from a view label object. If
the view label has been customized and the parameters cannot be
determined, UF_DRAW_invalid_parameter will be returned and
view_label_parms will not be changed.

Note: If the input parameter view_label_tag is NULL_TAG, the
view_label_parm_type element in the view_label_parms structure
must be set to a valid type in order to retrieve global view label
parameters for that type of view label.

返回
0 = successful
= UF_DRAW_invalid_parameter

环境
内部和外部

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

 
int UF_DRAW_ask_view_label_parms
(
tag_t view_label_tag,
UF_DRAW_view_label_parms_p_t view_label_parms
)
tag_t (tag_t类型)view_label_tagInput(输入)View label tag OR NULL_TAG
to ask global preferences
UF_DRAW_view_label_parms_p_tview_label_parmsOutput(输出)Structure that will
be filled with the view
label parameters

 


 
UF_DRAW_ask_view_notes (查看源代码)
 
定义在: uf_draw.h
 
概述
Checks whether a drawing member view has associated notes. If true,
this function returns the tags of the notes as output. Otherwise, the
number of the associated notes is zero (0).

环境
内部和外部

参见
UF_DRAW_ask_view_of_note
UF_DRAW_attach_note_to_view
UF_DRAW_detach_note_from_view
See the example

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

 
int UF_DRAW_ask_view_notes
(
tag_t view_tag,
int * num_notes,
tag_p_t * note_tags
)
tag_t (tag_t类型)view_tagInput(输入)Drawing member view tag
int * (整数型指针)num_notesOutput(输出)Number of associated notes
tag_p_t *note_tagsOutput to be freed
输出并释放
If num_notes > 0, the array of note tags must be
freed. Use UF_free to free note_tags.

 


 
UF_DRAW_ask_view_of_drawing (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the tag of the drawing view for the given
drawing.

环境
Internal and External

参见
See the example program ufd_drw_ask_num_views.c

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

 
int UF_DRAW_ask_view_of_drawing
(
const tag_t drawing,
tag_t * view
)
const tag_tdrawingInput(输入)Tag of drawing whose view is unknown.
tag_t * (tag_t型的指针)viewOutput(输出)Tag of the view for the given drawing.
NULL_TAG if not found.

 


 
UF_DRAW_ask_view_of_note (查看源代码)
 
定义在: uf_draw.h
 
概述
Detemines if a note is associated to a drawing member view. If so, this
function returns the view tag as an output. This routine is not meant to
determine the view associated to a view label.
Use UF_DRAW_ask_view_of_view_label() to determine the view associated to a
view label.

环境
内部和外部

参见
UF_DRAW_ask_view_notes
UF_DRAW_attach_note_to_view
UF_DRAW_detach_note_from_view
UF_DRAW_ask_view_of_view_label
See the example

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

 
int UF_DRAW_ask_view_of_note
(
tag_t note_tag,
tag_t * view_tag
)
tag_t (tag_t类型)note_tagInput(输入)Note tag
tag_t * (tag_t型的指针)view_tagOutput(输出)The drawing member view the note is associated to.
NULL_TAG if the note is not associated to a view.

 


 
UF_DRAW_ask_view_of_view_label (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine retrieves the tag of the view associated to a view label.
If no view is associated, view_tag is set to NULL_TAG.

返回
0 = successful
= UF_DRAW_tag_not_view, UF_DRAW_invalid_parameter

环境
内部和外部

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

 
int UF_DRAW_ask_view_of_view_label
(
tag_t view_label_tag,
tag_t * view_tag
)
tag_t (tag_t类型)view_label_tagInput(输入)view label tag
tag_t * (tag_t型的指针)view_tagOutput(输出)Drawing member view label tag

 


 
UF_DRAW_ask_view_parm_scale (查看源代码)
 
定义在: uf_draw.h
 
概述
If the view scale is associative, this function outputs an expression tag
and view scale value. If the view scale is not associative, this function
still outputs the view scale value, but the expression is equal to a
NULL_TAG and returns an error.

返回
Return code:
0 = No error
UF_DRAW_hinge_not_linear = warning
not 0 = Error code

环境
内部和外部

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

 
int UF_DRAW_ask_view_parm_scale
(
tag_t view_tag,
tag_t * exp_tag,
double * scale_value
)
tag_t (tag_t类型)view_tagInput(输入)View from which the scale value and associated expression is
obtained.
tag_t * (tag_t型的指针)exp_tagOutput(输出)Expression associated to the view scale, NULL_TAG if the view
scale is not associative
double * (实数型指针)scale_valueOutput(输出)The scale value of the view.

 


 
UF_DRAW_ask_view_scale (查看源代码)
 
定义在: uf_draw.h
 
概述
Returns the view scale. Also returns the expression tag if the view
scale is parametric. If the view scale is not parametric, it returns a
NULL_TAG.

环境
Internal & External

参见
See UF_DRAW_set_view_scale
See example

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

 
int UF_DRAW_ask_view_scale
(
tag_t view_tag,
tag_t * exp_tag,
double * scale_value
)
tag_t (tag_t类型)view_tagInput(输入)The view tag
tag_t * (tag_t型的指针)exp_tagOutput(输出)The expression tag
double * (实数型指针)scale_valueOutput(输出)The scale of the view

 


 
UF_DRAW_ask_view_status (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine reads the view status in the drawing.

环境
Internal and External

参见
See the example program ufd_drw_set_view_status.c

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

 
int UF_DRAW_ask_view_status
(
const tag_t view_tag,
UF_DRAW_view_status_t * view_status
)
const tag_tview_tagInput(输入)Tag of the view.
If NULL_TAG, use Work view.
UF_DRAW_view_status_t *view_statusOutput(输出)View Status
UF_DRAW_ACTIVE_VIEW
UF_DRAW_REFERENCE_VIEW

 


 
UF_DRAW_ask_view_thd_app_pitch (查看源代码)
 
定义在: uf_draw.h
 
概述
Accepts a view tag as an input parameter and returns the minimum
apparent pitch. The minimum apparent pitch is defined as the
minimum value used to visually represent the pitch when rendering
symbolic thread features on drawing member views. It can be used to
preserve the visual clarity of threads whose pitch is small relative to
the view scale.

For example, if a view with a scale of 2.0 contained threads with an
actual pitch of 0.0125 inches, the actual thread pitch would render at
0.0125 2 = 0.025 inches which may be unreadable when plotted at
full scale. If the view's minimum apparent pitch had been set to
0.0625 inches, then that value (in drawing units) would be used to
render the thread pitch.

环境
内部和外部

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

 
int UF_DRAW_ask_view_thd_app_pitch
(
tag_t view,
double * app_pitch
)
tag_t (tag_t类型)viewInput(输入)Tag of drawing member view
double * (实数型指针)app_pitchOutput(输出)The minimum pitch for rendered threads in the given view

 


 
UF_DRAW_ask_view_thd_meth (查看源代码)
 
定义在: uf_draw.h
 
概述
Accepts a view tag as an input parameter and returns the view
rendering method. Each rendering method corresponds with an ANSI
or ISO thread standard. Valid rendering methods are:
UF_DRAW_THD_METH_NONE
UF_DRAW_THD_METH_ANSI_SIMPLIFIED
UF_DRAW_THD_METH_ANSI_SCHEMATIC
UF_DRAW_THD_METH_ANSI_DETAILED
UF_DRAW_THD_METH_ISO_SIMPLIFIED
UF_DRAW_THD_METH_ISO_DETAILED
The default rendering method for pre-V12 member views is
UF_DRAW_THD_METH_NONE.

环境
内部和外部

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

 
int UF_DRAW_ask_view_thd_meth
(
tag_t view,
int * method
)
tag_t (tag_t类型)viewInput(输入)tag of the drawing member view
int * (整数型指针)methodOutput(输出)the view's current rendering method

 


 
UF_DRAW_ask_views (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine reads the number of member views in the given drawing and
returns an array of the member view tags.

环境
Internal and External

参见
See the example program ufd_draw_ask_view_angle.c

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

 
int UF_DRAW_ask_views
(
const tag_t drawing_tag,
int * num_views,
tag_p_t * view_tag
)
const tag_tdrawing_tagInput(输入)Tag of the drawing.
If NULL_TAG, use current drawing.
int * (整数型指针)num_viewsOutput(输出)Number of views in the drawing.
tag_p_t *view_tagOutput to be freed
输出并释放
Array of the view tags in the drawing.
Use UF_free to free this memory.

 


 
UF_DRAW_ask_xhatch_of_sxsolid (查看源代码)
 
定义在: uf_draw.h
 
概述
Given the tag of a solid section, output the tag of its associated
crosshatch entity. Note that if a section view has its crosshatch
preference turned off, a tag to a crosshatch entity that has no line
information will be output.

环境
内部和外部

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

 
int UF_DRAW_ask_xhatch_of_sxsolid
(
tag_t sxsolid_tag,
tag_t* xhatch_tag
)
tag_t (tag_t类型)sxsolid_tagInput(输入)section solid tag
tag_t*xhatch_tagOutput(输出)crosshatch tag

 


 
UF_DRAW_attach_note_to_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Associates an existing note to an existing drawing member view. If the
note is already associated to another drawing member view, it need
not be disassociated from the view prior to calling this function.

环境
内部和外部

参见
UF_DRAW_ask_view_of_note
UF_DRAW_ask_view_notes
UF_DRAW_detach_note_from_view
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_attach_note_to_view
(
tag_t note_tag,
tag_t view_tag
)
tag_t (tag_t类型)note_tagInput(输入)Note tag to be associated to the view
tag_t (tag_t类型)view_tagInput(输入)The drawing member view the note will be
associated to.

 


 
UF_DRAW_copy_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine copies a view and its associated annotation, leaving the
new view positioned on top of the original view. The new view can be
moved to another drawing with UF_DRAW_move_view_to_drawing, or
to another position on the same drawing with UF_DRAW_move_view.

环境
内部和外部

参见
UF_DRAW_move_view_to_drawing
UF_DRAW_move_view
See the example

历史
Original Release was in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_copy_view
(
tag_t view_tag,
tag_t * new_view
)
tag_t (tag_t类型)view_tagInput(输入)Tag of drawing member view to copy. It must be on
the current drawing.
tag_t * (tag_t型的指针)new_viewOutput(输出)Pointer to new view (copy of the original view).

 


 
UF_DRAW_create_break_region (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine creates a break region for a given view.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_broken_view.c to review an example of using
this function.

环境
Internal and External

历史
New for V17.0
 
需要许可证(S)
drafting

 
int UF_DRAW_create_break_region
(
tag_t view_tag,
tag_t anchor_point,
int num_curves,
UF_DRAW_break_region_boundary_p_t curves,
tag_p_t break_region
)
tag_t (tag_t类型)view_tagInput(输入)View to which the break
region is to be added.
tag_t (tag_t类型)anchor_pointInput(输入)tag of anchor_point for break region
int (整数型)num_curvesInput(输入)number of boundary curves
UF_DRAW_break_region_boundary_p_tcurvesInput(输入)Break region boundary data.
tag_p_tbreak_regionOutput(输出)Tag of the break region created.

 


 
UF_DRAW_create_breakout (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine creates a breakout section within a given view.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_cre_breakout.c to review an example of using
this function.

环境
Internal and External

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_create_breakout
(
tag_t view_tag,
UF_DRAW_breakout_data_p_t breakout_data,
tag_p_t breakline
)
tag_t (tag_t类型)view_tagInput(输入)View to which the breakout
is to be added.
UF_DRAW_breakout_data_p_tbreakout_dataInput(输入)Breakout section data.
tag_p_tbreaklineOutput(输出)Tag of the breakout
section created.

 


 
UF_DRAW_create_drawing (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine creates a new drawing.

环境
Internal and External

参见
See the example program ufd_drw_create_drawing.c

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_create_drawing
(
const char * drawing_name,
const UF_DRAW_info_p_t drawing_info,
tag_p_t drawing_tag
)
const char *drawing_nameInput(输入)Name of the drawing.
const UF_DRAW_info_p_tdrawing_infoInput(输入)The desired drawing info.
tag_p_tdrawing_tagOutput(输出)Tag of the new drawing.

 


 
UF_DRAW_create_half_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Creates a half section line and view.


Figure. A half section line and section view

环境
内部和外部

参见
See the discussion on the half_sxsegs structure in the Types and

参见
UF_DRAW_half_sxsegs_t
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_create_half_sxview
(
tag_t dwg_tag,
double sxview_scale,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t pview_tag,
int num_sxsegs,
UF_DRAW_half_sxsegs_p_t half_sxseg_objects,
double view_placement_pt [ 2 ] ,
tag_t* sxview_tag
)
tag_t (tag_t类型)dwg_tagInput(输入)Drawing tag
double (实数型)sxview_scaleInput(输入)Section view scale
double (实数型)step_dir [ 3 ] Input(输入)Step direction vector (unitized) relative
to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Input(输入)Arrow direction vector (unitized)
relative to the drawing.
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t (tag_t类型)pview_tagInput(输入)Parent view tag
int (整数型)num_sxsegsInput(输入)Number of section segments. A cut
segment and bend segment must be provided
(num_segs=2). If the arrow segment
location is optionally provided,
num_segs=3.
UF_DRAW_half_sxsegs_p_thalf_sxseg_objectsInput(输入)Section line segment object
structure
double (实数型)view_placement_pt [ 2 ] Input(输入)View placement point on drawing in
absolute drawing coordinates (x,y))
tag_t*sxview_tagOutput(输出)Tag of newly created section view

 


 
UF_DRAW_create_render_set (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine creates a render set with the given display preferences

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

历史
Created in v16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_create_render_set
(
char * render_set_name,
UF_DRAW_render_prefs_t * render_parms,
tag_t * render_set
)
char * (字符型指针)render_set_nameInput(输入)Desired name of render set.
UF_DRAW_render_prefs_t *render_parmsInput(输入)Pointer to render set
preferences structure,
with desired settings for
visible and hidden line
color, font, and widths,
edge hiding edge and hidden
line options.
tag_t * (tag_t型的指针)render_setOutput(输出)Tag of newly created render
set, if successful.

 


 
UF_DRAW_create_revolved_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Creates a revolved section view. The system generates a
bend when two cut segments are input with no intervening bend
definition. The system also ignores the second of two consecutive
input bend segments. The system generates arrow segments if they are
not input.


Figure. A revolved section line and section view.

环境
内部和外部

参见
UF_DRAW_sxline_sxsegs_t
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_create_revolved_sxview
(
tag_t dwg_tag,
double sxview_scale,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t pview_tag,
UF_DRF_object_p_t rotpt_object,
int num_sxsegs,
int num_leg1_sxsegs,
UF_DRAW_sxline_sxsegs_p_t rev_sxsegs,
double view_placement_pt [ 2 ] ,
tag_t * sxview_tag
)
tag_t (tag_t类型)dwg_tagInput(输入)Drawing tag
double (实数型)sxview_scaleInput(输入)Section view scale
double (实数型)step_dir [ 3 ] Input(输入)Step direction vector (unitized)
relative to the drawing:
step_dir[0] = x value
step_dir[1]= y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Input(输入)Arrow direction vector (unitized)
relative to the drawing.
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t (tag_t类型)pview_tagInput(输入)Parent view tag
UF_DRF_object_p_trotpt_objectInput(输入)Object defining rotation point
associativity.
int (整数型)num_sxsegsInput(输入)Number of section segments used to
initially define the section line.
A cut segment must be defined
(num_segs must be > 0). This
number defines the size of the
rev_sxseg_objects array. A section
line cannot have more than 99
segments and cannot have more than
49 cut segments.
int (整数型)num_leg1_sxsegsInput(输入)Number of section segments input to
define the first leg. Cannot be
greater than num_segs. Any remaining
segments define leg2.
UF_DRAW_sxline_sxsegs_p_trev_sxsegsInput(输入)For each section segment defined, a
segment type is given that determines
whether the segment is a cut, bend,
or arrow. Bend and arrow segments
are optional. Also, for each
section segment defined, an object
is given to define the section
segment associativity.
double (实数型)view_placement_pt [ 2 ] Input(输入)View placement point on drawing in
absolute drawing coordinates (x,y))
tag_t * (tag_t型的指针)sxview_tagOutput(输出)Tag of newly created section view

 


 
UF_DRAW_create_simple_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Creates a simple section line and view. Only the cut segment of the
section line is input. The arrow segments of the section line are
automatically generated.


Figure. A simple section line and section view

环境
内部和外部

参见
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_create_simple_sxview
(
tag_t dwg_tag,
double sxview_scale,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t pview_tag,
UF_DRF_object_p_t cut_object,
double view_placement_pt [ 2 ] ,
tag_t * sxview_tag
)
tag_t (tag_t类型)dwg_tagInput(输入)Drawing tag
double (实数型)sxview_scaleInput(输入)Section view scale
double (实数型)step_dir [ 3 ] Input(输入)Step direction vector (unitized)
relative to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Input(输入)Arrow direction vector (unitized)
relative to the drawing.
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t (tag_t类型)pview_tagInput(输入)Parent view tag
UF_DRF_object_p_tcut_objectInput(输入)Object associated to cut segment
double (实数型)view_placement_pt [ 2 ] Input(输入)View placement point on drawing in
absolute drawing coordinates (x,y)
tag_t * (tag_t型的指针)sxview_tagOutput(输出)Tag of newly created section view

 


 
UF_DRAW_create_simplified_curve (查看源代码)
 
定义在: uf_draw.h
 
概述
Given a drawing curve (a silhouette or a section edge) or an edge that
is a conic or a spline, and the tag to a drawing member view where
this curve or edge is displayed, this function creates new arcs or lines
that approximate that conic or spline curve.
The approximation uses the drawing member view's tolerance view
display preference in its calculations.
Note that the simplification can be deleted by deleting any one of the
curves of the simplification.

环境
内部和外部

参见
See UF_DRAW_set_view_display
to change the tolerance value. This tolerance value is defined in
UF_DRAW_view_prfs_t
See the example

历史
Original release was in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_create_simplified_curve
(
tag_t master_curve_tag,
tag_t view_tag,
logical flat_arc_to_line,
int * num_segments,
tag_p_t * segments
)
tag_t (tag_t类型)master_curve_tagInput(输入)Tag of the master curve or edge to simplify
tag_t (tag_t类型)view_tagInput(输入)Tag of the drawing member view of the master_curve. If the
master_curve is a section edge or silhouette, view_tag will be
ignored as simple curves will be created in the view of the
master curve.
logicalflat_arc_to_lineInput(输入)If TRUE, a post processing of the arc segments
output from the simplification will be performed to
convert flat arc segments with chordal tolerance less
than half the view display tolerance to line
segments. Also, adjacent line segments and arc
segments will be joined if the result is within half
the view display tolerance.
int * (整数型指针)num_segmentsOutput(输出)Number of simplified curves
tag_p_t *segmentsOutput to be freed
输出并释放
Array of simplified curves. Use UF_free to free memory.

 


 
UF_DRAW_create_stepped_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Creates a stepped section view. The system generates a
bend when two cut segments are input with no intervening bend
definition. The system also ignores the second of two consecutive
input bend segments. The system generates arrow segments if they are
not input.


Figure. A stepped section line and section view

环境
内部和外部

参见
UF_DRAW_sxline_sxsegs_t
 
需要许可证(S)
drafting

 
int UF_DRAW_create_stepped_sxview
(
tag_t dwg_tag,
double sxview_scale,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t pview_tag,
int num_sxsegs,
UF_DRAW_sxline_sxsegs_p_t stepped_sxsegs,
double view_placement_pt [ 2 ] ,
tag_t * sxview_tag
)
tag_t (tag_t类型)dwg_tagInput(输入)Drawing tag
double (实数型)sxview_scaleInput(输入)Section view scale
double (实数型)step_dir [ 3 ] Input(输入)Step direction vector (unitized) relative
to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Input(输入)Arrow direction vector (unitized) relative
to the drawing.
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t (tag_t类型)pview_tagInput(输入)Parent view tag
int (整数型)num_sxsegsInput(输入)Number of section segments used to initially define the section
line. A cut segment must be provided (num_sxsegs>0). This
number determines the length of the stepped_sxsegs array.
UF_DRAW_sxline_sxsegs_p_tstepped_sxsegsInput(输入)For each section segment defined, a
segment type is given that determines
whether the segment is a cut, bend
or arrow. Bend and arrow segments
are optional. Also, for each section
seg ment defined, an object is given
to de fine the section segment
associativity. A section line cannot
have more than 99 segments and cannot
have more than 49 cut segments.
double (实数型)view_placement_pt [ 2 ] Input(输入)View placement point on drawing in
absolute drawing coordinates (x,y))
tag_t * (tag_t型的指针)sxview_tagOutput(输出)Tag of newly created section view

 


 
UF_DRAW_create_sxview_from_dmv (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine allows the user to create a section line and a
section view from any view, excluding revolved section view
and unfolded section view. The display of the section line
is pictorial.

返回
0 = OK
if not 0 = Failure error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_cre_dmv_sxvw.c to review an example of
using this function.

环境
Internal and External

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_create_sxview_from_dmv
(
tag_t drawing_tag,
tag_t parent_view_tag,
UF_DRAW_sxline_type_t section_type,
double section_view_scale,
double cut_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
int num_sxsegs,
UF_DRAW_sxline_sxsegs_p_t segment_data,
double view_placement_pt [ 2 ] ,
logical expect_pictorial_sxview,
tag_t * section_view_tag
)
tag_t (tag_t类型)drawing_tagInput(输入)Drawing tag.
tag_t (tag_t类型)parent_view_tagInput(输入)Parent view tag.
UF_DRAW_sxline_type_tsection_typeInput(输入)Type of the section.
double (实数型)section_view_scaleInput(输入)Section view scale.
double (实数型)cut_dir [ 3 ] Input(输入)Cut direction vector
(unitized) relative to
the model space
cut_dir[0] = x value
cut_dir[1] = y value
cut_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Input(输入)Arrow direction
vector (unitized)
relative to the model
space
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
int (整数型)num_sxsegsInput(输入)Number of section
line segments
UF_DRAW_sxline_sxsegs_p_tsegment_dataInput(输入)Data of these
section segments
double (实数型)view_placement_pt [ 2 ] Input(输入)Location of the
section view relative
to the drawing.
logicalexpect_pictorial_sxviewInput(输入)Whether or not
we expect a pictorial
sxview.
tag_t * (tag_t型的指针)section_view_tagOutput(输出)Tag of the newly
created section view.

 


 
UF_DRAW_create_unfolded_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Creates an unfolded section view.
NOTE: The system generates arrow segments if they are not input.

环境
内部和外部

参见
UF_DRAW_sxline_sxsegs_t
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_create_unfolded_sxview
(
tag_t dwg_tag,
double sxview_scale,
double step_dir [ 3 ] ,
double arrow_dir [ 3 ] ,
tag_t pview_tag,
int num_sxsegs,
UF_DRAW_sxline_sxsegs_p_t unfolded_sxsegs,
double view_placement_pt [ 2 ] ,
tag_t * sxview_tag
)
tag_t (tag_t类型)dwg_tagInput(输入)Tag of drawing
double (实数型)sxview_scaleInput(输入)Scale of section view
double (实数型)step_dir [ 3 ] Input(输入)Step direction vector (unitized) relative to the drawing:
step_dir[0] = x value
step_dir[1] = y value
step_dir[2] = z value
double (实数型)arrow_dir [ 3 ] Input(输入)Arrow direction vector (unitized) relative to the drawing.
arrow_dir[0] = x value
arrow_dir[1] = y value
arrow_dir[2] = z value
tag_t (tag_t类型)pview_tagInput(输入)Parent view tag
int (整数型)num_sxsegsInput(输入)Number of section segments used to initially define the section
line. A cut segment must be provided (num_sxsegs>0). This number
determines the length of the stepped_sxsegs array.
UF_DRAW_sxline_sxsegs_p_tunfolded_sxsegsInput(输入)For each section segment defined, a
segment type is given that
determines whether the segment is a
cut, bend or arrow. Bend and arrow
segments are op- tional. Also, for
each section segment defined, an
object is given to define the
section segment associativity. A
section line cannot have more than
99 segments and cannot have more
than 49 cut segments.
double (实数型)view_placement_pt [ 2 ] Input(输入)View placement point on drawing in
absolute drawing coordinates (x,y))
tag_t * (tag_t型的指针)sxview_tagOutput(输出)Tag of newly created section view

 


 
UF_DRAW_create_view_label (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine adds a view label to the specified view. If a view
already has a view label, the function edits the existing view label.

返回
= 0 : successful
= UF_DRAW_tag_not_view
= UF_DRAW_invalid_parameter

环境
内部和外部

历史
Created in v17.0
 
需要许可证(S)
drafting

 
int UF_DRAW_create_view_label
(
tag_t view_tag,
UF_DRAW_view_label_parms_p_t view_label_parms,
tag_t * view_label_tag
)
tag_t (tag_t类型)view_tagInput(输入)Drawing member view tag
UF_DRAW_view_label_parms_p_tview_label_parmsInput(输入)Structure that is
filled with the view
view label parameters
tag_t * (tag_t型的指针)view_label_tagOutput(输出)View label tag

 


 
UF_DRAW_define_bound_by_objects (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the view boundary type to Bound By Objects and defines an array of
objects that must be contained with the bounds of the view.

环境
内部和外部

参见
UF_DRAW_ask_bound_by_objects
See the example

历史
Original release was in V13.0
 
需要许可证(S)
drafting

 
int UF_DRAW_define_bound_by_objects
(
const tag_t view_tag,
const int num_objects,
tag_t* bounded_objects
)
const tag_tview_tagInput(输入)Tag of the view whose location is to be defined.
const intnum_objectsInput(输入)Number of tags in the bounded_objects array.
tag_t*bounded_objectsInput(输入)num_objects
Array of tags of objects to be used to calculate the
bounding box for the view boundary.

 


 
UF_DRAW_define_view_auto_rect (查看源代码)
 
定义在: uf_draw.h
 
概述
Defines the view boundary for the input view as an automatic view
boundary. The view cannot be a detail view. The view must be active
and on the current drawing. No view may be expanded prior to calling
this function.

环境
内部和外部

参见
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_define_view_auto_rect
(
tag_t view_tag
)
tag_t (tag_t类型)view_tagInput(输入)Tag of view.

 


 
UF_DRAW_define_view_boundary (查看源代码)
 
定义在: uf_draw.h
 
概述
Creates a view boundary of a closed, connected, non-self-intersecting
loop of curves. Valid curve types are UF_line_type, UF_circle_type,
and UF_spline_type. All curves must be visible in the view. If the
curve type is UF_circle_type, the circle must be in the plane of the
view.

The Figure below shows an example of the the construction of an
arbitrary view bound defined by selecting several curves. In the figure, the
numbers associated with each curve are used to illustrate the curve selection
order.


Figure. Construction of an arbitrary view bound

环境
内部和外部

参见
UF_DRAW_ask_boundary_curves
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_define_view_boundary
(
tag_t view_tag,
int curve_count,
UF_DRAW_define_boundary_p_t* boundary_curves
)
tag_t (tag_t类型)view_tagInput(输入)Tag of the view whose boundary is to be defined.
int (整数型)curve_countInput(输入)Count of tags of curves in curve_list
UF_DRAW_define_boundary_p_t*boundary_curvesInput(输入)curve_count
Pointer to array of structures
that are used to define the view
boundary.

 


 
UF_DRAW_define_view_manual_rect (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets view borders for the given view on the current drawing. The view
must be active on the current drawing. No view may be expanded
before calling this function.

环境
内部和外部

参见
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_define_view_manual_rect
(
tag_t view_tag,
double view_borders [ 4 ]
)
tag_t (tag_t类型)view_tagInput(输入)Tag of view.
double (实数型)view_borders [ 4 ] Input(输入)View Borders (Drawing Coordinates), can be any
two diagonal corners (X1,Y1,X2,Y2) of the view box.

 


 
UF_DRAW_delete_drawing (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine deletes the drawing.

环境
Internal and External

参见
See the example program ufd_drw_delete_drawing.c

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_delete_drawing
(
const tag_t drawing_tag
)
const tag_tdrawing_tagInput(输入)Tag of drawing to delete.

 


 
UF_DRAW_delete_sxline_sxseg (查看源代码)
 
定义在: uf_draw.h
 
概述
Deletes a segment of a section line, then updates all of the section
line's associated section views located on the current drawing.
Associated section views not on the current drawing are marked out
of date. To perform this edit on the section line without an update, use
the suppress view update feature provided in UF_DRF_set_suppress_view_update.


Figure. The deletion of a section line cut segment.

环境
内部和外部

参见
UF_DRF_set_suppress_view_update
 
需要许可证(S)
drafting

 
int UF_DRAW_delete_sxline_sxseg
(
tag_t sxseg_tag
)
tag_t (tag_t类型)sxseg_tagInput(输入)Tag of section line segment to delete

 


 
UF_DRAW_delete_view_label (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine deletes a view label from the specified view. The
routine silently ignores views that do not already include a view label.

返回
= 0 : successful
= UF_DRAW_tag_not_view

环境
内部和外部

历史
Created in v17.0
 
需要许可证(S)
drafting

 
int UF_DRAW_delete_view_label
(
tag_t view_tag
)
tag_t (tag_t类型)view_tagInput(输入)Drawing member view tag

 


 
UF_DRAW_detach_note_from_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Disassociates an existing note from an existing drawing member view.
NOTE: A section view label cannot be disassociated from the section
view. A section line cannot be disassociated from its parent view.

环境
内部和外部

参见
UF_DRAW_ask_view_of_note
UF_DRAW_ask_view_notes
UF_DRAW_attach_note_to_view
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_detach_note_from_view
(
tag_t note_tag
)
tag_t (tag_t类型)note_tagInput(输入)Note tag to be associated to the view

 


 
UF_DRAW_edit_boundary_point (查看源代码)
 
定义在: uf_draw.h
 
概述
Replaces a smart defining point for an associative view boundary
curve with a new smart defining point. This function may return errors
used in UF_DRAW_define_view_boundary, because when defining_pt is
replaced with new_pt, the break line/detail boundary is redefined,
based on the new point location.

环境
内部和外部

参见
UF_DRAW_set_boundary_assoc
See the figure
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_edit_boundary_point
(
tag_t defining_point,
tag_t new_point,
tag_t view_tag
)
tag_t (tag_t类型)defining_pointInput(输入)Tag of the defining point which is to be replaced
tag_t (tag_t类型)new_pointInput(输入)Tag of the new point which will replace the defining point.
tag_t (tag_t类型)view_tagInput(输入)Tag of the view whose defining point is being replaced. The
view must have a break line/detail type boundary, and the
boundary must be associated to model geometry (via
UF_DRAW_set_boundary_assoc).

 


 
UF_DRAW_edit_sxline_display (查看源代码)
 
定义在: uf_draw.h
 
概述
Edits the input section line's display preferences, including the the
section line's visibility and its arrow parameters, and updates the
display of the section line. The input preferences are also saved as the
new global section line display preferences.

环境
内部和外部

参见
UF_DRAW_arror_parms_t
 
需要许可证(S)
drafting

 
int UF_DRAW_edit_sxline_display
(
tag_t sxline_tag,
UF_DRAW_arrow_parms_p_t arrow_parms,
UF_DRAW_sxline_display_t sxline_display
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of section line to edit
UF_DRAW_arrow_parms_p_tarrow_parmsInput(输入)Section line arrow parameters
UF_DRAW_sxline_display_tsxline_displayInput(输入)Section line display:
UF_DRAW_display_sxline=display section
line
UF_DRAW_no_display_sxline=do not
display section line

 


 
UF_DRAW_erase_sxview_objects (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine displays the input faces and/or bodies, and erases all the
others in the section view.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

环境
Internal and External

历史
New for V18.0
 
需要许可证(S)
drafting

 
int UF_DRAW_erase_sxview_objects
(
const tag_t view,
const int num_objects,
const tag_p_t objects
)
const tag_tviewInput(输入)Tag of the view
const intnum_objectsInput(输入)Number of objects
const tag_p_tobjectsInput(输入)num_objects
An array of objects

 


 
UF_DRAW_free_boundary (查看源代码)
 
定义在: uf_draw.h
 
概述
Frees the memory in the boundary_curves structure.

环境
内部和外部

参见
UF_DRAW_ask_bound_by_objects
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_free_boundary
(
int curve_count,
UF_DRAW_view_boundary_p_t boundary_curves
)
int (整数型)curve_countInput(输入)Count of curves in curve list
UF_DRAW_view_boundary_p_tboundary_curvesInput(输入)Pointer to curve list, i.e. array of
structures containing the boundary
curves and their defining points.

 


 
UF_DRAW_get_view_model_view_part (查看源代码)
 
定义在: uf_draw.h
 
概述
This function gets the part name of the model view
that is imported into the drawing member view

环境
Internal and External

历史
Original release in NX5.0.3
 
需要许可证(S)
drafting

 
int UF_DRAW_get_view_model_view_part
(
tag_t view,
char model_view_partname [ MAX_FSPEC_SIZE+1 ]
)
tag_t (tag_t类型)viewInput(输入)drawing member view
charmodel_view_partname [ MAX_FSPEC_SIZE+1 ] Output(输出)(filespec with path) part name of view

 


 
UF_DRAW_import_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This function imports a view onto the current drawing. Use the view
info structure to set the view status, anchor point, view scale, use
reference point, clean model view, transfer annotation, and inherit
boundary parameters.
NOTE: There is currently a restriction requiring the input drawing tag
to be the tag of the current drawing. We intend to relax this restriction
in the future. As a result, we are requiring the input tag to ensure that
future code changes will not be required by NX or by
NX Open API developers.

环境
内部和外部

参见
See the example

历史
Original release in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_import_view
(
const tag_t drawing_tag,
const tag_t view_tag,
double dwg_reference_point [ 2 ] ,
UF_DRAW_view_info_t * view_info,
tag_t * draw_view_tag
)
const tag_tdrawing_tagInput(输入)Drawing Tag, must be the current drawing.
const tag_tview_tagInput(输入)Tag of model view to import.
double (实数型)dwg_reference_point [ 2 ] Input(输入)Drawing Reference Point (in drawing
coordinates, x,y).
UF_DRAW_view_info_t *view_infoInput(输入)View Info (see uf_draw_types.h).
tag_t * (tag_t型的指针)draw_view_tagOutput(输出)View Tag of imported view on drawing

 


 
UF_DRAW_initialize_view_info (查看源代码)
 
定义在: uf_draw.h
 
概述
This function initializes the view info structure that
is used as an input to UF_DRAW_import_view.

环境
内部和外部

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

 
void UF_DRAW_initialize_view_info
(
UF_DRAW_view_info_t * view_info
)
UF_DRAW_view_info_t *view_infoOutput(输出)info structure to be initialized

 


 
UF_DRAW_is_drafting_component (查看源代码)
 
定义在: uf_draw.h
 
概述
This function determines if the component is a Drafting component,
that is, if the component is a result of Add View from Part

环境
Internal and External

历史
Original release in NX5.0.3
 
需要许可证(S)
drafting

 
int UF_DRAW_is_drafting_component
(
tag_t component,
logical * is_drafting_component
)
tag_t (tag_t类型)componentInput(输入)component being tested
logical *is_drafting_componentOutput(输出)true - component is a Drafting component

 


 
UF_DRAW_is_object_out_of_date (查看源代码)
 
定义在: uf_draw.h
 
概述
Queries the up-to-date status of an object. Currently, only two types
of objects are valid: views and drawings.

环境
内部和外部

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

 
int UF_DRAW_is_object_out_of_date
(
tag_t object,
logical * out_of_date
)
tag_t (tag_t类型)objectInput(输入)tag of view or drawing
logical *out_of_dateOutput(输出)object out-of-date status

 


 
UF_DRAW_is_sxview (查看源代码)
 
定义在: uf_draw.h
 
概述
Given the tag of a view, outputs whether the view is a section view.

环境
内部和外部

参见
See the example

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

 
int UF_DRAW_is_sxview
(
tag_t view_tag,
logical * is_a_sxview
)
tag_t (tag_t类型)view_tagInput(输入)Tag of view
logical *is_a_sxviewOutput(输出)If TRUE, the view is a section view, else it is not.

 


 
UF_DRAW_is_thread_curve (查看源代码)
 
定义在: uf_draw.h
 
概述
Determines whether the specified curve is a thread curve. This can
be used in conjunction with UF_DRAW_ask_group_of_curve to determine
if a thread curve is a thread silhouette or thread section edge.

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

 
int UF_DRAW_is_thread_curve
(
tag_t curve_tag,
logical * is_thread_curve
)
tag_t (tag_t类型)curve_tagInput(输入)Tag of curve
logical *is_thread_curveOutput(输出)TRUE = curve is a thread curve
(thread silhouette or section edge)
FALSE = curve is not a thread curve

 


 
UF_DRAW_move_sxline_rotpt (查看源代码)
 
定义在: uf_draw.h
 
概述
Moves a section line rotation point to a location defined by the input
new object, then updates all of the section line's associated section
views located on the current drawing. Associated section views not on
the current drawing are marked out of date. To perform edits on the
section line without an update, use the suppress view update feature
provided in UF_DRF_set_suppress_view_update.

环境
内部和外部

参见
UF_DRAW_create_revolved_sxview
UF_DRF_set_suppress_view_update
for more information on revolved section lines and section views.
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_move_sxline_rotpt
(
tag_t sxline_tag,
UF_DRF_object_p_t new_object
)
tag_t (tag_t类型)sxline_tagInput(输入)Tag of revolved section line
UF_DRF_object_p_tnew_objectInput(输入)New object to associate rotation point

 


 
UF_DRAW_move_sxline_sxseg (查看源代码)
 
定义在: uf_draw.h
 
概述
Moves a section line segment to a location defined by the input
new_object, then updates all of the section line's associated section
views located on the current drawing. Associated section views not on
the current drawing are marked out of date. To perform edits on the
section line without an update, use the suppress view update feature
provided in UF_DRF_set_suppress_view_update.


Figure. Moving section line segments

环境
内部和外部

参见
UF_DRF_set_suppress_view_update
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_move_sxline_sxseg
(
tag_t sxseg_tag,
UF_DRF_object_p_t new_object
)
tag_t (tag_t类型)sxseg_tagInput(输入)Tag of section line segment to move.
UF_DRF_object_p_tnew_objectInput(输入)New object to associate segment.

 


 
UF_DRAW_move_sxseg (查看源代码)
 
定义在: uf_draw.h
 
概述
Moves a section line segment to a location defined by the input new
object of sxseg_data, then updates all of the section line's associated
section views located on the current drawing. Associated section views
not on the current drawing are marked out of date. To perform this
edit on the section line without an update, use the suppress view
update feature provided in UF_DRF_set_suppress_view_update.

环境
内部和外部

参见
UF_DRF_set_suppress_view_update
UF_DRAW_sxline_sxsegs_t
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_move_sxseg
(
tag_t sxseg_tag,
UF_DRAW_sxline_sxsegs_p_t sxseg_data
)
tag_t (tag_t类型)sxseg_tagInput(输入)Tag of section line segment to move.
UF_DRAW_sxline_sxsegs_p_tsxseg_dataInput(输入)Segment data contains:
segment type: UF_DRAW_sxseg_cut,
linear segment angle, and object to
associate to. The sxseg_object is used
to move all segments. The sxseg_angle
is used to move an unfolded sxseg.

 


 
UF_DRAW_move_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine moves a specified view to the given position on the
current drawing.

环境
内部和外部

参见
UF_DRAW_copy_view
UF_DRAW_move_view_to_drawing
See the example

历史
Original release was in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_move_view
(
const tag_t view_tag,
const double drawing_reference_point [ 2 ]
)
const tag_tview_tagInput(输入)Drawing member view to move. It must be on
the current drawing.
const doubledrawing_reference_point [ 2 ] Input(输入)Desired drawing reference point, in
drawing coordinates.

 


 
UF_DRAW_move_view_to_drawing (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine moves a drawing member view to the specified drawing.
Annotation spanning the view and other views on the drawing are
deleted. If the view does not fit on a smaller destination drawing, an
error is returned.

环境
内部和外部

参见
UF_DRAW_copy_view
UF_DRAW_move_view
See the example

历史
Original release was in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_move_view_to_drawing
(
tag_t view_tag,
const tag_t drawing_tag
)
tag_t (tag_t类型)view_tagInput(输入)Tag of drawing member view to move. It must be
on the current drawing.
const tag_tdrawing_tagInput(输入)Destination drawing tag. It must not be the current
drawing.

 


 
UF_DRAW_open_drawing (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine opens a drawing.

环境
Internal and External

参见
See the example program ufd_drw_create_drawing.c

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_open_drawing
(
const tag_t drawing_tag
)
const tag_tdrawing_tagInput(输入)Tag of drawing to open.

 


 
UF_DRAW_redefine_sxline_hinge (查看源代码)
 
定义在: uf_draw.h
 
概述
Redefines the section line's hinge line given the tag of a section line
and a drafting line object. The section view and any details of the
section view are reoriented about their center to reflect the newly
defined hinge line.

To perform this edit on the section line without an update, use the
suppress view updated feature provided in UF_DRF_set_suppress_view_update.

NOTE: The hinge_line.line_assoc_type must be either
UF_DRF_dwg_line, UF_DRF_existing_line or UF_DRF_two_points.
If hinge_line.line_assoc_type is UF_DRF_dwg_line, the hinge line has
no associativity and is defined by a direction vector defined from
hinge_line.object1.assoc_dwg_pos to hinge_line.point_object2.assoc_dwg_pos.

返回
Return code:
0 = No error
UF_DRAW_hinge_not_linear = warning
not 0 = Error code

环境
内部和外部

参见
UF_DRF_set_suppress_view_update
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_redefine_sxline_hinge
(
tag_t sxline_tag,
UF_DRF_line_object_p_t hinge_line,
logical arrow_same_dir
)
tag_t (tag_t类型)sxline_tagInput(输入)section line tag
UF_DRF_line_object_p_thinge_lineInput(输入)object to associate hinge line to
logicalarrow_same_dirInput(输入)If true, the new arrow direction will point
away from the new hinge line in the same
relative direction as the old arrow pointed
away from the old hinge line. Else, the
direction is flipped.

 


 
UF_DRAW_remove_break_region (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine removes a break region from a given view.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_broken_view.c to review an example of using
this function.

环境
Internal and External

历史
New for V17.0
 
需要许可证(S)
drafting

 
int UF_DRAW_remove_break_region
(
tag_t break_region,
logical delete_curves
)
tag_t (tag_t类型)break_regionInput(输入)Tag of the break region to be removed
logicaldelete_curvesInput(输入)Whether or not to delete the
visible break region boundary curves.

 


 
UF_DRAW_remove_breakout (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine removes a breakout section from a given view.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_cre_breakout.c to review an example of using
this function.

环境
Internal and External

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_remove_breakout
(
tag_t breakline,
logical delete_curves
)
tag_t (tag_t类型)breaklineInput(输入)Tag of a curve in the breakout.
logicaldelete_curvesInput(输入)Whether or not to delete the
breakout curves.

 


 
UF_DRAW_remove_dmv_rotation_plane (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine removes the associativity between the plane tag and the view,
and restores the view orientation.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

环境
Internal and External

历史
New for V18.0
 
需要许可证(S)
drafting

 
int UF_DRAW_remove_dmv_rotation_plane
(
const tag_t view
)
const tag_tviewInput(输入)Tag of the view

 


 
UF_DRAW_rename_drawing (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine renames a drawing.

环境
Internal and External

参见
See the example program ufd_drw_rename_drawing.c

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_rename_drawing
(
const tag_t drawing_tag,
const char * new_drawing_name
)
const tag_tdrawing_tagInput(输入)Tag of the drawing.
If NULL_TAG, use current drawing
const char *new_drawing_nameInput(输入)New name for the drawing.

 


 
UF_DRAW_retrieve_drawing_cgm (查看源代码)
 
定义在: uf_draw.h
 
概述
UF_DRAW_retrieve_drawing_cgm

DESCRIPTION -
Function will retrieve drawing cgm data stored in NX QAF.
The drawing cgm data will be stored in TMP_DIR, the file name will be
TMP_DIR/file_name-sheet_name.cgm

Returns -
0 = OK
if not 0 = error code
 
需要许可证(S)
drafting

 
int UF_DRAW_retrieve_drawing_cgm
(
char * file_name,
char * * * out_file_names,
int * num_sheets
)
char * (字符型指针)file_nameInput(输入)file name used to query cgm data
char * * *out_file_namesOutput to be freed
输出并释放
an array of output name files
int * (整数型指针)num_sheetsOutput(输出)number of output file names

 


 
UF_DRAW_set_auto_update (查看源代码)
 
定义在: uf_draw.h
 
概述
This function sets the current value of the Automatic Update
preference.

环境
内部和外部

参见
UF_DRAW_ask_auto_update
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_set_auto_update
(
tag_t view_tag,
logical * auto_update
)
tag_t (tag_t类型)view_tagInput(输入)Tag of view object
logical *auto_updateOutput(输出)TRUE = Automatically update the view
FALSE = Do not automatically update the view

 


 
UF_DRAW_set_border_color (查看源代码)
 
定义在: uf_draw.h
 
概述
UF_DRAW_set_border_color

DESCRIPTION -
Set the color of view borders


PARAMETERS -
border_color <I> Color of view borders
Returns -
0 = OK
if not 0 = error code
 
需要许可证(S)
drafting

 
int UF_DRAW_set_border_color
(
int border_color
)
int (整数型)border_colorInput(输入)

 


 
UF_DRAW_set_border_display (查看源代码)
 
定义在: uf_draw.h
 
概述
UF_DRAW_set_border_display

DESCRIPTION -
Set the view border display status


PARAMETERS -
border_display <I> True, if borders are to be displayed
Returns -
0 = OK
if not 0 = error code
 
需要许可证(S)
drafting

 
int UF_DRAW_set_border_display
(
logical border_display
)
logicalborder_displayInput(输入)

 


 
UF_DRAW_set_boundary_assoc (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine makes the boundary associative with the model by
making each defining point in the boundary a smart point which is at a
fixed offset from the anchor point. The view's anchor point must be
defined, and it must be a smart point which is associated with the
model. This function uses the structure boundary_curves to return the
tags of each boundary curve's smart defining points. For this function
to successfully complete, none of the curves in the boundary can
already be associative with the model. If the boundary contains a
spline, that spline must be defined via defining points and cannot have
tangency or curvature constraints.

环境
内部和外部

参见
UF_DRAW_define_view_boundary
UF_DRAW_edit_boundary_point

返回
Return code:
UF_DRAW_NO_ERRORS - The view boundary was successfully
made to be associative.
UF_DRAW_tag_is_null - The view tag or the model_reference_pt
tag is null.
UF_DRAW_invalid_parameter - A parameter is invalid, such as
curve_count is less than or equal
to zero.
UF_DRAW_anchor_point_is_not_smart_point - The anchor point is
not a smart point
associated with the
model.
UF_DRAW_sketch_object - At least one of the curves in the
boundary belongs to a sketch.
UF_DRAW_curve_is_associative - At least one of the curves in the
boundary is already associative
and has smart defining points.
UF_DRAW_invalid_spline - There is a spline in the boundary which
violates the following rule. The spline
must be defined via defining points and
cannot have tangency or curvature
constraints.

参见
See the example

历史
Original release was in V14.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_set_boundary_assoc
(
tag_t view,
int * curve_count,
UF_DRAW_view_boundary_p_t * boundary_curves
)
tag_t (tag_t类型)viewInput(输入)Tag of the view whose boundary is to be
made associative. The view must have
a break line/detail boundary type. The
view must have an anchor point
defined.
int * (整数型指针)curve_countOutput(输出)Pointer to count of curves in curve list
UF_DRAW_view_boundary_p_t *boundary_curvesOutput to be freed
输出并释放
Pointer to curve list, i.e. array
of structures containing the
boundary curves and the points
used to define them. Use
UF_DRAW_free_boundary to free the
pointer.

 


 
UF_DRAW_set_break_region_data (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine modifies the break region data of an existing break region.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_broken_view.c to review an example of using
this function.

环境
Internal and External

历史
New for V17.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_break_region_data
(
tag_t break_region,
UF_DRAW_break_region_data_p_t break_region_data
)
tag_t (tag_t类型)break_regionInput(输入)Tag of the break region.
UF_DRAW_break_region_data_p_tbreak_region_dataInput(输入)Break region data.

 


 
UF_DRAW_set_breakout_data (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine modifies the breakout data of an existing breakout
section by deleting the existing breakout section and creating
a new one.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_cre_breakout.c to review an example of using
this function.

环境
Internal and External

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_breakout_data
(
tag_t breakline,
UF_DRAW_breakout_data_p_t breakout_data,
tag_p_t new_breakline
)
tag_t (tag_t类型)breaklineInput(输入)Tag of the existing
breakout section.
UF_DRAW_breakout_data_p_tbreakout_dataInput(输入)Breakout section data.
tag_p_tnew_breaklineOutput(输出)Tag of the new (modified)
breakout section.

 


 
UF_DRAW_set_comp_section_in_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine sets the component of a given section view to be sectioned
or non-sectioned.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

Please reference ufd_drw_comp_section_in_view.c to review an example
of using this function.

环境
Internal and External

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_comp_section_in_view
(
const tag_t component,
const tag_t sx_view,
const UF_DRAW_comp_section_in_view_t sx_property
)
const tag_tcomponentInput(输入)Tag of the component
in the section view.
const tag_tsx_viewInput(输入)Tag of the section view.
const UF_DRAW_comp_section_in_view_tsx_propertyInput(输入)Sectioning property
UF_DRAW_NON_SECTIONED
UF_DRAW_SECTIONED
UF_DRAW_NOT_VIEW_SPECIFIED

 


 
UF_DRAW_set_display_state (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine sets the drawing display state.

环境
Internal and External

参见
See the example program ufd_draw_aux_view.c

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_display_state
(
const int view_type
)
const intview_typeInput(输入)Setting Flag
1 = Modeling View
2 = Drawing View

 


 
UF_DRAW_set_dmv_rotation_plane (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine sets the plane to the drawing member view. The view will be
rotated to the plane after view update.

返回
0 = OK
if not 0 = Failing error code
Use UF_get_fail_message to obtain the message
string associated with the error code.

环境
Internal and External

历史
New for V18.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_dmv_rotation_plane
(
const tag_t view,
const tag_t plane,
const tag_t x_vector
)
const tag_tviewInput(输入)Tag of the view
const tag_tplaneInput(输入)Tag of the plane
const tag_tx_vectorInput(输入)Tag of the x direction

 


 
UF_DRAW_set_drawing_info (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the information about the current drawing, including the size,
scale, units, and projection angle. The projection angle cannot be
changed if a drawing has one or more auxiliary or orthogonal views.
NOTE: There is currently a restriction requiring the input drawing tag
to be the tag of the current drawing. We intend to relax this restriction
in the future. As a result, we are requiring the input tag to ensure that
future code changes will not be required by NX or by
NX Open API developers.

环境
内部和外部

参见
UF_DRAW_ask_drawing_info

历史
Original release was in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_set_drawing_info
(
const tag_t drawing_tag,
UF_DRAW_info_p_t drawing_info
)
const tag_tdrawing_tagInput(输入)Drawing Tag, must be the current drawing.
UF_DRAW_info_p_tdrawing_infoInput(输入)Pointer to Drawing Info Structure

 


 
UF_DRAW_set_drawing_ref_pt (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine sets the drawing reference point for a view on the drawing.
This is the point which controls where the view is on the drawing sheet.

环境
Internal and External

参见
See the example program ufd_drw_set_drawing_ref_pt.c

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_drawing_ref_pt
(
const tag_t drawing_tag,
const tag_t view_tag,
const double * reference_pt
)
const tag_tdrawing_tagInput(输入)Tag of the drawing.
If NULL_TAG, use current drawing.
const tag_tview_tagInput(输入)Tag of the view.
If NULL_TAG, use work view.
const double *reference_ptInput(输入)Reference point
(Drawing Coordinates).
[0] - X-coordinate
[1] - Y-coordinate

 


 
UF_DRAW_set_render_set_objects (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine defines the objects (solids or component sets) the given
render set will reference. The objects will replace the objects the render set
referenced prior to calling this function.

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

历史
Created in v16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_render_set_objects
(
tag_t render_set,
int number_objects,
tag_t * objects
)
tag_t (tag_t类型)render_setInput(输入)Tag of render set.
int (整数型)number_objectsInput(输入)Number of objects to be included in the render
set. Set to zero if you want the render set to
contain no objects.
tag_t * (tag_t型的指针)objectsInput(输入)number_objects
Array of solids or component sets to be
referenced by the render set. These objects will
replace the objects the render set referenced
prior to calling this function. Set to NULL if
you want the render set to contain no objects.

 


 
UF_DRAW_set_render_set_parms (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine sets the display parameters for a given render set.

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

历史
Created in v16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_render_set_parms
(
tag_t render_set,
UF_DRAW_render_prefs_t * render_parms
)
tag_t (tag_t类型)render_setInput(输入)Tag of render set.
UF_DRAW_render_prefs_t *render_parmsInput(输入)Pointer to render set
preferences structure, with
desired settings for visible
and hidden line color, font,
and widths, edge hiding edge
and hidden line options.

 


 
UF_DRAW_set_render_sets_for_view (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine defines the render sets to be rendered in the given
drawing member view. List the render sets in the desired rendering
order.

环境
内部和外部

参见
See the example program ufd_draw_render_set.c

历史
Created in v16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_render_sets_for_view
(
tag_t view,
int number_render_sets,
tag_t * render_sets
)
tag_t (tag_t类型)viewInput(输入)Tag of drawing member view.
int (整数型)number_render_setsInput(输入)Number of render sets
tag_t * (tag_t型的指针)render_setsInput(输入)Array of render sets to be rendered in the
given view. List them in the desired
rendering order.

 


 
UF_DRAW_set_suppress_view_updat (查看源代码)
 
定义在: uf_draw.h
 
概述
Changes the value of the Suppress View Update preference. This
preference is saved to the root part.
If no parts are loaded, an error will occur.
If the preference is TRUE, then functions which perform implicit
drawing update, will not update the drawing member views.
Please note that manual views do not update automatically.
For a view to automatically update, set UF_DRAW_set_auto_update to TRUE,
and set suppress_view_update to FALSE.

Note: Starting in nx2, this preference was saved with the part.
Some parts may have been inadvertently saved with suppress view updated
turned off. To allow users to override the suppress view update setting,
an environment variable "UGII_SUPPRESS_VIEW_UPDATE" can be set with
values "0" or "1". If set to 1, this will prevent an automatic
update of the out-of-date views.

环境
内部和外部

参见
UF_DRF_ask_suppress_view_update
UF_DRF_update_views
UF_DRF_is_object_out_of_date
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_set_suppress_view_updat
(
logical suppress_view_update
)
logicalsuppress_view_updateInput(输入)Suppress View Update preference setting:
TRUE = suppress all system initiated view updates.
FALSE = allow all system initiated view updates.

 


 
UF_DRAW_set_sxline_default_prfs (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the section line default display preferences, including visibility
and arrow parameters.

环境
内部和外部

参见
UF_DRAW_arror_parms_t
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_set_sxline_default_prfs
(
UF_DRAW_arrow_parms_p_t arrow_parms,
UF_DRAW_sxline_display_t sxline_display
)
UF_DRAW_arrow_parms_p_tarrow_parmsInput(输入)Section line arrow parameters
UF_DRAW_sxline_display_tsxline_displayInput(输入)Section line display:
UF_DRAW_display_sxline = display
section line.
UF_DRAW_no_display_sxline = do not
display section line.

 


 
UF_DRAW_set_sxview_display (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the value of a specified section view display preference.

环境
内部和外部

参见
UF_DRAW_ask_sxview_display
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_set_sxview_display
(
tag_t view_tag,
UF_DRAW_sxview_prfs_t * sxview_parms
)
tag_t (tag_t类型)view_tagInput(输入)Tag of section view object
UF_DRAW_sxview_prfs_t *sxview_parmsInput(输入)Data structure contains the section
view preference parameters.

 


 
UF_DRAW_set_view_anchor (查看源代码)
 
定义在: uf_draw.h
 
概述
Defines an associative view reference point that is to coincide with the
view anchor point. The anchor point must be on the model, or in the
view (not on the drawing sheet). An anchor point cannot be a point on
a drawing member view's boundary curves. The anchor point must be
a smart point. If you wish to use a "dumb point" to set the view
reference point, use uc6484.

Please reference ufd_drw_set_view_anchor.c to review an example of
using this function.

环境
内部和外部

参见
UF_DRAW_ask_view_anchor
See the example

历史
Original release was in V13.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_anchor
(
const tag_t view_tag,
const tag_t anchor_point
)
const tag_tview_tagInput(输入)Tag of the view whose location is to be defined.
const tag_tanchor_pointInput(输入)Tag of a smart point which defines the location of
the model that will coincide with the drawing
reference point The point must be a smart point
(see uf_so.h).

 


 
UF_DRAW_set_view_angle (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the view angle to a specific value.

环境
Internal & External

参见
See UF_DRAW_ask_view_angle
See example

历史
This function was originally released in V15.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_angle
(
tag_t view_tag,
double angle
)
tag_t (tag_t类型)view_tagInput(输入)The view tag
double (实数型)angleInput(输入)The new angle in degrees.

 


 
UF_DRAW_set_view_display (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the value of a specified view display preference for a specific
drawing member view.

Note: Call UF_DRAW_update_one_view() to force this view to
update after calling UF_DRAW_set_view_display()

环境
内部和外部

参见
UF_DRAW_ask_view_display
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_display
(
tag_t view_tag,
UF_DRAW_view_prfs_t* view_parms
)
tag_t (tag_t类型)view_tagInput(输入)Tag of drawing member view
UF_DRAW_view_prfs_t*view_parmsInput(输入)Data structure contains the hidden line
removal, edge hiding edge, silhouette, uv
hatch, smooth edge display, smooth edge color,
font, width and gap, virtual intersection
color, font, width, gap, and status,
tolerance, and hidden line color, font, and
width parameters.

 


 
UF_DRAW_set_view_label_parms (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine sets the parameters of a view label and updates the view
label.

返回
0 = successful
= UF_DRAW_invalid_parameter

环境
内部和外部

历史
Created in v17.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_label_parms
(
tag_t view_label_tag,
UF_DRAW_view_label_parms_p_t view_label_parms
)
tag_t (tag_t类型)view_label_tagInput(输入)View label tag OR NULL_TAG
to set global preferences
UF_DRAW_view_label_parms_p_tview_label_parmsInput(输入)Structure that is
filled with the view
view label parameters

 


 
UF_DRAW_set_view_parm_scale (查看源代码)
 
定义在: uf_draw.h
 
概述
Associates the expression to the view scale of drawing member views
or model views. The expression does not have to be in the same part
file as the view. An Expression from a different part file can be
associated to the view scale as long as the part containing the
expression is loaded.

返回
Return code:
0 = No error
UF_DRAW_hinge_not_linear = warning
not 0 = Error code

环境
内部和外部

参见
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_parm_scale
(
tag_t view,
tag_t exp_tag
)
tag_t (tag_t类型)viewInput(输入)The scale of this view is made associative to the expression.
tag_t (tag_t类型)exp_tagInput(输入)The expression which is to be associated to the view scale.

 


 
UF_DRAW_set_view_scale (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the view scale to a specific value.

环境
Internal and External

参见
UF_DRAW_ask_view_scale
See the example

历史
This function was originally released in V15.0.
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_scale
(
tag_t view_tag,
double scale
)
tag_t (tag_t类型)view_tagInput(输入)The view tag
double (实数型)scaleInput(输入)The new scale (must be > 0.0)

 


 
UF_DRAW_set_view_status (查看源代码)
 
定义在: uf_draw.h
 
概述
This routine sets the view status in the drawing.

环境
Internal and External

参见
See the example program ufd_drw_set_view_status.c

历史
New for V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_status
(
const tag_t view_tag,
const UF_DRAW_view_status_t view_status
)
const tag_tview_tagInput(输入)Tag of the view.
If NULL_TAG, use work view.
const UF_DRAW_view_status_tview_statusInput(输入)View Status.
UF_DRAW_ACTIVE_VIEW
UF_DRAW_REFERENCE_VIEW

 


 
UF_DRAW_set_view_thd_app_pitch (查看源代码)
 
定义在: uf_draw.h
 
概述
Sets the minimum apparent pitch for all the threads in a drawing
member view. When set, any previously existing threads with an actual
pitch less than the minimum value are rendered using this value
instead.

环境
内部和外部

参见
UF_DRAW_ask_view_thd_app_pitch
UF_DRAW_ask_view_thd_meth
UF_DRAW_set_view_thd_meth
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_thd_app_pitch
(
tag_t view,
double app_picth
)
tag_t (tag_t类型)viewInput(输入)tag of drawing member view
double (实数型)app_picthInput(输入)This is a double value representing the new minimum apparent
pitch for the view. This means that although a thread may
have a smaller pitch, the smallest pitch which will be drawn
is specified by app _pitch for visual clarity. For example,
if a thread had a pitch of 0.001 inches but the minimum
apparent pitch was 0.1, the thread would be drawn showing a
pitch of 0.1, although the actual modelling data remains
unchanged with a true pitch of 0.001 inches. the minimum
apparent pitch for the view

 


 
UF_DRAW_set_view_thd_meth (查看源代码)
 
定义在: uf_draw.h
 
概述
Accepts a view tag and a thread rendering method as input
parameters. Each rendering method corresponds with an ANSI or
ISO thread standard. Valid rendering methods are:
UF_DRAW_THD_METH_NONE
UF_DRAW_THD_METH_ANSI_SIMPLIFIED
UF_DRAW_THD_METH_ANSI_SCHEMATIC
UF_DRAW_THD_METH_ANSI_DETAILED
UF_DRAW_THD_METH_ISO_SIMPLIFIED
UF_DRAW_THD_METH_ISO_DETAILED
Changing the method affects the display of all symbolic thread
features rendered in the specified view.

环境
内部和外部

参见
UF_DRAW_ask_view_thd_app_pitch
UF_DRAW_ask_view_thd_meth
UF_DRAW_set_view_thd_app_pitch
 
需要许可证(S)
drafting

 
int UF_DRAW_set_view_thd_meth
(
tag_t view,
int method
)
tag_t (tag_t类型)viewInput(输入)tag of the drawing member view
int (整数型)methodInput(输入)the thread rendering method you wish to use for this view.

 


 
UF_DRAW_upd_out_of_date_views (查看源代码)
 
定义在: uf_draw.h
 
概述
This function updates those views that are out of date.

环境
Internal and External

历史
Originally released in V16.0
 
需要许可证(S)
drafting

 
int UF_DRAW_upd_out_of_date_views
(
tag_t drawing_tag
)
tag_t (tag_t类型)drawing_tagInput(输入)If drawing_tag is the tag of a drawing,
it updates all the out of date views on
the drawing. If drawing_tag is a NULL_TAG,
it updates all the views in the part.

 


 
UF_DRAW_update_one_view (查看源代码)
 
定义在: uf_draw.h
 
概述
Updates one drawing member view on a drawing. The view update
process includes updating the view bounds, resectioning section views,
updating silhouettes, and updating hidden line display when
applicable.
NOTE: When running this function interactively you must be
operating in an application that creates, retrieves, or requires the
presence of a drawing (Gateway, Drafting, Valisys, and Genconnect).

环境
内部和外部

参见
UF_DRAW_ask_suppress_view_updat
UF_DRAW_set_suppress_view_updat
UF_DRAW_is_object_out_of_date
See the example
 
需要许可证(S)
drafting

 
int UF_DRAW_update_one_view
(
tag_t drawing_tag,
tag_t view_tag
)
tag_t (tag_t类型)drawing_tagInput(输入)Tag of drawing
tag_t (tag_t类型)view_tagInput(输入)Tag of view to update