uc5530 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5530 create a horizontal, vertical, parallel, or
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5530
(
int ip1,
tag_t np2,
int ip3,
int ip4,
tag_t np5,
int ip6,
int ip7,
char * cp8,
int ip9,
char cp10 [ ] [ 133 ] ,
double * rp11,
tag_t * nr12
)
int (整数型)ip1
tag_t (tag_t类型)np2
int (整数型)ip3
int (整数型)ip4
tag_t (tag_t类型)np5
int (整数型)ip6
int (整数型)ip7
char * (字符型指针)cp8
int (整数型)ip9
charcp10 [ ] [ 133 ]
double * (实数型指针)rp11
tag_t * (tag_t型的指针)nr12

 


 
uc5531 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5531 create a perpendicular dimension
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5531
(
tag_t np1,
tag_t np2,
int ip3,
int ip4,
char * cp5,
int ip6,
char cp7 [ ] [ 133 ] ,
double * rp8,
tag_t * nr9
)
tag_t (tag_t类型)np1
tag_t (tag_t类型)np2
int (整数型)ip3
int (整数型)ip4
char * (字符型指针)cp5
int (整数型)ip6
charcp7 [ ] [ 133 ]
double * (实数型指针)rp8
tag_t * (tag_t型的指针)nr9

 


 
uc5532 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5532 create angular dimension
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5532
(
int ip1,
tag_t np2,
int ip3,
tag_t np4,
int ip5,
char * cp6,
int ip7,
char cp8 [ ] [ 133 ] ,
double * rp9,
tag_t * nr10
)
int (整数型)ip1
tag_t (tag_t类型)np2
int (整数型)ip3
tag_t (tag_t类型)np4
int (整数型)ip5
char * (字符型指针)cp6
int (整数型)ip7
charcp8 [ ] [ 133 ]
double * (实数型指针)rp9
tag_t * (tag_t型的指针)nr10

 


 
uc5533 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5533 create an arc length, radius, diameter, or hole
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5533
(
int ip1,
tag_t np2,
char * cp3,
int ip4,
char cp5 [ ] [ 133 ] ,
double * rp6,
tag_t * nr7
)
int (整数型)ip1
tag_t (tag_t类型)np2
char * (字符型指针)cp3
int (整数型)ip4
charcp5 [ ] [ 133 ]
double * (实数型指针)rp6
tag_t * (tag_t型的指针)nr7

 


 
uc5534 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5534 create a concentric circle dimension
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5534
(
tag_t np1,
tag_t np2,
char * cp3,
int ip4,
char cp5 [ ] [ 133 ] ,
double * rp6,
tag_t * nr7
)
tag_t (tag_t类型)np1
tag_t (tag_t类型)np2
char * (字符型指针)cp3
int (整数型)ip4
charcp5 [ ] [ 133 ]
double * (实数型指针)rp6
tag_t * (tag_t型的指针)nr7

 


 
uc5540 (查看源代码)
 
定义在: uf_drf.h
 
概述
Create a drafting aid note. The line length of the note string cannot
exceed 132 characters (in C this is 133 characters which includes the
null character terminator `\0'). You can limit the number of lines that
display from a character string array by specifying the number of lines
(ip1). For example, if you make the following declarations:

int ip1=6;
char cp2[10][133];
then only the first 6 lines of the 10 line note will display.

返回
void

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

 
void uc5540
(
int ip1,
char cp2 [ ] [ 133 ] ,
double * rp3,
tag_t * nr4
)
int (整数型)ip1Input(输入)Number Of Lines Of Text
charcp2 [ ] [ 133 ] Input(输入)Text Array Of ip1 Strings.
double * (实数型指针)rp3Input(输入)3D Object Origin (In WCS Coordinates)
tag_t * (tag_t型的指针)nr4Output(输出)Object Identifier Of Created Drafting Aid

 


 
uc5541 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5541 create a label
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5541
(
int ip1,
char cp2 [ ] [ 133 ] ,
double * rp3,
int ip4,
tag_t np5,
double * rp6,
tag_t * nr7
)
int (整数型)ip1
charcp2 [ ] [ 133 ]
double * (实数型指针)rp3
int (整数型)ip4
tag_t (tag_t类型)np5
double * (实数型指针)rp6
tag_t * (tag_t型的指针)nr7

 


 
uc5542 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5542 create an id symbol
 
需要许可证(S)
drafting

 
int uc5542
(
int ip1,
char * cp2,
char * cp3,
double * rp4,
int ip5,
int ip6,
tag_t np7,
double * rp8,
tag_t * nr9
)
int (整数型)ip1
char * (字符型指针)cp2
char * (字符型指针)cp3
double * (实数型指针)rp4
int (整数型)ip5
int (整数型)ip6
tag_t (tag_t类型)np7
double * (实数型指针)rp8
tag_t * (tag_t型的指针)nr9

 


 
uc5543 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5543 create a form and positional
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5543
(
int ip1,
char cp2 [ ] [ 133 ] ,
double * rp3,
int ip4,
int ip5,
tag_t np6,
double * rp7,
int ip8,
tag_t * nr9
)
int (整数型)ip1
charcp2 [ ] [ 133 ]
double * (实数型指针)rp3
int (整数型)ip4
int (整数型)ip5
tag_t (tag_t类型)np6
double * (实数型指针)rp7
int (整数型)ip8
tag_t * (tag_t型的指针)nr9

 


 
uc5550 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5550 read the drafting object creation - replaced by
UF_DRF_ask_object_preferences
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uc5550
(
tag_t np1,
int * ir2,
double * rr3,
char * cr4,
char * cr5
)
tag_t (tag_t类型)np1
int * (整数型指针)ir2
double * (实数型指针)rr3
char * (字符型指针)cr4
char * (字符型指针)cr5

 


 
uc5551 (查看源代码)
 
定义在: uf_drf.h
 
概述
uc5551 regenerate a drafting object with - replaced by
UF_DRF_set_object_preferences
 
需要许可证(S)
drafting

 
int uc5551
(
tag_t np1,
int * ip2,
double * rp3,
char * cp4,
char * cp5
)
tag_t (tag_t类型)np1
int * (整数型指针)ip2
double * (实数型指针)rp3
char * (字符型指针)cp4
char * (字符型指针)cp5

 


 
uc5563 (查看源代码)
 
定义在: uf_drf.h
 
概述
Add Text to an Assorted Parts Annotation (dimensions by parts)

Routine UF_DRF_create_assortpart_dim or UF_DRF_create_assortpart_aid
must be called first to initialize Open API for
dimension/drafting aid creation by parts. This routine, along with
uf5561, uf5562, and uf5564, can then be called to add lines, arcs, text,
and arrows to the dimension/drafting aid. Routine uf5565 must be
called to close the definition of the object.

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

 
void uc5563
(
int num_lines,
char text [ ] [ 133 ] ,
double * text_origin
)
int (整数型)num_linesInput(输入)Number Of lines of text
chartext [ ] [ 133 ] Input(输入)Array of text strings
double * (实数型指针)text_originInput(输入)2d origin of text string in coordinates of annotation

 


 
uc5566 (查看源代码)
 
定义在: uf_drf.h
 
概述
Edit Drafting Object Text. Replaces existing text in an existing
dimension/drafting aid. Can not be used to add text.
If the dimension text (dimensions) or main text (drafting aids) is
changed, the object is changed to indicate manual text.

返回
Return code:
1 = Success
2 = Failure
3 = Zero Object Identifier passed in
4 = Text string in a line is too long
5 = Too many text string words

环境
内部和外部
 
需要许可证(S)
drafting

 
int uc5566
(
tag_t np1,
int ip2,
int ip3,
char cp4 [ ] [ 133 ]
)
tag_t (tag_t类型)np1Input(输入)Drafting Object Identifier
int (整数型)ip2Input(输入)Text Type To Edit
1 = Dimension/Main Text
2 = Dual Dimension Text
3 = Tolerance Text
4 = Dual Tolerance Text
5 = Diameter/Radius Symbol Text
6 = Text Appended During Creation
7 = Text Appended During Editing
8 = Second Appended Text
int (整数型)ip3Input(输入)Number Of Lines Of Text
charcp4 [ ] [ 133 ] Input(输入)Array Of ip3 Text Strings.

 


 
uc5574 (查看源代码)
 
定义在: uf_drf.h
 
概述
Read Drafting Object Text Data:
This routine deciphers the ann_data returned from UF_DRF_ask_ann_data and
returns just one text string. This routine can be called once for each
text string (or segment) in the data block. The number of segments
is returned by UF_DRF_ask_ann_data.

环境
内部和外部

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

 
int uc5574
(
int ip1,
int * ann_data,
char * cr3,
int * ir4,
int * ir5
)
int (整数型)ip1Input(输入)Segment Number
1 < ip1 < = num_segments returned by UF_DRF_ask_ann_data
int * (整数型指针)ann_dataInput / OutputArray of ann_data returned by UF_DRF_ask_ann_data
char * (字符型指针)cr3Output(输出)Text String
int * (整数型指针)ir4Output(输出)Length of Line in 1/64th's Character Size, Expressed in Integers
int * (整数型指针)ir5Output(输出)Number of Characters in String

 


 
uf5505 (查看源代码)
 
定义在: uf_drf.h
 
概述
Create Kanji Note

The 23.ugf file must be accessible to the program calling this
subroutine. The maximum number of characters per row is 132. The
maximum number of rows is 50. Subject to the above, the maximum
number of characters in the note is 650.

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

 
void uf5505
(
int * ia1,
int * ip2,
double * rp3,
double * rp4,
double * ra5,
int * ip6,
double * rp7,
double * rp8,
double * rp9,
tag_t * nr10
)
int * (整数型指针)ia1Input(输入)Kanji Codes
(1) = Count Of Characters In First Row
(2..N) = Codes For First Row
(N+1) = Count Of Characters In Second Row
(N+2..M)= Codes For Second Row
(Z) = 0 (End Of Data)
int * (整数型指针)ip2Input(输入)Density:
0 = Use Kanji Default
1 = Normal
2 = Heavy
3 = Thin
double * (实数型指针)rp3Input(输入)Character Size
0 = Use Kanji Default
double * (实数型指针)rp4Input(输入)Text Angle (In Radians)
double * (实数型指针)ra5Input(输入)Origin (X,Y in Work Coordinates)
int * (整数型指针)ip6Input(输入)Orientation:
0 = Use Kanji Default
1 = Left To Right
2 = Top To Bottom
double * (实数型指针)rp7Input(输入)Character Height
double * (实数型指针)rp8Input(输入)Character Width
double * (实数型指针)rp9Input(输入)Character Spacing
tag_t * (tag_t型的指针)nr10Output(输出)Kanji Note Object Identifier

 


 
uf5506 (查看源代码)
 
定义在: uf_drf.h
 
概述
Read Kanji Note

The 23.ugf file must be accessible to the program calling that
subroutine. The maximum number of characters per row is 132. The
maximum number of rows is 50. Subject to the above, the maximum
number of characters in the note is 650.
The origin that returns is in units relative to the creation matrix of the
Kanji entity. To convert these coordinates to WCS space, you can use
the following code:
UF_CSYS_ask_matrix_of_object(entity_tag[inx1], &matrix_id);
UF_CSYS_ask_matrix_values(matrix_id, matrix);
UF_MTX3_transpose(matrix, matrix_transpose);
UF_MTX3_vec_multiply(origin, matrix_transpose, model_origin)

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

 
void uf5506
(
tag_t * np1,
int * iar2,
int * ir3,
double * rr4,
double * rr5,
double * rar6,
int * ir7,
double * rr8,
double * rr9,
double * rr10
)
tag_t * (tag_t型的指针)np1Input(输入)Kanji Note Object Identifier
int * (整数型指针)iar2Output(输出)Kanji Codes
(1) = Count Of Characters In First Row
(2..N) = Codes For First Row
(N+1) = Count Of Characters In Second Row
(N+2..M)= Codes For Second Row
(Z) = 0 (End Of Data)
int * (整数型指针)ir3Output(输出)Density:
1 = Normal
2 = Heavy
3 = Thin
double * (实数型指针)rr4Output(输出)Character Size
double * (实数型指针)rr5Output(输出)Text Angle (In Radians)
double * (实数型指针)rar6Output(输出)Origin (X,Y,Z). See description above.
int * (整数型指针)ir7Output(输出)Orientation:
1 = Left To Right
2 = Top To Bottom
double * (实数型指针)rr8Output(输出)Character Height
double * (实数型指针)rr9Output(输出)Character Width
double * (实数型指针)rr10Output(输出)Character Spacing

 


 
uf5522 (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the drafting parameters to the same values as an object.

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

 
void uf5522
(
tag_t * np1,
int * ir2
)
tag_t * (tag_t型的指针)np1Input(输入)The object that we want the drafting parameters to be set from.
int * (整数型指针)ir2Output(输出)The error code from the operation. 0 is success, 1 is failure

 


 
uf5523 (查看源代码)
 
定义在: uf_drf.h
 
概述
Read the current drafting display parameters.

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

 
void uf5523
(
int * ir1,
double * rr2
)
int * (整数型指针)ir1Output(输出)A 10 element array that will be filled with the drafting display
parameters. The elements of the arrary are defined as:
(0) MARGIN DISPLAY
1 = DISPLAY MARGINS
2 = DO NOT DISPLAY MARGINS
(1) FAST FONT
1 = FAST FONT ON
2 = FAST FONT OFF
(2) TEXT BOX MODE
1 = TEXT BOX MODE ON
2 = TEXT BOX MODE OFF
(3) INDICATOR SITE
1 = DISPLAY INDICATOR SITE
2 = DO NOT DISPLAY INDICATOR SITE
(4) TEXT SCALING FOR PART MERGE AND TRANSFORMATIONS
1 = SCALE TEXT
2 = DO NOT SCALE TEXT
(5) FILLED ARROWHEAD DISPLAY
1 = DISPLAY FILLED ARROWHEAD
2 = DO NOT DISPLAY FILLED ARROWHEAD
(6) - (9) RESERVED FOR FUTURE USE
double * (实数型指针)rr2Output(输出)A 5 element array that will be filled with the drafting
display parameters.
Currently only the first parameter rr2[0] is used.
rr2[0] holds the character slant (in degrees).

 


 
uf5524 (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the current drafting display parameters.

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

 
void uf5524
(
int * ip1,
double * rp2
)
int * (整数型指针)ip1Input(输入)A 10 element array that contains the new drafting display
parameters.
double * (实数型指针)rp2Output(输出)A 5 element array that contains the new drafting display
parameters.

 


 
uf5547 (查看源代码)
 
定义在: uf_drf.h
 
概述
uf5547 create a area fill
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
void uf5547
(
int * ip1,
int * ip2,
tag_t * np3,
tag_t * nr4,
int * ir5
)
int * (整数型指针)ip1
int * (整数型指针)ip2
tag_t * (tag_t型的指针)np3
tag_t * (tag_t型的指针)nr4
int * (整数型指针)ir5

 


 
uf554a (查看源代码)
 
定义在: uf_drf.h
 
概述
Validates that selected object (entity) for creation of centerline is
either an arc or a point. If the entity is an arc or a point, a
drafting point is output.

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

 
void uf554a
(
tag_t * np1,
tag_t * nr2
)
tag_t * (tag_t型的指针)np1Input(输入)EID of selected entity
tag_t * (tag_t型的指针)nr2Output(输出)EID of drafting point
NULL_TAG = Invalid entity selected
(Not an arc or point)
if not NULL_TAG = drafting point

 


 
uf554b (查看源代码)
 
定义在: uf_drf.h
 
概述
Validates that selected object (entity) is either an arc or a point.
If the entity is an arc or a point, the coordinates of the point or
arc center point are output.

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

 
void uf554b
(
tag_t * np1,
double * rr2,
int * ir3
)
tag_t * (tag_t型的指针)np1Input(输入)EID of point or arc
double * (实数型指针)rr2Output(输出)Coordinates of point or arc center point
int * (整数型指针)ir3Output(输出)Return Code:
0 = Successful
1 = Invalid entity object selected
(Not a point or an arc)

 


 
uf554c (查看源代码)
 
定义在: uf_drf.h
 
概述
Ufunc program for creation of centerlines

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

 
void uf554c
(
const int * ip1,
const int * ip2,
const tag_t * np3,
const tag_t * np4,
const double * rp5,
tag_t * nr6,
int * ir7
)
const int *ip1Input(输入)TYPE OF CENTERLINE TO CREATE
1 = LINEAR
2 = FULL CIRCULAR --- CENTER POINT METHOD
3 = PARTIAL CIRCULAR --- CENTER POINT METHOD
4 = FULL BOLT CIRCLE --- CENTER POINT METHOD
5 = PARTIAL BOLT CIRCLE --- CENTER POINT METHOD
6 = FULL CIRCULAR --- THRU 3 POINTS METHOD
7 = PARTIAL CIRCULAR --- THRU 3 POINTS METHOD
8 = FULL BOLT CIRCLE --- THRU 3 POINTS METHOD
9 = PARTIAL BOLT CIRCLE --- THRU 3 POINTS METHOD
10 = OFFSET CYLINDRICAL --- KEYIN OFFSET DISTANCE METHOD
11 = OFFSET CYLINDRICAL --- CALCULATE OFFSET DISTANCE METHOD
12 = SYMMETRICAL
13 = OFFSET CENTER POINT --- XC-AXIS, DISTANCE FROM ARC NORMAL
METHOD
14 = OFFSET CENTER POINT --- XC-AXIS, DISTANCE FROM ARC CENTER
METHOD
15 = OFFSET CENTER POINT --- XC-AXIS, DISTANCE CALCULATED
METHOD
16 = OFFSET CENTER POINT --- YC-AXIS, DISTANCE FROM ARC
NORMAL METHOD
17 = OFFSET CENTER POINT --- YC-AXIS, DISTANCE FROM ARC
CENTER METHOD
18 = OFFSET CENTER POINT --- YC-AXIS, DISTANCE CALCULATED
METHOD
const int *ip2Input(输入)NUMBER OF ENTITIES IN ARRAY
const tag_t *np3Input(输入)ARRAY OF ENTITY IDs THAT ARE TO BE ASSOCIATED
TO THE CENTERLINE
const tag_t *np4Input(输入)ENTITY ID
IF "IP1" IS 1 ................. NOT USED
IF "IP1" IS 2 - 5 ............. ENTITY SELECTED FOR CENTERLINE
CENTER POINT
IF "IP1" IS 6 - 9 ............. NOT USED
IF "IP1" IS 10, 11 ............ ENTITY SELECTED FOR
CALCULATING THE OFFSET
DISTANCE
IF "IP1" IS 12 - 14, 16, 17 ... NOT USED
IF "IP1" IS 15, 18 ............ ENTITY SELECTED FOR
CALCULATING DISTANCE TO
BE USED IN PLACEMENT OF THE
OFFSET CENTER POINT
const double *rp5Input(输入)DISTANCE VALUE
IF "IP1" IS 1 - 9 ............. NOT USED
IF "IP1" IS 10 ................ OFFSET DISTANCE
IF "IP1" IS 11, 12, 15, 18 .... NOT USED
IF "IP1" IS 13, 16 ............ DISTANCE FROM ARC NORMAL
IF "IP1" IS 14, 17 ............ DISTANCE FROM ARC CENTER
tag_t * (tag_t型的指针)nr6Output(输出)ENTITY ID OF CENTERLINE
int * (整数型指针)ir7Output(输出)RETURN CODE:
= 0 SUCCESSFUL COMPLETION
= 1 NO ENTITIES SUPPLIED
= 2 MORE THAN 100 ENTITIES SUPPLIED
= 3 CENTERLINE TYPE REQUIRES 3 OR MORE ENTITIES
= 4 CENTERLINE TYPE REQUIRES 2 ENTITIES
= 5 CENTERLINE TYPE REQUIRES 1 ENTITY
= 6 INVALID ENTITY TYPE FOR CENTERLINE
= 7 POINTS ARE COINCIDENT
= 8 POINT IS NOT ON CENTERLINE
= 9 INVALID ENTITY TYPE FOR CENTER POINT
= 10 POINT IS COINCIDENT WITH CENTER
= 11 POINTS ARE COLLINEAR
= 12 INVALID ENTITY TYPE FOR OFFSET POINT
= 13 INVALID CENTERLINE TYPE
= 14 OFFSET CENTER POINT CENTERLINE REQUIRES AN ARC
= 15 MODEL ENTITIES WERE SUPPLIED ON A DRAWING
(NOT SUPPORTED)

 


 
uf5552 (查看源代码)
 
定义在: uf_drf.h
 
概述
Read drafting object origin.

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

 
void uf5552
(
tag_t * np1,
double * rr2,
int * ir3
)
tag_t * (tag_t型的指针)np1Input(输入)Drafting object identifier.
double * (实数型指针)rr2Output(输出)3D object origin in model space coordinates.
int * (整数型指针)ir3Output(输出)Return code. 0 = success, 1 = failure.

 


 
uf5553 (查看源代码)
 
定义在: uf_drf.h
 
概述
Edits the drafting object origin.

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

 
void uf5553
(
tag_t * np1,
double * rp2,
int * ir3
)
tag_t * (tag_t型的指针)np1Input(输入)Drafting Object Identifier
double * (实数型指针)rp2Input(输入)3-D Object Origin (In model space coordinates)
int * (整数型指针)ir3Output(输出)Return code:
1 = Success
2 = Failure

 


 
uf5554 (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the number of objects that are associated to a drafting object.

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

 
void uf5554
(
tag_t * np1,
int * ir2
)
tag_t * (tag_t型的指针)np1Input(输入)Object Identifier Of Drafting Object
int * (整数型指针)ir2Output(输出)Number Of Associated Objects

 


 
uf5555 (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the n-th associated object of a drafting object.

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

 
void uf5555
(
tag_t * np1,
int * ip2,
tag_t * nr3
)
tag_t * (tag_t型的指针)np1Input(输入)Object Identifier Of Drafting Object
int * (整数型指针)ip2Input(输入)Index Number Of The Associated Object
tag_t * (tag_t型的指针)nr3Output(输出)Object Identifier Of N-th Associated Object

 


 
uf5561 (查看源代码)
 
定义在: uf_drf.h
 
概述
Add Lines to an Assorted Parts Annotation (dimensions by parts)

Routine UF_DRF_create_assortpart_dim or UF_DRF_create_assortpart_aid
must be called first to initialize Open API for
dimension/drafting aid creation by parts. This routine, along with
uf5562, uf5563, and uf5564 can then be called to add lines, arcs, text,
and arrows to the dimension/drafting aid. Routine uf5565 must be
called to close the definition of the object.

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

 
void uf5561
(
int * num_lines,
double * line_coords
)
int * (整数型指针)num_linesInput(输入)Number Of Lines. This must not exceed MAX_LINES.
double * (实数型指针)line_coordsInput(输入)Array Of Line Points
[0]Line 1, End 1, X Pos
[1]Line 1, End 1, Y Pos
[2]Line 1, End 2, X Pos
[3]Line 1, End 2, Y Pos
[4]Line 2, End 1, X Pos
.
.
.
Line IP1, End 2, Y Pos

 


 
uf5562 (查看源代码)
 
定义在: uf_drf.h
 
概述
Add Arcs to an Assorted Parts Annotation (dimensions by parts)

Routine UF_DRF_create_assortpart_dim or UF_DRF_create_assortpart_aid
must be called first to initialize Open API for
dimension/drafting aid creation by parts. This routine, along with
uf5561, uf5563, and uf5564 can then be called to add lines, arcs, text,
and arrows to the dimension/drafting aid. Routine uf5565 must be
called to close the definition of the object.

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

 
void uf5562
(
int * num_arcs,
double * arc_data
)
int * (整数型指针)num_arcsInput(输入)Number Of Arc segments (not to exceed MAX_ARC_SEGMENTS)
double * (实数型指针)arc_dataInput(输入)Arc data
[0,1] 2D Arc center In Coordinates Of annotation
[2] Arc Radius
[3,4] Start and End Angles (In Radians)
.
.
.
[2num_arcs+1,2num_arcs+2] segment angles

 


 
uf5564 (查看源代码)
 
定义在: uf_drf.h
 
概述
Add an Arrow to an Assorted Parts Annotation (dimensions by parts)

Routine UF_DRF_create_assortpart_dim or UF_DRF_create_assortpart_aid
must be called first to initialize Open API for
dimension/drafting aid creation by parts. This routine, along with
uf5561, uf5562, and uf5563, can then be called to add lines, arcs, text,
and arrows to the dimension/ drafting aid. Routine uf5565 must be
called to close the definition of the object.

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

 
void uf5564
(
int * arrowhead_subtype,
double * arrow_origin,
double * arrow_angle
)
int * (整数型指针)arrowhead_subtypeInput(输入)Arrowhead Of Subtype
1 = Closed
2 = Open
3 = Arch Cross
4 = Dot
5 = Origin Symbol
6 = None
double * (实数型指针)arrow_originInput(输入)2d arrow origin in coordinates of annotation
double * (实数型指针)arrow_angleInput(输入)Arrow Angle (Radians)

 


 
uf5565 (查看源代码)
 
定义在: uf_drf.h
 
概述
Close an Assorted Parts Annotation (dimensions by parts)

This routine closes the definition by parts and creates the
dimension/drafting aid. This routine is called after
routine UF_DRF_create_assortpart_dim or UF_DRF_create_assortpart_aid has
been called to initialize the definition and routines uf5561 through uf5564
have been called to add lines, arcs, text, and arrows.

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

 
void uf5565
(
tag_t * annotation_tag
)
tag_t * (tag_t型的指针)annotation_tagOutput(输出)Annotation tag

 


 
uf5575 (查看源代码)
 
定义在: uf_drf.h
 
概述
Obtain Coordinates of Dimension Area Box

Returns the lower left and upper right coordinates of a dimension
area box.

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

 
void uf5575
(
tag_t * np1,
double * rar2,
double * rar3,
int * ir4
)
tag_t * (tag_t型的指针)np1Input(输入)Drafting Object Identifier
double * (实数型指针)rar2Output(输出)Lower Left Coordinate
double * (实数型指针)rar3Output(输出)Upper Right Coordinate
int * (整数型指针)ir4Output(输出)Return code:
0 = Success
1 = Error - NP1 Not A Drafting Object

 


 
UF_DRF_add_assortpart_to_ann (查看源代码)
 
定义在: uf_drf.h
 
概述
Adds Assorted Parts to an Annotation.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_add_assortpart_to_ann
(
tag_t annotation_tag,
int number_of_objects,
tag_t * list_of_objects
)
tag_t (tag_t类型)annotation_tagInput(输入)annotation tag to add assorted parts
int (整数型)number_of_objectsInput(输入)number of objects to add
tag_t * (tag_t型的指针)list_of_objectsInput(输入)number_of_objects
list of object tags to add

 


 
UF_DRF_add_compound_weld_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Add compound weld symbol

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_NO_ERRORS - No error
UF_err_program_not_initialized - Open C API has not been
initialized
UF_DRF_null_object_structure

环境
Internal and External

参见
UF_DRF_ weld_symbols_t
UF_DRF_object_t

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

 
int UF_DRF_add_compound_weld_symbol
(
tag_t weld_symbol,
UF_DRF_weld_sym_info_t * top_info,
UF_DRF_weld_sym_info_t * bottom_info
)
tag_t (tag_t类型)weld_symbolInput(输入)tag of the weld symbol for which compound weld
info has to be added
UF_DRF_weld_sym_info_t *top_infoInput(输入)compound weld symbol info for top
UF_DRF_weld_sym_info_t *bottom_infoInput(输入)compound weld symbol info for bottom

 


 
UF_DRF_add_controlling_exp (查看源代码)
 
定义在: uf_drf.h
 
概述
Link drafting object to the controlling expression

环境
内部和外部

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

 
int UF_DRF_add_controlling_exp
(
tag_t object,
tag_t exp_id
)
tag_t (tag_t类型)objectInput(输入)Drafting object
tag_t (tag_t类型)exp_idInput(输入)Controlling expression

 


 
UF_DRF_add_symbol_to_object (查看源代码)
 
定义在: uf_drf.h
 
概述
Adds a symbol to a drafting object.

环境
内部和外部

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

 
int UF_DRF_add_symbol_to_object
(
UF_DRF_symbol_create_data_t * symbol_data,
tag_t object_tag
)
UF_DRF_symbol_create_data_t *symbol_dataInput(输入)symbol data (see uf_drf_types.h)
tag_t (tag_t类型)object_tagInput(输入)drafting object tag

 


 
UF_DRF_add_to_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Append text, form-position tolerance, or ID symbol to a dimension.

环境
内部和外部

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

 
int UF_DRF_add_to_dimension
(
unsigned int * entity_id,
int * segment_num,
int ann_data [ 10 ] ,
int * text_type,
int * text_position,
int * relative_just,
int * line_space,
int * number_lines,
char text_array [ ] [ 133 ]
)
unsigned int *entity_idInput(输入)Object identifier of the dimension object to be
added to.
int * (整数型指针)segment_numInput(输入)Segment number to add to. UF_DRF_ask_ann_data can be
called to find out the number of segments in a dimension.
int (整数型)ann_data [ 10 ] Input(输入)The annotation data for this dimension, returned from
UF_DRF_ask_ann_data.
int * (整数型指针)text_typeInput(输入)The type of appended text:
18 = Pure text
19 = circle ID SYMBOL text
20 = divided circle ID SYMBOL
21 = square ID SYMBOL
22 = divided square ID SYMBOL
23 = hexagon ID SYMBOL
24 = divided hexagon ID SYMBOL
25 = triangle pointed up ID SYMBOL
26 = triangle pointed down ID SYMBOL
27 = datum target ID SYMBOL
28 = rounded box ID SYMBOL
29 = Form and positional tolerance text
44 = Multi-type text
int * (整数型指针)text_positionInput(输入)Position of the appended text:
1 = below
2 = after
3 = above
4 = before
int * (整数型指针)relative_justInput(输入)Relative text justification:
1 = left
2 = center
3 = right
int * (整数型指针)line_spaceInput(输入)Flag for line spacing:
0 = No line spacing, this is the default.
1 = Use a line spacing adjustment when adding text
blocks above or below.
int * (整数型指针)number_linesInput(输入)Number of lines of text to append.
chartext_array [ ] [ 133 ] Input(输入)number_lines
Array of text strings to be appended to the dimension.

 


 
UF_DRF_are_draft_objects_const (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will determine if the current drafting objects in the system
match a set of given drafting objects previously recorded with the
UF_DRF_record_draft_objects function.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_are_draft_objects_const
(
void * objs,
logical check_view_data
)
void *objsInput(输入)Drafting object data from UF_DRF_record_draft_objects
logicalcheck_view_dataInput(输入)Should view data be compared

 


 
UF_DRF_ask_ang_obj_suppress_zeros (查看源代码)
 
定义在: uf_drf.h
 
概述
Determines if the suppress zeros option for an angular dimension is set.
Suppress zero option: display zero,
suppress leading zeros,
suppress any zeros
suppress trailing zeros.

环境
内部和外部

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

 
int UF_DRF_ask_ang_obj_suppress_zeros
(
tag_t object,
UF_DRF_angular_suppress_zeros_t * option
)
tag_t (tag_t类型)objectInput(输入)Tag id of angular dimension object
UF_DRF_angular_suppress_zeros_t *optionOutput(输出)Suppress zeros option

 


 
UF_DRF_ask_ang_obj_units_format (查看源代码)
 
定义在: uf_drf.h
 
概述
Queries the nominal and tolerance units format for an angular dimension.

环境
内部和外部

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

 
int UF_DRF_ask_ang_obj_units_format
(
tag_t object,
UF_DRF_angular_units_t * nominal_format,
UF_DRF_angular_units_t * tolerance_format
)
tag_t (tag_t类型)objectInput(输入)angular dimension
UF_DRF_angular_units_t *nominal_formatOutput(输出)angular dimension nominal format
UF_DRF_angular_units_t *tolerance_formatOutput(输出)angular dimension tolerance format

 


 
UF_DRF_ask_ann_arc_seg_angles (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask start and end Angles of an Annotation Object Arc Segment.

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

 
int UF_DRF_ask_ann_arc_seg_angles
(
int * arc_segment,
int * ann_data,
double arc_angles [ 2 ]
)
int * (整数型指针)arc_segmentInput(输入)arc segment number
int * (整数型指针)ann_dataInput / Outputannotation data
double (实数型)arc_angles [ 2 ] Output(输出)start and end angles of arc segment

 


 
UF_DRF_ask_ann_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask data of an Annotation Object. The text data for the annotation
can be read by passing the ann_data array to uc5574

环境
内部和外部

参见
uc5574

历史
In V17.0 Appended Text was enhanced to allow any combination of
the 4 appended text locations. 6 and 30 are no longer returned for
the text type for 1st and 2nd appended text. Instead the following values
are returned:
50 - above appended text
51 - below appended text
52 - before appended text
53 - after appended text
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_ann_data
(
tag_t * annotation_tag,
int search_mask [ 4 ] ,
int * cycle_flag,
int ann_data [ 10 ] ,
int * ann_data_type,
int * ann_data_form,
int * num_segments,
double ann_origin [ 2 ] ,
double * radius_angle
)
tag_t * (tag_t型的指针)annotation_tagInput(输入)tag of annotation object
int (整数型)search_mask [ 4 ] Input(输入)array of data types to search
[0] != 0, line data
[1] != 0, arc data
[2] != 0, text data
[3] != 0, arrow data
int * (整数型指针)cycle_flagInput / Outputcycle flag
must be set to zero on first call
incremented to show the current number of the call
0 = no more data found
int (整数型)ann_data [ 10 ] Input / OutputArray of annotation data. The user must declare this as
int ann_data[10], and it will then be filled in by this routine.
int * (整数型指针)ann_data_typeOutput(输出)annotation data type
0 = no more data of requested types
1 = line
2 = arc
3 = text
4 = arrow
int * (整数型指针)ann_data_formOutput(输出)annotation data type form
if ann_data_type = 1
1 = RESERVED
2 = RESERVED
3 = EXTENSION LINE
4 = DIMENSION LINE
5 = STUB
6 = DUAL BRACKET
7 = BASIC TOLERANCE LINE
8 = ISO LINE
9 = ADDED LINE
if ann_data_type = 2
not used
if ann_data_type = 3
1 = DIM TEXT OR MAIN TEXT
2 = DUAL DIM TEXT
3 = TOLERANCE TEXT
4 = DUAL TOLERANCE TEXT
5 = RAD/DIA TEXT
6 = OBSOLETE
7 = TEXT APP AT EDITING
ID SYM TEXT INPUT AT CREATION:
8 = CIRCLE
9 = DIVIDED CIRCLE
10 = SQUARE
11 = DIVIDED CIRCLE
12 = HEXAGON
13 = DIVIDED HEXAGON
14 = TRIANGLE, POINT UP
15 = TRIANGLE, POINT DOWN
16 = DATUM TARGET
17 = ROUNDED BOX
18 = F&P TOL TEXT INP AT CREATION
ID SYM TEXT APPENDED AT EDITING:
19 = CIRCLE
20 = DIVIDED CIRCLE
21 = SQUARE
22 = DIVIDED CIRCLE
23 = HEXAGON
24 = DIVIDED HEXAGON
25 = TRIANGLE, POINT UP
26 = TRIANGLE, POINT DOWN
27 = DATUM TARGET
28 = ROUNDED BOX
29 = F&P TOL TEXT APP AT EDITING
30 = OBSOLETE
SECOND ID SYM TEXT INPUT AT
CREATION:
31 = CIRCLE
32 = DIVIDED CIRCLE
33 = SQUARE
34 = DIVIDED CIRCLE
35 = HEXAGON
36 = DIVIDED HEXAGON
37 = TRIANGLE, POINT UP
38 = TRIANGLE, POINT DOWN
39 = DATUM TARGET
40 = ROUNDED BOX
41 = SECOND F&P TOL TEXT INP AT
CREATION
42 = MULTI-TYPE TEXT INP AT
CREATION
43 = 2ND MULTI-TYPE TEXT APP AT
CREATION
44 = MULTI-TYPE TEXT APP AT
50 = ABOVE APPENDED TEXT
51 = BELOW APPENDED TEXT
52 = BEFORE APPENDED TEXT
53 = AFTER APPENDED TEXT
EDITING
if ann_data_type = 4
1 = CLOSED ARROW
2 = OPEN ARROW
3 = ARCH CROSS
4 = DOT
int * (整数型指针)num_segmentsOutput(输出)number of data segments
if ann_data_type = 1, line segments
= 2, arc segments
= 3, lines of text
= 4, not used
double (实数型)ann_origin [ 2 ] Output(输出)annotation data origin
if ann_data_type = 1, not used
= 2, arc origin
= 3, text origin
= 4, arrow origin
double * (实数型指针)radius_angleOutput(输出)annotation radius or angle
if ann_data_type = 1, not used
= 2, arc radius
= 3, not used
= 4, arrow angle

 


 
UF_DRF_ask_ann_line_seg_ends (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask end points of an Annotation Object Line Segment.

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

 
int UF_DRF_ask_ann_line_seg_ends
(
int * line_segment,
int * ann_data,
double line_endpoints [ 4 ]
)
int * (整数型指针)line_segmentInput(输入)line segment number
int * (整数型指针)ann_dataInput / Outputannotation data
double (实数型)line_endpoints [ 4 ] Output(输出)2D coordinates of line segment

 


 
UF_DRF_ask_annotation_template (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask for the name of the template part which is to be used to be used in
UF_DRF_inherit_feature_data.

环境
Internal and External

参见
UF_DRF_inherit_type_t
UF_DRF_ask_callout_of_annotation
UF_DRF_ask_controlling_member_of_callout
UF_DRF_ask_number_of_rows_in_callout
UF_DRF_ask_callout_row_members
UF_DRF_inherit_feature_data
UF_DRF_set_annotation_template

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

 
int UF_DRF_ask_annotation_template
(
char * * annotation_template_name
)
char * *annotation_template_nameOutput to be freed
输出并释放
the name of the annotation
template part which is used by
UF_DRF_inherit_feature_data.
The name is the same as the name
appearing in the Feature Parameters
dialog and does not contain the
directory in which the part resides
or the extension .atp.prt, for example,
ansi or iso_din

 


 
UF_DRF_ask_annotation_text_box (查看源代码)
 
定义在: uf_drf.h
 
概述
Description -
Ask the text box of an annotation object. The text box information
returned is in the format of:
upper_left - this is the upper left location point of the box
length - this is the length of the box
height - this is the height of the box

返回
0 = No error
not 0 = Error code

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

 
int UF_DRF_ask_annotation_text_box
(
tag_t annotation,
double upper_left [ 3 ] ,
double * length,
double * height
)
tag_t (tag_t类型)annotationInput(输入)Tag of the annotation
double (实数型)upper_left [ 3 ] Output(输出)Upper left point
double * (实数型指针)lengthOutput(输出)Length of box
double * (实数型指针)heightOutput(输出)Height of box

 


 
UF_DRF_ask_appended_text (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will query all the appended text for a dimension.

环境
Internal & External

参见
UF_DRF_set_appended_text
UF_DRF_free_appended_text
UF_DRF_appended_text_t

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

 
int UF_DRF_ask_appended_text
(
tag_t dimension,
int * num_text,
UF_DRF_appended_text_p_t * appended_text
)
tag_t (tag_t类型)dimensionInput(输入)Dimension object to query
int * (整数型指针)num_textOutput(输出)Number of appended text
UF_DRF_appended_text_p_t *appended_textOutput to be freed
输出并释放
Appended text. Please
use UF_DRF_free_appended_
text to free the data
returned.

 


 
UF_DRF_ask_areafill_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Finds the area fill data for the specified area fill object. The data is
contained in the area fill structure.

环境
Internal & External

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

 
int UF_DRF_ask_areafill_data
(
tag_t areafill_id,
UF_DRF_areafill_t * areafill_data
)
tag_t (tag_t类型)areafill_idInput(输入)Area fill object identifier
UF_DRF_areafill_t *areafill_dataOutput(输出)Area fill data

 


 
UF_DRF_ask_arrow_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Gets drafting arrow block parameter data.

环境
内部和外部

返回
0 = OK
1 = ERROR (a NULL entity found)
2 = ERROR (not a drafting aid nor a dimension entity)
3 = ERROR (no arrow data for this entity)
4 = ERROR (record instance is greater than total count)
5 = ERROR (included angle is 180 degree)
Other = Standard Error code
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_arrow_data
(
int data_block [ 10 ] ,
int * arrow_type,
int * filled,
double origin [ 2 ] ,
double * arrow_angle,
double * include_angle,
double * arrow_height,
double * arrow_length
)
int (整数型)data_block [ 10 ] Input(输入)Only the following array elements are used:
[0] = drafting object identifier
[4] = record instance - If a label had 4 leaders, it would
then have 4 arrows thus possible record instance values
of 1, 2, 3 and 4.
int * (整数型指针)arrow_typeOutput(输出)1 = Closed Arrow
2 = Open Arrow
3 = Arch Cross
4 = Dot
5 = Origin symbol
6 = None
int * (整数型指针)filledOutput(输出)The arrow head is either filled or open:
0 = open
1 = filled
double (实数型)origin [ 2 ] Output(输出)The x and y coordinates of the arrowhead:
[0] = x-coordinate
[1] = y-coordinate
double * (实数型指针)arrow_angleOutput(输出)The angle of the arrow line (degrees)
double * (实数型指针)include_angleOutput(输出)The arrowhead included angle (degrees)
double * (实数型指针)arrow_heightOutput(输出)The height of the arrowhead. If the arrowhead type
is 4 (dot), then this is the diameter of the dot.
double * (实数型指针)arrow_lengthOutput(输出)The length of the arrowhead

 


 
UF_DRF_ask_assoc_exp (查看源代码)
 
定义在: uf_drf.h
 
概述
Gets the expression, if it exists, associated to the specified dimension.
If there is an expression associated with the specified dimension, this
function returns its tag. If there is no expression associated with the
specified dimension, a NULL_TAG is returned.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following:
UF_DRF_NO_ERRORS - No error
UF_DRF_null_object - The object tag is NULL.
UF_DRF_invalid_object - The object is invalid for this function.
UF_err_program_not_initialized - Open API has not been initialized.

环境
内部和外部

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

 
int UF_DRF_ask_assoc_exp
(
tag_t object_tag,
tag_t * exp_tag
)
tag_t (tag_t类型)object_tagInput(输入)The tag of a dimension.
tag_t * (tag_t型的指针)exp_tagOutput(输出)The tag of the expression associated to the specified
input object tag.

 


 
UF_DRF_ask_associative_origin (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will query the associative origin information for the
annotation.

环境
内部和外部

参见
UF_DRF_has_associative_origin
UF_DRF_set_associative_origin

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

 
int UF_DRF_ask_associative_origin
(
tag_t drafting_entity,
UF_DRF_associative_origin_p_t * origin_data,
double origin [ 3 ]
)
tag_t (tag_t类型)drafting_entityInput(输入)Dimension or drafting object to query.
UF_DRF_associative_origin_p_t *origin_dataOutput to be freed
输出并释放
Data used to define the associative origin.
To free this allocated data, please use
UF_free.
double (实数型)origin [ 3 ] Output(输出)Origin of the annotation in absolute coords.

 


 
UF_DRF_ask_associativity_data (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function queries all of the associativities for the annotation
object.

环境
Internal or External

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

 
int UF_DRF_ask_associativity_data
(
tag_t object,
int * num_associativities,
UF_DRF_object_assoc_data_p_t * associativity_data
)
tag_t (tag_t类型)objectInput(输入)Dimension or drafting object in which to query the associativity
information. Valid objects include: all dimension types, labels,
id symbols, centerlines (linear, symmetrical, cylindrical, bolt hole,
etc.), intersection symbols, and GD&T symbols (with leaders).
int * (整数型指针)num_associativitiesOutput(输出)The number of associativities on the object.
UF_DRF_object_assoc_data_p_t *associativity_dataOutput to be freed
输出并释放
An array containing the information for each associativity for
that object. Use UF_free to free this array of allocated memory.

 


 
UF_DRF_ask_boundaries (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the number of boundaries, and the tags associated with the
boundaries given the specified input tag.

环境
内部和外部

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

 
int UF_DRF_ask_boundaries
(
tag_t draft_aid_tag,
int * num_boundaries,
tag_p_t * boundary_tags
)
tag_t (tag_t类型)draft_aid_tagInput(输入)Tag of the area fill or crosshatch object
int * (整数型指针)num_boundariesOutput(输出)The number of boundaries
tag_p_t *boundary_tagsOutput to be freed
输出并释放
The array which contains the tags of the
boundaries. This array must be freed by calling
UF_free.

 


 
UF_DRF_ask_callout_of_annotation (查看源代码)
 
定义在: uf_drf.h
 
概述
Get the callout that contains a specified annotation

环境
Internal & External

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

 
int UF_DRF_ask_callout_of_annotation
(
tag_t annotation,
tag_t * callout
)
tag_t (tag_t类型)annotationInput(输入)Tag of annotation
tag_t * (tag_t型的指针)calloutOutput(输出)Tag of callout or NULL_TAG if
annotation is not part of callout

 


 
UF_DRF_ask_callout_row_members (查看源代码)
 
定义在: uf_drf.h
 
概述
Get the feature annotation members of a callout row

环境
Internal & External

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

 
int UF_DRF_ask_callout_row_members
(
tag_t callout,
int row,
int * num_members,
tag_t * * members
)
tag_t (tag_t类型)calloutInput(输入)Tag of callout
int (整数型)rowInput(输入)Row in callout (starting at zero)
int * (整数型指针)num_membersOutput(输出)Number of members in row
tag_t * *membersOutput to be freed
输出并释放
Callout members

 


 
UF_DRF_ask_centerline_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the centerline type, the number of centerline objects, and the
data of the centerline given the specified centerline tag. For circular
and bolt circle centerlines, the centerpoint method is always returned
for centerline_type. For offset cylindrical centerlines,
UF_DRF_offcyl_cline is always returned for centerline_type.
Use UF_DRF_ask_associativity_data to query the centerline's associativity
data including coordinates of the associated position(s).

环境
内部和外部

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

 
int UF_DRF_ask_centerline_info
(
tag_t centerline_tag,
UF_DRF_valid_cline_form_t * centerline_type,
double centerline_origin [ 3 ] ,
UF_DRF_centerline_info_p_t * centerline_info
)
tag_t (tag_t类型)centerline_tagInput(输入)Tag of the centerline
UF_DRF_valid_cline_form_t *centerline_typeOutput(输出)Type of centerline (see
uf_drf_types.h)
double (实数型)centerline_origin [ 3 ] Output(输出)Centerline origin
UF_DRF_centerline_info_p_t *centerline_infoOutput to be freed
输出并释放
Centerline information. This must
be freed by calling
UF_DRF_free_centerline.

 


 
UF_DRF_ask_chamfer_dimension_data (查看源代码)
 
定义在: uf_drf.h
 
概述
UF_DRF_ask_chamfer_dimension_data

Description -
ask chamfer dimension preferences

PARAMETERS -
cham_dim_tag, - <I> tag of cham dim
cham_dim_data - <O> cham dim prefs
return - <O> return code:
0 = OK
if not 0 = error code

环境
Internal and External

历史
As of NX4 this function will allocate the symbol_name in the
UF_DRF_chamfer_dimension_data structure. It will be up to the user
to free the symbol_name.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_chamfer_dimension_data
(
tag_t cham_dim_tag,
UF_DRF_chamfer_dimension_data_p_t cham_dim_data
)
tag_t (tag_t类型)cham_dim_tagInput(输入)tag of cham dim
UF_DRF_chamfer_dimension_data_p_tcham_dim_dataOutput to be freed
输出并释放
chamfer dimension prefs - Must
free the symbol_name with call
to UF_free()

 


 
UF_DRF_ask_controlling_exp (查看源代码)
 
定义在: uf_drf.h
 
概述
Get the controlling expression of the drafting object

环境
内部和外部

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

 
int UF_DRF_ask_controlling_exp
(
tag_t object,
tag_t * exp_id
)
tag_t (tag_t类型)objectInput(输入)drafting object
tag_t * (tag_t型的指针)exp_idOutput(输出)Controlling expression of the object

 


 
UF_DRF_ask_controlling_member_of_callout (查看源代码)
 
定义在: uf_drf.h
 
概述
Get the controlling member of a callout. This member is used for
positioning the entire callout and, if deleted, causes the entire
callout to be deleted.

环境
Internal & External

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

 
int UF_DRF_ask_controlling_member_of_callout
(
tag_t callout,
tag_t * controlling_member
)
tag_t (tag_t类型)calloutInput(输入)Tag of callout
tag_t * (tag_t型的指针)controlling_memberOutput(输出)Controlling member

 


 
UF_DRF_ask_custom_symbol_angle (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask the angle for a custom symbol instance.

环境
Internal and External

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

 
int UF_DRF_ask_custom_symbol_angle
(
tag_t symbol_tag,
double * angle
)
tag_t (tag_t类型)symbol_tagInput(输入)tag of a custom symbol instance
double * (实数型指针)angleOutput(输出)double value of the angle

 


 
UF_DRF_ask_custom_symbol_attach_locations (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will query the leader attachment locations for a custom
symbol. The array indices are as follows:

locations[0] = left leader attachment location
locations[1] = right leader attachment location

If there is no leader on a given side, then the tag will be NULL_TAG.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_ask_custom_symbol_attach_locations
(
tag_t symbol,
tag_t locations [ 2 ]
)
tag_t (tag_t类型)symbolInput(输入)The tag of the custom symbol
tag_t (tag_t类型)locations [ 2 ] Output(输出)An array of 2 tags corresponding to the left and right
leader attachment locations

 


 
UF_DRF_ask_custom_symbol_leader (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will query the leader of a custom symbol. If the
symbol has no leader, the input variable will be set to NULL. The caller of
the function is responsible for freeing the memory for the leader by using
UF_DRF_free_leader_data.

NOTE: Since this function exposes components of the custom symbol
that are otherwise hidden, this function should only be called by internal
NX callers which need the Open API (e.g. translators)

Returns
UF_DRF_NO_ERRORS
UF_DRF_invalid_object
UF_DRF_NOT_DRAFTING_OBJECT
UF_DRF_INVALID_SYMBOL_TYPE
UF_err_bad_parameter_number_2

环境
Internal & External

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

 
int UF_DRF_ask_custom_symbol_leader
(
tag_t symbol,
UF_DRF_leader_data_p_t * leader_data
)
tag_t (tag_t类型)symbolInput(输入)The tag of the custom symbol
UF_DRF_leader_data_p_t *leader_dataOutput(输出)The custom symbol's leader data

 


 
UF_DRF_ask_custom_symbol_name (查看源代码)
 
定义在: uf_drf.h
 
概述
This function returns the name of custom symbol.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_ask_custom_symbol_name
(
tag_t custom_symbol,
char* * symbol_name
)
tag_t (tag_t类型)custom_symbolInput(输入)Custom symbol
char* *symbol_nameOutput to be freed
输出并释放
Custom symbol name
Must be freed by calling UF_free

 


 
UF_DRF_ask_custom_symbol_scale (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask the symbol scale for a custom symbol instance.

环境
Internal and External

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

 
int UF_DRF_ask_custom_symbol_scale
(
tag_t symbol_tag,
double * scale
)
tag_t (tag_t类型)symbol_tagInput(输入)tag of a custom symbol instance
double * (实数型指针)scaleOutput(输出)double value of the symbol scale

 


 
UF_DRF_ask_diameter_radius_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns preferences for the display of radial dimensions.

环境
Internal & External

参见
UF_DRF_set_diameter_radius_preferences
UF_DRF_units_diameter_radius_preferences_t

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

 
int UF_DRF_ask_diameter_radius_preferences
(
UF_DRF_diameter_radius_preferences_t * diameter_radius_preferences
)
UF_DRF_diameter_radius_preferences_t *diameter_radius_preferencesInput / Outputpointer to preferences
structure to be populated
with the diameter/radius
preferences

 


 
UF_DRF_ask_dim_appended_text_space_factor (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask the factor for the space between the dimension and the appended text for the specified dimension.
This factor controls the spacing between the before appended text and the next piece of dimension text to its right,
and the spacing between the after appended text and the next piece of dimension text to its left.
This factor is applied to the appended text character size to determine the spacing.

环境
内部和外部

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

 
int UF_DRF_ask_dim_appended_text_space_factor
(
tag_t dimension,
double * space_factor
)
tag_t (tag_t类型)dimensionInput(输入)dimension tag
double * (实数型指针)space_factorOutput(输出)factor for spacing between dimension and appended text

 


 
UF_DRF_ask_dim_dim_line_space_factor (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask the space factor for the space between the dimension and the dimension line for the specified dimension.
This factor controls the spacing between the bottom most piece of dimension text and the dimension line only
when the text orientation is UF_DRF_DIMENSION_TEXT_OVER_DIMENSION_LINE.
This factor is applied to the dimension text character size to determine the spacing.

环境
内部和外部

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

 
int UF_DRF_ask_dim_dim_line_space_factor
(
tag_t dimension,
double * space_factor
)
tag_t (tag_t类型)dimensionInput(输入)dimension tag
double * (实数型指针)space_factorOutput(输出)factor for spacing between dimension and dimension line

 


 
UF_DRF_ask_dim_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the dimension subtype, number of objects, data of objects,
associated text, and dimension origin in WCS coordinates given the
specified dimension tag.
Use UF_DRF_ask_associativity_data to query the dimension's associativity
data including coordinates of the associated position(s).

环境
内部和外部

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

 
int UF_DRF_ask_dim_info
(
tag_t dim_tag,
int * dim_subtype,
double dim_origin [ 3 ] ,
UF_DRF_dim_info_p_t * dim_info
)
tag_t (tag_t类型)dim_tagInput(输入)Tag of the dimension
int * (整数型指针)dim_subtypeOutput(输出)Dimension subtype
double (实数型)dim_origin [ 3 ] Output(输出)Dimension origin
UF_DRF_dim_info_p_t *dim_infoOutput to be freed
输出并释放
Dimension information. This must be freed by
calling UF_DRF_free_dimension.

 


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

Description -
Ask dimension inspection type preference.

Input - Dimension tag.

Output -
UF_DRF_inspection_type_t inspection_type

Return -
0 = No error
Error code if not zero.
UF_DRF_invalid_object - if the dimension is invalid
UF_err_program_not_initialized
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_dim_inspection_type
(
tag_t dim_tag,
UF_DRF_inspection_type_t * inspection_type
)
tag_t (tag_t类型)dim_tagInput(输入)tag of dimension object
UF_DRF_inspection_type_t *inspection_typeOutput(输出)Inspection type option

 


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

Description -
Ask dimension reference type preference.

Input - Dimension tag.

Output -
UF_DRF_text_above_leader_t option

Return -
0 = No error
Error code if not zero. ( including if given object is not dimension)
UF_err_program_not_initialized
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_dim_reference_type
(
tag_t dim_tag,
UF_DRF_reference_symbol_type_t * ref_type
)
tag_t (tag_t类型)dim_tagInput(输入)tag of dimension object
UF_DRF_reference_symbol_type_t *ref_typeOutput(输出)reference type option

 


 
UF_DRF_ask_dim_tolerance_text_space_factor (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask the factor for the space between the dimension and the tolerance text for the specified dimension.
This factor controls the spacing between the dimension text and the after tolerance text.
This factor is applied to the tolerance text character size to determine the spacing.

环境
内部和外部

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

 
int UF_DRF_ask_dim_tolerance_text_space_factor
(
tag_t dimension,
double * space_factor
)
tag_t (tag_t类型)dimensionInput(输入)dimension tag
double * (实数型指针)space_factorOutput(输出)factor for spacing between dimension and tolerance text

 


 
UF_DRF_ask_dimension_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns dimension preferences for arrow and line formatting, type of
placement, tolerance and precision, and text orientation.

环境
Internal & External

参见
UF_DRF_set_dimension_preferences
UF_DRF_dimension_preferences_t

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

 
int UF_DRF_ask_dimension_preferences
(
UF_DRF_dimension_preferences_t * dimension_preferences
)
UF_DRF_dimension_preferences_t *dimension_preferencesInput / Outputpointer to preferences structure to be
populated with the dimension preferences

 


 
UF_DRF_ask_dimension_set_offset (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the offset of the dimension in a dimension set. If a dimension set tag
is given, the offset of the first dimension in the set is returned.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized
UF_err_bad_parameter_number_1 - if the dimension tag is invalid.

环境
内部和外部

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

 
int UF_DRF_ask_dimension_set_offset
(
tag_t dimension,
double * offset
)
tag_t (tag_t类型)dimensionInput(输入)Tag of the given dimension.
double * (实数型指针)offsetOutput(输出)Dimension set offset of the given dimension.

 


 
UF_DRF_ask_dimension_text (查看源代码)
 
定义在: uf_drf.h
 
概述
This function returns the dimension text - both the main text and the dual
text. The returned text may contain just the computed dimension value or
manual text including the control characters.

Note that the text doesn't contain the tolerance text, appended text or text
for flags like inspection/reference.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_ask_dimension_text
(
tag_t dimension,
int* num_main_text,
char* * * main_text,
int* num_dual_text,
char* * * dual_text
)
tag_t (tag_t类型)dimensionInput(输入)Dimension
int*num_main_textOutput(输出)Number of main dimension text lines
char* * *main_textOutput to be freed
输出并释放
Main dimension text lines
int*num_dual_textOutput(输出)Number of dual dimension text lines
char* * *dual_textOutput to be freed
输出并释放
Dual dimension text lines

 


 
UF_DRF_ask_dimensions_of_set (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the dimensions in a dimension set.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_null_object - if the dimension set is null
UF_DRF_invalid_object - if the dimension set is invalid
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_ask_dimensions_of_set
(
tag_t dimension_set,
tag_t * * sub_dimensions,
int * num
)
tag_t (tag_t类型)dimension_setInput(输入)Tag of the given dimension set.
tag_t * *sub_dimensionsOutput to be freed
输出并释放
Point to the tag array of the dimensions in a given set.
int * (整数型指针)numOutput(输出)number of dimensions in the array.

 


 
UF_DRF_ask_dogleg_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the dogleg type, distance in WCS coordinates, and angle in
degrees given the specified ordinate dimension tag.

环境
内部和外部

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

 
int UF_DRF_ask_dogleg_info
(
tag_t orddim_tag,
UF_DRF_dogleg_info_t * dogleg_info
)
tag_t (tag_t类型)orddim_tagInput(输入)Tag of ordinate origin
UF_DRF_dogleg_info_t *dogleg_infoOutput(输出)Ordinate dimension dog leg information.
The calling program must allocate a
UF_DRF_dogleg_info_t structure and pass
in the pointer to that structure.

 


 
UF_DRF_ask_draft_aid_text_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns character size, text angle, origin, length, height, and distance
from the origin to the top of a given text block and text strings given
the specified drafting aid tag.

环境
内部和外部

参见
Refer to the example

历史
V17.0 Add full_string and full_num_char to UF_DRF_draft_aid_text_t
to provide access to all of the full drafting aid text
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_draft_aid_text_info
(
tag_t draft_aid_tag,
int * num_text,
UF_DRF_draft_aid_text_info_t * * text_info
)
tag_t (tag_t类型)draft_aid_tagInput(输入)Tag of drafting aid object
int * (整数型指针)num_textOutput(输出)Number of text strings
UF_DRF_draft_aid_text_info_t * *text_infoOutput to be freed
输出并释放
Pointer to data structure which
contains drafting aid text
information (see uf_drf_types.h) of
the drafting aid object. This
must be freed by calling
UF_DRF_free_text.

 


 
UF_DRF_ask_embedded_uds_font_info (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will return the embedded User Defined Symbol font name and
stroke data. "stroke_info" can be freed by making a call to "UF_free".

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

环境
内部和外部

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

 
int UF_DRF_ask_embedded_uds_font_info
(
tag_t symbol_font_tag,
char * symbol_name,
int * num_of_strokes,
UF_DRF_stroke_info_t * * stroke_info
)
tag_t (tag_t类型)symbol_font_tagInput(输入)Tag of Symbol Font
char * (字符型指针)symbol_nameOutput(输出)Name of Symbol Font
int * (整数型指针)num_of_strokesOutput(输出)Total number of stroke
UF_DRF_stroke_info_t * *stroke_infoOutput to be freed
输出并释放
Stroke Data

 


 
UF_DRF_ask_folded_radius_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the fold location in WCS coordinates and the fold angle in
degrees given the specified folded radius tag.

环境
内部和外部

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

 
int UF_DRF_ask_folded_radius_info
(
tag_t frdim_tag,
UF_DRF_foldedradius_dim_info_t * frdim_info
)
tag_t (tag_t类型)frdim_tagInput(输入)Tag of folded radius dimension
UF_DRF_foldedradius_dim_info_t *frdim_infoOutput(输出)Folded radius dimension information
(see UF_DRF_foldedradius_dim_info_t)

 


 
UF_DRF_ask_gdt_symbol_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the GD&T Symbol tag, the function returns the associated text
string, object origin, leader type and attachment type, and data of
object to attach leader.

环境
内部和外部

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

 
int UF_DRF_ask_gdt_symbol_info
(
tag_t gdt_symbol_tag,
double gdt_symbol_origin [ 3 ] ,
UF_DRF_gdt_symbol_info_p_t * gdt_symbol_info
)
tag_t (tag_t类型)gdt_symbol_tagInput(输入)Tag of GD&T Symbol
double (实数型)gdt_symbol_origin [ 3 ] Output(输出)GD&T Symbol origin
UF_DRF_gdt_symbol_info_p_t *gdt_symbol_infoOutput to be freed
输出并释放
GD&T Symbol information. This
must be freed by calling
UF_DRF_free_gdtsymbol.

 


 
UF_DRF_ask_hatch_fill_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the preferences for crosshatching and area fill

环境
Internal & External

参见
UF_DRF_set_hatch_fill_preferences

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

 
int UF_DRF_ask_hatch_fill_preferences
(
UF_DRF_hatch_fill_preferences_t * hatch_fill_preferences
)
UF_DRF_hatch_fill_preferences_t *hatch_fill_preferencesInput / Outputpointer to
structure to be
populated with the
hatch/fill preferences

 


 
UF_DRF_ask_id_symbol_geometry (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the geometry for an id symbol.

环境
内部和外部

历史
Returns the geometry for an id symbol.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_id_symbol_geometry
(
tag_t id_symbol,
int * num_lines,
double * * lines,
int * num_arcs,
UF_DRF_arc_info_p_t * arcs
)
tag_t (tag_t类型)id_symbolInput(输入)The ID symbol to query
int * (整数型指针)num_linesOutput(输出)The number of lines in the ID symbol
double * *linesOutput to be freed
输出并释放
Array of lines - 3d start, 3d end,
the first line is lines[0] - lines[5]
the second line is lines[6] - lines[11]
...
the nth line (n counting from 1)
is lines[6 (n - 1)] - lines[6 n - 1].

Line end points are in the coordinate
system of the id symbol, as are other
coordinates returned by UF_DRF routines.

If the idysmbol is not on a drawing, the
coordinates in absolute can be obtained
by multiplying by the transpose of
the matrix returned by the function
UF_CSYS_ask_matrix_values for the matrix
returned by UF_CSYS_ask_matrix_of_object.
This array must be freed by calling UF_free.
int * (整数型指针)num_arcsOutput(输出)the number of arcs in the ID symbol
UF_DRF_arc_info_p_t *arcsOutput to be freed
输出并释放
array of arcs (center is in coordinate
system of the id symbol). This array must
be freed by calling UF_free.

 


 
UF_DRF_ask_id_symbol_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the ID Symbol tag, this function returns the ID Symbol
subtype, text and leader information, and the data of object to attach
leader.

环境
内部和外部

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

 
int UF_DRF_ask_id_symbol_info
(
tag_t id_symbol_tag,
UF_DRF_id_symbol_type_t * id_symbol_type,
double id_symbol_origin [ 3 ] ,
UF_DRF_id_symbol_info_p_t * id_symbol_info
)
tag_t (tag_t类型)id_symbol_tagInput(输入)Tag of ID Symbol
UF_DRF_id_symbol_type_t *id_symbol_typeOutput(输出)ID Symbol type
double (实数型)id_symbol_origin [ 3 ] Output(输出)ID Symbol origin
UF_DRF_id_symbol_info_p_t *id_symbol_infoOutput to be freed
输出并释放
ID Symbol information. This must
be freed by calling
UF_DRF_free_idsymbol.

 


 
UF_DRF_ask_id_symbol_type (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the ID Symbol tag, this function returns the ID Symbol type.

环境
内部和外部

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

 
int UF_DRF_ask_id_symbol_type
(
tag_t id_symbol_tag,
UF_DRF_id_symbol_type_t * id_symbol_type
)
tag_t (tag_t类型)id_symbol_tagInput(输入)Tag of ID Symbol
UF_DRF_id_symbol_type_t *id_symbol_typeOutput(输出)ID Symbol type (see uf_drf_types.h)

 


 
UF_DRF_ask_image_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Get the image data

Returns
UF_DRF_NO_ERRORS if the image query was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_ask_image_data
(
tag_t image,
UF_DRF_image_data_t * data
)
tag_t (tag_t类型)imageInput(输入)Image to query
UF_DRF_image_data_t *dataOutput to be freed
输出并释放
Image data (see uf_drf_types.h)
The image data will need to be freed using
UF_DRF_free_image_data

 


 
UF_DRF_ask_label_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the label tag, this function returns the number of lines of text,
associated text string, object origin, leader type, and data of object to
attach leader.

环境
内部和外部

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

 
int UF_DRF_ask_label_info
(
tag_t label_tag,
double label_origin [ 3 ] ,
UF_DRF_label_info_p_t * label_info
)
tag_t (tag_t类型)label_tagInput(输入)Tag of label
double (实数型)label_origin [ 3 ] Output(输出)Label origin in the coordinate system of the drafting
object.
UF_DRF_label_info_p_t *label_infoOutput to be freed
输出并释放
Label information. This must be freed
by calling UF_DRF_free_label.

 


 
UF_DRF_ask_lettering_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the lettering preferences for dimension, appended, tolerance
and general (notes, id symbols, etc,) text.

环境
Internal & External

参见
UF_DRF_set_lettering_preferences
UF_DRF_lettering_preferences_t

历史
Originally released in V16.0
Horizontal text justification preference and GD&T frame height
factor preference added in V17.0.
Dimension/Appended Text Spacing Factor,
Dimension /Tolerance Text Spacing Factor, and
Dimension/Dimension Line Spacing Factor added in NX 2.0.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_lettering_preferences
(
UF_DRF_lettering_preferences_t * lettering_preferences
)
UF_DRF_lettering_preferences_t *lettering_preferencesInput / Outputpointer to
preferences structure
to be populated with
the lettering
preferences

 


 
UF_DRF_ask_line_arrow_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns preferences that apply to leaders, arrows and extension lines for
both dimensions and other annotations

环境
Internal & External

参见
UF_DRF_set_line_arrow_preferences
UF_DRF_line_arrow_preferences_t

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

 
int UF_DRF_ask_line_arrow_preferences
(
UF_DRF_line_arrow_preferences_t * line_arrow_preferences
)
UF_DRF_line_arrow_preferences_t *line_arrow_preferencesInput / Outputpointer to preferences structure to be
populated with the line/arrow preferences

 


 
UF_DRF_ask_narrow_dimension_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask narrow dimension parameters.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_linear_dim_form - if the dimension given is not linear dimension.
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_ask_narrow_dimension_data
(
tag_t dimension_tag,
UF_DRF_narrow_dimension_info_p_t narrow_data
)
tag_t (tag_t类型)dimension_tagInput(输入)Object tag of a linear dimension
UF_DRF_narrow_dimension_info_p_tnarrow_dataOutput(输出)Data of narrow dimension preferences

 


 
UF_DRF_ask_number_blocks (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the drafting aid object tag, this function returns the number of
blocks for this drafting aid.

环境
内部和外部

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

 
int UF_DRF_ask_number_blocks
(
tag_t annotation_tag,
int num_block [ 5 ]
)
tag_t (tag_t类型)annotation_tagInput(输入)Tag of the drafting aid object
int (整数型)num_block [ 5 ] Output(输出)Five integer array:
UF_DRF_ASSOCIATIVITY_BLOCK
num_block[UF_DRF_LINE_BLOCK]
is number of line blocks
num_block[UF_DRF_ARCS_BLOCK]
is number of arc blocks
num_block[UF_DRF_TEXT_BLOCK]
is number of text blocks
num_block[UF_DRF_ARROWS_BLOCK]
is number of arrow blocks
num_block[ UF_DRF_ASSOCIATIVITY_BLOCK]
is number of associativity blocks

 


 
UF_DRF_ask_number_rows_in_callout (查看源代码)
 
定义在: uf_drf.h
 
概述
Get the number of rows in a callout

环境
Internal & External

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

 
int UF_DRF_ask_number_rows_in_callout
(
tag_t callout,
int * num_rows
)
tag_t (tag_t类型)calloutInput(输入)Tag of callout
int * (整数型指针)num_rowsOutput(输出)Number of rows in callout

 


 
UF_DRF_ask_obj_suppress_pre_zeros (查看源代码)
 
定义在: uf_drf.h
 
概述
Determines if the suppress preceding zeros option for an angular
dimension is set.

环境
内部和外部

参见
UF_DRF_ask_obj_suppress_zeros

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

 
int UF_DRF_ask_obj_suppress_pre_zeros
(
tag_t object,
logical * option
)
tag_t (tag_t类型)objectInput(输入)Tag id of angular dimension object
logical *optionOutput(输出)Suppress preceding zeros mode

 


 
UF_DRF_ask_obj_text_above_ldr (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the text above leader attribute for a label or dimension.

If a value of UF_DRF_NO_TEXT_ABOVE_LEADER is returned, the text is
NOT displayed above the leader stub. The placement of the leader stub
relative to the text is controlled by the vertical text justification.
This can be queried with UF_DRF_ask_object_preferences.

环境
内部和外部

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

 
int UF_DRF_ask_obj_text_above_ldr
(
tag_t object,
UF_DRF_text_above_leader_t * option
)
tag_t (tag_t类型)objectInput(输入)tag of label or dimension
UF_DRF_text_above_leader_t *optionOutput(输出)text above leader attribute for the
specified label or dimension

 


 
UF_DRF_ask_object_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the annotation tag, this function retrieves and checks drafting
parameters from an existing annotation.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following:
UF_DRF_NO_ERRORS - No error
UF_DRF_NOT_DRAFTING_OBJECT
UF_DRF_crosshatch_file_not_found

环境
内部和外部

参见
UF_DRF_set_object_preferences
UF_DRF_ask_preferences
UF_DRF_set_preferences
UF_DRF_ask_ang_obj_units_format
Refer to the example
See drafting parameters

历史
Original release was in V13.0. This function replaces uc/uf5550.
In V15.0, the maximum byte length for both radius_value and
diameter_value was increased from 6 to 27 to accomodate
internationalized text.
Updated in V16.0 to return UF_get_fail_message error codes and
if the input object is not a crosshatch object,
returns mpi[31] = -999 for the material index.
If UF_DRF_set_preferences is called with a value of -999 for the
material index, the material preferences will not be changed.
mpr[51], area fill tolerance, is now obsolete; use mpr[13] instead.
In V17.0 flexible appended text locations were implemented for
dimensions. If the appended text is located at one of these
enhanced locations, -999 will be returned. Use the new
UF_DRF_ask_appended_text to query the appended text.
In V17.0, a separate preference controls the angular nominal and
tolerance units format. This routine will return only the nominal
angular format when queried.
In NX2.0, occurrence support was added.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_object_preferences
(
tag_t drf_object_tag,
int mpi [ 100 ] ,
double mpr [ 70 ] ,
char * radius_val,
char * diameter_val
)
tag_t (tag_t类型)drf_object_tagInput(输入)Drafting object Identifier
int (整数型)mpi [ 100 ] Output(输出)MPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
double (实数型)mpr [ 70 ] Output(输出)MPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
char * (字符型指针)radius_valOutput(输出)Radius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_val[27];
char * (字符型指针)diameter_valOutput(输出)Diameter Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char diameter_val[27];

 


 
UF_DRF_ask_objects_controlled_by_exp (查看源代码)
 
定义在: uf_drf.h
 
概述
Find all drafting objects which are controlled by a given expression

环境
内部和外部

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

 
int UF_DRF_ask_objects_controlled_by_exp
(
tag_t exp_id,
int * num_objs,
tag_p_t * objects
)
tag_t (tag_t类型)exp_idInput(输入)Object identifier of the expression.
int * (整数型指针)num_objsOutput(输出)Number of objects controlled by the expression.
tag_p_t *objectsOutput to be freed
输出并释放
Array of objects controlled by the expression.
The caller is responsible for freeing this array by
calling UF_free.

 


 
UF_DRF_ask_ordorigin_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the data of the associated object, arrow and dimension line
display status, origin symbol display status, and user supplied object
name given the specified ordinate origin tag.

环境
内部和外部

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

 
int UF_DRF_ask_ordorigin_info
(
tag_t ordorigin_tag,
UF_DRF_orddisp_info_t * origin_disp,
int * num_assoc,
UF_DRF_assoc_info_t * assoc_objects
)
tag_t (tag_t类型)ordorigin_tagInput(输入)Tag of ordinate origin
UF_DRF_orddisp_info_t *origin_dispOutput(输出)Ordinate dimension origin display
in formation (see UF_DRF_orddisp_info_t)
int * (整数型指针)num_assocOutput(输出)Number of associated objects
UF_DRF_assoc_info_t *assoc_objectsOutput to be freed
输出并释放
Array of associated object information.
This array must be freed by calling
UF_free.

 


 
UF_DRF_ask_origin (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the origin of the annotation object.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized
UF_err_bad_parameter_number_1

环境
内部和外部

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

 
int UF_DRF_ask_origin
(
tag_t annotation,
double origin [ 3 ]
)
tag_t (tag_t类型)annotationInput(输入)Tag of the annotation.
double (实数型)origin [ 3 ] Output(输出)Origin for the annotation. If the annotation is on the drawing,
the origin is with respect to drawing coordinates.
Otherwise, the origin is with respect to model coordinates.

 


 
UF_DRF_ask_parent_of_inherited_pmi (查看源代码)
 
定义在: uf_drf.h
 
概述
This function returns the parent of the given inherited PMI. The parent is
the PMI Display Instance in modeling.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_ask_parent_of_inherited_pmi
(
tag_t inherited_pmi,
tag_p_t parent
)
tag_t (tag_t类型)inherited_pmiInput(输入)The tag of the inherited PMI
tag_p_tparentOutput(输出)Parent of the inherited PMI

 


 
UF_DRF_ask_plot_drawing_images (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask whether or not the raster images on the drawing sheets will be plotted when drawing sheets are plotted.

Returns
UF_DRF_NO_ERRORS if the preference query was successful

环境
内部和外部

参见
UF_DRF_create_image_from_file
UF_DRF_create_image

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

 
int UF_DRF_ask_plot_drawing_images
(
logical * plot_images
)
logical *plot_imagesOutput(输出)TRUE if set to plot raster images on drawing sheets
FALSE if set to not plot raster images on drawing sheets

 


 
UF_DRF_ask_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets arrays and character strings to the current settings of the drafting
parameters.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following:
UF_DRF_NO_ERRORS - No error
UF_DRF_crosshatch_file_not_found
UF_DRF_INVALID_CROSSHATCH_FILE_FORMAT

环境
内部和外部

参见
UF_DRF_set_preferences
UF_DRF_ask_object_preferences
UF_DRF_set_object_preferences
Refer to the example
See drafting parameters

历史
Original release was in V13.0. This function replaces uc5520.
Updated in V15 to increase the size of the character strings.
Updated in V16.0 to return UF_get_fail_message error codes.
In V16.0, there are separate text angle preferences for dimension
text and drafting aid text. This function returns the dimension
text angle. Use UF_DRF_ask_lettering_preferences to get the
drafting aid text angle.
mpr[51], area fill tolerance, is now obsolete; use mpr[13] instead.
In V17.0, a separate preference control the angular nominal and tolerance
units format. This routine will return the only the nominal angular
format when queried.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_preferences
(
int mpi [ 100 ] ,
double mpr [ 70 ] ,
char * radius_value,
char * diameter_value
)
int (整数型)mpi [ 100 ] Output(输出)MPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
double (实数型)mpr [ 70 ] Output(输出)MPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
char * (字符型指针)radius_valueOutput(输出)Radius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_value[27];
char * (字符型指针)diameter_valueOutput(输出)Diameter Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char diameter_value[27];

 


 
UF_DRF_ask_retain_color_font_width (查看源代码)
 
定义在: uf_drf.h
 
概述
Gets the color, font and widths used for retained annotations.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized

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

 
int UF_DRF_ask_retain_color_font_width
(
int * color,
int * font,
int * width
)
int * (整数型指针)colorOutput(输出)Color used for retained annotations
int * (整数型指针)fontOutput(输出)Font used for retained annotations
int * (整数型指针)widthOutput(输出)Line width used for retained annotations

 


 
UF_DRF_ask_retained_state (查看源代码)
 
定义在: uf_drf.h
 
概述
Gets the retained state for annotations whose dependencies have expired.
If UF_DRF_KEEP_RETAINED_ANNOTATIONS is returned, annotations are retained.
If UF_DRF_DELETE_RETAINED_ANNOTATIONS is returned, annotations are deleted.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized

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

 
int UF_DRF_ask_retained_state
(
UF_DRF_retained_state_t * state
)
UF_DRF_retained_state_t *stateOutput(输出)Behavior state for retained annotations.
Either
'UF_DRF_KEEP_RETAINED_ANNOTATIONS' or
'UF_DRF_DELETE_RETAINED_ANNOTATIONS'

 


 
UF_DRF_ask_sbf_file (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the current symbol font definition file name.

环境
内部和外部

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

 
int UF_DRF_ask_sbf_file
(
char sbf_name [ SYMBOL_FILE_NAME_SIZE+1 ]
)
charsbf_name [ SYMBOL_FILE_NAME_SIZE+1 ] Output(输出)current symbol font definition
name (blank if none)

 


 
UF_DRF_ask_set_of_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the dimension set which the given dimension belongs to.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_null_object - if the dimension is null
UF_DRF_invalid_object - if the dimension is invalid
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_ask_set_of_dimension
(
tag_t dimension,
tag_t * dimension_set
)
tag_t (tag_t类型)dimensionInput(输入)Tag of the given dimension.
tag_t * (tag_t型的指针)dimension_setOutput(输出)Tag of the dimension set which the given dimension belongs to.

 


 
UF_DRF_ask_suppress_pre_zeros (查看源代码)
 
定义在: uf_drf.h
 
概述
Determines if the global preference for suppress preceding zeros is
set.

环境
内部和外部

参见
UF_DRF_ask_units_format_preferences
Refer to the example

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

 
int UF_DRF_ask_suppress_pre_zeros
(
logical * option
)
logical *optionOutput(输出)Suppress preceding zeros mode

 


 
UF_DRF_ask_suppress_view_update (查看源代码)
 
定义在: uf_drf.h
 
概述
Query the current value of the Suppress View Update preference. This
preference is an environment setting and is not specific to a part. If the
preference is TRUE, then functions which perform implicit drawing updates,
will not update the drawing member views.

环境
Internal & External:

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

 
int UF_DRF_ask_suppress_view_update
(
logical * suppress_view_update
)
logical *suppress_view_updateOutput(输出)the current setting of view
update suppression

 


 
UF_DRF_ask_symbol_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns standalone symbol object data.

环境
内部和外部

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

 
int UF_DRF_ask_symbol_data
(
tag_t symbol_tag,
UF_DRF_symbol_data_t * symbol_data
)
tag_t (tag_t类型)symbol_tagInput(输入)standalone symbol object tag
UF_DRF_symbol_data_t *symbol_dataOutput(输出)symbol data (see uf_drf_types.h).

 


 
UF_DRF_ask_symbol_data_from_name (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the User Defined Symbol factor, length, height, left, and right
connecting point, the count of strokes, and stroke data given the
specified user defined symbol name

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

 
int UF_DRF_ask_symbol_data_from_name
(
char * sbf_name,
char * * * symbol_names,
int * num_symbols,
UF_DRF_ud_symbol_font_info_p_t * symbol_info
)
char * (字符型指针)sbf_nameInput(输入)Name of the sbf file
char * * *symbol_namesOutput to be freed
输出并释放
List of symbol names in sbf
int * (整数型指针)num_symbolsOutput(输出)Number of symbols in the sbf file
UF_DRF_ud_symbol_font_info_p_t *symbol_infoOutput to be freed
输出并释放
Symbol data (see uf_drf_types.h)
use UF_free () to free memory

 


 
UF_DRF_ask_symbol_mirror_and_flip (查看源代码)
 
定义在: uf_drf.h
 
概述
UF_DRF_ask_symbol_mirror_and_flip

Description -
This function ask standalone symbol create mask

PARAMETERS -
symbol_tag <I> Tag of symbol to inquire
mirrored <O> Symbol has mirrored
flip <O> Symbol has flip
return <O> return code:
0 = OK
if not 0 = error code
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_symbol_mirror_and_flip
(
tag_t symbol_tag,
logical * mirrored,
logical * flip
)
tag_t (tag_t类型)symbol_tagInput(输入)standalone symbol object tag
logical *mirroredOutput(输出)TRUE symbol is mirrored
logical *flipOutput(输出)TRUE symbol is flip

 


 
UF_DRF_ask_symbol_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns preferences that apply to ID, User Define, Centerline, Intersection,
Target and GD&T symbols.

环境
Internal & External

参见
UF_DRF_set_symbol_preferences
UF_DRF_symbol_preferences_t

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

 
int UF_DRF_ask_symbol_preferences
(
UF_DRF_symbol_preferences_t * symbol_preferences
)
UF_DRF_symbol_preferences_t *symbol_preferencesInput / Outputpointer to preferences
structure to be populated
with the symbol preferences

 


 
UF_DRF_ask_symbols_used (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns symbols used in a drafting object.

环境
内部和外部

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

 
int UF_DRF_ask_symbols_used
(
tag_t object_tag,
int * num_symbol_fonts,
tag_t * symbol_font_tags
)
tag_t (tag_t类型)object_tagInput(输入)drafting object tag
int * (整数型指针)num_symbol_fontsOutput(输出)number of symbol fonts used
tag_t * (tag_t型的指针)symbol_font_tagsOutput(输出)tags of the symbol font objects. The caller
is responsible for passing in an array large
enough to receive all of the symbol font tags.

 


 
UF_DRF_ask_text_above_leader (查看源代码)
 
定义在: uf_drf.h
 
概述
Inquires the current global setting for the text above leader attribute.
This attribute controls displaying text above the leader stub when
creating labels and radial type dimensions.

If the value is UF_DRF_NO_TEXT_ABOVE_LEADER, then the text is NOT
displayed above the leader stub.
The placement of the leader stub is controlled by the vertical text
justification preference which can be queried with UF_DRF_ask_preferences.

环境
内部和外部

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

 
int UF_DRF_ask_text_above_leader
(
UF_DRF_text_above_leader_t * option
)
UF_DRF_text_above_leader_t *optionOutput(输出)text above leader option this option
controls displaying text above the
leader stub. this option applies to
Labels and radial type dimensions (hole,
radius, diameter, concentric circle and
folded radius) when the Text Alignment
is Horizontal or By Angle.

 


 
UF_DRF_ask_ud_symbol_font_info (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns the User Defined Symbol factor, length, height, left and right
connecting point, the count of strokes, and stroke data given the
specified user defined symbol tag.

环境
内部和外部

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

 
int UF_DRF_ask_ud_symbol_font_info
(
tag_t ud_symbol_tag,
int * num_symbols,
UF_DRF_ud_symbol_font_info_p_t * font_info
)
tag_t (tag_t类型)ud_symbol_tagInput(输入)Tag of User Defined Symbol
int * (整数型指针)num_symbolsOutput(输出)Number of User Defined Symbol
UF_DRF_ud_symbol_font_info_p_t *font_infoOutput to be freed
输出并释放
Data structure which contains the
User Defined Symbol font number,
left and right connection points,
factor, length, height and the
count of strokes and stoke data. Use
UF_DRF_free_font to deallocate
memory when done.

 


 
UF_DRF_ask_uds_object_size (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function returns the user defined symbol length / height or
scale / aspect ratio.

环境
Internal or External

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

 
int UF_DRF_ask_uds_object_size
(
tag_t object,
UF_DRF_uds_size_p_t uds_size
)
tag_t (tag_t类型)objectInput(输入)User defined symbols, or annotation with an embedded user defined
symbol object (such as a note, label, or GD&T symbol).
UF_DRF_uds_size_p_tuds_sizeOutput(输出)User defined symbol scale / aspect ratio or length / height parameters.

 


 
UF_DRF_ask_units_format_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Returns preferences for the display of linear and angular dimensions values
as well as dual dimension format.

环境
Internal & External

参见
UF_DRF_set_units_format_preferences
UF_DRF_units_format_preferences_t

历史
Originally released in V16.0. In v17.0, the data structure has changed.
An element controlling the units of the tolerance of angular dimension and
an element controlling the zero suppression for angular dimension have been added.
The display leading zeros option has been removed.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_DRF_ask_units_format_preferences
(
UF_DRF_units_format_preferences_t * units_format_preferences
)
UF_DRF_units_format_preferences_t *units_format_preferencesInput / Outputpointer to
preferences structure to
be populated with the
units/format preferences

 


 
UF_DRF_ask_vertical_note (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will return the orientation of a note. A note can be
either horizontal or vertical.

环境
内部和外部

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

 
int UF_DRF_ask_vertical_note
(
tag_t note,
logical * is_vertical
)
tag_t (tag_t类型)noteInput(输入)Tag of the note.
logical *is_verticalOutput(输出)Orientation of the note:
True if the note is vertical
False if the note is horizontal
If the object is not a note, False
is returned.

 


 
UF_DRF_ask_weld_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the weld symbol tag, this function will get the information regarding
the weld symbol.

环境
Internal and External

参见
UF_DRF_weld_symbols_t
UF_DRF_label_info_t
UF_DRF_create_weld_symbol

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

 
int UF_DRF_ask_weld_symbol
(
tag_t weld_symbol_tag,
double label_origin [ 3 ] ,
UF_DRF_label_info_p_t * label_info,
UF_DRF_weld_symbols_p_t symbol_data
)
tag_t (tag_t类型)weld_symbol_tagInput(输入)tag of the weld symbol for which
information is required
double (实数型)label_origin [ 3 ] Output(输出)label origin
UF_DRF_label_info_p_t *label_infoOutput to be freed
输出并释放
Label information. This must be
freed by UF_DRF_free_label
UF_DRF_weld_symbols_p_tsymbol_dataOutput(输出)weld symbol data for the given
weld symbol tag

 


 
UF_DRF_count_text_substring (查看源代码)
 
定义在: uf_drf.h
 
概述
Find the number of substrings of the given text. A substring is defined as:
A continuous set of characters with similar characteristics
A single symbol e.g. <&1>

环境
内部和外部

参见
UF_DRF_get_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
 
需要许可证(S)
drafting

 
int UF_DRF_count_text_substring
(
int * segment_number,
int * ann_data,
int * number_of_substring
)
int * (整数型指针)segment_numberInput(输入)The requested text segment on the drafting object.
int * (整数型指针)ann_dataInput(输入)The data defining the drafting object.
See UF_DRF_ask_ann_data.
int * (整数型指针)number_of_substringOutput(输出)The number of substrings in this segment of
the drafting object.

 


 
UF_DRF_cre_text_block (查看源代码)
 
定义在: uf_drf.h
 
概述
Create a text block on a drafting aid.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_cre_text_block
(
int * entity_id,
int * text_type,
double text_origin [ 2 ] ,
int * number_lines,
char text_array [ ] [ 133 ]
)
int * (整数型指针)entity_idInput(输入)Object identifier of the drafting aid to add text to
int * (整数型指针)text_typeInput(输入)The type of the text to add.
6 = Appended text
17 = Form and positional tolerance text
double (实数型)text_origin [ 2 ] Input(输入)X and Y coordinates of the origin of the text string.
int * (整数型指针)number_linesInput(输入)The number of lines to add to the drafting aid.
chartext_array [ ] [ 133 ] Input(输入)number_lines
An array of the text strings to add.

 


 
UF_DRF_create_3pt_cline_fbolt (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a full bolt circle centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_fbolt).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_3_or_more_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_collinear_points
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates a full bolt circle centerline using the 3
point method.
 
需要许可证(S)
drafting

 
int UF_DRF_create_3pt_cline_fbolt
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_3pt_cline_fcir (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a full circular centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_fcir).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_3_or_more_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_collinear_points
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_3pt_cline_fcir
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_3pt_cline_pbolt (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a partial bolt circle centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_pbolt).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_3_or_more_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_collinear_points
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates a full bolt circle centerline using the 3
point method.
 
需要许可证(S)
drafting

 
int UF_DRF_create_3pt_cline_pbolt
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_3pt_cline_pcir (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a partial circular centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_pcir).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_3_or_more_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_collinear_points
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates a partial circular centerline using the
3 point method.
UF_DRF_create_3pt_cline_fcir
 
需要许可证(S)
drafting

 
int UF_DRF_create_3pt_cline_pcir
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_angular_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an angular dimension.

环境
内部和外部

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

 
int UF_DRF_create_angular_dim
(
int dimension_form,
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
int (整数型)dimension_formInput(输入)Angular dimension form
1 = minor angle
2 = major angle
UF_DRF_object_p_tobject1Input(输入)Data of first (line) object (see uf_drf_types.h)
Valid object types: line, straight solid curve,
planar face, cylindrical face
UF_DRF_object_p_tobject2Input(输入)Data of second (line) object
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created dimension initialized to
NULL_TAG because legacy programs processed
returned NULL_TAG as an error.

 


 
UF_DRF_create_arclength_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an arc length dimension.

环境
内部和外部

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

 
int UF_DRF_create_arclength_dim
(
UF_DRF_object_p_t object,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobjectInput(输入)Data of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created arc length dimension

 


 
UF_DRF_create_areafill (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an area fill or solid fill.

环境
内部和外部

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

 
int UF_DRF_create_areafill
(
int num_bounds,
int* num_obj_bnd,
tag_t object_list [ ] ,
tag_t view_tag,
tag_t* areafill_tag
)
int (整数型)num_boundsInput(输入)Number of area fill or solid fill boundaries
int*num_obj_bndInput(输入)List of integer values containing the number of
objects in each boundary.
The sum of all values in this list should equal the
number of boundary objects in object_list.
tag_t (tag_t类型)object_list [ ] Input(输入)List of curve tags or point tags or both that
comprise each of the boundaries; a boundary object
tag may be included in the list.
tag_t (tag_t类型)view_tagInput(输入)Member view tag
tag_t*areafill_tagOutput(输出)Object tag of created area fill or solid fill.

 


 
UF_DRF_create_assortpart_aid (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an assorted parts Drafting Aid.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_create_assortpart_aid
(
UF_DRF_assortpart_arc_p_t arc,
UF_DRF_assortpart_arrow_p_t arrow,
UF_DRF_assortpart_line_p_t line,
UF_DRF_assortpart_text_p_t text,
tag_t * assorted_parts_tag
)
UF_DRF_assortpart_arc_p_tarcInput(输入)assorted part arc data
UF_DRF_assortpart_arrow_p_tarrowInput(输入)assorted part arrow data
UF_DRF_assortpart_line_p_tlineInput(输入)assorted part line data
UF_DRF_assortpart_text_p_ttextInput(输入)assorted part text data
tag_t * (tag_t型的指针)assorted_parts_tagOutput(输出)assorted parts tag

 


 
UF_DRF_create_assortpart_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an Assorted Parts Dimension.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_create_assortpart_dim
(
UF_DRF_assortpart_arc_p_t arc,
UF_DRF_assortpart_arrow_p_t arrow,
UF_DRF_assortpart_line_p_t line,
UF_DRF_assortpart_text_p_t text,
tag_t * assorted_parts_tag
)
UF_DRF_assortpart_arc_p_tarcInput(输入)assorted part arc data
UF_DRF_assortpart_arrow_p_tarrowInput(输入)assorted part arrow data
UF_DRF_assortpart_line_p_tlineInput(输入)assorted part line data
UF_DRF_assortpart_text_p_ttextInput(输入)assorted part text data
tag_t * (tag_t型的指针)assorted_parts_tagOutput(输出)assorted parts tag

 


 
UF_DRF_create_block_cline (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a block centerline.
(centerline type UF_DRF_block_cline)

Return-
Return Codes -
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_err_program_not_initialized

环境
Internal and External

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

 
int UF_DRF_create_block_cline
(
UF_DRF_object_p_t defining_obj_list,
UF_DRF_object_p_t limiting_obj_list,
tag_t * centerline_tag
)
UF_DRF_object_p_tdefining_obj_listInput(输入)objects that define the block
centerline (see uf_drf_types.h).
Valid object types: linear edges and
linear curves. This should be an
array of two.
UF_DRF_object_p_tlimiting_obj_listInput(输入)objects that specify the extents of
the block centerline. If NULL is
passed, the system will calculate the
limits. If an array is passed, it
should be of the size two. Valid
object types: edges and curves
tag_t * (tag_t型的指针)centerline_tagOutput(输出)object tag of the block centerline

 


 
UF_DRF_create_chamfer_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
UF_DRF_create_chamfer_dim

Description -
create a chamfer dimension and display it

PARAMETERS -
object1 - <I> data of first object (see uf_drf_types.h)
valid object types: line, solid curve, planar face
object2 - <I> data of second object
dim_text - <I> manual dimension text
dim_3d_origin - <I> 3d dim origin in wcs coords
dim_tag - <O> tag of created cham dim
return - <O> return code:
0 = OK
if not 0 = error code

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

 
int UF_DRF_create_chamfer_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t * dim_text,
double dim_3d_origin [ 3 ] ,
tag_t * dim_tag
)
UF_DRF_object_p_tobject1Input(输入)data of first object
valid object types:
line, solid curve
UF_DRF_object_p_tobject2Input(输入)data of second object
UF_DRF_text_t *dim_textInput(输入)manual dimension text
double (实数型)dim_3d_origin [ 3 ] Input(输入)3d dim origin in wcs coords
tag_t * (tag_t型的指针)dim_tagOutput(输出)tag of created cham dim

 


 
UF_DRF_create_concir_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a concentric circle dimension.

环境
内部和外部

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

 
int UF_DRF_create_concir_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobject1Input(输入)Data of first arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_object_p_tobject2Input(输入)Data of second arc object (see uf_drf_types.h)
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created circular dimension initialized
to NULL_TAG because legacy programs processed
returned NULL_TAG as an error.

 


 
UF_DRF_create_cpt_cline_fbolt (查看源代码)
 
定义在: uf_drf.h
 
概述
n
Creates and displays a full bolt circle centerline using the centerpoint
method (centerline type UF_DRF_cpt_cline_fbolt).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_invalid_object_type_center_point
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_point_coincident_with_center
UF_err_program_not_initialized

环境
内部和外部

参见
Refer to the example
UF_DRF_create_cpt_cline_pcir
 
需要许可证(S)
drafting

 
int UF_DRF_create_cpt_cline_fbolt
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
UF_DRF_object_p_t center_point,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
UF_DRF_object_p_tcenter_pointInput(输入)Data of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_cpt_cline_fcir (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a full circular centerline using the center point
method (centerline type UF_DRF_cpt_cline_fcir).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_invalid_object_type_center_point
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_point_coincident_with_center
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_cpt_cline_fcir
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
UF_DRF_object_p_t center_point,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
UF_DRF_object_p_tcenter_pointInput(输入)Data of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_cpt_cline_pbolt (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a partial bolt circle centerline using the center
point method (centerline type UF_DRF_cpt_cline_pbolt).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_invalid_object_type_center_point
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_point_coincident_with_center
UF_err_program_not_initialized

环境
内部和外部

参见
Refer to the example
UF_DRF_create_cpt_cline_pcir
 
需要许可证(S)
drafting

 
int UF_DRF_create_cpt_cline_pbolt
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
UF_DRF_object_p_t center_point,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
UF_DRF_object_p_tcenter_pointInput(输入)Data of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_cpt_cline_pcir (查看源代码)
 
定义在: uf_drf.h
 
概述
n
Creates and displays a partial circular centerline using the center
point method (centerline type UF_DRF_cpt_cline_pcir).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_invalid_object_type_center_point
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_DRF_point_coincident_with_center
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_cpt_cline_pcir
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
UF_DRF_object_p_t center_point,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
UF_DRF_object_p_tcenter_pointInput(输入)Data of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_crosshatch (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a crosshatch.

环境
内部和外部

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

 
int UF_DRF_create_crosshatch
(
int num_bounds,
int* num_obj_bnd,
tag_t object_list [ ] ,
tag_t view_tag,
tag_t* crosshatch_tag
)
int (整数型)num_boundsInput(输入)Number of crosshatch boundaries
int*num_obj_bndInput(输入)List of integer values containing the number of
objects in each boundary. The sum of all values in
this list should equal the number of boundary
objects in object_list
tag_t (tag_t类型)object_list [ ] Input(输入)List of curve tags or point tags or both that
comprise each of the boundaries; a boundary object
tag may be included in the list
tag_t (tag_t类型)view_tagInput(输入)Member view tag
tag_t*crosshatch_tagOutput(输出)Object tag of created crosshatch.

 


 
UF_DRF_create_custom_symbol_instance (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will create and display a new custom symbol. This function
uses existing objects of the following types to form the symbol: lines,
arcs, splines, parabolas, hyperbolas, B-curves, crosshatch, area fill, and
notes. All objects which are passed into this routine via the data structure
are consumed by the function call (they are not available for use as
individual objects after this function returns).

The symbol scale and angle may be edited, as well as its color, font, and
width. However, all other edits (such as text-specific edits, or display
edits of symbol pieces) must be performed interactively at this time.

返回
Return values include the following:
UF_DRF_invalid_custom_symbol_piece
UF_DRF_default_text_out_of_bounds
UF_DRF_objects_not_in_same_view
UF_DRF_NO_ERRORS

环境
Internal and External

参见
UF_DRF_is_sbf_symbol, UF_DRF_initialize_custom_symbol_data,
UF_DRF_ask_custom_symbol_scale, UF_DRF_set_custom_symbol_scale,
UF_DRF_ask_custom_symbol_angle, UF_DRF_set_custom_symbol_angle
Refer to the example

历史
Created in V18.0.3
 
需要许可证(S)
drafting

 
int UF_DRF_create_custom_symbol_instance
(
UF_DRF_custom_symbol_p_t symbol_definition,
tag_t * new_symbol_tag
)
UF_DRF_custom_symbol_p_tsymbol_definitionInput(输入)Structure containing
data necessary for
custom symbol definition
tag_t * (tag_t型的指针)new_symbol_tagOutput(输出)The tag of the new
custom symbol instance

 


 
UF_DRF_create_cylindrical_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
n
Creates and displays a cylindrical dimension.

环境
内部和外部

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

 
int UF_DRF_create_cylindrical_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobject1Input(输入)Data of first object (see uf_drf_types.h)
Valid object types: point, line, arc, conic, cubic
spline, B curve, pattern, solid curve, utility
symbol (centerline), or cylindrical face(if one associative
object is a cylindrical face, both associative objects must
be the same face. If the face is perpendicular to WCS X-Y plane
the associative type must be tangency type).
UF_DRF_object_p_tobject2Input(输入)Data of second object
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created cylindrical dimension

 


 
UF_DRF_create_diameter_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a diameter dimension.

环境
内部和外部

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

 
int UF_DRF_create_diameter_dim
(
UF_DRF_object_p_t object,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobjectInput(输入)Data of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created diameter dimension

 


 
UF_DRF_create_foldedradius_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a folded radius dimension.

环境
内部和外部

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

 
int UF_DRF_create_foldedradius_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
double fold_location [ 3 ] ,
double fold_angle,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobject1Input(输入)Data of first object (see uf_drf_types.h)
Valid object types: arc, bolt circle, circular
centerline, cylindrical face
UF_DRF_object_p_tobject2Input(输入)Data of second object: offset center point
Valid object types: point, line, arc, conic, B curve,
solid curve, offset center point, cylindrical,
symmetrical center line, target point, intersection
point
double (实数型)fold_location [ 3 ] Input(输入)Fold location in wcs coordinates
double (实数型)fold_angleInput(输入)Fold angle in degrees
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created linear dimension initialized to
NULL_TAG because legacy programs processed
returned NULL_TAG as an error.

 


 
UF_DRF_create_gdt_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
n
Creates and displays a GD&T symbol.

环境
内部和外部

参见
Refer to the example

历史
V17 - Added the ability to attach datums to annotations or leader stubs.
 
需要许可证(S)
drafting

 
int UF_DRF_create_gdt_symbol
(
int num_lines_text,
char text_string [ ] [ MAX_LINE_LENGTH+1 ] ,
double origin_3d [ 3 ] ,
UF_DRF_leader_type_t leader_type,
UF_DRF_leader_attach_type_t leader_attach_type,
UF_DRF_object_p_t object,
double model_pos_3d [ 3 ] ,
UF_DRF_frame_corner_t frame_corner,
tag_t* gdt_symbol_tag
)
int (整数型)num_lines_textInput(输入)Number of lines of text
chartext_string [ ] [ MAX_LINE_LENGTH+1 ] Input(输入)Associated text string
double (实数型)origin_3d [ 3 ] Input(输入)3d object origin in wcs coordinates
UF_DRF_leader_type_tleader_typeInput(输入)Leader type
UF_DRF_leader_type_none = none
UF_DRF_leader_type_line = leader line
UF_DRF_leader_type_ext_line = extension line
UF_DRF_leader_attach_type_tleader_attach_typeInput(输入)Leader attachment type
If leader_type =
UF_DRF_leader_type_line,
UF_DRF_leader_attach_object =
attached to object
UF_DRF_leader_attach_screen =
screen position
UF_DRF_object_p_tobjectInput(输入)Data of object to attach leader see uf_drf_types.h
If leader_type = UF_DRF_leader_type_line and
leader_attach_type = UF_DRF_leader_attach_object,
Valid object types: point, line, arc, conic,
cubic spline, B curve, and solid curve.
If leader_type = UF_DRF_leader_type_ext_line
Valid object types: line, straight solid curve. If the
leader_attach_type is UF_DRF_leader_attach_screen,
then object = NULL.
double (实数型)model_pos_3d [ 3 ] Input(输入)3d model space position
If leader_attach_type = UF_DRF_leader_attach_object
This position is used as an approximate point on the
object to attach the leader
If leader_attach_type = UF_DRF_leader_attach_screen
This position is the endpoint of the leader
UF_DRF_frame_corner_tframe_cornerInput(输入)Frame corner
If leader_type = UF_DRF_leader_type_ext_line
UF_DRF_frame_upper_left = upper left
UF_DRF_frame_upper_right = upper right
UF_DRF_frame_lower_left = lower left
UF_DRF_frame_lower_right = lower right
tag_t*gdt_symbol_tagOutput(输出)Object tag of created gdt symbol.

 


 
UF_DRF_create_gdt_symbol_with_multiple_leaders (查看源代码)
 
定义在: uf_drf.h
 
概述
UF_DRF_create_gdt_symbol_with_multiple_leaders

Description -
Create a Geometric Dimensioning and Tolerancing symbol with multiple
leader lines. With this routine, you can also create leaders with
intermediate points.

Input -
num_lines_text The number of lines of text in the GD&T symbol.
text_string The lines of text. This should be declared before
calling this routine. For example:
text_string[][MAX_LINE_LENGTH+1]
origin The origin in WCS coordinates.
leader The leader line information.
frame_corner The frame corner to use if the leader_type is
UF_DRF_leader_type_ext_line.
UF_DRF_frame_upper_left = upper left
UF_DRF_frame_upper_right = upper right
UF_DRF_frame_lower_left = lower left
UF_DRF_frame_lower_right = lower right

Output -
gdt_symbol_tag The tag of GD&T Symbol


Return Codes -
UF_DRF_NO_ERRORS
otherwise
UF_DRF_no_text
UF_err_bad_parameter
UF_DRF_invalid_leader_type
UF_DRF_too_many_objects More than UF_DRF_LEADER_MAX_LEADERS leaders.
UF_DRF_INVALID_LEADER_LOCATION Leader side is neither left nor right.
UF_DRF_invalid_leader_mode Datum leader requires an object.
UF_err_program_not_initialized

环境
Internal and External

历史
Original release was in NX 1.0.3.2 and NX 2
 
需要许可证(S)
drafting

 
int UF_DRF_create_gdt_symbol_with_multiple_leaders
(
const int num_lines_text,
const char text_string [ ] [ MAX_LINE_LENGTH+1 ] ,
const double gdt_symbol_origin [ 3 ] ,
const UF_DRF_gdt_leader_t * leader,
const UF_DRF_frame_corner_t frame_corner,
tag_t * const gdt_symbol_tag
)
const intnum_lines_textInput(输入)The number of lines of text
in the GD&T.
const chartext_string [ ] [ MAX_LINE_LENGTH+1 ] Input(输入)The lines of text.
const doublegdt_symbol_origin [ 3 ] Input(输入)The GD&T symbol's origin.
const UF_DRF_gdt_leader_t *leaderInput(输入)The GD&T symbol's leader
line information.
const UF_DRF_frame_corner_tframe_cornerInput(输入)Valid when leader_type is
UF_DRF_leader_type_ext_line
tag_t * constgdt_symbol_tagOutput(输出)Object tag of
created GD&T symbol.

 


 
UF_DRF_create_hole_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a hole dimension.

环境
内部和外部

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

 
int UF_DRF_create_hole_dim
(
UF_DRF_object_p_t object,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobjectInput(输入)Data of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created hole dimension

 


 
UF_DRF_create_horizontal_baseline_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a horizontal baseline dimension.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_linear_dim_form
UF_DRF_null_object_structure - if any object in the object set has null object structure
UF_DRF_null_object - if any object in the object set is null
UF_DRF_invalid_number_of_objects - if num_of_objects is less than 3
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_horizontal_baseline_dimension
(
UF_DRF_object_t * object_set,
int num_of_objects,
double dimension_3d_origin [ 3 ] ,
tag_t * dimension_tag
)
UF_DRF_object_t *object_setInput(输入)Array of associated objects to be dimensioned.
int (整数型)num_of_objectsInput(输入)Number of associated objects in array.
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension set origin in absolute coordinates.
tag_t * (tag_t型的指针)dimension_tagOutput(输出)Object tag of created dimension set.

 


 
UF_DRF_create_horizontal_chain_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a horizontal chain dimension.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_linear_dim_form
UF_DRF_null_object_structure - if any object in the object set has null object structure
UF_DRF_null_object - if any object in the object set is null
UF_DRF_invalid_number_of_objects - if num_of_objects is less than 3
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_horizontal_chain_dimension
(
UF_DRF_object_t * object_set,
int num_of_objects,
double dimension_3d_origin [ 3 ] ,
tag_t * dimension_tag
)
UF_DRF_object_t *object_setInput(输入)Array of associated objects to be dimensioned.
int (整数型)num_of_objectsInput(输入)Number of associated objects in array.
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension set origin in absolute coordinates.
tag_t * (tag_t型的指针)dimension_tagOutput(输出)Object tag of created dimension set.

 


 
UF_DRF_create_horizontal_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a horizontal dimension.

环境
内部和外部

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

 
int UF_DRF_create_horizontal_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobject1Input(输入)Data of first object (see uf_drf_types.h)
Valid object types: point, line, arc, conic, cubic
spline, B curve, pattern, solid curve, utility
symbol (centerline), planar face, or cylindrical face
UF_DRF_object_p_tobject2Input(输入)Data of second object
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created horizontal dimension

 


 
UF_DRF_create_id_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an ID symbol.

环境
内部和外部

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

 
int UF_DRF_create_id_symbol
(
UF_DRF_id_symbol_type_t id_symbol_type,
char* upper_text_string,
char* lower_text_string,
double origin_3d [ 3 ] ,
UF_DRF_leader_mode_t leader_mode,
UF_DRF_leader_attach_type_t leader_attach_type,
UF_DRF_object_p_t object,
double model_pos_3d [ 3 ] ,
tag_t* id_symbol_tag
)
UF_DRF_id_symbol_type_tid_symbol_typeInput(输入)id symbol type
UF_DRF_sym_circle = circle
UF_DRF_sym_divcir = divided circle
UF_DRF_sym_square = square
UF_DRF_sym_divsqr = divided
square
UF_DRF_sym_hexagon = hexagon
UF_DRF_sym_divhex = divided
hexagon
UF_DRF_sym_triup = triangle,
point up
UF_DRF_sym_tridown = triangle,
point down
UF_DRF_sym_datum = datum target
UF_DRF_sym_roundbox = rounded box
char*upper_text_stringInput(输入)Upper text string (maximum
MAX_ID_SYM_TEXT_LENGTH characters)
char*lower_text_stringInput(输入)Lower text string (maximum
MAX_ID_SYM_TEXT_LENGTH characters)
double (实数型)origin_3d [ 3 ] Input(输入)3d object origin in wcs coordinates
UF_DRF_leader_mode_tleader_modeInput(输入)Leader mode
UF_DRF_without_leader = without leader
UF_DRF_with_leader = with leader
UF_DRF_leader_attach_type_tleader_attach_typeInput(输入)Leader attachment type
UF_DRF_leader_attach_object =
attached to object
UF_DRF_leader_attach_screen =
screen position
UF_DRF_object_p_tobjectInput(输入)Data of object to attach leader (see
uf_drf_types.h) valid object types: point,
line, arc, conic, cubic spline, B curve, and
solid curve. If the leader_attach_type is
UF_DRF_leader_attach_screen, then object = NULL.
double (实数型)model_pos_3d [ 3 ] Input(输入)3d model space position
If leader_attach_type =
UF_DRF_leader_attach_object,
This position is used as an approximate point
on the object to attach the leader
If leader_attach_type = UF_DRF_leader_attach_screen,
This position is the endpoint of the leader
tag_t*id_symbol_tagOutput(输出)Object tag of created id symbol.

 


 
UF_DRF_create_image (查看源代码)
 
定义在: uf_drf.h
 
概述
Create an image from an existing image in the part

Returns
UF_DRF_NO_ERRORS if the image was created

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_create_image
(
char * image_name,
tag_t drawing_sheet,
double origin [ 3 ] ,
tag_t * image
)
char * (字符型指针)image_nameInput(输入)Name of image in part file
tag_t (tag_t类型)drawing_sheetInput(输入)The drawing sheet on which to create the
image or NULL_TAG to create the image on
the current drawing sheet.
double (实数型)origin [ 3 ] Input(输入)Origin of new image in drawing sheet units
tag_t * (tag_t型的指针)imageOutput(输出)Image tag if successful or
NULL_TAG if creation failed

 


 
UF_DRF_create_image_from_file (查看源代码)
 
定义在: uf_drf.h
 
概述
Create an image from a jpg, png or tif file

Returns
UF_DRF_NO_ERRORS if the image was created

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_create_image_from_file
(
char * file_name,
tag_t drawing_sheet,
double origin [ 3 ] ,
tag_t * image
)
char * (字符型指针)file_nameInput(输入)Name of jpg, png or tif file to use to create
image
tag_t (tag_t类型)drawing_sheetInput(输入)The drawing sheet on which to create the
image or NULL_TAG to create the image on
the current drawing sheet.
double (实数型)origin [ 3 ] Input(输入)Origin of new image in drawing sheet units
tag_t * (tag_t型的指针)imageOutput(输出)Image tag if successful or
NULL_TAG if creation failed

 


 
UF_DRF_create_label (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a label.

环境
内部和外部

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

 
int UF_DRF_create_label
(
int num_lines_text,
char text_string [ ] [ MAX_LINE_LENGTH+1 ] ,
double origin_3d [ 3 ] ,
UF_DRF_leader_attach_type_t leader_attach_type,
UF_DRF_object_p_t object,
double model_pos_3d [ 3 ] ,
tag_t* label_tag
)
int (整数型)num_lines_textInput(输入)Number of lines of text
chartext_string [ ] [ MAX_LINE_LENGTH+1 ] Input(输入)Associated text string
double (实数型)origin_3d [ 3 ] Input(输入)3d object origin in wcs coordinates
UF_DRF_leader_attach_type_tleader_attach_typeInput(输入)Leader attachment type
UF_DRF_leader_attach_object =
attached to object
UF_DRF_leader_attach_screen =
screen position
UF_DRF_object_p_tobjectInput(输入)Data of object to attach leader (see uf_drf_types.h)
Valid object types: point, line, arc, conic, cubic
spline, B curve, and solid curve. If the
leader_attach_type is UF_DRF_leader_attach_screen,
then object = NULL.
NOTE: UF_DRF_object_t is a general purpose
structure used by several functions.
The input fields object_assoc_type and
object_assoc_modifier are not supported by
UF_DRF_create_label. For example,
Attaching the leader to an arc center is
not supported, nor is it supported for
interactive creation of a label in NX.
double (实数型)model_pos_3d [ 3 ] Input(输入)3d model space position
if leader_attach_type = UF_DRF_leader_attach_object
This position is used as an approximate point on the
object to attach the leader
if leader_attach_type = UF_DRF_leader_attach_screen,
This position is the endpoint of the leader
tag_t*label_tagOutput(输出)Object tag of created label.

 


 
UF_DRF_create_linear_cline (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a linear centerline (centerline type UF_DRF_linear_cline).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_coincident_points
UF_DRF_point_not_on_centerline
UF_err_program_not_initialized

环境
内部和外部

参见
Refer to the example

历史
In NX4, the centerline angle is inherited from the auxiliary view
hinge line when the session setting has that option enabled.
 
需要许可证(S)
drafting

 
int UF_DRF_create_linear_cline
(
const int num_cline_objs,
UF_DRF_object_t* cline_obj_list,
tag_t* centerline_tag
)
const intnum_cline_objsInput(输入)Number of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInput(输入)Array of objects that are to be associated
to the centerline (see uf_drf_types.h)
Valid object types: point, arc, solid curve
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_non_assoc_hatch (查看源代码)
 
定义在: uf_drf.h
 
概述
Create a non-associative crosshatch. Useful for translating data from
other system or forms, e.g. IGES, that do not support associative
crosshatching.

返回
Returns standard error codes, with success == UF_DRF_NO_ERRORS.

环境
内部和外部

历史
-
 
需要许可证(S)
drafting

 
int UF_DRF_create_non_assoc_hatch
(
int num_lines,
double * hatch_lines,
tag_t matrix,
tag_t view,
int color,
int line_width,
tag_p_t new_hatch
)
int (整数型)num_linesInput(输入)number of hatch lines =
sizeof(hatch_lines)/4
double * (实数型指针)hatch_linesInput(输入)num_lines
crosshatch lines ([x1, y1, x2, y2])
quadruples As with all annotations
the coordinates are in the
coordinater system of the matrix
tag_t (tag_t类型)matrixInput(输入)matrix for crosshatch
if NULL_TAG then the matrix of the
WCS is used
tag_t (tag_t类型)viewInput(输入)view of crosshatch
if NULL_TAG then the crosshatch is
not view dependent
int (整数型)colorInput(输入)color
int (整数型)line_widthInput(输入)line width
tag_p_tnew_hatchOutput(输出)crosshatch created or NULL_TAG if
error

 


 
UF_DRF_create_note (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates either a horizontal or vertical note and displays it.

返回
Return Codes
UF_DRF_no_text
UF_DRF_null_object_structure
UF_DRF_null_object
UF_DRF_invalid_object
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_note
(
int num_lines_text,
char* text_string [ ] ,
double origin_3d [ 3 ] ,
int orientation,
tag_t* note_tag
)
int (整数型)num_lines_textInput(输入)Number of lines of text
char*text_string [ ] Input(输入)associated text strings
double (实数型)origin_3d [ 3 ] Input(输入)3d object origin in WCS coordinates
int (整数型)orientationInput(输入)Orientation of the note:
0 - Horizontal
1 - Vertical
tag_t*note_tagOutput(输出)Object tag of created note. Initialized to
NULL_TAG.

 


 
UF_DRF_create_offctrpt_cx (查看源代码)
 
定义在: uf_drf.h
 
概述
n
Creates and displays an offset center point on the x-axis at a
specified distance from the arc center ("centerline" type
UF_DRF_offctrpt_cx).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_1_object
UF_DRF_invalid_centerline_form
UF_DRF_offset_center_point_requires_arc
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates an offset centerpoint on the x-axis a specified
distance from the arc center.
 
需要许可证(S)
drafting

 
int UF_DRF_create_offctrpt_cx
(
UF_DRF_object_p_t cline_object,
const double distance,
tag_t* offctrpt_tag
)
UF_DRF_object_p_tcline_objectInput(输入)Object associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInput(输入)Distance value from arc center
tag_t*offctrpt_tagOutput(输出)Object tag of created offset center point

 


 
UF_DRF_create_offctrpt_cy (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an offset center point on the y-axis at a
specified distance from the arc center ("centerline" type UF_DRF_offctrpt_cy).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_1_object
UF_DRF_invalid_centerline_form
UF_DRF_offset_center_point_requires_arc
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates an offset centerpoint on the y-axis at a
specified distance from the arc center.
 
需要许可证(S)
drafting

 
int UF_DRF_create_offctrpt_cy
(
UF_DRF_object_p_t cline_object,
const double distance,
tag_t* offctrpt_tag
)
UF_DRF_object_p_tcline_objectInput(输入)Object associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInput(输入)Distance value from arc center
tag_t*offctrpt_tagOutput(输出)Object tag of created offset center point

 


 
UF_DRF_create_offctrpt_fx (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an offset center point on the x-axis and
calculates the offset distance ("centerline" type
UF_DRF_offctrpt_fx).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_1_object
UF_DRF_invalid_centerline_form
UF_DRF_offset_center_point_requires_arc
UF_DRF_invalid_object_type_offset_point
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates an offset centerpoint on the x-axis and
calculates the offset distance.
 
需要许可证(S)
drafting

 
int UF_DRF_create_offctrpt_fx
(
UF_DRF_object_p_t cline_object,
UF_DRF_object_p_t center_point,
tag_t* offctrpt_tag
)
UF_DRF_object_p_tcline_objectInput(输入)Object associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
UF_DRF_object_p_tcenter_pointInput(输入)Data of object selected for calculating
distance to be used in placing offset center
point (see uf_drf_types.h)
tag_t*offctrpt_tagOutput(输出)Object tag of created offset center point

 


 
UF_DRF_create_offctrpt_fy (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an offset center point on the y-axis and
calculates the offset distance ("centerline" type UF_DRF_offctrpt_fy).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_1_object
UF_DRF_invalid_centerline_form
UF_DRF_offset_center_point_requires_arc
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates an offset centerpoint on the y-axis and
calculates the offset distance.
 
需要许可证(S)
drafting

 
int UF_DRF_create_offctrpt_fy
(
UF_DRF_object_p_t cline_object,
UF_DRF_object_p_t center_point,
tag_t* offctrpt_tag
)
UF_DRF_object_p_tcline_objectInput(输入)Object associated to the centerline (see
uf_drf_types.h) Valid object types: arc, curved
solid curve
UF_DRF_object_p_tcenter_pointInput(输入)Data of object selected for calculating
distance to be used in placing offset center
point (see uf_drf_types.h)
tag_t*offctrpt_tagOutput(输出)Object tag of created offset center point

 


 
UF_DRF_create_offctrpt_nx (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an offset center point on the x-axis at a
specified distance from the arc normal ("centerline" type UF_DRF_offctrpt_nx).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_1_object
UF_DRF_invalid_centerline_form
UF_DRF_offset_center_point_requires_arc
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_offctrpt_nx
(
UF_DRF_object_p_t cline_object,
const double distance,
tag_t* offctrpt_tag
)
UF_DRF_object_p_tcline_objectInput(输入)Object associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInput(输入)Distance value from arc normal
tag_t*offctrpt_tagOutput(输出)Object tag of created offset center point

 


 
UF_DRF_create_offctrpt_ny (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an offset center point on the y-axis at a
specified distance from the arc normal ("centerline" type UF_DRF_offctrpt_ny).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_1_object
UF_DRF_invalid_centerline_form
UF_DRF_offset_center_point_requires_arc
UF_DRF_invalid_object_type_offset_point
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates an offset centerpoint on the y-axis at a
specified distance from the arc normal.
 
需要许可证(S)
drafting

 
int UF_DRF_create_offctrpt_ny
(
UF_DRF_object_p_t cline_object,
const double distance,
tag_t* offctrpt_tag
)
UF_DRF_object_p_tcline_objectInput(输入)Object associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInput(输入)Distance value from arc normal
tag_t*offctrpt_tagOutput(输出)Object tag of created offset center point

 


 
UF_DRF_create_offcyl_cline_obj (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an offset cylindrical centerline and calculates the
offset distance from the object (centerline type UF_DRF_offcyl_cline_obj).
When you create a cylindrical centerline with an offset, it does not appear
any different than the one created without an offset distance.
However, when you dimension to the cylindrical centerline, the dimension
reflects this distance by adding the offset distance value.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_2_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_DRF_invalid_object_type_offset_point
UF_err_program_not_initialized

环境
内部和外部

参见
See the example
This example creates an offset cylindrical centerline and
calculates the offset distance from an object.
 
需要许可证(S)
drafting

 
int UF_DRF_create_offcyl_cline_obj
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_object_p_t center_point,
tag_t* centerline_tag
)
UF_DRF_object_p_tobject1Input(输入)First object associated to the centerline (see
uf_drf_types.h) Valid object types: point, arc,
solid curve
UF_DRF_object_p_tobject2Input(输入)Second object associated to the centerline
UF_DRF_object_p_tcenter_pointInput(输入)Data of object selected for calculating offset
distance (see uf_drf_types.h)
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_offcyl_cline_off (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an offset cylindrical centerline with a keyed-in
offset distance (centerline type UF_DRF_offcyl_cline_off).
When you create a cylindrical centerline with an offset, it does not appear
any different than the one created without an offset distance.
However, when you dimension to the cylindrical centerline, the dimension
reflects this distance by adding the offset distance value.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_2_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_offcyl_cline_off
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
const double distance,
tag_t* centerline_tag
)
UF_DRF_object_p_tobject1Input(输入)First object associated to the centerline (see
uf_drf_types.h) Valid object types: point, arc,
solid curve
UF_DRF_object_p_tobject2Input(输入)Second object associated to the centerline
const doubledistanceInput(输入)Offset distance value
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_orddimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an ordinate dimension.

环境
内部和外部

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

 
int UF_DRF_create_orddimension
(
tag_t margin_origin_tag,
int dimension_type,
UF_DRF_object_p_t object,
double dogleg_angle,
double dogleg_distance,
UF_DRF_text_t* drf_text,
int text_origin_flag,
double origin_3d [ 3 ] ,
tag_t* dimension_tag
)
tag_t (tag_t类型)margin_origin_tagInput(输入)Margin or origin tag
int (整数型)dimension_typeInput(输入)Type of dimension (required when
margin_origin_tag is origin, ignored otherwise)
1 = horizontal
2 = vertical
UF_DRF_object_p_tobjectInput(输入)Data of object (see uf_drf_types.h) valid object
types: point, line, arc, conic, cubic spline, B curve,
pattern, solid curve, offset center point,
cylindrical, symmetrical centerline, intersection
symbol, target point
double (实数型)dogleg_angleInput(输入)Dogleg angle in degrees (0.0 for no dogleg)
double (实数型)dogleg_distanceInput(输入)Dogleg distance from dim point in wcs coordinates
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
int (整数型)text_origin_flagInput(输入)Text origin flag
1 = center of total text box
2 = center of dimension text box
double (实数型)origin_3d [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created ordinate dimension.

 


 
UF_DRF_create_ordinate_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Create a horizontal or vertical ordinate dimension

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_create_ordinate_dim
(
tag_t np1,
int ip2,
tag_t np3,
int ip4,
int ip5,
double rp6,
double rp7,
char * cp8,
int ip9,
char cp10 [ ] [ 133 ] ,
int ip11,
double rp12 [ 3 ] ,
tag_t * nr13
)
tag_t (tag_t类型)np1Input(输入)Object identifier of the margin or ordinate origin.
int (整数型)ip2Input(输入)Type of dimension if object is an origin:
1 = Horizontal
2 = Vertical
tag_t (tag_t类型)np3Input(输入)Object to be dimensioned.
int (整数型)ip4Input(输入)Type of associativity to the object
1 = Endpoint
2 = Arc center
3 = Tangency
4 = Utility symbol
int (整数型)ip5Input(输入)Associativity modifier. For endpoint associativity:
1 = First endpoint
2 = Second endpoint
For a tangency associativity:
0-100 = parameter percent along the arc to identify
the point used to pick the arc side to dimension.
For a utility symbol:
1-100 centerline segment number
double (实数型)rp6Input(输入)Dogleg angle in degrees ( 0.0 for no dogleg).
double (实数型)rp7Input(输入)Dogleg distance from the dimension point in WCS units.
char * (字符型指针)cp8Input(输入)Dimension text string.
int (整数型)ip9Input(输入)Number of lines of appended text.
charcp10 [ ] [ 133 ] Input(输入)Array of appended text strings.
int (整数型)ip11Input(输入)Text origin flag:
1 = Center of total text box.
2 = Center of dimension text box
double (实数型)rp12 [ 3 ] Input(输入)X, Y and Z of origin in WCS coordinates.
tag_t * (tag_t型的指针)nr13Output(输出)Object identifier of created dimension

 


 
UF_DRF_create_ordinate_margin (查看源代码)
 
定义在: uf_drf.h
 
概述
Create an ordinate margin

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_create_ordinate_margin
(
int ip1,
tag_t np2,
tag_t np3,
double rp4 [ 2 ] ,
double rp5 [ 2 ] ,
double rp6,
tag_t * nr7
)
int (整数型)ip1Input(输入)Type of margin:
1 = Horizontal
2 = Vertical
tag_t (tag_t类型)np2Input(输入)Object identifier of the ordinate origin.
tag_t (tag_t类型)np3Input(输入)Object identifier of the line or a NULL_TAG.
double (实数型)rp4 [ 2 ] Input(输入)X, Y point on the margin, only used if no line object
is passed in.
double (实数型)rp5 [ 2 ] Input(输入)X, Y direction of the margin, only used if no line object
is passed in.
double (实数型)rp6Input(输入)Offset distance.
tag_t * (tag_t型的指针)nr7Output(输出)Object identifier of the created margin.

 


 
UF_DRF_create_ordinate_origin (查看源代码)
 
定义在: uf_drf.h
 
概述
Create an ordinate origin dimension

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_create_ordinate_origin
(
tag_t np1,
int ip2,
int ip3,
int ip4,
int ip5,
int ip6,
char * cp7,
tag_t * nr8
)
tag_t (tag_t类型)np1Input(输入)Tag of the associated object.
int (整数型)ip2Input(输入)Type of associativity to the associated object:
1 = endpoint
2 = arc center
3 = Utility symbol
int (整数型)ip3Input(输入)Associativity modifier. For an endpoint associativity:
1 = Associate to the first endpoint
2 = Associate to the second endpoint
For an Utility symbol associativity:
1-100 Centerline segment number
int (整数型)ip4Input(输入)Positive quadrant identifier, determines the signs of
the dimensions:
1 = Upper right
2 = Upper left
3 = Lower right
4 = Lower left
5 = all quadrants
int (整数型)ip5Input(输入)Arrow and dimension line display for the ordinate origin:
1 = Don't display
2 = Display
int (整数型)ip6Input(输入)Origin symbol display
1 = Display origin name
2 = No display
char * (字符型指针)cp7Input(输入)Entity name.
tag_t * (tag_t型的指针)nr8Output(输出)Tag of the created dimension.

 


 
UF_DRF_create_ordmargin (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an ordinate margin.

环境
内部和外部

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

 
int UF_DRF_create_ordmargin
(
int margin_type,
tag_t ordinate_origin_tag,
UF_DRF_object_p_t object,
double margin_xy_point [ 3 ] ,
double margin_xy_direction [ 2 ] ,
double offset_distance,
tag_t* margin_tag
)
int (整数型)margin_typeInput(输入)Margin type
1 = horizontal
2 = vertical
tag_t (tag_t类型)ordinate_origin_tagInput(输入)Ordinate origin tag
UF_DRF_object_p_tobjectInput(输入)Data of line object (see uf_drf_types.h)
double (实数型)margin_xy_point [ 3 ] Input(输入)x,y point on margin (required if the object_tag in
the object structure is null, ignored otherwise)
double (实数型)margin_xy_direction [ 2 ] Input(输入)x,y direction of margin (required if the
object_tag in the object structure is null,
ignored otherwise)
double (实数型)offset_distanceInput(输入)Offset distance
tag_t*margin_tagOutput(输出)Object tag of created ordinate margin.

 


 
UF_DRF_create_ordorigin (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays an ordinate origin.

环境
内部和外部

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

 
int UF_DRF_create_ordorigin
(
UF_DRF_object_p_t object,
int positive_quad_id,
int arr_dim_line_display,
int origin_symbol_display,
char* user_object_name,
tag_t* origin_tag
)
UF_DRF_object_p_tobjectInput(输入)Data of object (see uf_drf_types.h)
Valid object types: point, line, arc, conic, cubic
spline, B curve, pattern, solid curve, offset center
point, cylindrical, symmetrical centerline,
intersection symbol, drafting point
int (整数型)positive_quad_idInput(输入)Positive quadrant identifier determines signs of
dimensions
1 = upper right
2 = upper left
3 = lower right
4 = lower left
5 = all quadrants
int (整数型)arr_dim_line_displayInput(输入)Arrow and dimension line display
1 = no
2 = yes
int (整数型)origin_symbol_displayInput(输入)Origin symbol display
1 = origin name
2 = no display
char*user_object_nameInput(输入)User supplied object name
tag_t*origin_tagOutput(输出)Object tag of created ordinate origin.

 


 
UF_DRF_create_parallel_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a parallel dimension.

环境
内部和外部

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

 
int UF_DRF_create_parallel_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobject1Input(输入)Data of first object (see uf_drf_types.h)
Valid object types: point, line, arc, conic, cubic
spline, B curve, pattern, solid curve, utility
symbol (centerline), or cylindrical face
UF_DRF_object_p_tobject2Input(输入)Data of second object
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created parallel dimension

 


 
UF_DRF_create_perpendicular_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a perpendicular dimension.

环境
内部和外部

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

 
int UF_DRF_create_perpendicular_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobject1Input(输入)Data of base (line) object (see uf_drf_types.h)
Valid object types: line, linear, cylindrical,
symmetrical centerline, straight solid curve,
planar face, cylindrical face
UF_DRF_object_p_tobject2Input(输入)Data of second object valid object types: point,
line, arc, conic, cubic spline, B curve, pattern,
solid curve, planar face, cylindrical face
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created dimension.

 


 
UF_DRF_create_radius_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
n
Creates and displays a radius dimension.

环境
内部和外部

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

 
int UF_DRF_create_radius_dim
(
UF_DRF_object_p_t object,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobjectInput(输入)Data of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created radius dimension

 


 
UF_DRF_create_sbf_file (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates a Symbol Font Definition File and sets it as current.

环境
内部和外部

历史
This function was originally released in V14.0
via the Release Letter.
 
需要许可证(S)
drafting

 
int UF_DRF_create_sbf_file
(
char sbf_name [ SYMBOL_FILE_NAME_SIZE+1 ]
)
charsbf_name [ SYMBOL_FILE_NAME_SIZE+1 ] Input(输入)name of file to be created (30
characters maximum)

 


 
UF_DRF_create_side_seam (查看源代码)
 
定义在: uf_drf.h
 
概述
This function creates the side seam representation for the weld symbol

环境
Internal and External

参见
UF_DRF_weld_symbols_t
UF_DRF_create_weld_symbol

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

 
int UF_DRF_create_side_seam
(
tag_t weld_symbol_tag,
tag_t view_tag,
tag_t object,
double point [ 3 ] ,
UF_DRF_weld_symbols_p_t weld_symbol_data
)
tag_t (tag_t类型)weld_symbol_tagInput(输入)tag of the weld symbol for which
side seam has to be created
tag_t (tag_t类型)view_tagInput(输入)tag of the view for which side seam
has to be created
tag_t (tag_t类型)objectInput(输入)object used as guide curve for
creating side seam. These can be
any curve or a solid edge.
double (实数型)point [ 3 ] Input(输入)absolute co-ordinates of the point
at which the side seam has to be
created
UF_DRF_weld_symbols_p_tweld_symbol_dataInput(输入)pointer to weld symbol data which
defines the shape and size of the
side seam

 


 
UF_DRF_create_sym_cline (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a symmetrical centerline (centerline type
UF_DRF_symmetrical_cline).

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_centerline_form
UF_DRF_no_objects
UF_DRF_too_many_objects
UF_DRF_form_requires_2_objects
UF_DRF_invalid_centerline_form
UF_DRF_invalid_object_type_centerline
UF_DRF_model_objects_on_drawing
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_sym_cline
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
tag_t* centerline_tag
)
UF_DRF_object_p_tobject1Input(输入)First object associated to the centerline (see
uf_drf_types.h) Valid object types: point, arc,
solid curve
UF_DRF_object_p_tobject2Input(输入)Second object associated to the centerline
tag_t*centerline_tagOutput(输出)Object tag of created centerline

 


 
UF_DRF_create_symbol_font (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates a symbol font object and saves it in the current SBF file.

环境
内部和外部

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

 
int UF_DRF_create_symbol_font
(
char symbol_name [ SYMBOL_FILE_NAME_SIZE+1 ] ,
double symbol_factor,
double symbol_anchor [ 3 ] ,
double symbol_orient [ 3 ] ,
int num_objects,
tag_t * object
)
charsymbol_name [ SYMBOL_FILE_NAME_SIZE+1 ] Input(输入)symbol name
double (实数型)symbol_factorInput(输入)symbol factor
double (实数型)symbol_anchor [ 3 ] Input(输入)model space x,y,z of
anchor point
double (实数型)symbol_orient [ 3 ] Input(输入)model space x,y,z of
orientation point
int (整数型)num_objectsInput(输入)number of objects
composing this symbol
tag_t * (tag_t型的指针)objectInput(输入)num_objects
list of object tags

 


 
UF_DRF_create_top_seam (查看源代码)
 
定义在: uf_drf.h
 
概述
This function creates the top seam representation for the weld symbol

环境
Internal and External

参见
UF_DRF_weld_symbols_t
UF_DRF_create_weld_symbol

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

 
int UF_DRF_create_top_seam
(
tag_t weld_symbol_tag,
tag_t view_tag,
int num_objects,
tag_p_t objects,
logical flip,
UF_DRF_weld_symbols_p_t weld_symbol_data
)
tag_t (tag_t类型)weld_symbol_tagInput(输入)tag of the weld symbol for which
top seam has to be created
tag_t (tag_t类型)view_tagInput(输入)tag of the view for which top seam
has to be created
int (整数型)num_objectsInput(输入)number of objects to be used for
creating the top seam
tag_p_tobjectsInput(输入)num_objects
objects used as guide curves for
creating top seam. For plug/slot and
spot, these have to be points. For
others these can be any curve or
a solid edge
logicalflipInput(输入)flag for direction reversal
0 = no
1 = yes
UF_DRF_weld_symbols_p_tweld_symbol_dataInput(输入)pointer to weld symbol data which
defines the shape and size of the
top seam

 


 
UF_DRF_create_vertical_baseline_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a vertical baseline dimension.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_linear_dim_form
UF_DRF_null_object_structure - if any object in the object set has null object structure
UF_DRF_null_object - if any object in the object set is null
UF_DRF_invalid_number_of_objects - if num_of_objects is less than 3
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_vertical_baseline_dimension
(
UF_DRF_object_t * object_set,
int num_of_objects,
double dimension_3d_origin [ 3 ] ,
tag_t * dimension_tag
)
UF_DRF_object_t *object_setInput(输入)Array of associated objects to be dimensioned.
int (整数型)num_of_objectsInput(输入)Number of associated objects in array.
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension set origin in absolute coordinates.
tag_t * (tag_t型的指针)dimension_tagOutput(输出)Object tag of created dimension set.

 


 
UF_DRF_create_vertical_chain_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a vertical chain dimension.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_linear_dim_form
UF_DRF_null_object_structure - if any object in the object set has null object structure
UF_DRF_null_object - if any object in the object set is null
UF_DRF_invalid_number_of_objects - if num_of_objects is less than 3
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_create_vertical_chain_dimension
(
UF_DRF_object_t * object_set,
int num_of_objects,
double dimension_3d_origin [ 3 ] ,
tag_t * dimension_tag
)
UF_DRF_object_t *object_setInput(输入)Array of associated objects to be dimensioned.
int (整数型)num_of_objectsInput(输入)Number of associated objects in array.
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension set origin in absolute coordinates.
tag_t * (tag_t型的指针)dimension_tagOutput(输出)Object tag of created dimension set.

 


 
UF_DRF_create_vertical_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates and displays a vertical dimension.

环境
内部和外部

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

 
int UF_DRF_create_vertical_dim
(
UF_DRF_object_p_t object1,
UF_DRF_object_p_t object2,
UF_DRF_text_t* drf_text,
double dimension_3d_origin [ 3 ] ,
tag_t* dimension_tag
)
UF_DRF_object_p_tobject1Input(输入)Data of first object (see uf_drf_types.h)
Valid object types: point, line, arc, conic, cubic
spline, B curve, pattern, solid curve, utility
symbol (centerline), planar face, or cylindrical face
UF_DRF_object_p_tobject2Input(输入)Data of second object
UF_DRF_text_t*drf_textInput(输入)Associated text (see uf_drf_types.h)
double (实数型)dimension_3d_origin [ 3 ] Input(输入)3d dimension origin in wcs coordinates
tag_t*dimension_tagOutput(输出)Object tag of created vertical dimension

 


 
UF_DRF_create_weld_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Creates the weld symbol.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_NO_ERRORS - No error
UF_DRF_ERR_WELD_SYM_STD_NOT_SUPPORTED - The specified Weld Symbol
Standard is not supported
UF_DRF_ERR_INVALID_EXTENSION - The specified Extension type is not
supported
UF_err_program_not_initialized - Open API has not been
initialized
UF_DRF_null_object_structure

环境
Internal and External

参见
UF_DRF_ weld_symbols_t
UF_DRF_object_t

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

 
int UF_DRF_create_weld_symbol
(
double origin_3d [ 3 ] ,
UF_DRF_leader_attach_type_t leader_attach_type,
UF_DRF_object_p_t object,
double model_pos_3d [ 3 ] ,
UF_DRF_weld_symbols_p_t weld_symbol_data,
tag_p_t weld_symbol_tag
)
double (实数型)origin_3d [ 3 ] Input(输入)3d object origin in absolute coordinates
UF_DRF_leader_attach_type_tleader_attach_typeInput(输入)Leader attachment type
UF_DRF_leader_attach_object =
attached to object
UF_DRF_leader_attach_screen =
screen position
UF_DRF_object_p_tobjectInput(输入)Data of object to attach leader
(see uf_drf_types.h). Valid object types:
point, line, arc, conic, cubic spline,
B curve, and solid curve.
double (实数型)model_pos_3d [ 3 ] Input(输入)3d model space position
if leader_attach_type =
UF_DRF_leader_attach_object
This position is used as an approximate
point on the object to attach the leader
if leader_attach_type =
UF_DRF_leader_attach_screen,
This position is the endpoint of the leader
UF_DRF_weld_symbols_p_tweld_symbol_dataInput(输入)pointer to the weld symbol structure
tag_p_tweld_symbol_tagOutput(输出)tag of the weld symbol created

 


 
UF_DRF_create_xhatch (查看源代码)
 
定义在: uf_drf.h
 
概述
Create a crosshatching

环境
内部和外部

返回
Void

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

 
void UF_DRF_create_xhatch
(
int * op_type,
int * nmbnds,
int * numels,
tag_t * elems,
tag_t * xhat_eid,
int * rtc
)
int * (整数型指针)op_typeInput(输入)The type of operation:
1 = Cross hatching
2 = Area fill
3 = Solid fill
int * (整数型指针)nmbndsInput(输入)The number of crosshatch boundaries.
int * (整数型指针)numelsInput(输入)An array of integer values, containing the number of objects
in each boundary. The sum of all of the values in this array
should equal the number of boundary objects passed in. The
number of elements in this array is equal to the number of
crosshatch boundaries above.
tag_t * (tag_t型的指针)elemsInput(输入)Array of curve or point tags the make up each of the boundaries.
A boundary object tag may be included in the array.
tag_t * (tag_t型的指针)xhat_eidOutput(输出)The object identifier of the created crosshatch.
int * (整数型指针)rtcOutput(输出)The return code from the operation.

 


 
UF_DRF_edit_dim_assoc (查看源代码)
 
定义在: uf_drf.h
 
概述
Edits the associativity of a selected dimension. This is applicable to
changing a retained dimension by reassociating the dimension to
up-to-date geometry.

环境
内部和外部

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

 
int UF_DRF_edit_dim_assoc
(
tag_t dimension_tag,
double old_leader_position [ 3 ] ,
double new_leader_position [ 3 ] ,
int new_assoc_type,
UF_DRF_object_p_t new_assoc_object
)
tag_t (tag_t类型)dimension_tagInput(输入)Tag of dimension whose associativity is being
edited.
double (实数型)old_leader_position [ 3 ] Input(输入)Position on associated object to be replaced
(arrow location).
- drawing coordinates if on drawing
- model space coordinates if in model
double (实数型)new_leader_position [ 3 ] Input(输入)Position on new associated object to attach to.
int (整数型)new_assoc_typeInput(输入)Type of new associativity
horizontal, vertical, parallel, perpendicular,
cylindrical, and folded radius:
1 = end point
2 = arc center point
3 = arc tangent point
9 = centerline
horizontal and vertical ordinate, and ordinate
origin dimensions:
0 = none
1 = end point
2 = arc center point
3 = arc tangent point
9 = centerline
angular dimensions:
1 = dimension to line
2 = dimension to extension line
5 = dimension to centerline
arc length, radius, diameter, hole, and
concentric circle dimensions:
does not apply
UF_DRF_object_p_tnew_assoc_objectInput(输入)Data of new object
(see uf_drf_types.h) to
associate to. Note that the only fields
used are object_tag and object_view_tag.
Valid object_tag types: point,
line, arc, conic, cubic spline, B curve,
pattern, and solid curve.

 


 
UF_DRF_edit_weld_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Given the symbol tag and the new symbol data, this function will edit the
weld symbol. Note that the change in weld symbol standard during editing is
not supported. This means that the current weld symbol standard and the new
symbol standard should be the same.

环境
Internal and External

参见
UF_DRF_weld_symbols_t
UF_DRF_object_t
UF_DRF_create_weld_symbol

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

 
int UF_DRF_edit_weld_symbol
(
tag_t weld_symbol_tag,
UF_DRF_weld_symbols_p_t weld_symbol_data
)
tag_t (tag_t类型)weld_symbol_tagInput(输入)tag of the weld symbol to be edited
UF_DRF_weld_symbols_p_tweld_symbol_dataInput(输入)pointer to new weld symbol data

 


 
UF_DRF_flip_image_about_height (查看源代码)
 
定义在: uf_drf.h
 
概述
Flip the image about the direction of its height.

Returns
UF_DRF_NO_ERRORS if the image edit was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_flip_image_about_height
(
tag_t image
)
tag_t (tag_t类型)imageInput(输入)Image to edit

 


 
UF_DRF_flip_image_about_width (查看源代码)
 
定义在: uf_drf.h
 
概述
Flip the image about the direction of its width.

Returns
UF_DRF_NO_ERRORS if the image edit was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_flip_image_about_width
(
tag_t image
)
tag_t (tag_t类型)imageInput(输入)Image to edit

 


 
UF_DRF_frdim (查看源代码)
 
定义在: uf_drf.h
 
概述
Create a folded radius

环境
内部和外部

返回
Void
 
需要许可证(S)
drafting

 
void UF_DRF_frdim
(
tag_t np1,
tag_t np2,
int ip3,
int ip4,
double * rp5,
double rp6,
char * cp7,
int ip8,
char cp9 [ ] [ 133 ] ,
double rp10 [ 3 ] ,
tag_t * nr11,
int * error
)
tag_t (tag_t类型)np1Input(输入)Object identifier of an Arc, bolt circle or circular CLINE.
tag_t (tag_t类型)np2Input(输入)Object identifier of offset center point (point, line, solid
edge, offse center point, cylindrical center line, symmetrical
center line, target point or intersection point.
int (整数型)ip3Input(输入)Type of associativity:
1 = endpoint
2 = Arc center
3 = Tangency
int (整数型)ip4Input(输入)Associativity modifier, if the type of associativity is an
endpoint:
1 = Associate to first endpoint
2 = Associate to second endpoint
If the type of associativity is a tangency:
0-100 is the parameter percent to be used to compute the
approximate tangency point.
double * (实数型指针)rp5Input(输入)Fold location in WCS coordinates.
double (实数型)rp6Input(输入)Fold angle in degrees.
char * (字符型指针)cp7Input(输入)Dimension text string.
int (整数型)ip8Input(输入)Number of lines of appended text.
charcp9 [ ] [ 133 ] Input(输入)Array of appended text strings.
double (实数型)rp10 [ 3 ] Input(输入)X, Y and Z of object origin in WCS coordinates.
tag_t * (tag_t型的指针)nr11Output(输出)Object identifier of the created folded radius dimension.
int * (整数型指针)errorOutput(输出)Error return, 0 for success.

 


 
UF_DRF_free_appended_text (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will free the appended text data returned from
UF_DRF_ask_appended_text

环境
Internal & External

参见
UF_DRF_ask_appended_text
UF_DRF_appended_text_t

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

 
int UF_DRF_free_appended_text
(
int num_text,
UF_DRF_appended_text_p_t appended_text
)
int (整数型)num_textInput(输入)Number of appended text
UF_DRF_appended_text_p_tappended_textInput(输入)Appended text

 


 
UF_DRF_free_centerline (查看源代码)
 
定义在: uf_drf.h
 
概述
Frees the memory used for storing centerline data.

环境
内部和外部

参见
Refer to the example

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

 
int UF_DRF_free_centerline
(
UF_DRF_centerline_info_t * * centerline_info
)
UF_DRF_centerline_info_t * *centerline_infoInput(输入)Centerline information (see
uf_drf_types.h)

 


 
UF_DRF_free_comp_data (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will free the data returned from UF_DRF_record_draft_objects.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_free_comp_data
(
void * objs
)
void *objsInput(输入)Drafting object data from UF_DRF_record_draft_objects

 


 
UF_DRF_free_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Frees the memory used for storing the dimension information of the
data object.

环境
内部和外部

参见
Refer to the example

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

 
int UF_DRF_free_dimension
(
UF_DRF_dim_info_t * * dim_info
)
UF_DRF_dim_info_t * *dim_infoInput(输入)Dimension information (see
UF_DRF_dim_info_p_t)

 


 
UF_DRF_free_font (查看源代码)
 
定义在: uf_drf.h
 
概述
Frees the memory used for storing user symbol font information.

环境
内部和外部

参见
Refer to the example

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

 
int UF_DRF_free_font
(
int num_fonts,
UF_DRF_ud_symbol_font_info_t * * font_info
)
int (整数型)num_fontsInput(输入)Number of User Defined Symbol blocks
UF_DRF_ud_symbol_font_info_t * *font_infoInput(输入)Data structure which contains the
User Defined Symbol font number,
left and right connection points,
factor, length, height and the count
of strokes and stoke data

 


 
UF_DRF_free_gdtsymbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Frees the memory used for storing the GD & T symbol information.

环境
内部和外部

参见
See the example code for UF_DRF_ask_gdt_symbol_info.
The code in the example queries the GD&T Symbol information and frees the
memory after usage.

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

 
int UF_DRF_free_gdtsymbol
(
UF_DRF_gdt_symbol_info_t * * gdt_symbol_info
)
UF_DRF_gdt_symbol_info_t * *gdt_symbol_infoInput(输入)GD&T Symbol information (see
uf_drf_types.h)

 


 
UF_DRF_free_idsymbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Frees the memory used for storing the ID symbol information.

环境
内部和外部

参见
Refer to the example

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

 
int UF_DRF_free_idsymbol
(
UF_DRF_id_symbol_info_t * * id_symbol_info
)
UF_DRF_id_symbol_info_t * *id_symbol_infoInput(输入)ID Symbol information (see
uf_drf_types.h)

 


 
UF_DRF_free_image_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Free the image data

Returns
UF_DRF_NO_ERRORS if the image data free was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_free_image_data
(
UF_DRF_image_data_t * data
)
UF_DRF_image_data_t *dataInput(输入)Image data pointer to free

 


 
UF_DRF_free_label (查看源代码)
 
定义在: uf_drf.h
 
概述
Frees label information memory.

环境
内部和外部

参见
See the example code for UF_DRF_ask_label
The code in the example queries the label information, and frees the label
information memory after usage.

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

 
int UF_DRF_free_label
(
UF_DRF_label_info_t * * label_info
)
UF_DRF_label_info_t * *label_infoInput(输入)Label information (see UF_DRF_label_info_p_t)

 


 
UF_DRF_free_leader_data (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will free a UF_DRF_leader_data_p_t

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_free_leader_data
(
UF_DRF_leader_data_p_t * leader_data
)
UF_DRF_leader_data_p_t *leader_dataInput / OutputThe leader data to free

 


 
UF_DRF_free_text (查看源代码)
 
定义在: uf_drf.h
 
概述
Frees the memory used for storing text data information.

环境
内部和外部

参见
Refer to the example

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

 
int UF_DRF_free_text
(
int num_text,
UF_DRF_draft_aid_text_info_t * * text_info
)
int (整数型)num_textInput(输入)Number of text strings
UF_DRF_draft_aid_text_info_t * *text_infoInput(输入)Pointer to data structure which
contains drafting aid text
information (see uf_drf_types.h)

 


 
UF_DRF_get_symbol_divider (查看源代码)
 
定义在: uf_drf.h
 
概述
Find the location of a symbol inside of a drafting text.

环境
内部和外部

参见
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
UF_DRF_get_text_substring
 
需要许可证(S)
drafting

 
int UF_DRF_get_symbol_divider
(
int * segment_number,
int * ann_data,
int * divider_instance,
double start_point [ 2 ] ,
double end_point [ 2 ]
)
int * (整数型指针)segment_numberInput(输入)The segment of the text to get.
int * (整数型指针)ann_dataInput(输入)The data defining the drafting object.
See UF_DRF_ask_ann_data.
int * (整数型指针)divider_instanceInput(输入)Count to the substring that is to be used.
double (实数型)start_point [ 2 ] Output(输出)X and Y coordinates of the start point.
double (实数型)end_point [ 2 ] Output(输出)X and Y coordinates of the end point.

 


 
UF_DRF_get_text_bars (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the location where a fraction bar or underline bar or
overline bar should be drawn for text.

环境
内部和外部

参见
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
 
需要许可证(S)
drafting

 
int UF_DRF_get_text_bars
(
int * segment_number,
int * ann_data,
int * number_of_bars,
int * bar_type,
int * offset_to_bar,
double bar_position [ 4 ]
)
int * (整数型指针)segment_numberInput(输入)The text segment number to work on.
int * (整数型指针)ann_dataInput(输入)The data defining the drafting object.
See UF_DRF_ask_ann_data.
int * (整数型指针)number_of_barsOutput(输出)The number of text bars in this drafting object.
int * (整数型指针)bar_typeOutput(输出)An array of types of text bars, one for each text bar.
1 = Under line
2 = Over line
int * (整数型指针)offset_to_barOutput(输出)An array of offsets to the text in the string where
the bar text ends.
double (实数型)bar_position [ 4 ] Output(输出)An array of positions for the text bar. There are
four elements for each text bar, the X, Y of the start
of the text bar, and the X, Y of the end of the bar.

 


 
UF_DRF_get_text_substring (查看源代码)
 
定义在: uf_drf.h
 
概述
Return the requested text substring of the drafting object.

环境
内部和外部

参见
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
 
需要许可证(S)
drafting

 
int UF_DRF_get_text_substring
(
int * segment_number,
int * ann_data,
int * substring_instance,
int * text_type,
int * number_of_substring,
char * substring,
double substring_position [ 2 ] ,
double substring_characteristic [ 6 ]
)
int * (整数型指针)segment_numberInput(输入)The text segment number to work on.
int * (整数型指针)ann_dataInput(输入)The data defining the drafting object.
See UF_DRF_ask_ann_data.
int * (整数型指针)substring_instanceInput(输入)The substring number that we want to find.
int * (整数型指针)text_typeOutput(输出)The type of the substring:
0 = string
1 = superscript
2 = subscript
3 = symbol
int * (整数型指针)number_of_substringOutput(输出)The number of bytes in the returned substring.
char * (字符型指针)substringOutput(输出)The substring found.
double (实数型)substring_position [ 2 ] Output(输出)The x and y coordinates for the start of this
substring.
double (实数型)substring_characteristic [ 6 ] Output(输出)Six word array of characteristics of this
substring:
[0] = The character size
[1] = The physical length of the
substring
[2] = The scale from the original
character size of the string.
[3] = The scale from the original
character gap.
[4] = The character slant angle.
[5] = The text angle.

 


 
UF_DRF_get_xhatch_parms (查看源代码)
 
定义在: uf_drf.h
 
概述
Gets the crosshatch parameters.

返回
void

环境
内部和外部
 
需要许可证(S)
drafting

 
void UF_DRF_get_xhatch_parms
(
tag_t * xhat_eid,
char * mat_name,
int int_parms [ 9 ] ,
double real_parms [ 13 ] ,
int * rtc
)
tag_t * (tag_t型的指针)xhat_eidInput(输入)Object identifier of the desired crosshatch
char * (字符型指针)mat_nameInput(输入)Material name of the crosshatch
int (整数型)int_parms [ 9 ] Input(输入)Integer parameters of the crosshatch. This an array
of nine elements (int_parms[9])
[0] = entity site
[1] = line density
[2] = filled arrowhead control
[3] = crosshatch symbol color
[4] = section validity flag
[5-8] = number of crosshatch lines in each of 4
directions
double (实数型)real_parms [ 13 ] Output(输出)Real parameters of the crosshatch. This is an array
of 13 elements (real_parms[13]).
[0] = Arrow size
[1-4] = Crosshatch distance for each of 4
directions
[5-8] = Crosshatch angle for each of 4
directions
[9] = Crosshatch tolerance
[10] = Arrowhead filled distance
[11] = Arrowhead included angle
[12] = Dot arrowhead diameter
int * (整数型指针)rtcOutput(输出)Return code:
1 = xhat_eid is not a hatch.

 


 
UF_DRF_has_associative_origin (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will query the associative origin information for the
annotation.

环境
内部和外部

参见
UF_DRF_ask_associative_origin
UF_DRF_set_associative_origin

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

 
int UF_DRF_has_associative_origin
(
tag_t drafting_entity,
logical * has_associative_origin
)
tag_t (tag_t类型)drafting_entityInput(输入)Dimension or drafting object to query.
logical *has_associative_originOutput(输出)Result of query

 


 
UF_DRF_inherit_feature_data (查看源代码)
 
定义在: uf_drf.h
 
概述
This routine inherits feature annotation into user specified views on
a drawing.

环境
Internal and External

参见
UF_DRF_inherit_type_t
UF_DRF_ask_callout_of_annotation
UF_DRF_ask_controlling_member_of_callout
UF_DRF_ask_number_of_rows_in_callout
UF_DRF_ask_callout_row_members

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

 
int UF_DRF_inherit_feature_data
(
int feature_pre_v13_sketch_count,
tag_p_t features_pre_v13_sketches,
tag_p_t part_occs,
int view_count,
tag_p_t views,
UF_DRF_inherit_type_t inherit_type
)
int (整数型)feature_pre_v13_sketch_countInput(输入)number of features and pre-v13
sketches to be annotated
tag_p_tfeatures_pre_v13_sketchesInput(输入)feature_pre_v13_sketch_count
the features and pre-v13 sketches
to be annotated. A pre-v13 sketch tag
is the tag in the part of the sketch,
not in the part occurrence of the sketch.
tag_p_tpart_occsInput(输入)feature_pre_v13_sketch_count
the i-th feature or sketch to be annotated
occurs in the occurence of the part
given by part_occs[i]. NULL_TAG is
valid.
int (整数型)view_countInput(输入)number of views to be annotated
tag_p_tviewsInput(输入)views to be annotated
UF_DRF_inherit_type_tinherit_typeInput(输入)the types of annotation to be inherited
Currently only UF_DRF_inherit_feature_parameters
is supported

 


 
UF_DRF_init_associativity_data (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function initialized the associativity structure on the
annotation object.

环境
Internal or External

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

 
int UF_DRF_init_associativity_data
(
UF_DRF_object_assoc_data_p_t associativity_data
)
UF_DRF_object_assoc_data_p_tassociativity_dataInput(输入)

 


 
UF_DRF_init_assortpart_arc (查看源代码)
 
定义在: uf_drf.h
 
概述
Initialize an Assorted Parts Arc Data Structure.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_init_assortpart_arc
(
UF_DRF_assortpart_arc_t * assortpart_arc
)
UF_DRF_assortpart_arc_t *assortpart_arcInput / Outputassorted part arc

 


 
UF_DRF_init_assortpart_arrow (查看源代码)
 
定义在: uf_drf.h
 
概述
Initializes an Assorted Parts Arrow Data Structure.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_init_assortpart_arrow
(
UF_DRF_assortpart_arrow_t * assortpart_arrow
)
UF_DRF_assortpart_arrow_t *assortpart_arrowInput / Outputassorted part arrow

 


 
UF_DRF_init_assortpart_line (查看源代码)
 
定义在: uf_drf.h
 
概述
Initializes an Assorted Parts Line Data Structure.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_init_assortpart_line
(
UF_DRF_assortpart_line_t * assortpart_line
)
UF_DRF_assortpart_line_t *assortpart_lineInput / Outputassorted part line

 


 
UF_DRF_init_assortpart_text (查看源代码)
 
定义在: uf_drf.h
 
概述
Initializes an Assorted Parts Text Data Structure.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_init_assortpart_text
(
UF_DRF_assortpart_text_t * assortpart_text
)
UF_DRF_assortpart_text_t *assortpart_textInput / Outputassorted part text

 


 
UF_DRF_init_image_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Initialize the image data

Returns
UF_DRF_NO_ERRORS if the image data initialization was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_init_image_data
(
UF_DRF_image_data_t * data
)
UF_DRF_image_data_t *dataOutput(输出)Image data to initialize

 


 
UF_DRF_init_line_object (查看源代码)
 
定义在: uf_drf.h
 
概述
Initializes a line object structure.

环境
内部和外部

参见
Please See
UF_DRF_init_object_structure
for information on the initialization of drafting objects.
Please see the example for
UF_DRAW_redefine_sxline_hinge
which also invokes a call to UF_DRF_init_line_object.

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

 
int UF_DRF_init_line_object
(
UF_DRF_line_object_t * line_object
)
UF_DRF_line_object_t *line_objectOutput(输出)Line object initialized as follows:
line_object->line_assoc_type =
UF_DRF_ASSOC_LINE_TYPE_NONE
line_object->object1
line_object->object2
initialized by
UF_DRF_init_object_structure

 


 
UF_DRF_init_object_structure (查看源代码)
 
定义在: uf_drf.h
 
概述
Initialize an UF_DRF_object_t structure (see uf_drf_types.h).

环境
内部和外部

参见
Refer to the example
UF_DRF_create_diameter_dim
 
需要许可证(S)
drafting

 
int UF_DRF_init_object_structure
(
UF_DRF_object_t * object
)
UF_DRF_object_t *objectInput / OutputObject structure to be initialized. (Input)
object - initialized object structure (Output)
object.object_tag = NULL_TAG
object.object_view_tag = NULL_TAG
object.object_assoc_type = UF_DRF_end_point
object.object_assoc_modifier = UF_DRF_first_end_point
object.object2_tag = NULL_TAG
object.assoc_dwg_pos[0] = 0.0
object.assoc_dwg_pos[1] = 0.0

 


 
UF_DRF_init_symbol_create_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Initializes a symbol data structure for creation.

环境
内部和外部

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

 
int UF_DRF_init_symbol_create_data
(
UF_DRF_symbol_create_data_t * symbol_data
)
UF_DRF_symbol_create_data_t *symbol_dataInput / Outputsymbol data (see uf_drf_types.h)

 


 
UF_DRF_initialize_custom_symbol_data (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will initialize the UF_DRF_custom_symbol_t structure. This
routine should be called prior to filling this structure with valid data.
Calling this routine will guarantee that the data structure does not
contain garbage values. Calling this routine WILL NOT guarantee that the
structure will contain valid values which can be processed by
UF_DRF_create_custom_symbol_instance. Do not call this routine on a
structure with valid pointers to allocated memory. Doing that will cause
the pointers to be reset, causing the allocated memory to become inaccessible.
Please free any dynamically allocated memory in this structure before
overwriting the pointers with new data.

返回
Return values include the following:
UF_DRF_NO_ERRORS
Other UF error codes

环境
Internal and External

参见
UF_DRF_is_sbf_symbol, UF_DRF_create_custom_symbol_instance

历史
Created in V18.0.3
 
需要许可证(S)
drafting

 
int UF_DRF_initialize_custom_symbol_data
(
UF_DRF_custom_symbol_p_t symbol_definition
)
UF_DRF_custom_symbol_p_tsymbol_definitionInput / OutputStructure to initialize

 


 
UF_DRF_initialize_custom_symbol_text_data (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will initialize the UF_DRF_custom_symbol_text_t structure.
This routine should be called prior to filling this structure with valid
data. Calling this routine will guarantee that the data structure does not
contain garbage values. Calling this routine WILL NOT guarantee that the
structure will contain valid values which can be processed by
UF_DRF_create_custom_symbol_instance. Note that calling this routine on a
valid structure that points to allocated memory may result in memory leaks.
To prevent this, please free any dynamically allocated memory before reusing
pointer variables.

返回
Return values include the following:
UF_DRF_NO_ERRORS
Other UF error codes

环境
Internal and External

参见
UF_DRF_create_custom_symbol_instance,

历史
Created in V18.0.3
 
需要许可证(S)
drafting

 
int UF_DRF_initialize_custom_symbol_text_data
(
UF_DRF_custom_symbol_text_p_t symbol_text
)
UF_DRF_custom_symbol_text_p_tsymbol_textInput / OutputStructure to be initialized

 


 
UF_DRF_initialize_leader_data (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will initialize the UF_DRF_leader_t structure. This routine
should be called prior to filling this structure with valid data. Calling
this routine will guarantee that the data structure does not contain
garbage values. Calling this routine WILL NOT guarantee that the
structure will contain valid values. Note that calling this routine on a
valid structure that points to allocated memory may result in memory leaks.
If you are reusing an existing structure, please free your dynamically
allocated memory first.

返回
Return values include:
UF_DRF_NO_ERRORS
Other UF error codes

环境
Internal and External

历史
Created in V18.0.3
 
需要许可证(S)
drafting

 
int UF_DRF_initialize_leader_data
(
UF_DRF_leader_p_t leader
)
UF_DRF_leader_p_tleaderInput / OutputStructure to be initialized

 


 
UF_DRF_is_annotation_retained (查看源代码)
 
定义在: uf_drf.h
 
概述
Gets a logical indicating whether the specified annotation is retained or not.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized
UF_DRF_null_object
UF_err_bad_parameter_number_1

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

 
int UF_DRF_is_annotation_retained
(
tag_t annotation,
logical * is_retained
)
tag_t (tag_t类型)annotationInput(输入)Tag of the annotation
logical *is_retainedOutput(输出)Retained state of the annotation, TRUE
if the annotation is retained

 


 
UF_DRF_is_block_centerline (查看源代码)
 
定义在: uf_drf.h
 
概述
Checks if the input tag is a block centerline.

环境
Internal and External

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

 
int UF_DRF_is_block_centerline
(
tag_t object_tag,
logical * is_block_cline
)
tag_t (tag_t类型)object_tagInput(输入)tag of the centerline
logical *is_block_clineOutput(输出)a logical value. This is true if object_tag is
block centerline. This is false if object_tag is
not block centerline

 


 
UF_DRF_is_chamfer_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
UF_DRF_is_chamfer_dimension

Description -
ask if dimension is a chamfer dimension

PARAMETERS -
dim_tag, - <I> tag of object
is_cham_dim - <O> TRUE if object is cham dim
return - <O> return code:
0 = OK
if not 0 = error code

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

 
int UF_DRF_is_chamfer_dimension
(
tag_t dim_tag,
logical * is_cham_dim
)
tag_t (tag_t类型)dim_tagInput(输入)tag of object
logical *is_cham_dimOutput(输出)TRUE if object is cham dim

 


 
UF_DRF_is_inherited_pmi (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will return TRUE if the given annotation is an inherited PMI
on a drawing sheet/member view.
Inherited PMI is the associative copy of the PMI display instance in modeling.

Input parameter annotation must be an Annotation object. Annotation object
occurrences are not supported.
Use UF_ASSEM_is_occurrence and UF_ASSEM_ask_prototype_of_occ as appropriate
to get the Annotation object from its occurrence.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_is_inherited_pmi
(
tag_t annotation,
logical * inherited
)
tag_t (tag_t类型)annotationInput(输入)The tag of the annotation object
logical *inheritedOutput(输出)TRUE if the tag is an inherited PMI

 


 
UF_DRF_is_narrow_dimension (查看源代码)
 
定义在: uf_drf.h
 
概述
Ask if a dimension is narrow dimension

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_is_narrow_dimension
(
tag_t dimension_tag,
logical * is_narrow_dimension
)
tag_t (tag_t类型)dimension_tagInput(输入)Object tag of any object
logical *is_narrow_dimensionOutput(输出)True if the dimension is narrow dimension

 


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

环境
Internal & External:

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

 
int UF_DRF_is_object_out_of_date
(
tag_t object,
logical * out_of_date
)
tag_t (tag_t类型)objectInput(输入)The view or drawing to query
logical *out_of_dateOutput(输出)The status of the object, TRUE if the object
is out of date.

 


 
UF_DRF_is_pmi_display_instance (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will return TRUE if the given annotation is a PMI display
instance.

PMI display instances are those objects that are created from the PMI
menu pulldown. It's important to note that the type and subtype of
PMI display instances may coincide with other drafting annotations.

Input parameter object must be an Annotation object. Annotation object
occurrences are not supported.
Use UF_ASSEM_is_occurrence and UF_ASSEM_ask_prototype_of_occ as appropriate
to get the Annotation object from its occurrence.

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_is_pmi_display_instance
(
tag_t object,
logical * is_display_instance
)
tag_t (tag_t类型)objectInput(输入)The tag of the annotation object
logical *is_display_instanceOutput(输出)TRUE if the tag is a display instance

 


 
UF_DRF_is_sbf_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will return TRUE if the input symbol is a user defined
symbol based on the SBF file format. If the input symbol is a custom
symbol with a standard part file format, this function will return FALSE.

环境
Internal & External

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

 
int UF_DRF_is_sbf_symbol
(
tag_t symbol,
logical * is_sbf
)
tag_t (tag_t类型)symbolInput(输入)A user defined symbol tag
logical *is_sbfOutput(输出)A logical value indicating TRUE if this
symbol uses the SBF definition, or FALSE
if the symbol is a custom symbol

 


 
UF_DRF_margin_to_cline (查看源代码)
 
定义在: uf_drf.h
 
概述
Convert all V9 margin objects to centerline objects

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_margin_to_cline
(
tag_t part_tag
)
tag_t (tag_t类型)part_tagInput(输入)The tag of an open part

 


 
UF_DRF_place_symbol (查看源代码)
 
定义在: uf_drf.h
 
概述
Places a standalone symbol.

环境
内部和外部

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

 
int UF_DRF_place_symbol
(
UF_DRF_symbol_create_data_t * symbol_data,
logical is_inverted,
logical is_mirrored,
tag_t * symbol_tag
)
UF_DRF_symbol_create_data_t *symbol_dataInput(输入)symbol data (see uf_drf_types.h)
logicalis_invertedInput(输入)TRUE = inverted symbol
logicalis_mirroredInput(输入)TRUE = mirrored symbol
tag_t * (tag_t型的指针)symbol_tagOutput(输出)tag of standalone symbol object

 


 
UF_DRF_record_draft_objects (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will query drafting objects and store associated data. The
data stored includes:
origin, text box lenght and width, text, terminator locations, line and
arc data, retain state

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_record_draft_objects
(
void * * objs,
logical record_view_data
)
void * *objsOutput(输出)Drafting objects
logicalrecord_view_dataInput(输入)Should view data be recorded?

 


 
UF_DRF_remove_controlling_exp (查看源代码)
 
定义在: uf_drf.h
 
概述
Remove the link between drafting object and controlling expression

环境
内部和外部

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

 
int UF_DRF_remove_controlling_exp
(
tag_t object
)
tag_t (tag_t类型)objectInput(输入)Drafting object

 


 
UF_DRF_render_arrowhead (查看源代码)
 
定义在: uf_drf.h
 
概述
Calls the supplied "rendering functions for each line or arc of the arrowhead.
Useful for functionality such as translation to other systems.

No NULL function pointers are permitted in the render table.

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

Possible return codes can include the following
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_render_arrowhead
(
tag_t part,
tag_t ann,
UF_DRF_arrow_info_p_t arrow_info,
logical use_arrow_z,
UF_DRF_render_table_p_t render_table,
void * client
)
tag_t (tag_t类型)partInput(输入)part for text
tag_t (tag_t类型)annInput(输入)CANNOT be NULL_TAG
UF_DRF_arrow_info_p_tarrow_infoInput(输入)arrowhead information
logicaluse_arrow_zInput(输入)If TRUE then use the input
z. Should only be used for
GD&T arrows obtained from
UF_GDT_ask_leader
UF_DRF_render_table_p_trender_tableInput(输入)table of rendering
functions
void *clientInput(输入)application client data
passed through to each
function in the render
table

 


 
UF_DRF_render_text (查看源代码)
 
定义在: uf_drf.h
 
概述
Traverses lines of drafting text and calls the supplied "rendering"
functions. Useful for functionality such as translation to other
systems.

No NULL function pointers are permitted in the render table.

NOTE: The draw_char and draw_uds functions are not yet implemented.
Text is always output as lines and arcs and user defined symbols
are always output as lines.

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

Possible return codes can include the following
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_render_text
(
tag_t part,
tag_t ann,
int num_lines,
char * * text,
UF_DRF_draft_aid_text_info_p_t text_info,
UF_DRF_render_table_p_t render_table,
void * client
)
tag_t (tag_t类型)partInput(输入)part for text
tag_t (tag_t类型)annInput(输入)can be NULL_TAG
int (整数型)num_linesInput(输入)number of lines of text
char * *textInput(输入)text to "render"
UF_DRF_draft_aid_text_info_p_ttext_infoInput(输入)parameters to be used for
text
UF_DRF_render_table_p_trender_tableInput(输入)table of rendering
functions
void *clientInput(输入)application client data,
passed through to each
function in the render
table

 


 
UF_DRF_rotate_image (查看源代码)
 
定义在: uf_drf.h
 
概述
Rotate the image

The angle that the image can be rotated is limited to 90-degree increments.

Returns
UF_DRF_NO_ERRORS if the image edit was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_rotate_image
(
tag_t image,
double angle
)
tag_t (tag_t类型)imageInput(输入)Image to edit
double (实数型)angleInput(输入)Angle in degrees to rotate image by
Must be in increments of 90-degrees

 


 
UF_DRF_set_annotation_template (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the template name which is to be used in UF_DRF_inherit_feature_data.

环境
Internal and External

参见
UF_DRF_inherit_type_t
UF_DRF_ask_callout_of_annotation
UF_DRF_ask_controlling_member_of_callout
UF_DRF_ask_number_of_rows_in_callout
UF_DRF_ask_callout_row_members
UF_DRF_inherit_feature_data
UF_DRF_ask_annotation_template

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

 
int UF_DRF_set_annotation_template
(
char * annotation_template_name
)
char * (字符型指针)annotation_template_nameInput(输入)the name of the annotation
template part which will be used by
UF_DRF_inherit_feature_data.
The name is the same as the name
appearing in the Feature Parameters
dialog and does not contain the
directory in which the part resides
or the extension .atp.prt, for example,
ansi or iso_din

 


 
UF_DRF_set_appended_text (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will set the appended text for a dimension.
The appended text will only be changed for those locations specified.
If num_lines is input as 0,
the appended text for that location will be deleted.

环境
Internal & External

参见
UF_DRF_ask_appended_text
UF_DRF_appended_text_t


历史
Created in V17.0
In NX2.0.1 this function was enhanced to support appended text
for horizontal and vertical ordinate dimensions. However,
for ordinate dimensions, appended text is currently limited to
1 location or before and after or above and below.
 
需要许可证(S)
drafting

 
int UF_DRF_set_appended_text
(
tag_t dimension,
int num_text,
UF_DRF_appended_text_p_t appended_text
)
tag_t (tag_t类型)dimensionInput(输入)Dimension object to query
int (整数型)num_textInput(输入)Number of appended text
UF_DRF_appended_text_p_tappended_textInput(输入)Appended text

 


 
UF_DRF_set_areafill_angle (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the area fill angle for the specified area fill object.

环境
内部和外部

参见
UF_DRF_ask_areafill_data
UF_DRF_set_areafill_scale
The example in UF_DRF_set_areafill_material
sets the material type, scale, and angle for all Area Fills in the part.
 
需要许可证(S)
drafting

 
int UF_DRF_set_areafill_angle
(
tag_t areafill_id,
double angle
)
tag_t (tag_t类型)areafill_idInput(输入)Area fill object identifier
double (实数型)angleInput(输入)Area fill angle in radians

 


 
UF_DRF_set_areafill_material (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the area fill material for the specified area fill object. The area
fill material type structure,
UF_DRF_valid_material_t
defines the type of material.

环境
(内部和外部)

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

 
int UF_DRF_set_areafill_material
(
tag_t areafill_id,
UF_DRF_valid_material_t material
)
tag_t (tag_t类型)areafill_idInput(输入)Area Fill object identifier
UF_DRF_valid_material_tmaterialInput(输入)Area Fill material type

 


 
UF_DRF_set_areafill_scale (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the area fill scale for the specified area fill object.

环境
内部和外部

参见
UF_DRF_ask_areafill_data
UF_DRF_set_areafill_angle
The example in UF_DRF_set_areafill_material
sets the material type, scale, and angle for all Area Fills in the part.
 
需要许可证(S)
drafting

 
int UF_DRF_set_areafill_scale
(
tag_t areafill_id,
double scale
)
tag_t (tag_t类型)areafill_idInput(输入)Area fill object identifier
double (实数型)scaleInput(输入)Area fill scale

 


 
UF_DRF_set_associative_origin (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will set the associative origin information for the
annotation.

环境
内部和外部

参见
UF_DRF_has_associative_origin
UF_DRF_ask_associative_origin

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

 
int UF_DRF_set_associative_origin
(
tag_t drafting_entity,
UF_DRF_associative_origin_p_t origin_data,
double origin [ 3 ]
)
tag_t (tag_t类型)drafting_entityInput(输入)Dimension or drafting object to query.
UF_DRF_associative_origin_p_torigin_dataInput(输入)Data used to define the associative origin.
double (实数型)origin [ 3 ] Input(输入)Origin of the annotation in absolute coords.

 


 
UF_DRF_set_associativity_data (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function edit all of the associativities for the annotation
object.

环境
Internal or External

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

 
int UF_DRF_set_associativity_data
(
tag_t object,
int num_associativities,
UF_DRF_object_assoc_data_p_t associativity_data
)
tag_t (tag_t类型)objectInput(输入)Drafting object or dimension to edit for this operation.
int (整数型)num_associativitiesInput(输入)The number of associativities on the object in which to
edit for this operation.
UF_DRF_object_assoc_data_p_tassociativity_dataInput(输入)Array of new associativity information.

 


 
UF_DRF_set_chamfer_dimension_data (查看源代码)
 
定义在: uf_drf.h
 
概述
UF_DRF_set_chamfer_dimension_data

Description -
set chamfer dimension preferences

PARAMETERS -
cham_dim_tag, - <I> tag of cham dim
cham_dim_data - <I> cham dim prefs
return - <O> return code:
0 = OK
if not 0 = error code

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

 
int UF_DRF_set_chamfer_dimension_data
(
tag_t cham_dim_tag,
UF_DRF_chamfer_dimension_data_t cham_dim_data
)
tag_t (tag_t类型)cham_dim_tagInput(输入)tag of cham dim
UF_DRF_chamfer_dimension_data_tcham_dim_dataInput(输入)cham dim prefs

 


 
UF_DRF_set_custom_symbol_angle (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the angle for a custom symbol instance.

环境
Internal and External

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

 
int UF_DRF_set_custom_symbol_angle
(
tag_t symbol_tag,
double angle
)
tag_t (tag_t类型)symbol_tagInput(输入)tag of a custom symbol instance
double (实数型)angleInput(输入)double representing the new angle for this instance

 


 
UF_DRF_set_custom_symbol_scale (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the symbol scale for a custom symbol instance.

环境
Internal and External

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

 
int UF_DRF_set_custom_symbol_scale
(
tag_t symbol_tag,
double scale
)
tag_t (tag_t类型)symbol_tagInput(输入)tag of a custom symbol instance
double (实数型)scaleInput(输入)double value of the symbol scale

 


 
UF_DRF_set_customer_sbf_file (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets as current the customer default symbol font definition file.

环境
内部和外部

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

 
int UF_DRF_set_customer_sbf_file
(
void
)

 


 
UF_DRF_set_cyl_dim (查看源代码)
 
定义在: uf_drf.h
 
概述
Changes the double flag of a cylindrical dimension. Any cylindrical
dimension may be modified with this function. It is up to the user to
determine which dimensions to modify.

环境
内部和外部

参见
Refer to the example

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

 
int UF_DRF_set_cyl_dim
(
tag_t dim_obj,
int double_flag,
int * status
)
tag_t (tag_t类型)dim_objInput(输入)Target cylindrical dimension object identifier.
int (整数型)double_flagInput(输入)Double flag to be used on the dimension
0 = sets dimension value to be the distance
between the two associated objects.
1 = sets dimension value to be twice the value
between associated objects.
int * (整数型指针)statusOutput(输出)Return status:
0 = Cylindrical dimension changed accordingly.
1 = Cylindrical dimension was not changed since
the new double flag is the same as the one it has.
2 = dimension was not changed since it is not a
cylindrical dimension.

 


 
UF_DRF_set_diameter_radius_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets preferences for the display of radial dimensions.

环境
Internal & External

参见
UF_DRF_ask_diameter_radius_preferences

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

 
int UF_DRF_set_diameter_radius_preferences
(
UF_DRF_diameter_radius_preferences_p_t diameter_radius_preferences
)
UF_DRF_diameter_radius_preferences_p_tdiameter_radius_preferencesInput(输入)pointer
to preferences structure
to be used to set the
diameter/radius
preferences

 


 
UF_DRF_set_dim_appended_text_space_factor (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the factor for the space between the dimension and the appended text for the specified dimension.
This factor controls the spacing between the before appended text and the next piece of dimension text to its right,
and the spacing between the after appended text and the next piece of dimension text to its left.
This factor is applied to the appended text character size to determine the spacing.

环境
内部和外部

历史
NX 2.0 release.
 
需要许可证(S)
drafting

 
int UF_DRF_set_dim_appended_text_space_factor
(
tag_t dimension,
double space_factor
)
tag_t (tag_t类型)dimensionInput(输入)dimension tag
double (实数型)space_factorInput(输入)factor for spacing between dimension and appended text

 


 
UF_DRF_set_dim_dim_line_space_factor (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the factor for the space between the dimension and the dimension line for the specified dimension.
This factor controls the spacing between the bottom most piece of dimension text and the dimension line
only when the text orientation is UF_DRF_DIMENSION_TEXT_OVER_DIMENSION_LINE.
This factor is applied to the dimension text character size to determine the spacing.

环境
内部和外部

历史
NX 2.0 release.
 
需要许可证(S)
drafting

 
int UF_DRF_set_dim_dim_line_space_factor
(
tag_t dimension,
double space_factor
)
tag_t (tag_t类型)dimensionInput(输入)dimension tag
double (实数型)space_factorInput(输入)factor for spacing between dimension and dimension line

 


 
UF_DRF_set_dim_inspection_type (查看源代码)
 
定义在: uf_drf.h
 
概述
Description -
Set the inspection preference for the given dimension object.

Input -
inspection_type - inspection type for the given dimension object.

Output - None

Return -
= 0 UF_DRF_NO_ERRORS
Error code if not zero.
UF_DRF_invalid_object -- if given tag is invalid.
UF_err_program_not_initialized
 
需要许可证(S)
drafting

 
int UF_DRF_set_dim_inspection_type
(
tag_t dim_tag,
UF_DRF_inspection_type_t inspection_type
)
tag_t (tag_t类型)dim_tagInput(输入)dimension tag
UF_DRF_inspection_type_tinspection_typeInput(输入)inspection type for the give dimension

 


 
UF_DRF_set_dim_reference_type (查看源代码)
 
定义在: uf_drf.h
 
概述
Description -
Set the reference preference for the given dimension object.

Input -
ref_type - reference type for the given dimension object.

Output - None

Return -
= 0 UF_DRF_NO_ERRORS
Error code if not zero.
UF_DRF_invalid_object -- if given tag is invalid.
UF_err_program_not_initialized
 
需要许可证(S)
drafting

 
int UF_DRF_set_dim_reference_type
(
tag_t dim_tag,
UF_DRF_reference_symbol_type_t ref_type
)
tag_t (tag_t类型)dim_tagInput(输入)dimension tag
UF_DRF_reference_symbol_type_tref_typeInput(输入)reference type to be set to dimension

 


 
UF_DRF_set_dim_tolerance_text_space_factor (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the factor for the space between the dimension and the tolerance text for the specified dimension.
This factor controls the spacing between the dimension text and the after tolerance text.
This factor is applied to the tolerance text character size to determine the spacing.

环境
内部和外部

历史
NX 2.0 release.
 
需要许可证(S)
drafting

 
int UF_DRF_set_dim_tolerance_text_space_factor
(
tag_t dimension,
double space_factor
)
tag_t (tag_t类型)dimensionInput(输入)dimension tag
double (实数型)space_factorInput(输入)factor for spacing between dimension and tolerance text

 


 
UF_DRF_set_dimension_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets dimension preferences for arrow and line formatting, type of
placement, tolerance and precision, and text orientation.

环境
Internal & External

参见
UF_DRF_ask_dimension_preferences
UF_DRF_dimension_preferences_t

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

 
int UF_DRF_set_dimension_preferences
(
UF_DRF_dimension_preferences_p_t dimension_preferences
)
UF_DRF_dimension_preferences_p_tdimension_preferencesInput(输入)pointer to preferences structure to
be used to set dimension preferences

 


 
UF_DRF_set_dimension_set_offset (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the offset of the dimension in a dimension set or the offset of all dimensions in the dimension set.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized
UF_err_bad_parameter_number_1 - if the dimension tag is invalid

环境
内部和外部

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

 
int UF_DRF_set_dimension_set_offset
(
tag_t dimension,
double offset
)
tag_t (tag_t类型)dimensionInput(输入)Tag of the given dimension. If this tag is a tag of dimension set,
it will set offset for all dimensions in the set.
double (实数型)offsetInput(输入)Dimension set offset of the given dimension.

 


 
UF_DRF_set_draft_common (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the drafting common values for a particular drafting object.
This is used to initialize prior to calling UF_DRF_count_text_substring,
UF_DRF_get_symbol_divider and UF_DRF_get_text_substring

环境
内部和外部

参见
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_get_text_substring
UF_DRF_get_symbol_divider
 
需要许可证(S)
drafting

 
int UF_DRF_set_draft_common
(
tag_t * object
)
tag_t * (tag_t型的指针)objectInput(输入)Tag of the object to set the drafting common for.

 


 
UF_DRF_set_hatch_fill_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the preferences for crosshatching and area fill

环境
Internal & External

参见
UF_DRF_ask_preferences

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

 
int UF_DRF_set_hatch_fill_preferences
(
UF_DRF_hatch_fill_preferences_p_t hatch_fill_preferences
)
UF_DRF_hatch_fill_preferences_p_thatch_fill_preferencesInput(输入)pointer to
structure to be used
to set the hatch/fill
preferences

 


 
UF_DRF_set_image_align_position (查看源代码)
 
定义在: uf_drf.h
 
概述
Edit the image alignment position

The image alignment position controls the placement of the image's origin
with respect to the box created by the image width and height.

The image angle is limited to 90 degree increments.

Returns
UF_DRF_NO_ERRORS if the image edit was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_set_image_align_position
(
tag_t image,
UF_DRF_align_position_t align_position
)
tag_t (tag_t类型)imageInput(输入)Image to edit
UF_DRF_align_position_talign_positionInput(输入)New image alignment position

 


 
UF_DRF_set_image_aspect_ratio_lock (查看源代码)
 
定义在: uf_drf.h
 
概述
Edit the image's aspect ratio locked status.

The aspect ratio locked status controls whether or not the ratio of the
image's width to its height can change when the image size changes.

Returns
UF_DRF_NO_ERRORS if the image edit was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_height
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_set_image_aspect_ratio_lock
(
tag_t image,
logical lock_aspect_ratio
)
tag_t (tag_t类型)imageInput(输入)Image to edit
logicallock_aspect_ratioInput(输入)TRUE to not allow the image's aspect ratio
to change

 


 
UF_DRF_set_image_height (查看源代码)
 
定义在: uf_drf.h
 
概述
Edit the image height

Returns
UF_DRF_NO_ERRORS if the image edit was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_width
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_set_image_height
(
tag_t image,
double height
)
tag_t (tag_t类型)imageInput(输入)Image to edit
double (实数型)heightInput(输入)New image height in drawing sheet units

 


 
UF_DRF_set_image_width (查看源代码)
 
定义在: uf_drf.h
 
概述
Edit the image width

Returns
UF_DRF_NO_ERRORS if the image edit was successful

环境
内部和外部

参见
Refer to the example
UF_DRF_create_image_from_file
UF_DRF_create_image
UF_DRF_init_image_data
UF_DRF_ask_image_data
UF_DRF_free_image_data
UF_DRF_set_image_align_position
UF_DRF_set_image_aspect_ratio_lock
UF_DRF_set_image_height
UF_DRF_rotate_image
UF_DRF_flip_image_about_height
UF_DRF_flip_image_about_width

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

 
int UF_DRF_set_image_width
(
tag_t image,
double width
)
tag_t (tag_t类型)imageInput(输入)Image to edit
double (实数型)widthInput(输入)New image width in drawing sheet units

 


 
UF_DRF_set_lettering_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the lettering preferences for dimension, appended, tolerance and
general (notes, id symbols, etc,) text.

环境
Internal & External

参见
UF_DRF_ask_lettering_preferences
UF_DRF_lettering_preferences_t

历史
Originally released in V16.0
Horizontal text justification preference and GD&T frame height
factor preference added in V17.0.
Dimension /Appended Text Space Factor,
Dimension/ Tolerance Text Space Factor, and
Dimension/Dimension Line Space Factor added in NX 2.0.
 
需要许可证(S)
drafting

 
int UF_DRF_set_lettering_preferences
(
UF_DRF_lettering_preferences_p_t lettering_preferences
)
UF_DRF_lettering_preferences_p_tlettering_preferencesInput(输入)pointer to
preferences structure
which will be used
to set the lettering
preferences

 


 
UF_DRF_set_line_arrow_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets preferences that apply to leaders, arrows and extension lines for both
dimensions and other annotations

环境
Internal & External

参见
UF_DRF_ask_line_arrow_preferences
UF_DRF_line_arrow_preferences_t

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

 
int UF_DRF_set_line_arrow_preferences
(
UF_DRF_line_arrow_preferences_t * line_arrow_preferences
)
UF_DRF_line_arrow_preferences_t *line_arrow_preferencesInput(输入)pointer to preferences structure to be
used to set the line/arrow preferences

 


 
UF_DRF_set_narrow_dimension_data (查看源代码)
 
定义在: uf_drf.h
 
概述
Set narrow dimension parameters for a linear dimension.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_invalid_linear_dim_form - if the dimension given is not linear dimension.
UF_DRF_INVALID_NARROW_DIMENSION_DISPLAY_TYPE - if dimension display type is not correct.
UF_DRF_INVALID_NARROW_DIMENSION_LEADER_ANGLE - if leader angle is not greater than 0.0 or not less than 180.0
UF_DRF_INVALID_NARROW_DIMENSION_TEXT_ORIENTATION - if text orientation is not valid.
UF_err_program_not_initialized

环境
内部和外部

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

 
int UF_DRF_set_narrow_dimension_data
(
tag_t dimension_tag,
UF_DRF_narrow_dimension_info_p_t narrow_data
)
tag_t (tag_t类型)dimension_tagInput(输入)Object tag of a linear dimension
UF_DRF_narrow_dimension_info_p_tnarrow_dataInput(输入)Data of narrow dimension preferences

 


 
UF_DRF_set_object_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the object preferences for a specified annotation.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following:
UF_DRF_NO_ERRORS - No error
UF_DRF_NOT_DRAFTING_OBJECT
UF_DRF_invalid_object
UF_DRF_crosshatch_file_not_found
UF_DRF_material_definition_not_found
UF_DRF_unable_to_create_crosshatching

环境
内部和外部

参见
UF_DRF_ask_object_preferences
UF_DRF_ask_preferences
UF_DRF_set_preferences
UF_DRF_ask_ang_obj_units_format
Refer to the example
See drafting paramters

历史
Original release was in V13.0. This function replaces uc5551.
Updated in V15 to increase the size of the character strings.
Updated in V16.0 to return UF_get_fail_message error codes
mpr[51], area fill tolerance, is now obsolete; use mpr[13] instead.
In V17.0, a separate preference controls the angular nominal and tolerance
units format. This routine will set both nominal and tolerance format with
nominal format value when angular nominal format gets changed by user.
 
需要许可证(S)
drafting

 
int UF_DRF_set_object_preferences
(
tag_t drf_object_tag,
int mpi [ 100 ] ,
double mpr [ 70 ] ,
char * radius_val,
char * diameter_val
)
tag_t (tag_t类型)drf_object_tagInput(输入)Drafting object Identifier
int (整数型)mpi [ 100 ] Input(输入)MPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
double (实数型)mpr [ 70 ] Input(输入)MPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
char * (字符型指针)radius_valInput(输入)Radius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_val[27];
char * (字符型指针)diameter_valInput(输入)Diameter Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char diameter_val[27];

 


 
UF_DRF_set_origin (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the new origin of the annotation object.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized
UF_err_bad_parameter_number_1

环境
内部和外部

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

 
int UF_DRF_set_origin
(
tag_t annotation,
double new_origin [ 3 ]
)
tag_t (tag_t类型)annotationInput(输入)Tag of the annotation to modify.
double (实数型)new_origin [ 3 ] Input(输入)New origin in model coordinates for the annotation.

 


 
UF_DRF_set_plot_drawing_images (查看源代码)
 
定义在: uf_drf.h
 
概述
Indicate whether or not to plot raster images on drawing sheets when drawing sheets are plotted.

Returns
UF_DRF_NO_ERRORS if the preference edit was successful

环境
内部和外部

参见
UF_DRF_create_image_from_file
UF_DRF_create_image

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

 
int UF_DRF_set_plot_drawing_images
(
logical plot_images
)
logicalplot_imagesInput(输入)TRUE to plot raster images on drawing sheets
FALSE to not plot raster images on drawing sheets

 


 
UF_DRF_set_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Uses the arrays and character strings to set the drafting parameters.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following:
UF_DRF_NO_ERRORS - No error
UF_DRF_crosshatch_file_not_found
UF_DRF_INVALID_CROSSHATCH_FILE_FORMAT
UF_DRF_material_definition_not_found

环境
内部和外部

参见
UF_DRF_ask_preferences
UF_DRF_ask_object_preferences
UF_DRF_set_object_preferences
Refer to the example
See drafting paramters

历史
Original release was in V13.0. This function replaces uc/uf5521.
Updated in V15 to increase the size of the character strings.
Updated in V16.0 to return UF_get_fail_message error codes.
In V16.0, there are separate text angle preferences for dimensions
and drafting aid. UF_DRF_set_preferences sets both text angle
preferences.
If the input material index (mpi[31]) is input as -999, the
crosshatch material preferences will not be changed.
mpr[51], area fill tolerance, is now obsolete; use mpr[13] instead.
In V17.0, a separate preference controls the angular nominal and tolerance
units format. This routine will set both nominal and tolerance format with
nominal format value when angular nominal format gets changed by user.
 
需要许可证(S)
drafting

 
int UF_DRF_set_preferences
(
int mpi [ 100 ] ,
double mpr [ 70 ] ,
char * radius_val,
char * diameter_val
)
int (整数型)mpi [ 100 ] Input(输入)MPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
double (实数型)mpr [ 70 ] Input(输入)MPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
char * (字符型指针)radius_valInput(输入)Radius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_val[27];
char * (字符型指针)diameter_valInput(输入)Diameter Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char diameter_val[27];

 


 
UF_DRF_set_retain_color_font_width (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the color, font and widths used for retained annotations.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized
UF_err_bad_parameter_number_1
UF_err_bad_parameter_number_2
UF_err_bad_parameter_number_3

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_set_retain_color_font_width
(
int color,
int font,
int width
)
int (整数型)colorInput(输入)Color to use for retained annotations
int (整数型)fontInput(输入)Font to use for retained annotations
int (整数型)widthInput(输入)Line width to use for retained annotations

 


 
UF_DRF_set_retained_state (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the retained state for annotations whose dependencies have expired.
If UF_DRF_KEEP_RETAINED_ANNOTATIONS, annotations are retained.
If UF_DRF_DELETE_RETAINED_ANNOTATIONS, annotations are deleted.

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized
UF_err_bad_parameter_number_1

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_set_retained_state
(
UF_DRF_retained_state_t state
)
UF_DRF_retained_state_tstateInput(输入)Behavior state for retained annotations.
Either
'UF_DRF_KEEP_RETAINED_ANNOTATIONS' or
'UF_DRF_DELETE_RETAINED_ANNOTATIONS'

 


 
UF_DRF_set_specified_sbf_file (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets as current the specified symbol font definition file.

环境
内部和外部

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

 
int UF_DRF_set_specified_sbf_file
(
char sbf_name [ SYMBOL_FILE_NAME_SIZE+1 ]
)
charsbf_name [ SYMBOL_FILE_NAME_SIZE+1 ] Input(输入)file to be set

 


 
UF_DRF_set_suppress_pre_zeros (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the global preference for suppress preceding zeros.

环境
内部和外部

参见
UF_DRF_set_units_format_preferences
Refer to the example

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

 
int UF_DRF_set_suppress_pre_zeros
(
logical option
)
logicaloptionInput(输入)Suppress preceding zeros mode

 


 
UF_DRF_set_suppress_view_update (查看源代码)
 
定义在: uf_drf.h
 
概述
Change the value of the Suppress View Update preference. This preference is
an environment setting and is not specific to a part. If the preference is
TRUE, then functions which perform implicit drawing updates, will not update
the drawing member views.

环境
Internal & External:

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

 
int UF_DRF_set_suppress_view_update
(
logical suppress_view_update
)
logicalsuppress_view_updateInput(输入)the new setting of view update
suppression

 


 
UF_DRF_set_symbol_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets preferences that apply to ID, User Defined, Centerline, Intersection,
Target and GD&T symbols.

环境
Internal & External

参见
UF_DRF_ask_symbol_preferences
UF_DRF_symbol_preferences_t

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

 
int UF_DRF_set_symbol_preferences
(
UF_DRF_symbol_preferences_p_t symbol_preferences
)
UF_DRF_symbol_preferences_p_tsymbol_preferencesInput(输入)pointer to preferences
structure to be used to
set the symbol preferences

 


 
UF_DRF_set_text_above_leader (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the global value for the text above the leader attribute. This
attribute controls displaying text above the leader stub when creating
labels and some dimensions.

If the attribute is set to UF_DRF_NO_TEXT_ABOVE_LEADER,
the text will not be displayed above the leader stub. The vertical text
justification of Top, Middle or Bottom applies.

For all the other options, the text will be displayed above the leader
stub. The BOTTOM options display the leader stub under the
bottom line of the text. The TOP options display the leader stub
under the top line of the text. The UNDERLINE options will
underline all other lines of text. The MAX options will extend the
stub and optional underlines to the maximum text length. Without
MAX, the stub and optional underlines will extend to the length of the
individual text line it is under.

For dimensions, the text above leader attribute only applies to radial
type dimensions (hole, diameter, radius, concentric circle, and folded
radius) and only applies if the text alignment is Horizontal or Angle.
Currently, for dimensions, only the option
UF_DRF_LEADER_BOTTOM_TEXT_MAX is supported.

环境
内部和外部

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

 
int UF_DRF_set_text_above_leader
(
UF_DRF_text_above_leader_t option
)
UF_DRF_text_above_leader_toptionInput(输入)Text above leader attribute
UF_DRF_NO_TEXT_ABOVE_LEADER
UF_DRF_LEADER_BOTTOM_TEXT_MAX
UF_DRF_LEADER_BOTTOM_TEXT_MAX_UNDERLINE
UF_DRF_LEADER_BOTTOM_TEXT
UF_DRF_LEADER_BOTTOM_TEXT_UNDERLINE
UF_DRF_LEADER_TOP_TEXT_MAX
UF_DRF_LEADER_TOP_TEXT_MAX_UNDERLINE
UF_DRF_LEADER_TOP_TEXT
UF_DRF_LEADER_TOP_TEXT_UNDERLINE

 


 
UF_DRF_set_tolerance (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will set the tolerance used when compare the real data values
of two drafting entities whose data was recorded using the
UF_DRF_record_draft_objects function

Returns
UF_DRF_NO_ERRORS

环境
Internal & External

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

 
int UF_DRF_set_tolerance
(
float tolerance
)
floattoleranceInput(输入)Tolerance to use when comparing real data

 


 
UF_DRF_set_uds_size (查看源代码)
 
定义在: uf_drf.h
 
概述
The following function will set the global preferences for the user defined
symbol length / height or scale / aspect ratio.

环境
Internal or External

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

 
int UF_DRF_set_uds_size
(
UF_DRF_uds_size_p_t uds_size
)
UF_DRF_uds_size_p_tuds_sizeInput(输入)User defined symbol scale / aspect ratio or length / height
parameters.

 


 
UF_DRF_set_ugdefault_sbf_file (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets as current the NX default symbol font
definition file.

环境
内部和外部

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

 
int UF_DRF_set_ugdefault_sbf_file
(
void
)

 


 
UF_DRF_set_units_format_preferences (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets preferences for the display of linear and angular dimensions values
as well as dual dimension format.

环境
Internal & External

参见
UF_DRF_ask_units_format_preferences
UF_DRF_units_format_preferences_t

历史
Originally released in V16.0. In v17.0, the data structure has changed.
An element controlling the units of the tolerance of angular dimension and
an element controlling the zero suppression for angular dimension have been added.
The display leading zeros option has been removed.
 
需要许可证(S)
drafting

 
int UF_DRF_set_units_format_preferences
(
UF_DRF_units_format_preferences_p_t units_format_preferences
)
UF_DRF_units_format_preferences_p_tunits_format_preferencesInput(输入)pointer to
preferences structure to
used to set the units/
format preferences

 


 
UF_DRF_set_vertical_note (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will set a note to be either horizontal or vertical.

环境
内部和外部

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

 
int UF_DRF_set_vertical_note
(
tag_t note,
logical is_vertical
)
tag_t (tag_t类型)noteInput(输入)Tag of the note.
logicalis_verticalInput(输入)If TRUE, set the note to be vertical,
if FALSE set the note horizontal.
If the object is not a note, no
action is taken, and the return code
will be zero.

 


 
UF_DRF_set_weld_symbol_standard (查看源代码)
 
定义在: uf_drf.h
 
概述
Set the weld symbol standard

返回
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_DRF_NO_ERRORS - No error
UF_err_program_not_initialized - Open C API has not been
initialized

环境
Internal and External

历史
Originally released in vNX1.0.2
 
需要许可证(S)
drafting

 
int UF_DRF_set_weld_symbol_standard
(
char * standard
)
char * (字符型指针)standardInput(输入)standard of the weld symbol

 


 
UF_DRF_set_xhatch_mat (查看源代码)
 
定义在: uf_drf.h
 
概述
Sets the crosshatch material using the given name.

返回
void

环境
内部和外部
 
需要许可证(S)
drafting

 
void UF_DRF_set_xhatch_mat
(
char * file_name,
char * material_name,
int * util,
int * error
)
char * (字符型指针)file_nameInput(输入)The crosshatch definition file name
char * (字符型指针)material_nameInput(输入)The desired crosshatch material name
int * (整数型指针)utilInput(输入)Flag indicating whether to search the utility
directory first or the user's working directory.
1 = Search utility directory first.
2 = Search home directory first then utility
directory.
int * (整数型指针)errorOutput(输出)Error flag. Value > 0 indicates an error has
occurred.

 


 
UF_DRF_transfer_to_drawing (查看源代码)
 
定义在: uf_drf.h
 
概述
This function will transfer an annotation view dependent in a drawing member
view or a model view to the drawing sheet specified.

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

环境
内部和外部

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

 
int UF_DRF_transfer_to_drawing
(
tag_t annotation,
tag_t member_view,
tag_t drawing,
logical in_drawing_plane
)
tag_t (tag_t类型)annotationInput(输入)Annotation to transfer
tag_t (tag_t类型)member_viewInput(输入)Tag of the member view in which the
associativities should be related.
tag_t (tag_t类型)drawingInput(输入)Tag of the drawing on which the
annotation should now lie.
logicalin_drawing_planeInput(输入)If TRUE, the annotation will lie in the drawing
plane, otherwise, the orientation will be
retained.

 


 
UF_DRF_update_views (查看源代码)
 
定义在: uf_drf.h
 
概述
Update one or more drawing member views on a drawing. The view update
process includes resectioning section views, regenerating silhouettes, and,
if applicable, updating hidden line display. This routine will:
1) force update one view (method == UF_DRF_UPDATE_NAMED & view_name),
2) update all automatic views (method == UF_DRF_UPDATE_AUTO) on the specified drawing,
3) update all out-of-date views (method == UF_DRF_UPDATE_ALL) on the specified drawing, or
4) force update all views (method == UF_DRF_UPDATE_FORCE) on the specified drawing.

If not current, the specified drawing will be retrieved and made current.
If no drawing is specified, then the current drawing is assumed.

环境
内部和外部
 
需要许可证(S)
drafting

 
int UF_DRF_update_views
(
char * drawing_name,
int method,
char * view_name
)
char * (字符型指针)drawing_nameInput(输入)name of drawing whose views are to be updated
int (整数型)methodInput(输入)one of 'UF_DRF_UPDATE_AUTO', 'UF_DRF_UPDATE_FORCE',
'UF_DRF_UPDATE_ALL', or 'UF_DRF_UPDATE_NAMED'
char * (字符型指针)view_nameInput(输入)if method = 'UF_DRF_UPDATE_NAMED', the name of
the view to update