uc5530 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5530 create a horizontal, vertical, parallel, or
 
Required License(s)
gateway

 
void uc5530
(
int ip1,
tag_t np2,
int ip3,
int ip4,
tag_t np5,
int ip6,
int ip7,
const char * cp8,
int ip9,
const UF_DRF_one_apptext_line_t cp10 [ ] ,
double * rp11,
tag_t * nr12
)
intip1
tag_tnp2
intip3
intip4
tag_tnp5
intip6
intip7
const char *cp8
intip9Input
const UF_DRF_one_apptext_line_tcp10 [ ]
double *rp11Input
tag_t *nr12

 


 
uc5531 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5531 create a perpendicular dimension
 
Required License(s)
gateway

 
void uc5531
(
tag_t np1,
tag_t np2,
int ip3,
int ip4,
const char * cp5,
int ip6,
const UF_DRF_one_apptext_line_t cp7 [ ] ,
double * rp8,
tag_t * nr9
)
tag_tnp1
tag_tnp2
intip3
intip4
const char *cp5
intip6Input
const UF_DRF_one_apptext_line_tcp7 [ ]
double *rp8Input
tag_t *nr9

 


 
uc5532 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5532 create angular dimension
 
Required License(s)
gateway

 
void uc5532
(
int ip1,
tag_t np2,
int ip3,
tag_t np4,
int ip5,
const char * cp6,
int ip7,
const UF_DRF_one_apptext_line_t cp8 [ ] ,
double * rp9,
tag_t * nr10
)
intip1
tag_tnp2
intip3
tag_tnp4
intip5
const char *cp6
intip7Input
const UF_DRF_one_apptext_line_tcp8 [ ]
double *rp9Input
tag_t *nr10

 


 
uc5533 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5533 create an arc length, radius, diameter, or hole
 
Required License(s)
gateway

 
void uc5533
(
int ip1,
tag_t np2,
const char * cp3,
int ip4,
const UF_DRF_one_apptext_line_t cp5 [ ] ,
double * rp6,
tag_t * nr7
)
intip1
tag_tnp2
const char *cp3
intip4Input
const UF_DRF_one_apptext_line_tcp5 [ ]
double *rp6Input
tag_t *nr7

 


 
uc5534 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5534 create a concentric circle dimension
 
Required License(s)
gateway

 
void uc5534
(
tag_t np1,
tag_t np2,
const char * cp3,
int ip4,
const UF_DRF_one_apptext_line_t cp5 [ ] ,
double * rp6,
tag_t * nr7
)
tag_tnp1
tag_tnp2
const char *cp3
intip4Input
const UF_DRF_one_apptext_line_tcp5 [ ]
double *rp6Input
tag_t *nr7

 


 
uc5540 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Return
void

Environment
Internal and External
 
Required License(s)
gateway

 
void uc5540
(
int ip1,
const UF_DRF_one_apptext_line_t cp2 [ ] ,
double * rp3,
tag_t * nr4
)
intip1InputNumber Of Lines Of Text
const UF_DRF_one_apptext_line_tcp2 [ ] InputText Array Of ip1 Strings.
double *rp3Input3D Object Origin (In WCS Coordinates)
tag_t *nr4OutputObject Identifier Of Created Drafting Aid

 


 
uc5541 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5541 create a label
 
Required License(s)
gateway

 
void uc5541
(
int ip1,
const UF_DRF_one_apptext_line_t cp2 [ ] ,
double * rp3,
int ip4,
tag_t np5,
double * rp6,
tag_t * nr7
)
intip1Input
const UF_DRF_one_apptext_line_tcp2 [ ]
double *rp3
intip4
tag_tnp5
double *rp6Input
tag_t *nr7

 


 
uc5542 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5542 create an id symbol
 
Required License(s)
drafting

 
int uc5542
(
int ip1,
const char * cp2,
const char * cp3,
double * rp4,
int ip5,
int ip6,
tag_t np7,
double * rp8,
tag_t * nr9
)
intip1Input
const char *cp2
const char *cp3Input
double *rp4
intip5
intip6
tag_tnp7
double *rp8Input
tag_t *nr9

 


 
uc5543 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5543 create a form and positional
 
Required License(s)
gateway

 
void uc5543
(
int ip1,
const UF_DRF_one_apptext_line_t cp2 [ ] ,
double * rp3,
int ip4,
int ip5,
tag_t np6,
double * rp7,
int ip8,
tag_t * nr9
)
intip1Input
const UF_DRF_one_apptext_line_tcp2 [ ]
double *rp3
intip4
intip5
tag_tnp6
double *rp7
intip8Input
tag_t *nr9

 


 
uc5550 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5550 read the drafting object creation - replaced by
UF_DRF_ask_object_preferences
 
Required License(s)
gateway

 
void uc5550
(
tag_t np1,
int * ir2,
double * rr3,
char cr4 [ 27 ] ,
char cr5 [ 27 ]
)
tag_tnp1
int *ir2
double *rr3Output
charcr4 [ 27 ]
charcr5 [ 27 ] Output

 


 
uc5551 (view source)
 
Defined in: uf_drf.h
 
Overview
uc5551 regenerate a drafting object with - replaced by
UF_DRF_set_object_preferences
 
Required License(s)
drafting

 
int uc5551
(
tag_t np1,
int * ip2,
double * rp3,
const char * cp4,
const char * cp5
)
tag_tnp1
int *ip2
double *rp3Input
const char *cp4
const char *cp5Input

 


 
uc5563 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uc5563
(
int num_lines,
const UF_DRF_one_apptext_line_t text [ ] ,
const double text_origin [ 2 ]
)
intnum_linesInputNumber Of lines of text
const UF_DRF_one_apptext_line_ttext [ ] InputArray of text strings
const doubletext_origin [ 2 ] Input2d origin of text string in coordinates of annotation

 


 
uc5566 (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External
 
Required License(s)
drafting

 
int uc5566
(
tag_t np1,
int ip2,
int ip3,
const UF_DRF_one_apptext_line_t cp4 [ ]
)
tag_tnp1InputDrafting Object Identifier
intip2InputText 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
intip3InputNumber Of Lines Of Text
const UF_DRF_one_apptext_line_tcp4 [ ] InputArray Of ip3 Text Strings.

 


 
uf5505 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5505
(
int * ia1,
int * ip2,
double * rp3,
double * rp4,
double * ra5,
int * ip6,
double * rp7,
double * rp8,
double * rp9,
tag_t * nr10
)
int *ia1InputKanji 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 *ip2InputDensity:
0 = Use Kanji Default
1 = Normal
2 = Heavy
3 = Thin
double *rp3InputCharacter Size
0 = Use Kanji Default
double *rp4InputText Angle (In Radians)
double *ra5InputOrigin (X,Y in Work Coordinates)
int *ip6InputOrientation:
0 = Use Kanji Default
1 = Left To Right
2 = Top To Bottom
double *rp7InputCharacter Height
double *rp8InputCharacter Width
double *rp9InputCharacter Spacing
tag_t *nr10OutputKanji Note Object Identifier

 


 
uf5506 (view source)
 
Defined in: uf_drf.h
 
Overview
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)

Environment
Internal and External
 
Required License(s)
gateway

 
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 *np1InputKanji Note Object Identifier
int *iar2OutputKanji 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 *ir3OutputDensity:
1 = Normal
2 = Heavy
3 = Thin
double *rr4OutputCharacter Size
double *rr5OutputText Angle (In Radians)
double *rar6OutputOrigin (X,Y,Z). See description above.
int *ir7OutputOrientation:
1 = Left To Right
2 = Top To Bottom
double *rr8OutputCharacter Height
double *rr9OutputCharacter Width
double *rr10OutputCharacter Spacing

 


 
uf5522 (view source)
 
Defined in: uf_drf.h
 
Overview
Set the drafting parameters to the same values as an object.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5522
(
tag_t * np1,
int * ir2
)
tag_t *np1InputThe object that we want the drafting parameters to be set from.
int *ir2OutputThe error code from the operation. 0 is success, 1 is failure

 


 
uf5523 (view source)
 
Defined in: uf_drf.h
 
Overview
Read the current drafting display parameters.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5523
(
int * ir1,
double * rr2
)
int *ir1OutputA 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 *rr2OutputA 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Set the current drafting display parameters.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5524
(
int * ip1,
double * rp2
)
int *ip1InputA 10 element array that contains the new drafting display
parameters.
double *rp2OutputA 5 element array that contains the new drafting display
parameters.

 


 
uf5547 (view source)
 
Defined in: uf_drf.h
 
Overview
uf5547 create a area fill
 
Required License(s)
gateway

 
void uf5547
(
int * ip1,
int * ip2,
tag_t * np3,
tag_t * nr4,
int * ir5
)
int *ip1
int *ip2
tag_t *np3
tag_t *nr4
int *ir5

 


 
uf554a (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf554a
(
tag_t * np1,
tag_t * nr2
)
tag_t *np1InputEID of selected entity
tag_t *nr2OutputEID of drafting point
NULL_TAG = Invalid entity selected
(Not an arc or point)
if not NULL_TAG = drafting point

 


 
uf554b (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf554b
(
tag_t * np1,
double * rr2,
int * ir3
)
tag_t *np1InputEID of point or arc
double *rr2OutputCoordinates of point or arc center point
int *ir3OutputReturn Code:
0 = Successful
1 = Invalid entity object selected
(Not a point or an arc)

 


 
uf554c (view source)
 
Defined in: uf_drf.h
 
Overview
Ufunc program for creation of centerlines

Environment
Internal and External
 
Required License(s)
gateway

 
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 *ip1InputTYPE 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 *ip2InputNUMBER OF ENTITIES IN ARRAY
const tag_t *np3InputARRAY OF ENTITY IDs THAT ARE TO BE ASSOCIATED
TO THE CENTERLINE
const tag_t *np4InputENTITY 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 *rp5InputDISTANCE 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 *nr6OutputENTITY ID OF CENTERLINE
int *ir7OutputRETURN 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Read drafting object origin.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5552
(
tag_t * np1,
double * rr2,
int * ir3
)
tag_t *np1InputDrafting object identifier.
double *rr2Output3D object origin in model space coordinates.
int *ir3OutputReturn code. 0 = success, 1 = failure.

 


 
uf5553 (view source)
 
Defined in: uf_drf.h
 
Overview
Edits the drafting object origin.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5553
(
tag_t * np1,
double * rp2,
int * ir3
)
tag_t *np1InputDrafting Object Identifier
double *rp2Input3-D Object Origin (In model space coordinates)
int *ir3OutputReturn code:
1 = Success
2 = Failure

 


 
uf5554 (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the number of objects that are associated to a drafting object.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5554
(
tag_t * np1,
int * ir2
)
tag_t *np1InputObject Identifier Of Drafting Object
int *ir2OutputNumber Of Associated Objects

 


 
uf5555 (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the n-th associated object of a drafting object.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5555
(
tag_t * np1,
int * ip2,
tag_t * nr3
)
tag_t *np1InputObject Identifier Of Drafting Object
int *ip2InputIndex Number Of The Associated Object
tag_t *nr3OutputObject Identifier Of N-th Associated Object

 


 
uf5561 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5561
(
int * num_lines,
double * line_coords
)
int *num_linesInputNumber Of Lines. This must not exceed MAX_LINES.
double *line_coordsInputArray 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5562
(
int * num_arcs,
double * arc_data
)
int *num_arcsInputNumber Of Arc segments (not to exceed MAX_ARC_SEGMENTS)
double *arc_dataInputArc 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5564
(
int * arrowhead_subtype,
double * arrow_origin,
double * arrow_angle
)
int *arrowhead_subtypeInputArrowhead Of Subtype
1 = Closed
2 = Open
3 = Arch Cross
4 = Dot
5 = Origin Symbol
6 = None
double *arrow_originInput2d arrow origin in coordinates of annotation
double *arrow_angleInputArrow Angle (Radians)

 


 
uf5565 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5565
(
tag_t * annotation_tag
)
tag_t *annotation_tagOutputAnnotation tag

 


 
uf5575 (view source)
 
Defined in: uf_drf.h
 
Overview
Obtain Coordinates of Dimension Area Box

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

Environment
Internal and External
 
Required License(s)
gateway

 
void uf5575
(
tag_t * np1,
double * rar2,
double * rar3,
int * ir4
)
tag_t *np1InputDrafting Object Identifier
double *rar2OutputLower Left Coordinate
double *rar3OutputUpper Right Coordinate
int *ir4OutputReturn code:
0 = Success
1 = Error - NP1 Not A Drafting Object

 


 
UF_DRF_add_assortpart_to_ann (view source)
 
Defined in: uf_drf.h
 
Overview
Adds Assorted Parts to an Annotation.

Environment
Internal and External
 
Required License(s)
drafting

 
int UF_DRF_add_assortpart_to_ann
(
tag_t annotation_tag,
int number_of_objects,
tag_t * list_of_objects
)
tag_tannotation_tagInputannotation tag to add assorted parts
intnumber_of_objectsInputnumber of objects to add
tag_t *list_of_objectsInputnumber_of_objects
list of object tags to add

 


 
UF_DRF_add_compound_weld_symbol (view source)
 
Defined in: uf_drf.h
 
Overview
Add compound weld symbol

Return
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

Environment
Internal and External

See Also
UF_DRF_ weld_symbols_t
UF_DRF_object_t

History
Originally released in v18.0
 
Required License(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_tweld_symbolInputtag of the weld symbol for which compound weld
info has to be added
UF_DRF_weld_sym_info_t *top_infoInputcompound weld symbol info for top
UF_DRF_weld_sym_info_t *bottom_infoInputcompound weld symbol info for bottom

 


 
UF_DRF_add_controlling_exp (view source)
 
Defined in: uf_drf.h
 
Overview
Link drafting object to the controlling expression

Environment
Internal and External

History
Originally released in V16.0
 
Required License(s)
drafting

 
int UF_DRF_add_controlling_exp
(
tag_t object,
tag_t exp_id
)
tag_tobjectInputDrafting object
tag_texp_idInputControlling expression

 


 
UF_DRF_add_symbol_to_object (view source)
 
Defined in: uf_drf.h
 
Overview
Adds a symbol to a drafting object.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_dataInputsymbol data (see uf_drf_types.h)
tag_tobject_tagInputdrafting object tag

 


 
UF_DRF_add_to_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Append text, form-position tolerance, or ID symbol to a dimension.

Environment
Internal and External

See Also
UF_DRF_ask_ann_data
 
Required License(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,
const UF_DRF_one_apptext_line_t text_array [ ]
)
unsigned int *entity_idInputObject identifier of the dimension object to be
added to.
int *segment_numInputSegment number to add to. UF_DRF_ask_ann_data can be
called to find out the number of segments in a dimension.
intann_data [ 10 ] InputThe annotation data for this dimension, returned from
UF_DRF_ask_ann_data.
int *text_typeInputThe 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_positionInputPosition of the appended text:
1 = below
2 = after
3 = above
4 = before
int *relative_justInputRelative text justification:
1 = left
2 = center
3 = right
int *line_spaceInputFlag 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_linesInputNumber of lines of text to append.
const UF_DRF_one_apptext_line_ttext_array [ ] Inputnumber_lines
Array of text strings to be appended to the dimension.

 


 
UF_DRF_are_draft_objects_const (view source)
 
Defined in: uf_drf.h
 
Overview
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
UF_DRF_OBJECTS_ARE_NOT_CONSTANT

Environment
Internal & External

See Also
UF_DRF_record_draft_objects

History
Created in NX4.0
 
Required License(s)
drafting

 
int UF_DRF_are_draft_objects_const
(
void * objs,
logical check_view_data
)
void *objsInputDrafting object data from UF_DRF_record_draft_objects
logicalcheck_view_dataInputShould view data be compared

 


 
UF_DRF_ask_ang_obj_suppress_zeros (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
This function originally released in V17.0
 
Required License(s)
gateway

 
int UF_DRF_ask_ang_obj_suppress_zeros
(
tag_t object,
UF_DRF_angular_suppress_zeros_t * option
)
tag_tobjectInputTag id of angular dimension object
UF_DRF_angular_suppress_zeros_t *optionOutputSuppress zeros option

 


 
UF_DRF_ask_ang_obj_units_format (view source)
 
Defined in: uf_drf.h
 
Overview
Queries the nominal and tolerance units format for an angular dimension.

Environment
Internal and External

History
This function originally released in V17.0
 
Required License(s)
gateway

 
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_tobjectInputangular dimension
UF_DRF_angular_units_t *nominal_formatOutputangular dimension nominal format
UF_DRF_angular_units_t *tolerance_formatOutputangular dimension tolerance format

 


 
UF_DRF_ask_ann_arc_seg_angles (view source)
 
Defined in: uf_drf.h
 
Overview
Ask start and end Angles of an Annotation Object Arc Segment.

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_ask_ann_arc_seg_angles
(
int * arc_segment,
int * ann_data,
double arc_angles [ 2 ]
)
int *arc_segmentInputarc segment number
int *ann_dataInput / Outputannotation data
doublearc_angles [ 2 ] Outputstart and end angles of arc segment

 


 
UF_DRF_ask_ann_data (view source)
 
Defined in: uf_drf.h
 
Overview
Ask data of an Annotation Object. The text data for the annotation
can be read by passing the ann_data array to UF_DRF_ask_text_data

This method will not work for the annotations having new leaders i.e.
leaders created in or after NX7.5. For such case, below methods can be used:
1. NXOpen::Annotations::ComponentData::GetLineComponents
2. NXOpen::Annotations::ComponentData::GetArcComponents
3. NXOpen::Annotations::ComponentData::GetTextComponents
4. NXOpen::Annotations::ComponentData::GetArrowComponents

Environment
Internal and External

See Also
UF_DRF_ask_text_data

History
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
 
Required License(s)
gateway

 
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 *annotation_tagInputtag of annotation object
intsearch_mask [ 4 ] Inputarray 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
intann_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_typeOutputannotation data type
0 = no more data of requested types
1 = line
2 = arc
3 = text
4 = arrow
int *ann_data_formOutputannotation 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_segmentsOutputnumber of data segments
if ann_data_type = 1, line segments
= 2, arc segments
= 3, lines of text
= 4, not used
doubleann_origin [ 2 ] Outputannotation data origin
if ann_data_type = 1, not used
= 2, arc origin
= 3, text origin
= 4, arrow origin
double *radius_angleOutputannotation 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Ask end points of an Annotation Object Line Segment.

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_ask_ann_line_seg_ends
(
int * line_segment,
int ann_data [ 10 ] ,
double line_endpoints [ 4 ]
)
int *line_segmentInputline segment number
intann_data [ 10 ] Input / Outputannotation data
doubleline_endpoints [ 4 ] Output2D coordinates of line segment

 


 
UF_DRF_ask_annotation_template (view source)
 
Defined in: uf_drf.h
 
Overview
Ask for the name of the template part which is to be used to be used in
UF_DRF_inherit_feature_data.

Environment
Internal and External

See Also
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

History
Originally released in v19.0
 
Required License(s)
gateway

 
int UF_DRF_ask_annotation_template
(
char * * annotation_template_name
)
char * *annotation_template_nameOutput to UF_*free*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 (view source)
 
Defined in: uf_drf.h
 
Overview
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

Return
0 = No error
not 0 = Error code

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_ask_annotation_text_box
(
tag_t annotation,
double upper_left [ 3 ] ,
double * length,
double * height
)
tag_tannotationInputTag of the annotation
doubleupper_left [ 3 ] OutputUpper left point
double *lengthOutputLength of box
double *heightOutputHeight of box

 


 
UF_DRF_ask_appended_text (view source)
 
Defined in: uf_drf.h
 
Overview
The following function will query all the appended text for a dimension.

Environment
Internal & External

See Also
UF_DRF_set_appended_text
UF_DRF_free_appended_text
UF_DRF_appended_text_t

History
Created in V17.0
 
Required License(s)
gateway

 
int UF_DRF_ask_appended_text
(
tag_t dimension,
int * num_text,
UF_DRF_appended_text_p_t * appended_text
)
tag_tdimensionInputDimension object to query
int *num_textOutputNumber of appended text
UF_DRF_appended_text_p_t *appended_textOutput to UF_*free*Appended text. Please
use UF_DRF_free_appended_
text to free the data
returned.

 


 
UF_DRF_ask_areafill_data (view source)
 
Defined in: uf_drf.h
 
Overview
Finds the area fill data for the specified area fill object. The data is
contained in the area fill structure.

Environment
Internal & External

See Also
UF_DRF_set_areafill_material
UF_DRF_set_areafill_scale
UF_DRF_set_areafill_angle
 
Required License(s)
gateway

 
int UF_DRF_ask_areafill_data
(
tag_t areafill_id,
UF_DRF_areafill_t * areafill_data
)
tag_tareafill_idInputArea fill object identifier
UF_DRF_areafill_t *areafill_dataOutputArea fill data

 


 
UF_DRF_ask_arrow_data (view source)
 
Defined in: uf_drf.h
 
Overview
Gets drafting arrow block parameter data.

Environment
Internal and External

Return
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
 
Required License(s)
gateway

 
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
)
intdata_block [ 10 ] InputOnly 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_typeOutput1 = Closed Arrow
2 = Open Arrow
3 = Arch Cross
4 = Dot
5 = Origin symbol
6 = None
int *filledOutputThe arrow head is either filled or open:
0 = open
1 = filled
doubleorigin [ 2 ] OutputThe x and y coordinates of the arrowhead:
[0] = x-coordinate
[1] = y-coordinate
double *arrow_angleOutputThe angle of the arrow line (degrees)
double *include_angleOutputThe arrowhead included angle (degrees)
double *arrow_heightOutputThe height of the arrowhead. If the arrowhead type
is 4 (dot), then this is the diameter of the dot.
double *arrow_lengthOutputThe length of the arrowhead

 


 
UF_DRF_ask_assoc_exp (view source)
 
Defined in: uf_drf.h
 
Overview
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
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.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_assoc_exp
(
tag_t object_tag,
tag_t * exp_tag
)
tag_tobject_tagInputThe tag of a dimension.
tag_t *exp_tagOutputThe tag of the expression associated to the specified
input object tag.

 


 
UF_DRF_ask_associative_origin (view source)
 
Defined in: uf_drf.h
 
Overview
The following function will query the associative origin information for the
annotation.

Environment
Internal and External

See Also
UF_DRF_has_associative_origin
UF_DRF_set_associative_origin

History
Created in V17.0
 
Required License(s)
gateway

 
int UF_DRF_ask_associative_origin
(
tag_t drafting_entity,
UF_DRF_associative_origin_p_t * origin_data,
double origin [ 3 ]
)
tag_tdrafting_entityInputDimension or drafting object to query.
UF_DRF_associative_origin_p_t *origin_dataOutput to UF_*free*Data used to define the associative origin.
To free this allocated data, please use
UF_free.
doubleorigin [ 3 ] OutputOrigin of the annotation in absolute coords.

 


 
UF_DRF_ask_associativity_data (view source)
 
Defined in: uf_drf.h
 
Overview
The following function queries all of the associativities for the annotation
object.

Environment
Internal or External

History
Originally released in V19.0
 
Required License(s)
gateway

 
int UF_DRF_ask_associativity_data
(
tag_t object,
int * num_associativities,
UF_DRF_object_assoc_data_p_t * associativity_data
)
tag_tobjectInputDimension 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_associativitiesOutputThe number of associativities on the object.
UF_DRF_object_assoc_data_p_t *associativity_dataOutput to UF_*free*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 (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the number of boundaries, and the tags associated with the
boundaries given the specified input tag.

Environment
Internal and External

See Also
UF_BOUND_ask_boundary_data
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_boundaries
(
tag_t draft_aid_tag,
int * num_boundaries,
tag_p_t * boundary_tags
)
tag_tdraft_aid_tagInputTag of the area fill or crosshatch object
int *num_boundariesOutputThe number of boundaries
tag_p_t *boundary_tagsOutput to UF_*free*The array which contains the tags of the
boundaries. This array must be freed by calling
UF_free.

 


 
UF_DRF_ask_callout_of_annotation (view source)
 
Defined in: uf_drf.h
 
Overview
Get the callout that contains a specified annotation

Environment
Internal & External

History
Created in V18.0
 
Required License(s)
gateway

 
int UF_DRF_ask_callout_of_annotation
(
tag_t annotation,
tag_t * callout
)
tag_tannotationInputTag of annotation
tag_t *calloutOutputTag of callout or NULL_TAG if
annotation is not part of callout

 


 
UF_DRF_ask_callout_row_members (view source)
 
Defined in: uf_drf.h
 
Overview
Get the feature annotation members of a callout row

Environment
Internal & External

History
Created in V18.0
 
Required License(s)
gateway

 
int UF_DRF_ask_callout_row_members
(
tag_t callout,
int row,
int * num_members,
tag_t * * members
)
tag_tcalloutInputTag of callout
introwInputRow in callout (starting at zero)
int *num_membersOutputNumber of members in row
tag_t * *membersOutput to UF_*free*Callout members

 


 
UF_DRF_ask_centerline_info (view source)
 
Defined in: uf_drf.h
 
Overview
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).

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
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_tcenterline_tagInputTag of the centerline
UF_DRF_valid_cline_form_t *centerline_typeOutputType of centerline (see
uf_drf_types.h)
doublecenterline_origin [ 3 ] OutputCenterline origin
UF_DRF_centerline_info_p_t *centerline_infoOutput to UF_*free*Centerline information. This must
be freed by calling
UF_DRF_free_centerline.

 


 
UF_DRF_ask_chamfer_dimension_data (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

History
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.
 
Required License(s)
gateway

 
int UF_DRF_ask_chamfer_dimension_data
(
tag_t cham_dim_tag,
UF_DRF_chamfer_dimension_data_p_t cham_dim_data
)
tag_tcham_dim_tagInputtag of cham dim
UF_DRF_chamfer_dimension_data_p_tcham_dim_dataOutput to UF_*free*chamfer dimension prefs - Must
free the symbol_name with call
to UF_free()

 


 
UF_DRF_ask_controlling_exp (view source)
 
Defined in: uf_drf.h
 
Overview
Get the controlling expression of the drafting object

Environment
Internal and External

History
Originally released in V16.0
 
Required License(s)
gateway

 
int UF_DRF_ask_controlling_exp
(
tag_t object,
tag_t * exp_id
)
tag_tobjectInputdrafting object
tag_t *exp_idOutputControlling expression of the object

 


 
UF_DRF_ask_controlling_member_of_callout (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal & External

History
Created in V18.0
 
Required License(s)
gateway

 
int UF_DRF_ask_controlling_member_of_callout
(
tag_t callout,
tag_t * controlling_member
)
tag_tcalloutInputTag of callout
tag_t *controlling_memberOutputControlling member

 


 
UF_DRF_ask_custom_symbol_angle (view source)
 
Defined in: uf_drf.h
 
Overview
Ask the angle for a custom symbol instance.

Environment
Internal and External

History
Originally released in v19.0
 
Required License(s)
gateway

 
int UF_DRF_ask_custom_symbol_angle
(
tag_t symbol_tag,
double * angle
)
tag_tsymbol_tagInputtag of a custom symbol instance
double *angleOutputdouble value of the angle

 


 
UF_DRF_ask_custom_symbol_attach_locations (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal & External

History
Created in NX3.0.2
 
Required License(s)
gateway

 
int UF_DRF_ask_custom_symbol_attach_locations
(
tag_t symbol,
tag_t locations [ 2 ]
)
tag_tsymbolInputThe tag of the custom symbol
tag_tlocations [ 2 ] OutputAn array of 2 tags corresponding to the left and right
leader attachment locations

 


 
UF_DRF_ask_custom_symbol_leader (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal & External

History
Created in NX3.0.2
 
Required License(s)
gateway

 
int UF_DRF_ask_custom_symbol_leader
(
tag_t symbol,
UF_DRF_leader_data_p_t * leader_data
)
tag_tsymbolInputThe tag of the custom symbol
UF_DRF_leader_data_p_t *leader_dataOutputThe custom symbol's leader data

 


 
UF_DRF_ask_custom_symbol_name (view source)
 
Defined in: uf_drf.h
 
Overview
This function returns the name of custom symbol.

Returns
UF_DRF_NO_ERRORS

Environment
Internal & External

History
Created in NX5.0.3
 
Required License(s)
gateway

 
int UF_DRF_ask_custom_symbol_name
(
tag_t custom_symbol,
char* * symbol_name
)
tag_tcustom_symbolInputCustom symbol
char* *symbol_nameOutput to UF_*free*Custom symbol name
Must be freed by calling UF_free

 


 
UF_DRF_ask_custom_symbol_scale (view source)
 
Defined in: uf_drf.h
 
Overview
Ask the symbol scale for a custom symbol instance.

Environment
Internal and External

History
Originally released in v19.0
 
Required License(s)
gateway

 
int UF_DRF_ask_custom_symbol_scale
(
tag_t symbol_tag,
double * scale
)
tag_tsymbol_tagInputtag of a custom symbol instance
double *scaleOutputdouble value of the symbol scale

 


 
UF_DRF_ask_diameter_radius_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Returns preferences for the display of radial dimensions.

Environment
Internal & External

See Also
UF_DRF_set_diameter_radius_preferences
UF_DRF_units_diameter_radius_preferences_t

History
Originally released in V16.0
 
Required License(s)
gateway

 
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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
NX 2.0 release.
 
Required License(s)
gateway

 
int UF_DRF_ask_dim_appended_text_space_factor
(
tag_t dimension,
double * space_factor
)
tag_tdimensionInputdimension tag
double *space_factorOutputfactor for spacing between dimension and appended text

 


 
UF_DRF_ask_dim_dim_line_space_factor (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
NX 2.0 release.
 
Required License(s)
gateway

 
int UF_DRF_ask_dim_dim_line_space_factor
(
tag_t dimension,
double * space_factor
)
tag_tdimensionInputdimension tag
double *space_factorOutputfactor for spacing between dimension and dimension line

 


 
UF_DRF_ask_dim_info (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the dimension subtype, number of objects, data of objects,
associated text, and dimension origin given the specified dimension tag.
The origin returned will be associated with the WCS plane when the
annotation was created. Use UF_DRF_ask_origin to get the origin in absolute
space.
Use UF_DRF_ask_associativity_data to query the dimension's associativity
data including coordinates of the associated position(s).

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
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_tdim_tagInputTag of the dimension
int *dim_subtypeOutputDimension subtype
doubledim_origin [ 3 ] OutputDimension origin
UF_DRF_dim_info_p_t *dim_infoOutput to UF_*free*Dimension information. This must be freed by
calling UF_DRF_free_dimension.

 


 
UF_DRF_ask_dim_inspection_type (view source)
 
Defined in: uf_drf.h
 
Overview
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
 
Required License(s)
gateway

 
int UF_DRF_ask_dim_inspection_type
(
tag_t dim_tag,
UF_DRF_inspection_type_t * inspection_type
)
tag_tdim_tagInputtag of dimension object
UF_DRF_inspection_type_t *inspection_typeOutputInspection type option

 


 
UF_DRF_ask_dim_reference_type (view source)
 
Defined in: uf_drf.h
 
Overview
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
 
Required License(s)
gateway

 
int UF_DRF_ask_dim_reference_type
(
tag_t dim_tag,
UF_DRF_reference_symbol_type_t * ref_type
)
tag_tdim_tagInputtag of dimension object
UF_DRF_reference_symbol_type_t *ref_typeOutputreference type option

 


 
UF_DRF_ask_dim_tolerance_text_space_factor (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
NX 2.0 release.
 
Required License(s)
gateway

 
int UF_DRF_ask_dim_tolerance_text_space_factor
(
tag_t dimension,
double * space_factor
)
tag_tdimensionInputdimension tag
double *space_factorOutputfactor for spacing between dimension and tolerance text

 


 
UF_DRF_ask_dimension_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Returns dimension preferences for arrow and line formatting, type of
placement, tolerance and precision, and text orientation.

Environment
Internal & External

See Also
UF_DRF_set_dimension_preferences
UF_DRF_dimension_preferences_t

History
Originally released in V16.0
 
Required License(s)
gateway

 
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_preferences1 (view source)
 
Defined in: uf_drf.h
 
Overview
In order to provide appropriate .NET binding for UF_DRF_ask_dimension_preferences,
UF_DRF_ask_dimension_preferences1 is introduced.

Note: C/C++ users can continue to use UF_DRF_ask_dimension_preferences.

For docuementation, refer to documentation of UF_DRF_ask_dimension_preferences.

History
Originally released in NX7.5
 
Required License(s)
gateway

 
int UF_DRF_ask_dimension_preferences1
(
UF_DRF_dimension_preferences1_t * * dimension_preferences
)
UF_DRF_dimension_preferences1_t * *dimension_preferencesOutput to UF_*free*pointer to preferences structure to be
populated with the dimension preferences
Must be freed using UF_DRF_free_dimension_preferences1

 


 
UF_DRF_ask_dimension_set_offset (view source)
 
Defined in: uf_drf.h
 
Overview
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
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.

Environment
Internal and External

History
Originally released in v18.0
 
Required License(s)
gateway

 
int UF_DRF_ask_dimension_set_offset
(
tag_t dimension,
double * offset
)
tag_tdimensionInputTag of the given dimension.
double *offsetOutputDimension set offset of the given dimension.

 


 
UF_DRF_ask_dimension_text (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal & External

History
Created in NX5.0.3
 
Required License(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_tdimensionInputDimension
int*num_main_textOutputNumber of main dimension text lines
char* * *main_textOutput to UF_*free*Main dimension text lines
int*num_dual_textOutputNumber of dual dimension text lines
char* * *dual_textOutput to UF_*free*Dual dimension text lines

 


 
UF_DRF_ask_dimensions_of_set (view source)
 
Defined in: uf_drf.h
 
Overview
Return the dimensions in a dimension set.

Return
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

Environment
Internal and External

History
Originally released in v18.0
 
Required License(s)
gateway

 
int UF_DRF_ask_dimensions_of_set
(
tag_t dimension_set,
tag_t * * sub_dimensions,
int * num
)
tag_tdimension_setInputTag of the given dimension set.
tag_t * *sub_dimensionsOutput to UF_*free*Point to the tag array of the dimensions in a given set.
int *numOutputnumber of dimensions in the array.

 


 
UF_DRF_ask_dogleg_info (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the dogleg type, distance in WCS coordinates, and angle in
degrees given the specified ordinate dimension tag.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_dogleg_info
(
tag_t orddim_tag,
UF_DRF_dogleg_info_t * dogleg_info
)
tag_torddim_tagInputTag of ordinate origin
UF_DRF_dogleg_info_t *dogleg_infoOutputOrdinate 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example

History
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
 
Required License(s)
gateway

 
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_tdraft_aid_tagInputTag of drafting aid object
int *num_textOutputNumber of text strings
UF_DRF_draft_aid_text_info_t * *text_infoOutput to UF_*free*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 (view source)
 
Defined in: uf_drf.h
 
Overview
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".
NOTE: The pen_status from returned stroke_info can be either - draw or move.
UF_DRF_UD_SYMBOL_DRAW means start drawing a new stroke from this position.
UF_DRF_UD_SYMBOL_MOVE means draw the stroke till this position.

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

Environment
Internal and External

History
Created in V16.0
 
Required License(s)
gateway

 
int UF_DRF_ask_embedded_uds_font_info
(
tag_t symbol_font_tag,
char symbol_name [ 9 ] ,
int * num_of_strokes,
UF_DRF_stroke_info_t * * stroke_info
)
tag_tsymbol_font_tagInputTag of Symbol Font
charsymbol_name [ 9 ] OutputName of Symbol Font
int *num_of_strokesOutputTotal number of stroke
UF_DRF_stroke_info_t * *stroke_infoOutput to UF_*free*Stroke Data

 


 
UF_DRF_ask_folded_radius_info (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the fold location in WCS coordinates and the fold angle in
degrees given the specified folded radius tag.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_folded_radius_info
(
tag_t frdim_tag,
UF_DRF_foldedradius_dim_info_t * frdim_info
)
tag_tfrdim_tagInputTag of folded radius dimension
UF_DRF_foldedradius_dim_info_t *frdim_infoOutputFolded radius dimension information
(see UF_DRF_foldedradius_dim_info_t)

 


 
UF_DRF_ask_gdt_symbol_info (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
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_tgdt_symbol_tagInputTag of GD&T Symbol
doublegdt_symbol_origin [ 3 ] OutputGD&T Symbol origin
UF_DRF_gdt_symbol_info_p_t *gdt_symbol_infoOutput to UF_*free*GD&T Symbol information. This
must be freed by calling
UF_DRF_free_gdtsymbol.

 


 
UF_DRF_ask_hatch_fill_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the preferences for crosshatching and area fill

Environment
Internal & External

See Also
UF_DRF_set_hatch_fill_preferences

History
Originally released in V16.0
 
Required License(s)
gateway

 
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 (view source)
 
Defined in: uf_drf.h
 
Overview
Return the geometry for an id symbol.

Environment
Internal and External

History
Returns the geometry for an id symbol.
 
Required License(s)
gateway

 
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_tid_symbolInputThe ID symbol to query
int *num_linesOutputThe number of lines in the ID symbol
double * *linesOutput to UF_*free*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_arcsOutputthe number of arcs in the ID symbol
UF_DRF_arc_info_p_t *arcsOutput to UF_*free*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 (view source)
 
Defined in: uf_drf.h
 
Overview
Given the ID Symbol tag, this function returns the ID Symbol
subtype, text and leader information, and the data of object to attach
leader.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
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_tid_symbol_tagInputTag of ID Symbol
UF_DRF_id_symbol_type_t *id_symbol_typeOutputID Symbol type
doubleid_symbol_origin [ 3 ] OutputID Symbol origin
UF_DRF_id_symbol_info_p_t *id_symbol_infoOutput to UF_*free*ID Symbol information. This must
be freed by calling
UF_DRF_free_idsymbol.

 


 
UF_DRF_ask_id_symbol_type (view source)
 
Defined in: uf_drf.h
 
Overview
Given the ID Symbol tag, this function returns the ID Symbol type.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_id_symbol_type
(
tag_t id_symbol_tag,
UF_DRF_id_symbol_type_t * id_symbol_type
)
tag_tid_symbol_tagInputTag of ID Symbol
UF_DRF_id_symbol_type_t *id_symbol_typeOutputID Symbol type (see uf_drf_types.h)

 


 
UF_DRF_ask_image_data (view source)
 
Defined in: uf_drf.h
 
Overview
Get the image data

Returns
UF_DRF_NO_ERRORS if the image query was successful

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
gateway

 
int UF_DRF_ask_image_data
(
tag_t image,
UF_DRF_image_data_t * data
)
tag_timageInputImage to query
UF_DRF_image_data_t *dataOutput to UF_*free*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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_label_info
(
tag_t label_tag,
double label_origin [ 3 ] ,
UF_DRF_label_info_p_t * label_info
)
tag_tlabel_tagInputTag of label
doublelabel_origin [ 3 ] OutputLabel origin in the coordinate system of the drafting
object.
UF_DRF_label_info_p_t *label_infoOutput to UF_*free*Label information. This must be freed
by calling UF_DRF_free_label.

 


 
UF_DRF_ask_lettering_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the lettering preferences for dimension, appended, tolerance
and general (notes, id symbols, etc,) text.

Environment
Internal & External

See Also
UF_DRF_set_lettering_preferences
UF_DRF_lettering_preferences_t

History
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.
 
Required License(s)
gateway

 
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 (view source)
 
Defined in: uf_drf.h
 
Overview
Returns preferences that apply to leaders, arrows and extension lines for
both dimensions and other annotations

Environment
Internal & External

See Also
UF_DRF_set_line_arrow_preferences
UF_DRF_line_arrow_preferences_t

History
Originally released in V16.0
 
Required License(s)
gateway

 
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 (view source)
 
Defined in: uf_drf.h
 
Overview
Ask narrow dimension parameters.

Return
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

Environment
Internal and External

History
Originally released in V19.0
 
Required License(s)
gateway

 
int UF_DRF_ask_narrow_dimension_data
(
tag_t dimension_tag,
UF_DRF_narrow_dimension_info_p_t narrow_data
)
tag_tdimension_tagInputObject tag of a linear dimension
UF_DRF_narrow_dimension_info_p_tnarrow_dataOutputData of narrow dimension preferences

 


 
UF_DRF_ask_number_blocks (view source)
 
Defined in: uf_drf.h
 
Overview
Given the drafting aid object tag, this function returns the number of
blocks for this drafting aid.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_number_blocks
(
tag_t annotation_tag,
int num_block [ 5 ]
)
tag_tannotation_tagInputTag of the drafting aid object
intnum_block [ 5 ] OutputFive 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Get the number of rows in a callout

Environment
Internal & External

History
Created in V18.0
 
Required License(s)
gateway

 
int UF_DRF_ask_number_rows_in_callout
(
tag_t callout,
int * num_rows
)
tag_tcalloutInputTag of callout
int *num_rowsOutputNumber of rows in callout

 


 
UF_DRF_ask_obj_suppress_pre_zeros (view source)
 
Defined in: uf_drf.h
 
Overview
Determines if the suppress preceding zeros option for an angular
dimension is set.

Environment
Internal and External

See Also
UF_DRF_ask_obj_suppress_zeros

History
This function was originally released in V15.0.
 
Required License(s)
gateway

 
int UF_DRF_ask_obj_suppress_pre_zeros
(
tag_t object,
logical * option
)
tag_tobjectInputTag id of angular dimension object
logical *optionOutputSuppress preceding zeros mode

 


 
UF_DRF_ask_obj_text_above_ldr (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_obj_text_above_ldr
(
tag_t object,
UF_DRF_text_above_leader_t * option
)
tag_tobjectInputtag of label or dimension
UF_DRF_text_above_leader_t *optionOutputtext above leader attribute for the
specified label or dimension

 


 
UF_DRF_ask_object_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Given the annotation tag, this function retrieves and checks drafting
parameters from an existing annotation.

Return
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

Environment
Internal and External

See Also
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

History
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.
 
Required License(s)
gateway

 
int UF_DRF_ask_object_preferences
(
tag_t drf_object_tag,
int mpi [ 100 ] ,
double mpr [ 70 ] ,
char radius_val [ 27 ] ,
char diameter_val [ 27 ]
)
tag_tdrf_object_tagInputDrafting object Identifier
intmpi [ 100 ] OutputMPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
doublempr [ 70 ] OutputMPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
charradius_val [ 27 ] OutputRadius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_val[27];
chardiameter_val [ 27 ] OutputDiameter 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Find all drafting objects which are controlled by a given expression

Environment
Internal and External

History
Originally released in V16.0
 
Required License(s)
gateway

 
int UF_DRF_ask_objects_controlled_by_exp
(
tag_t exp_id,
int * num_objs,
tag_p_t * objects
)
tag_texp_idInputObject identifier of the expression.
int *num_objsOutputNumber of objects controlled by the expression.
tag_p_t *objectsOutput to UF_*free*Array of objects controlled by the expression.
The caller is responsible for freeing this array by
calling UF_free.

 


 
UF_DRF_ask_ordorigin_info (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
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_tordorigin_tagInputTag of ordinate origin
UF_DRF_orddisp_info_t *origin_dispOutputOrdinate dimension origin display
in formation (see UF_DRF_orddisp_info_t)
int *num_assocOutputNumber of associated objects
UF_DRF_assoc_info_t * *assoc_objectsOutput to UF_*free*Array of associated object information.
This array must be freed by calling
UF_free.

 


 
UF_DRF_ask_origin (view source)
 
Defined in: uf_drf.h
 
Overview
Return the origin of the annotation object.

Return
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

Environment
Internal and External

History
Written in V16.0
 
Required License(s)
gateway

 
int UF_DRF_ask_origin
(
tag_t annotation,
double origin [ 3 ]
)
tag_tannotationInputTag of the annotation.
doubleorigin [ 3 ] OutputOrigin 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 (view source)
 
Defined in: uf_drf.h
 
Overview
This function returns the parent of the given inherited PMI. The parent is
the PMI Display Instance in modeling.

Returns
UF_DRF_NO_ERRORS

Environment
Internal & External

History
Created in NX5.0
 
Required License(s)
drafting

 
int UF_DRF_ask_parent_of_inherited_pmi
(
tag_t inherited_pmi,
tag_p_t parent
)
tag_tinherited_pmiInputThe tag of the inherited PMI
tag_p_tparentOutputParent of the inherited PMI

 


 
UF_DRF_ask_plot_drawing_images (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

See Also
UF_DRF_create_image_from_file
UF_DRF_create_image

History
This function was originally released in NX3.0.
 
Required License(s)
gateway

 
int UF_DRF_ask_plot_drawing_images
(
logical * plot_images
)
logical *plot_imagesOutputTRUE if set to plot raster images on drawing sheets
FALSE if set to not plot raster images on drawing sheets

 


 
UF_DRF_ask_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets arrays and character strings to the current settings of the drafting
parameters.

Return
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

Environment
Internal and External

See Also
UF_DRF_set_preferences
UF_DRF_ask_object_preferences
UF_DRF_set_object_preferences
Refer to the example
See drafting parameters

History
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.
 
Required License(s)
gateway

 
int UF_DRF_ask_preferences
(
int mpi [ 100 ] ,
double mpr [ 70 ] ,
char radius_value [ 27 ] ,
char diameter_value [ 27 ]
)
intmpi [ 100 ] OutputMPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
doublempr [ 70 ] OutputMPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
charradius_value [ 27 ] OutputRadius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_value[27];
chardiameter_value [ 27 ] OutputDiameter 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Gets the color, font and widths used for retained annotations.

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

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_ask_retain_color_font_width
(
int * color,
int * font,
int * width
)
int *colorOutputColor used for retained annotations
int *fontOutputFont used for retained annotations
int *widthOutputLine width used for retained annotations

 


 
UF_DRF_ask_retained_state (view source)
 
Defined in: uf_drf.h
 
Overview
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
Return code:
0 = No error
not 0 = Error code
Possible return codes can include the following
UF_err_program_not_initialized

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_ask_retained_state
(
UF_DRF_retained_state_t * state
)
UF_DRF_retained_state_t *stateOutputBehavior state for retained annotations.
Either
'UF_DRF_KEEP_RETAINED_ANNOTATIONS' or
'UF_DRF_DELETE_RETAINED_ANNOTATIONS'

 


 
UF_DRF_ask_sbf_file (view source)
 
Defined in: uf_drf.h
 
Overview
Returns the current symbol font definition file name.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_sbf_file
(
char sbf_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ]
)
charsbf_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ] Outputcurrent symbol font definition
name (blank if none)

 


 
UF_DRF_ask_set_of_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Return the dimension set which the given dimension belongs to.

Return
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

Environment
Internal and External

History
Originally released in v18.0
 
Required License(s)
gateway

 
int UF_DRF_ask_set_of_dimension
(
tag_t dimension,
tag_t * dimension_set
)
tag_tdimensionInputTag of the given dimension.
tag_t *dimension_setOutputTag of the dimension set which the given dimension belongs to.

 


 
UF_DRF_ask_suppress_pre_zeros (view source)
 
Defined in: uf_drf.h
 
Overview
Determines if the global preference for suppress preceding zeros is
set.

Environment
Internal and External

See Also
UF_DRF_ask_units_format_preferences
Refer to the example

History
This function was originally released in V15.0.
 
Required License(s)
gateway

 
int UF_DRF_ask_suppress_pre_zeros
(
logical * option
)
logical *optionOutputSuppress preceding zeros mode

 


 
UF_DRF_ask_suppress_view_update (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal & External:

See Also
UF_DRF_set_suppress_view_update
 
Required License(s)
gateway

 
int UF_DRF_ask_suppress_view_update
(
logical * suppress_view_update
)
logical *suppress_view_updateOutputthe current setting of view
update suppression

 


 
UF_DRF_ask_symbol_data (view source)
 
Defined in: uf_drf.h
 
Overview
Returns standalone symbol object data.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_symbol_data
(
tag_t symbol_tag,
UF_DRF_symbol_data_t * symbol_data
)
tag_tsymbol_tagInputstandalone symbol object tag
UF_DRF_symbol_data_t *symbol_dataOutputsymbol data (see uf_drf_types.h).

 


 
UF_DRF_ask_symbol_data_from_name (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_ask_symbol_data_from_name
(
const char * sbf_name,
char * * * symbol_names,
int * num_symbols,
UF_DRF_ud_symbol_font_info_p_t * symbol_info
)
const char *sbf_nameInputName of the sbf file
char * * *symbol_namesOutput to UF_*free*List of symbol names in sbf
int *num_symbolsOutputNumber of symbols in the sbf file
UF_DRF_ud_symbol_font_info_p_t *symbol_infoOutput to UF_*free*Symbol data (see uf_drf_types.h)
use UF_free () to free memory

 


 
UF_DRF_ask_symbol_mirror_and_flip (view source)
 
Defined in: uf_drf.h
 
Overview
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
 
Required License(s)
gateway

 
int UF_DRF_ask_symbol_mirror_and_flip
(
tag_t symbol_tag,
logical * mirrored,
logical * flip
)
tag_tsymbol_tagInputstandalone symbol object tag
logical *mirroredOutputTRUE symbol is mirrored
logical *flipOutputTRUE symbol is flip

 


 
UF_DRF_ask_symbol_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Returns preferences that apply to ID, User Define, Centerline, Intersection,
Target and GD&T symbols.

Environment
Internal & External

See Also
UF_DRF_set_symbol_preferences
UF_DRF_symbol_preferences_t

History
Originally released in V16.0
 
Required License(s)
gateway

 
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 (view source)
 
Defined in: uf_drf.h
 
Overview
Returns symbols used in a drafting object.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_ask_symbols_used
(
tag_t object_tag,
int * num_symbol_fonts,
tag_t * symbol_font_tags
)
tag_tobject_tagInputdrafting object tag
int *num_symbol_fontsOutputnumber of symbol fonts used
tag_t *symbol_font_tagsOutputtags 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
This function was originally released in V15.0.
 
Required License(s)
gateway

 
int UF_DRF_ask_text_above_leader
(
UF_DRF_text_above_leader_t * option
)
UF_DRF_text_above_leader_t *optionOutputtext 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_text_data (view source)
 
Defined in: uf_drf.h
 
Overview
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.

This user function replaces uc5574.

Environment
Internal and External

See Also
UF_DRF_ask_ann_data
 
Required License(s)
drafting

 
int UF_DRF_ask_text_data
(
int ip1,
int ann_data [ 10 ] ,
char* * cr3,
int * ir4,
int * ir5
)
intip1InputSegment Number
1 < ip1 < = num_segments returned by UF_DRF_ask_ann_data
intann_data [ 10 ] Input / OutputArray of ann_data returned by UF_DRF_ask_ann_data
char* *cr3Output to UF_*free*Text String
Must be freed by calling UF_free
int *ir4OutputLength of Line in 1/64th's Character Size, Expressed in Integers
int *ir5OutputNumber of Characters in String

 


 
UF_DRF_ask_ud_symbol_font_info (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
gateway

 
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_tud_symbol_tagInputTag of User Defined Symbol
int *num_symbolsOutputNumber of User Defined Symbol
UF_DRF_ud_symbol_font_info_p_t *font_infoOutput to UF_*free*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 (view source)
 
Defined in: uf_drf.h
 
Overview
The following function returns the user defined symbol length / height or
scale / aspect ratio.

Environment
Internal or External

History
Originally released in V19.0
 
Required License(s)
gateway

 
int UF_DRF_ask_uds_object_size
(
tag_t object,
UF_DRF_uds_size_p_t uds_size
)
tag_tobjectInputUser 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_sizeOutputUser defined symbol scale / aspect ratio or length / height parameters.

 


 
UF_DRF_ask_units_format_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Returns preferences for the display of linear and angular dimensions values
as well as dual dimension format.

Environment
Internal & External

See Also
UF_DRF_set_units_format_preferences
UF_DRF_units_format_preferences_t

History
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.
 
Required License(s)
gateway

 
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 (view source)
 
Defined in: uf_drf.h
 
Overview
This function will return the orientation of a note. A note can be
either horizontal or vertical.

Environment
Internal and External

History
Created in V16.0
 
Required License(s)
gateway

 
int UF_DRF_ask_vertical_note
(
tag_t note,
logical * is_vertical
)
tag_tnoteInputTag of the note.
logical *is_verticalOutputOrientation 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Given the weld symbol tag, this function will get the information regarding
the weld symbol.

Returns
0 = No Error
Not 0 = Error
Possible Error Return Code:
UF_DRF_OBJECT_IS_NOT_A_WELD_SYMBOL - Object is not a weld symbol

Environment
Internal and External

See Also
UF_DRF_weld_symbols_t
UF_DRF_label_info_t
UF_DRF_create_weld_symbol

History
Originally released in v18.0
 
Required License(s)
gateway

 
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_tweld_symbol_tagInputtag of the weld symbol for which
information is required
doublelabel_origin [ 3 ] Outputlabel origin
UF_DRF_label_info_p_t *label_infoOutput to UF_*free*Label information. This must be
freed by UF_DRF_free_label
UF_DRF_weld_symbols_p_tsymbol_dataOutputweld symbol data for the given
weld symbol tag

 


 
UF_DRF_count_text_substring (view source)
 
Defined in: uf_drf.h
 
Overview
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>

Environment
Internal and External

See Also
UF_DRF_get_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
 
Required License(s)
drafting

 
int UF_DRF_count_text_substring
(
int * segment_number,
int * ann_data,
int * number_of_substring
)
int *segment_numberInputThe requested text segment on the drafting object.
int *ann_dataInputThe data defining the drafting object.
See UF_DRF_ask_ann_data.
int *number_of_substringOutputThe number of substrings in this segment of
the drafting object.

 


 
UF_DRF_cre_text_block (view source)
 
Defined in: uf_drf.h
 
Overview
Create a text block on a drafting aid.

Environment
Internal and External
 
Required License(s)
drafting

 
int UF_DRF_cre_text_block
(
int * entity_id,
int * text_type,
double text_origin [ 2 ] ,
int * number_lines,
const UF_DRF_one_apptext_line_t text_array [ ]
)
int *entity_idInputObject identifier of the drafting aid to add text to
int *text_typeInputThe type of the text to add.
6 = Appended text
17 = Form and positional tolerance text
doubletext_origin [ 2 ] InputX and Y coordinates of the origin of the text string.
int *number_linesInputThe number of lines to add to the drafting aid.
const UF_DRF_one_apptext_line_ttext_array [ ] Inputnumber_lines
An array of the text strings to add.

 


 
UF_DRF_create_3pt_cline_fbolt (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a full bolt circle centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_fbolt).

Return
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

Environment
Internal and External

See Also
See the example
This example creates a full bolt circle centerline using the 3
point method.
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_tagOutputObject tag of created centerline

 


 
UF_DRF_create_3pt_cline_fcir (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a full circular centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_fcir).

Return
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

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_tagOutputObject tag of created centerline

 


 
UF_DRF_create_3pt_cline_pbolt (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a partial bolt circle centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_pbolt).

Return
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

Environment
Internal and External

See Also
See the example
This example creates a full bolt circle centerline using the 3
point method.
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_tagOutputObject tag of created centerline

 


 
UF_DRF_create_3pt_cline_pcir (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a partial circular centerline using the 3 point
method (centerline type UF_DRF_3pt_cline_pcir).

Return
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

Environment
Internal and External

See Also
See the example
This example creates a partial circular centerline using the
3 point method.
UF_DRF_create_3pt_cline_fcir
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_tagOutputObject tag of created centerline

 


 
UF_DRF_create_angular_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an angular dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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
)
intdimension_formInputAngular dimension form
1 = minor angle
2 = major angle
UF_DRF_object_p_tobject1InputData of first (line) object (see uf_drf_types.h)
Valid object types: line, straight solid curve,
planar face, cylindrical face
UF_DRF_object_p_tobject2InputData of second (line) object
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created dimension initialized to
NULL_TAG because legacy programs processed
returned NULL_TAG as an error.

 


 
UF_DRF_create_arclength_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an arc length dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobjectInputData of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created arc length dimension

 


 
UF_DRF_create_areafill (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an area fill or solid fill.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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
)
intnum_boundsInputNumber of area fill or solid fill boundaries
int*num_obj_bndInputList 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_tobject_list [ ] InputList 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_tview_tagInputMember view tag
tag_t*areafill_tagOutputObject tag of created area fill or solid fill.

 


 
UF_DRF_create_assortpart_aid (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an assorted parts Drafting Aid.

Environment
Internal and External
 
Required License(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_tarcInputassorted part arc data
UF_DRF_assortpart_arrow_p_tarrowInputassorted part arrow data
UF_DRF_assortpart_line_p_tlineInputassorted part line data
UF_DRF_assortpart_text_p_ttextInputassorted part text data
tag_t *assorted_parts_tagOutputassorted parts tag

 


 
UF_DRF_create_assortpart_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an Assorted Parts Dimension.

Environment
Internal and External
 
Required License(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_tarcInputassorted part arc data
UF_DRF_assortpart_arrow_p_tarrowInputassorted part arrow data
UF_DRF_assortpart_line_p_tlineInputassorted part line data
UF_DRF_assortpart_text_p_ttextInputassorted part text data
tag_t *assorted_parts_tagOutputassorted parts tag

 


 
UF_DRF_create_block_cline (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

History
Originally released in v19.0
 
Required License(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_listInputobjects 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_listInputobjects 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 *centerline_tagOutputobject tag of the block centerline

 


 
UF_DRF_create_chamfer_dim (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External
 
Required License(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_tobject1Inputdata of first object
valid object types:
line, solid curve
UF_DRF_object_p_tobject2Inputdata of second object
UF_DRF_text_t *dim_textInputmanual dimension text
doubledim_3d_origin [ 3 ] Input3d dim origin in wcs coords
tag_t *dim_tagOutputtag of created cham dim

 


 
UF_DRF_create_concir_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a concentric circle dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputData of first arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_object_p_tobject2InputData of second arc object (see uf_drf_types.h)
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject 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 (view source)
 
Defined in: uf_drf.h
 
Overview
n
Creates and displays a full bolt circle centerline using the centerpoint
method (centerline type UF_DRF_cpt_cline_fbolt).

Return
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

Environment
Internal and External

See Also
Refer to the example
UF_DRF_create_cpt_cline_pcir
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray of objects that are to be associated
to the centerline (see uf_drf_types.h)
UF_DRF_object_p_tcenter_pointInputData of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutputObject tag of created centerline

 


 
UF_DRF_create_cpt_cline_fcir (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a full circular centerline using the center point
method (centerline type UF_DRF_cpt_cline_fcir).

Return
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

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_pointInputData of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutputObject tag of created centerline

 


 
UF_DRF_create_cpt_cline_pbolt (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a partial bolt circle centerline using the center
point method (centerline type UF_DRF_cpt_cline_pbolt).

Return
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

Environment
Internal and External

See Also
Refer to the example
UF_DRF_create_cpt_cline_pcir
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_pointInputData of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutputObject tag of created centerline

 


 
UF_DRF_create_cpt_cline_pcir (view source)
 
Defined in: uf_drf.h
 
Overview
n
Creates and displays a partial circular centerline using the center
point method (centerline type UF_DRF_cpt_cline_pcir).

Return
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

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_objsInputnumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_pointInputData of object selected for centerline center
point (see uf_drf_types.h)
tag_t*centerline_tagOutputObject tag of created centerline

 


 
UF_DRF_create_crosshatch (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a crosshatch.


b1 b5 b9
--------- ---------- -------------------------
| | | | | |
| | | | | |
b2 | | b4 b6 | | b8 b10 | | b13
| | | | | |
| | | | | |
--------- ---------- -----------!-------------
b3 b7 b11 b12
Loop1 Loop2 Loop3
Input -
num_bounds - Number of loops = 3
{ Loop1, Loop2, Loop3 }
num_obj_bnd - Array of int which contains number of
curve in each boundary
{ 4, 4, 5 }
object_list - tags of curve which forms loop
{ b1, b2, b3, b4, b5, b6
b7, b8, b9, 10, b11,b12, b13 }

Environment
Internal and External

See Also
Refer to the example
 
Required License(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
)
intnum_boundsInputNumber of crosshatch boundaries
int*num_obj_bndInputList 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_tobject_list [ ] InputList 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_tview_tagInputMember view tag
tag_t*crosshatch_tagOutputObject tag of created crosshatch.

 


 
UF_DRF_create_custom_symbol_instance (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External

See Also
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

History
Created in V18.0.3
 
Required License(s)
drafting

 
int UF_DRF_create_custom_symbol_instance
(
const UF_DRF_custom_symbol_t * symbol_definition,
tag_t * new_symbol_tag
)
const UF_DRF_custom_symbol_t *symbol_definitionInputStructure containing
data necessary for
custom symbol definition
tag_t *new_symbol_tagOutputThe tag of the new
custom symbol instance

 


 
UF_DRF_create_cylindrical_dim (view source)
 
Defined in: uf_drf.h
 
Overview
n
Creates and displays a cylindrical dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputData 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_tobject2InputData of second object
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created cylindrical dimension

 


 
UF_DRF_create_diameter_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a diameter dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobjectInputData of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created diameter dimension

 


 
UF_DRF_create_foldedradius_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a folded radius dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputData of first object (see uf_drf_types.h)
Valid object types: arc, bolt circle, circular
centerline, cylindrical face
UF_DRF_object_p_tobject2InputData 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
doublefold_location [ 3 ] InputFold location in wcs coordinates
doublefold_angleInputFold angle in degrees
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created linear dimension initialized to
NULL_TAG because legacy programs processed
returned NULL_TAG as an error.

 


 
UF_DRF_create_gdt_symbol (view source)
 
Defined in: uf_drf.h
 
Overview
n
Creates and displays a GD&T symbol.

Environment
Internal and External

See Also
Refer to the example

History
V17 - Added the ability to attach datums to annotations or leader stubs.
 
Required License(s)
drafting

 
int UF_DRF_create_gdt_symbol
(
int num_lines_text,
char text_string [ ] [ MAX_LINE_BUFSIZE ] ,
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
)
intnum_lines_textInputNumber of lines of text
chartext_string [ ] [ MAX_LINE_BUFSIZE ] InputAssociated text string
doubleorigin_3d [ 3 ] Input3d object origin in wcs coordinates
UF_DRF_leader_type_tleader_typeInputLeader 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_typeInputLeader 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_tobjectInputData 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.
doublemodel_pos_3d [ 3 ] Input3d 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_cornerInputFrame 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_tagOutputObject tag of created gdt symbol.

 


 
UF_DRF_create_gdt_symbol_with_multiple_leaders (view source)
 
Defined in: uf_drf.h
 
Overview
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_BUFSIZE]
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

Environment
Internal and External

History
Original release was in NX 1.0.3.2 and NX 2
 
Required License(s)
drafting

 
int UF_DRF_create_gdt_symbol_with_multiple_leaders
(
const int num_lines_text,
const char text_string [ ] [ MAX_LINE_BUFSIZE ] ,
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_textInputThe number of lines of text
in the GD&T.
const chartext_string [ ] [ MAX_LINE_BUFSIZE ] InputThe lines of text.
const doublegdt_symbol_origin [ 3 ] InputThe GD&T symbol's origin.
const UF_DRF_gdt_leader_t *leaderInputThe GD&T symbol's leader
line information.
const UF_DRF_frame_corner_tframe_cornerInputValid when leader_type is
UF_DRF_leader_type_ext_line
tag_t * constgdt_symbol_tagOutputObject tag of
created GD&T symbol.

 


 
UF_DRF_create_hole_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a hole dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobjectInputData of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created hole dimension

 


 
UF_DRF_create_horizontal_baseline_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a horizontal baseline dimension.

Return
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

Environment
Internal and External

History
Originally released in v18.0
 
Required License(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_setInputArray of associated objects to be dimensioned.
intnum_of_objectsInputNumber of associated objects in array.
doubledimension_3d_origin [ 3 ] Input3d dimension set origin in absolute coordinates.
tag_t *dimension_tagOutputObject tag of created dimension set.

 


 
UF_DRF_create_horizontal_chain_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a horizontal chain dimension.

Return
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

Environment
Internal and External

History
Originally released in v18.0
 
Required License(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_setInputArray of associated objects to be dimensioned.
intnum_of_objectsInputNumber of associated objects in array.
doubledimension_3d_origin [ 3 ] Input3d dimension set origin in absolute coordinates.
tag_t *dimension_tagOutputObject tag of created dimension set.

 


 
UF_DRF_create_horizontal_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a horizontal dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputData 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_tobject2InputData of second object
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created horizontal dimension

 


 
UF_DRF_create_id_symbol (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an ID symbol.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
drafting

 
int UF_DRF_create_id_symbol
(
UF_DRF_id_symbol_type_t id_symbol_type,
const char* upper_text_string,
const 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_typeInputid 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
const char*upper_text_stringInputUpper text string (maximum
MAX_ID_SYM_TEXT_LENGTH characters)
const char*lower_text_stringInputLower text string (maximum
MAX_ID_SYM_TEXT_LENGTH characters)
doubleorigin_3d [ 3 ] Input3d object origin in wcs coordinates
UF_DRF_leader_mode_tleader_modeInputLeader mode
UF_DRF_without_leader = without leader
UF_DRF_with_leader = with leader
UF_DRF_leader_attach_type_tleader_attach_typeInputLeader attachment type
UF_DRF_leader_attach_object =
attached to object
UF_DRF_leader_attach_screen =
screen position
UF_DRF_object_p_tobjectInputData 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.
doublemodel_pos_3d [ 3 ] Input3d 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_tagOutputObject tag of created id symbol.

 


 
UF_DRF_create_image (view source)
 
Defined in: uf_drf.h
 
Overview
Create an image from an existing image in the part

Returns
UF_DRF_NO_ERRORS if the image was created

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_create_image
(
char * image_name,
tag_t drawing_sheet,
double origin [ 3 ] ,
tag_t * image
)
char *image_nameInputName of image in part file
tag_tdrawing_sheetInputThe drawing sheet on which to create the
image or NULL_TAG to create the image on
the current drawing sheet.
doubleorigin [ 3 ] InputOrigin of new image in drawing sheet units
tag_t *imageOutputImage tag if successful or
NULL_TAG if creation failed

 


 
UF_DRF_create_image_from_file (view source)
 
Defined in: uf_drf.h
 
Overview
Create an image from a jpg, png or tif file

Returns
UF_DRF_NO_ERRORS if the image was created

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_create_image_from_file
(
char * file_name,
tag_t drawing_sheet,
double origin [ 3 ] ,
tag_t * image
)
char *file_nameInputName of jpg, png or tif file to use to create
image
tag_tdrawing_sheetInputThe drawing sheet on which to create the
image or NULL_TAG to create the image on
the current drawing sheet.
doubleorigin [ 3 ] InputOrigin of new image in drawing sheet units
tag_t *imageOutputImage tag if successful or
NULL_TAG if creation failed

 


 
UF_DRF_create_label (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a label.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
drafting

 
int UF_DRF_create_label
(
int num_lines_text,
char text_string [ ] [ MAX_LINE_BUFSIZE ] ,
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
)
intnum_lines_textInputNumber of lines of text
chartext_string [ ] [ MAX_LINE_BUFSIZE ] InputAssociated text string
doubleorigin_3d [ 3 ] Input3d object origin in wcs coordinates
UF_DRF_leader_attach_type_tleader_attach_typeInputLeader attachment type
UF_DRF_leader_attach_object =
attached to object
UF_DRF_leader_attach_screen =
screen position
UF_DRF_object_p_tobjectInputData 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.
If object->object_tag is NULL_TAG then UF_DRF_leader_attach_screen should be used as
leader_attach_type so object should also be NULL for this case.
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.
doublemodel_pos_3d [ 3 ] Input3d 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_tagOutputObject tag of created label.

 


 
UF_DRF_create_linear_cline (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a linear centerline (centerline type UF_DRF_linear_cline).

Return
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

Environment
Internal and External

See Also
Refer to the example

History
In NX4, the centerline angle is inherited from the auxiliary view
hinge line when the session setting has that option enabled.
 
Required License(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_objsInputNumber of centerline objects in cline_obj_list
Maximum is MAX_CENTERLINE_OBJECTS, currently 100
UF_DRF_object_t*cline_obj_listInputArray 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_tagOutputObject tag of created centerline

 


 
UF_DRF_create_non_assoc_hatch (view source)
 
Defined in: uf_drf.h
 
Overview
Create a non-associative crosshatch. Useful for translating data from
other system or forms, e.g. IGES, that do not support associative
crosshatching.

Return
Returns standard error codes, with success == UF_DRF_NO_ERRORS.

Environment
Internal and External

History
-
 
Required License(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
)
intnum_linesInputnumber of hatch lines =
sizeof(hatch_lines)/4
double *hatch_linesInputnum_lines
crosshatch lines ([x1, y1, x2, y2])
quadruples As with all annotations
the coordinates are in the
coordinater system of the matrix
tag_tmatrixInputmatrix for crosshatch
if NULL_TAG then the matrix of the
WCS is used
tag_tviewInputview of crosshatch
if NULL_TAG then the crosshatch is
not view dependent
intcolorInputcolor
intline_widthInputline width
tag_p_tnew_hatchOutputcrosshatch created or NULL_TAG if
error

 


 
UF_DRF_create_note (view source)
 
Defined in: uf_drf.h
 
Overview
Creates either a horizontal or vertical note and displays it.

Return
Return Codes
UF_DRF_no_text
UF_DRF_null_object_structure
UF_DRF_null_object
UF_DRF_invalid_object
UF_err_program_not_initialized

Environment
Internal and External

History
This function was originally released in V14.0.1
 
Required License(s)
drafting

 
int UF_DRF_create_note
(
int num_lines_text,
char* text_string [ ] ,
double origin_3d [ 3 ] ,
int orientation,
tag_t* note_tag
)
intnum_lines_textInputNumber of lines of text
char*text_string [ ] Inputassociated text strings
doubleorigin_3d [ 3 ] Input3d object origin in WCS coordinates
intorientationInputOrientation of the note:
0 - Horizontal
1 - Vertical
tag_t*note_tagOutputObject tag of created note. Initialized to
NULL_TAG.

 


 
UF_DRF_create_offctrpt_cx (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External

See Also
See the example
This example creates an offset centerpoint on the x-axis a specified
distance from the arc center.
 
Required License(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_objectInputObject associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInputDistance value from arc center
tag_t*offctrpt_tagOutputObject tag of created offset center point

 


 
UF_DRF_create_offctrpt_cy (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External

See Also
See the example
This example creates an offset centerpoint on the y-axis at a
specified distance from the arc center.
 
Required License(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_objectInputObject associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInputDistance value from arc center
tag_t*offctrpt_tagOutputObject tag of created offset center point

 


 
UF_DRF_create_offctrpt_fx (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an offset center point on the x-axis and
calculates the offset distance ("centerline" type
UF_DRF_offctrpt_fx).

Return
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

Environment
Internal and External

See Also
See the example
This example creates an offset centerpoint on the x-axis and
calculates the offset distance.
 
Required License(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_objectInputObject associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
UF_DRF_object_p_tcenter_pointInputData of object selected for calculating
distance to be used in placing offset center
point (see uf_drf_types.h)
tag_t*offctrpt_tagOutputObject tag of created offset center point

 


 
UF_DRF_create_offctrpt_fy (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an offset center point on the y-axis and
calculates the offset distance ("centerline" type UF_DRF_offctrpt_fy).

Return
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

Environment
Internal and External

See Also
See the example
This example creates an offset centerpoint on the y-axis and
calculates the offset distance.
 
Required License(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_objectInputObject associated to the centerline (see
uf_drf_types.h) Valid object types: arc, curved
solid curve
UF_DRF_object_p_tcenter_pointInputData of object selected for calculating
distance to be used in placing offset center
point (see uf_drf_types.h)
tag_t*offctrpt_tagOutputObject tag of created offset center point

 


 
UF_DRF_create_offctrpt_nx (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_objectInputObject associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInputDistance value from arc normal
tag_t*offctrpt_tagOutputObject tag of created offset center point

 


 
UF_DRF_create_offctrpt_ny (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External

See Also
See the example
This example creates an offset centerpoint on the y-axis at a
specified distance from the arc normal.
 
Required License(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_objectInputObject associated to the centerline (see
uf_drf_types.h) Valid object types: arc,
curved solid curve
const doubledistanceInputDistance value from arc normal
tag_t*offctrpt_tagOutputObject tag of created offset center point

 


 
UF_DRF_create_offcyl_cline_obj (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External

See Also
See the example
This example creates an offset cylindrical centerline and
calculates the offset distance from an object.
 
Required License(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_tobject1InputFirst object associated to the centerline (see
uf_drf_types.h) Valid object types: point, arc,
solid curve
UF_DRF_object_p_tobject2InputSecond object associated to the centerline
UF_DRF_object_p_tcenter_pointInputData of object selected for calculating offset
distance (see uf_drf_types.h)
tag_t*centerline_tagOutputObject tag of created centerline

 


 
UF_DRF_create_offcyl_cline_off (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputFirst object associated to the centerline (see
uf_drf_types.h) Valid object types: point, arc,
solid curve
UF_DRF_object_p_tobject2InputSecond object associated to the centerline
const doubledistanceInputOffset distance value
tag_t*centerline_tagOutputObject tag of created centerline

 


 
UF_DRF_create_orddimension (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an ordinate dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tmargin_origin_tagInputMargin or origin tag
intdimension_typeInputType of dimension (required when
margin_origin_tag is origin, ignored otherwise)
1 = horizontal
2 = vertical
UF_DRF_object_p_tobjectInputData 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
doubledogleg_angleInputDogleg angle in degrees (0.0 for no dogleg)
doubledogleg_distanceInputDogleg distance from dim point in wcs coordinates
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
inttext_origin_flagInputText origin flag
1 = center of total text box
2 = center of dimension text box
doubleorigin_3d [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created ordinate dimension.

 


 
UF_DRF_create_ordinate_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Create a horizontal or vertical ordinate dimension

Environment
Internal and External
 
Required License(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_tnp1InputObject identifier of the margin or ordinate origin.
intip2InputType of dimension if object is an origin:
1 = Horizontal
2 = Vertical
tag_tnp3InputObject to be dimensioned.
intip4InputType of associativity to the object
1 = Endpoint
2 = Arc center
3 = Tangency
4 = Utility symbol
intip5InputAssociativity 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
doublerp6InputDogleg angle in degrees ( 0.0 for no dogleg).
doublerp7InputDogleg distance from the dimension point in WCS units.
char *cp8InputDimension text string.
intip9InputNumber of lines of appended text.
charcp10 [ ] [ 133 ] InputArray of appended text strings.
intip11InputText origin flag:
1 = Center of total text box.
2 = Center of dimension text box
doublerp12 [ 3 ] InputX, Y and Z of origin in WCS coordinates.
tag_t *nr13OutputObject identifier of created dimension

 


 
UF_DRF_create_ordinate_margin (view source)
 
Defined in: uf_drf.h
 
Overview
Create an ordinate margin

Environment
Internal and External
 
Required License(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
)
intip1InputType of margin:
1 = Horizontal
2 = Vertical
tag_tnp2InputObject identifier of the ordinate origin.
tag_tnp3InputObject identifier of the line or a NULL_TAG.
doublerp4 [ 2 ] InputX, Y point on the margin, only used if no line object
is passed in.
doublerp5 [ 2 ] InputX, Y direction of the margin, only used if no line object
is passed in.
doublerp6InputOffset distance.
tag_t *nr7OutputObject identifier of the created margin.

 


 
UF_DRF_create_ordinate_origin (view source)
 
Defined in: uf_drf.h
 
Overview
Create an ordinate origin dimension

Environment
Internal and External
 
Required License(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_tnp1InputTag of the associated object.
intip2InputType of associativity to the associated object:
1 = endpoint
2 = arc center
3 = Utility symbol
intip3InputAssociativity 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
intip4InputPositive quadrant identifier, determines the signs of
the dimensions:
1 = Upper right
2 = Upper left
3 = Lower right
4 = Lower left
5 = all quadrants
intip5InputArrow and dimension line display for the ordinate origin:
1 = Don't display
2 = Display
intip6InputOrigin symbol display
1 = Display origin name
2 = No display
char *cp7InputEntity name.
tag_t *nr8OutputTag of the created dimension.

 


 
UF_DRF_create_ordmargin (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an ordinate margin.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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
)
intmargin_typeInputMargin type
1 = horizontal
2 = vertical
tag_tordinate_origin_tagInputOrdinate origin tag
UF_DRF_object_p_tobjectInputData of line object (see uf_drf_types.h)
doublemargin_xy_point [ 3 ] Inputx,y point on margin (required if the object_tag in
the object structure is null, ignored otherwise)
doublemargin_xy_direction [ 2 ] Inputx,y direction of margin (required if the
object_tag in the object structure is null,
ignored otherwise)
doubleoffset_distanceInputOffset distance
tag_t*margin_tagOutputObject tag of created ordinate margin.

 


 
UF_DRF_create_ordorigin (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays an ordinate origin.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobjectInputData 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
intpositive_quad_idInputPositive quadrant identifier determines signs of
dimensions
1 = upper right
2 = upper left
3 = lower right
4 = lower left
5 = all quadrants
intarr_dim_line_displayInputArrow and dimension line display
1 = no
2 = yes
intorigin_symbol_displayInputOrigin symbol display
1 = origin name
2 = no display
char*user_object_nameInputUser supplied object name
tag_t*origin_tagOutputObject tag of created ordinate origin.

 


 
UF_DRF_create_parallel_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a parallel dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputData 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_tobject2InputData of second object
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created parallel dimension

 


 
UF_DRF_create_perpendicular_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a perpendicular dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputData 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_tobject2InputData 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_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created dimension.

 


 
UF_DRF_create_radius_dim (view source)
 
Defined in: uf_drf.h
 
Overview
n
Creates and displays a radius dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobjectInputData of arc object (see uf_drf_types.h)
Valid object types: arc, circle solid curve, cylindrical face
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created radius dimension

 


 
UF_DRF_create_sbf_file (view source)
 
Defined in: uf_drf.h
 
Overview
Creates a Symbol Font Definition File and sets it as current.

Environment
Internal and External

History
This function was originally released in V14.0
via the Release Letter.
 
Required License(s)
drafting

 
int UF_DRF_create_sbf_file
(
const char sbf_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ]
)
const charsbf_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ] Inputname of file to be created (30
characters maximum)

 


 
UF_DRF_create_side_seam (view source)
 
Defined in: uf_drf.h
 
Overview
This function creates the side seam representation for the weld symbol

Environment
Internal and External

See Also
UF_DRF_weld_symbols_t
UF_DRF_create_weld_symbol

History
Originally released in v18.0
 
Required License(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_tweld_symbol_tagInputtag of the weld symbol for which
side seam has to be created
tag_tview_tagInputtag of the view for which side seam
has to be created
tag_tobjectInputobject used as guide curve for
creating side seam. These can be
any curve or a solid edge.
doublepoint [ 3 ] Inputabsolute co-ordinates of the point
at which the side seam has to be
created
UF_DRF_weld_symbols_p_tweld_symbol_dataInputpointer to weld symbol data which
defines the shape and size of the
side seam

 


 
UF_DRF_create_sym_cline (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a symmetrical centerline (centerline type
UF_DRF_symmetrical_cline).

Return
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

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputFirst object associated to the centerline (see
uf_drf_types.h) Valid object types: point, arc,
solid curve
UF_DRF_object_p_tobject2InputSecond object associated to the centerline
tag_t*centerline_tagOutputObject tag of created centerline

 


 
UF_DRF_create_symbol_font (view source)
 
Defined in: uf_drf.h
 
Overview
Creates a symbol font object and saves it in the current SBF file.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
drafting

 
int UF_DRF_create_symbol_font
(
const char symbol_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ] ,
double symbol_factor,
const double symbol_anchor [ 3 ] ,
const double symbol_orient [ 3 ] ,
int num_objects,
tag_t object [ ]
)
const charsymbol_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ] Inputsymbol name
doublesymbol_factorInputsymbol factor
const doublesymbol_anchor [ 3 ] Inputmodel space x,y,z of anchor point
const doublesymbol_orient [ 3 ] Inputmodel space x,y,z of orientation point
intnum_objectsInputnumber of objects composing this symbol
Maximum allowed is 512
tag_tobject [ ] Inputnum_objects list of object tags

 


 
UF_DRF_create_top_seam (view source)
 
Defined in: uf_drf.h
 
Overview
This function creates the top seam representation for the weld symbol

Environment
Internal and External

See Also
UF_DRF_weld_symbols_t
UF_DRF_create_weld_symbol

History
Originally released in v18.0
 
Required License(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_tweld_symbol_tagInputtag of the weld symbol for which
top seam has to be created
tag_tview_tagInputtag of the view for which top seam
has to be created
intnum_objectsInputnumber of objects to be used for
creating the top seam
tag_p_tobjectsInputnum_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
logicalflipInputflag for direction reversal
0 = no
1 = yes
UF_DRF_weld_symbols_p_tweld_symbol_dataInputpointer to weld symbol data which
defines the shape and size of the
top seam

 


 
UF_DRF_create_vertical_baseline_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a vertical baseline dimension.

Return
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

Environment
Internal and External

History
Originally released in v18.0
 
Required License(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_setInputArray of associated objects to be dimensioned.
intnum_of_objectsInputNumber of associated objects in array.
doubledimension_3d_origin [ 3 ] Input3d dimension set origin in absolute coordinates.
tag_t *dimension_tagOutputObject tag of created dimension set.

 


 
UF_DRF_create_vertical_chain_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a vertical chain dimension.

Return
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

Environment
Internal and External

History
Originally released in v18.0
 
Required License(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_setInputArray of associated objects to be dimensioned.
intnum_of_objectsInputNumber of associated objects in array.
doubledimension_3d_origin [ 3 ] Input3d dimension set origin in absolute coordinates.
tag_t *dimension_tagOutputObject tag of created dimension set.

 


 
UF_DRF_create_vertical_dim (view source)
 
Defined in: uf_drf.h
 
Overview
Creates and displays a vertical dimension.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tobject1InputData 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_tobject2InputData of second object
UF_DRF_text_t*drf_textInputAssociated text (see uf_drf_types.h)
doubledimension_3d_origin [ 3 ] Input3d dimension origin in wcs coordinates
tag_t*dimension_tagOutputObject tag of created vertical dimension

 


 
UF_DRF_create_weld_symbol (view source)
 
Defined in: uf_drf.h
 
Overview
Creates the weld symbol.

Return
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
UF_DRF_INVALID_WELD_TYPE The specified weld type
is not supported in UF

Environment
Internal and External

See Also
UF_DRF_ weld_symbols_t
UF_DRF_object_t

History
Originally released in v18.0
 
Required License(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
)
doubleorigin_3d [ 3 ] Input3d object origin in absolute coordinates
UF_DRF_leader_attach_type_tleader_attach_typeInputLeader attachment type
UF_DRF_leader_attach_object =
attached to object
UF_DRF_leader_attach_screen =
screen position
UF_DRF_object_p_tobjectInputData of object to attach leader
(see uf_drf_types.h). Valid object types:
point, line, arc, conic, cubic spline,
B curve, and solid curve.
doublemodel_pos_3d [ 3 ] Input3d 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_dataInputpointer to the weld symbol structure
tag_p_tweld_symbol_tagOutputtag of the weld symbol created

 


 
UF_DRF_create_xhatch (view source)
 
Defined in: uf_drf.h
 
Overview
Create a crosshatching

Environment
Internal and External

Return
Void

See Also
UF_DRF_create_crosshatch
 
Required License(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_typeInputThe type of operation:
1 = Cross hatching
2 = Area fill
3 = Solid fill
int *nmbndsInputThe number of crosshatch boundaries.
int *numelsInputAn 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 *elemsInputArray of curve or point tags the make up each of the boundaries.
A boundary object tag may be included in the array.
tag_t *xhat_eidOutputThe object identifier of the created crosshatch.
int *rtcOutputThe return code from the operation.

 


 
UF_DRF_edit_dim_assoc (view source)
 
Defined in: uf_drf.h
 
Overview
Edits the associativity of a selected dimension. This is applicable to
changing a retained dimension by reassociating the dimension to
up-to-date geometry.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_tdimension_tagInputTag of dimension whose associativity is being
edited.
doubleold_leader_position [ 3 ] InputPosition on associated object to be replaced
(arrow location).
- drawing coordinates if on drawing
- model space coordinates if in model
doublenew_leader_position [ 3 ] InputPosition on new associated object to attach to.
intnew_assoc_typeInputType 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_objectInputData 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
UF_DRF_weld_symbols_t
UF_DRF_object_t
UF_DRF_create_weld_symbol

History
Originally released in v18.0
 
Required License(s)
drafting

 
int UF_DRF_edit_weld_symbol
(
tag_t weld_symbol_tag,
UF_DRF_weld_symbols_p_t weld_symbol_data
)
tag_tweld_symbol_tagInputtag of the weld symbol to be edited
UF_DRF_weld_symbols_p_tweld_symbol_dataInputpointer to new weld symbol data

 


 
UF_DRF_flip_image_about_height (view source)
 
Defined in: uf_drf.h
 
Overview
Flip the image about the direction of its height.

Returns
UF_DRF_NO_ERRORS if the image edit was successful

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_flip_image_about_height
(
tag_t image
)
tag_timageInputImage to edit

 


 
UF_DRF_flip_image_about_width (view source)
 
Defined in: uf_drf.h
 
Overview
Flip the image about the direction of its width.

Returns
UF_DRF_NO_ERRORS if the image edit was successful

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_flip_image_about_width
(
tag_t image
)
tag_timageInputImage to edit

 


 
UF_DRF_frdim (view source)
 
Defined in: uf_drf.h
 
Overview
Create a folded radius

Environment
Internal and External

Return
Void
 
Required License(s)
drafting

 
void UF_DRF_frdim
(
tag_t np1,
tag_t np2,
int ip3,
int ip4,
double * rp5,
double rp6,
const char * cp7,
int ip8,
const UF_DRF_one_apptext_line_t cp9 [ ] ,
double rp10 [ 3 ] ,
tag_t * nr11,
int * error
)
tag_tnp1InputObject identifier of an Arc, bolt circle or circular CLINE.
tag_tnp2InputObject identifier of offset center point (point, line, solid
edge, offse center point, cylindrical center line, symmetrical
center line, target point or intersection point.
intip3InputType of associativity:
1 = endpoint
2 = Arc center
3 = Tangency
intip4InputAssociativity 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 *rp5InputFold location in WCS coordinates.
doublerp6InputFold angle in degrees.
const char *cp7InputDimension text string.
intip8InputNumber of lines of appended text.
const UF_DRF_one_apptext_line_tcp9 [ ] InputArray of appended text strings.
doublerp10 [ 3 ] InputX, Y and Z of object origin in WCS coordinates.
tag_t *nr11OutputObject identifier of the created folded radius dimension.
int *errorOutputError return, 0 for success.

 


 
UF_DRF_free_appended_text (view source)
 
Defined in: uf_drf.h
 
Overview
The following function will free the appended text data returned from
UF_DRF_ask_appended_text

Environment
Internal & External

See Also
UF_DRF_ask_appended_text
UF_DRF_appended_text_t

History
Created in V17.0
 
Required License(s)
drafting

 
int UF_DRF_free_appended_text
(
int num_text,
UF_DRF_appended_text_p_t appended_text
)
intnum_textInputNumber of appended text
UF_DRF_appended_text_p_tappended_textInputAppended text

 


 
UF_DRF_free_centerline (view source)
 
Defined in: uf_drf.h
 
Overview
Frees the memory used for storing centerline data.

Environment
Internal and External

See Also
Refer to the example

History
Original release was in V13.0.
 
Required License(s)
drafting

 
int UF_DRF_free_centerline
(
UF_DRF_centerline_info_t * * centerline_info
)
UF_DRF_centerline_info_t * *centerline_infoInputCenterline information (see
uf_drf_types.h)

 


 
UF_DRF_free_comp_data (view source)
 
Defined in: uf_drf.h
 
Overview
This function will free the data returned from UF_DRF_record_draft_objects.

Returns
UF_DRF_NO_ERRORS

Environment
Internal & External

History
Created in NX4.0
 
Required License(s)
drafting

 
int UF_DRF_free_comp_data
(
void * objs
)
void *objsInputDrafting object data from UF_DRF_record_draft_objects

 


 
UF_DRF_free_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Frees the memory used for storing the dimension information of the
data object.

Environment
Internal and External

See Also
Refer to the example

History
Original release was in V13.0.
 
Required License(s)
drafting

 
int UF_DRF_free_dimension
(
UF_DRF_dim_info_t * * dim_info
)
UF_DRF_dim_info_t * *dim_infoInputDimension information (see
UF_DRF_dim_info_p_t)

 


 
UF_DRF_free_dimension_preferences1 (view source)
 
Defined in: uf_drf.h
 
Overview
The following function will free the dimension preferences data returned from
UF_DRF_ask_dimension_preferences1

History
Originally released in NX7.5
 
Required License(s)
gateway

 
int UF_DRF_free_dimension_preferences1
(
UF_DRF_dimension_preferences1_p_t dimension_preferences
)
UF_DRF_dimension_preferences1_p_tdimension_preferencesInputpointer to preferences structure to be freed

 


 
UF_DRF_free_font (view source)
 
Defined in: uf_drf.h
 
Overview
Frees the memory used for storing user symbol font information.

Environment
Internal and External

See Also
Refer to the example

History
Original release was in V13.0.
 
Required License(s)
drafting

 
int UF_DRF_free_font
(
int num_fonts,
UF_DRF_ud_symbol_font_info_t * * font_info
)
intnum_fontsInputNumber of User Defined Symbol blocks
UF_DRF_ud_symbol_font_info_t * *font_infoInputData 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Frees the memory used for storing the GD & T symbol information.

Environment
Internal and External

See Also
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.

History
Original release was in V13.0.
 
Required License(s)
drafting

 
int UF_DRF_free_gdtsymbol
(
UF_DRF_gdt_symbol_info_t * * gdt_symbol_info
)
UF_DRF_gdt_symbol_info_t * *gdt_symbol_infoInputGD&T Symbol information (see
uf_drf_types.h)

 


 
UF_DRF_free_idsymbol (view source)
 
Defined in: uf_drf.h
 
Overview
Frees the memory used for storing the ID symbol information.

Environment
Internal and External

See Also
Refer to the example

History
Original release was in V13.0.
 
Required License(s)
drafting

 
int UF_DRF_free_idsymbol
(
UF_DRF_id_symbol_info_t * * id_symbol_info
)
UF_DRF_id_symbol_info_t * *id_symbol_infoInputID Symbol information (see
uf_drf_types.h)

 


 
UF_DRF_free_image_data (view source)
 
Defined in: uf_drf.h
 
Overview
Free the image data

Returns
UF_DRF_NO_ERRORS if the image data free was successful

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_free_image_data
(
UF_DRF_image_data_t * data
)
UF_DRF_image_data_t *dataInputImage data pointer to free

 


 
UF_DRF_free_label (view source)
 
Defined in: uf_drf.h
 
Overview
Frees label information memory.

Environment
Internal and External

See Also
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.

History
Original release was in V13.0.
 
Required License(s)
drafting

 
int UF_DRF_free_label
(
UF_DRF_label_info_t * * label_info
)
UF_DRF_label_info_t * *label_infoInputLabel information (see UF_DRF_label_info_p_t)

 


 
UF_DRF_free_leader_data (view source)
 
Defined in: uf_drf.h
 
Overview
This function will free a UF_DRF_leader_data_p_t

Returns
UF_DRF_NO_ERRORS

Environment
Internal & External

History
Created in NX3.0.2
 
Required License(s)
gateway

 
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 (view source)
 
Defined in: uf_drf.h
 
Overview
Frees the memory used for storing text data information.

Environment
Internal and External

See Also
Refer to the example

History
Original release was in V13.0.
 
Required License(s)
drafting

 
int UF_DRF_free_text
(
int num_text,
UF_DRF_draft_aid_text_info_t * * text_info
)
intnum_textInputNumber of text strings
UF_DRF_draft_aid_text_info_t * *text_infoInputPointer to data structure which
contains drafting aid text
information (see uf_drf_types.h)

 


 
UF_DRF_get_symbol_divider (view source)
 
Defined in: uf_drf.h
 
Overview
Find the location of a symbol inside of a drafting text.

Environment
Internal and External

See Also
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
UF_DRF_get_text_substring
 
Required License(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_numberInputThe segment of the text to get.
int *ann_dataInputThe data defining the drafting object.
See UF_DRF_ask_ann_data.
int *divider_instanceInputCount to the substring that is to be used.
doublestart_point [ 2 ] OutputX and Y coordinates of the start point.
doubleend_point [ 2 ] OutputX and Y coordinates of the end point.

 


 
UF_DRF_get_text_bars (view source)
 
Defined in: uf_drf.h
 
Overview
Return the location where a fraction bar or underline bar or
overline bar should be drawn for text.

Environment
Internal and External

See Also
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
 
Required License(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_numberInputThe text segment number to work on.
int *ann_dataInputThe data defining the drafting object.
See UF_DRF_ask_ann_data.
int *number_of_barsOutputThe number of text bars in this drafting object.
int *bar_typeOutputAn array of types of text bars, one for each text bar.
1 = Under line
2 = Over line
int *offset_to_barOutputAn array of offsets to the text in the string where
the bar text ends.
doublebar_position [ 4 ] OutputAn 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Return the requested text substring of the drafting object.

Environment
Internal and External

See Also
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_set_draft_common
 
Required License(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_numberInputThe text segment number to work on.
int *ann_dataInputThe data defining the drafting object.
See UF_DRF_ask_ann_data.
int *substring_instanceInputThe substring number that we want to find.
int *text_typeOutputThe type of the substring:
0 = string
1 = superscript
2 = subscript
3 = symbol
int *number_of_substringOutputThe number of bytes in the returned substring.
char *substringOutputThe substring found.
doublesubstring_position [ 2 ] OutputThe x and y coordinates for the start of this
substring.
doublesubstring_characteristic [ 6 ] OutputSix 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Gets the crosshatch parameters.

Return
void

Environment
Internal and External
 
Required License(s)
drafting

 
void UF_DRF_get_xhatch_parms
(
tag_t * xhat_eid,
char mat_name [ UF_OBJ_NAME_BUFSIZE ] ,
int int_parms [ 9 ] ,
double real_parms [ 13 ] ,
int * rtc
)
tag_t *xhat_eidInputObject identifier of the desired crosshatch
charmat_name [ UF_OBJ_NAME_BUFSIZE ] OutputMaterial name of the crosshatch
intint_parms [ 9 ] OutputInteger 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
doublereal_parms [ 13 ] OutputReal 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 *rtcOutputReturn code:
1 = xhat_eid is not a hatch.

 


 
UF_DRF_has_associative_origin (view source)
 
Defined in: uf_drf.h
 
Overview
The following function will query the associative origin information for the
annotation.

Environment
Internal and External

See Also
UF_DRF_ask_associative_origin
UF_DRF_set_associative_origin

History
Created in V17.0
 
Required License(s)
drafting

 
int UF_DRF_has_associative_origin
(
tag_t drafting_entity,
logical * has_associative_origin
)
tag_tdrafting_entityInputDimension or drafting object to query.
logical *has_associative_originOutputResult of query

 


 
UF_DRF_inherit_feature_data (view source)
 
Defined in: uf_drf.h
 
Overview
This routine inherits feature annotation into user specified views on
a drawing.

Environment
Internal and External

See Also
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

History
Originally released in v18.0
 
Required License(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
)
intfeature_pre_v13_sketch_countInputnumber of features and pre-v13
sketches to be annotated
tag_p_tfeatures_pre_v13_sketchesInputfeature_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_occsInputfeature_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.
intview_countInputnumber of views to be annotated
tag_p_tviewsInputviews to be annotated
UF_DRF_inherit_type_tinherit_typeInputthe types of annotation to be inherited
Currently only UF_DRF_inherit_feature_parameters
is supported

 


 
UF_DRF_init_associativity_data (view source)
 
Defined in: uf_drf.h
 
Overview
The following function initialized the associativity structure on the
annotation object.

Environment
Internal or External

History
Originally released in V19.0
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
Initialize an Assorted Parts Arc Data Structure.

Environment
Internal and External
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
Initializes an Assorted Parts Arrow Data Structure.

Environment
Internal and External
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
Initializes an Assorted Parts Line Data Structure.

Environment
Internal and External
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
Initializes an Assorted Parts Text Data Structure.

Environment
Internal and External
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
Initialize the image data

Returns
UF_DRF_NO_ERRORS if the image data initialization was successful

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_init_image_data
(
UF_DRF_image_data_t * data
)
UF_DRF_image_data_t *dataOutputImage data to initialize

 


 
UF_DRF_init_line_object (view source)
 
Defined in: uf_drf.h
 
Overview
Initializes a line object structure.

Environment
Internal and External

See Also
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.

History
Original release was in V14.0.
 
Required License(s)
drafting

 
int UF_DRF_init_line_object
(
UF_DRF_line_object_t * line_object
)
UF_DRF_line_object_t *line_objectOutputLine 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Initialize an UF_DRF_object_t structure (see uf_drf_types.h).

Environment
Internal and External

See Also
Refer to the example
UF_DRF_create_diameter_dim
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
Initializes a symbol data structure for creation.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
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
Return values include the following:
UF_DRF_NO_ERRORS
Other UF error codes

Environment
Internal and External

See Also
UF_DRF_is_sbf_symbol, UF_DRF_create_custom_symbol_instance

History
Created in V18.0.3
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
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
Return values include the following:
UF_DRF_NO_ERRORS
Other UF error codes

Environment
Internal and External

See Also
UF_DRF_create_custom_symbol_instance,

History
Created in V18.0.3
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
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
Return values include:
UF_DRF_NO_ERRORS
Other UF error codes

Environment
Internal and External

History
Created in V18.0.3
 
Required License(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 (view source)
 
Defined in: uf_drf.h
 
Overview
Gets a logical indicating whether the specified annotation is retained or not.

Return
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

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_is_annotation_retained
(
tag_t annotation,
logical * is_retained
)
tag_tannotationInputTag of the annotation
logical *is_retainedOutputRetained state of the annotation, TRUE
if the annotation is retained

 


 
UF_DRF_is_block_centerline (view source)
 
Defined in: uf_drf.h
 
Overview
Checks if the input tag is a block centerline.

Environment
Internal and External

History
Originally released in v19.0
 
Required License(s)
gateway

 
int UF_DRF_is_block_centerline
(
tag_t object_tag,
logical * is_block_cline
)
tag_tobject_tagInputtag of the centerline
logical *is_block_clineOutputa 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External
 
Required License(s)
gateway

 
int UF_DRF_is_chamfer_dimension
(
tag_t dim_tag,
logical * is_cham_dim
)
tag_tdim_tagInputtag of object
logical *is_cham_dimOutputTRUE if object is cham dim

 


 
UF_DRF_is_inherited_pmi (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal & External

History
Created in NX5.0
 
Required License(s)
drafting

 
int UF_DRF_is_inherited_pmi
(
tag_t annotation,
logical * inherited
)
tag_tannotationInputThe tag of the annotation object
logical *inheritedOutputTRUE if the tag is an inherited PMI

 


 
UF_DRF_is_narrow_dimension (view source)
 
Defined in: uf_drf.h
 
Overview
Ask if a dimension is narrow dimension

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

Environment
Internal and External

History
Originally released in V19.0
 
Required License(s)
gateway

 
int UF_DRF_is_narrow_dimension
(
tag_t dimension_tag,
logical * is_narrow_dimension
)
tag_tdimension_tagInputObject tag of any object
logical *is_narrow_dimensionOutputTrue if the dimension is narrow dimension

 


 
UF_DRF_is_object_out_of_date (view source)
 
Defined in: uf_drf.h
 
Overview
Queries the up-to-date status of an object. Currently, only two types
of objects are valid: views and drawings.

Environment
Internal & External:

See Also
UF_DRAW_ask_suppress_view_update
UF_DRAW_set_suppress_view_update
UF_DRAW_update_one_view
Refer to the example
 
Required License(s)
gateway

 
int UF_DRF_is_object_out_of_date
(
tag_t object,
logical * out_of_date
)
tag_tobjectInputThe view or drawing to query
logical *out_of_dateOutputThe status of the object, TRUE if the object
is out of date.

 


 
UF_DRF_is_pmi_display_instance (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal & External

History
Created in NX4.0
 
Required License(s)
gateway

 
int UF_DRF_is_pmi_display_instance
(
tag_t object,
logical * is_display_instance
)
tag_tobjectInputThe tag of the annotation object
logical *is_display_instanceOutputTRUE if the tag is a display instance

 


 
UF_DRF_is_sbf_symbol (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal & External

History
Created in V18.0
 
Required License(s)
gateway

 
int UF_DRF_is_sbf_symbol
(
tag_t symbol,
logical * is_sbf
)
tag_tsymbolInputA user defined symbol tag
logical *is_sbfOutputA 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Convert all V9 margin objects to centerline objects

Environment
Internal and External
 
Required License(s)
drafting

 
int UF_DRF_margin_to_cline
(
tag_t part_tag
)
tag_tpart_tagInputThe tag of an open part

 


 
UF_DRF_place_symbol (view source)
 
Defined in: uf_drf.h
 
Overview
Places a standalone symbol.

Environment
Internal and External

See Also
Refer to the example
 
Required License(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_dataInputsymbol data (see uf_drf_types.h)
logicalis_invertedInputTRUE = inverted symbol
logicalis_mirroredInputTRUE = mirrored symbol
tag_t *symbol_tagOutputtag of standalone symbol object

 


 
UF_DRF_record_draft_objects (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal & External

See Also
UF_DRF_are_draft_objects_const

History
Created in NX4.0
 
Required License(s)
drafting

 
int UF_DRF_record_draft_objects
(
void * * objs,
logical record_view_data
)
void * *objsOutput to UF_*free*Drafting objects
Must be freed by calling UF_DRF_free_comp_data
logicalrecord_view_dataInputShould view data be recorded?

 


 
UF_DRF_remove_controlling_exp (view source)
 
Defined in: uf_drf.h
 
Overview
Remove the link between drafting object and controlling expression

Environment
Internal and External

History
Originally released in V16.0
 
Required License(s)
drafting

 
int UF_DRF_remove_controlling_exp
(
tag_t object
)
tag_tobjectInputDrafting object

 


 
UF_DRF_render_arrowhead (view source)
 
Defined in: uf_drf.h
 
Overview
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
Return code:
0 = No error
not 0 = Error code

Possible return codes can include the following
UF_err_program_not_initialized

Environment
Internal and External

History
Written in V16.0
 
Required License(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_tpartInputpart for text
tag_tannInputCANNOT be NULL_TAG
UF_DRF_arrow_info_p_tarrow_infoInputarrowhead information
logicaluse_arrow_zInputIf 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_tableInputtable of rendering
functions
void *clientInputapplication client data
passed through to each
function in the render
table

 


 
UF_DRF_render_text (view source)
 
Defined in: uf_drf.h
 
Overview
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
Return code:
0 = No error
not 0 = Error code

Possible return codes can include the following
UF_err_program_not_initialized

Environment
Internal and External

History
Written in V16.0
 
Required License(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_tpartInputpart for text
tag_tannInputcan be NULL_TAG
intnum_linesInputnumber of lines of text
char * *textInputtext to "render"
UF_DRF_draft_aid_text_info_p_ttext_infoInputparameters to be used for
text
UF_DRF_render_table_p_trender_tableInputtable of rendering
functions
void *clientInputapplication client data,
passed through to each
function in the render
table

 


 
UF_DRF_rotate_image (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_rotate_image
(
tag_t image,
double angle
)
tag_timageInputImage to edit
doubleangleInputAngle in degrees to rotate image by
Must be in increments of 90-degrees

 


 
UF_DRF_set_annotation_template (view source)
 
Defined in: uf_drf.h
 
Overview
Set the template name which is to be used in UF_DRF_inherit_feature_data.

Environment
Internal and External

See Also
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

History
Originally released in v19.0
 
Required License(s)
drafting

 
int UF_DRF_set_annotation_template
(
char * annotation_template_name
)
char *annotation_template_nameInputthe 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal & External

See Also
UF_DRF_ask_appended_text
UF_DRF_appended_text_t


History
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.
 
Required License(s)
drafting

 
int UF_DRF_set_appended_text
(
tag_t dimension,
int num_text,
UF_DRF_appended_text_p_t appended_text
)
tag_tdimensionInputDimension object to query
intnum_textInputNumber of appended text
UF_DRF_appended_text_p_tappended_textInputAppended text

 


 
UF_DRF_set_areafill_angle (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the area fill angle for the specified area fill object.

Environment
Internal and External

See Also
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.
 
Required License(s)
drafting

 
int UF_DRF_set_areafill_angle
(
tag_t areafill_id,
double angle
)
tag_tareafill_idInputArea fill object identifier
doubleangleInputArea fill angle in radians

 


 
UF_DRF_set_areafill_material (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
drafting

 
int UF_DRF_set_areafill_material
(
tag_t areafill_id,
UF_DRF_valid_material_t material
)
tag_tareafill_idInputArea Fill object identifier
UF_DRF_valid_material_tmaterialInputArea Fill material type

 


 
UF_DRF_set_areafill_scale (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the area fill scale for the specified area fill object.

Environment
Internal and External

See Also
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.
 
Required License(s)
drafting

 
int UF_DRF_set_areafill_scale
(
tag_t areafill_id,
double scale
)
tag_tareafill_idInputArea fill object identifier
doublescaleInputArea fill scale

 


 
UF_DRF_set_associative_origin (view source)
 
Defined in: uf_drf.h
 
Overview
The following function will set the associative origin information for the
annotation.

Note that UF_DRF_ORIGIN_ALIGNED_WITH_ARROWS is not supported by this function.

Environment
Internal and External

See Also
UF_DRF_has_associative_origin
UF_DRF_ask_associative_origin

History
Created in V17.0
 
Required License(s)
drafting

 
int UF_DRF_set_associative_origin
(
tag_t drafting_entity,
UF_DRF_associative_origin_p_t origin_data,
double origin [ 3 ]
)
tag_tdrafting_entityInputDimension or drafting object to query.
UF_DRF_associative_origin_p_torigin_dataInputData used to define the associative origin.
doubleorigin [ 3 ] InputOrigin of the annotation in absolute coords.

 


 
UF_DRF_set_associativity_data (view source)
 
Defined in: uf_drf.h
 
Overview
The following function edit all of the associativities for the annotation
object.

Environment
Internal or External

History
Originally released in V19.0
 
Required License(s)
drafting

 
int UF_DRF_set_associativity_data
(
tag_t object,
int num_associativities,
UF_DRF_object_assoc_data_p_t associativity_data
)
tag_tobjectInputDrafting object or dimension to edit for this operation.
intnum_associativitiesInputThe number of associativities on the object in which to
edit for this operation.
UF_DRF_object_assoc_data_p_tassociativity_dataInputArray of new associativity information.

 


 
UF_DRF_set_chamfer_dimension_data (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External
 
Required License(s)
drafting

 
int UF_DRF_set_chamfer_dimension_data
(
tag_t cham_dim_tag,
UF_DRF_chamfer_dimension_data_t cham_dim_data
)
tag_tcham_dim_tagInputtag of cham dim
UF_DRF_chamfer_dimension_data_tcham_dim_dataInputcham dim prefs

 


 
UF_DRF_set_custom_symbol_angle (view source)
 
Defined in: uf_drf.h
 
Overview
Set the angle for a custom symbol instance.

Environment
Internal and External

History
Originally released in v19.0
 
Required License(s)
drafting

 
int UF_DRF_set_custom_symbol_angle
(
tag_t symbol_tag,
double angle
)
tag_tsymbol_tagInputtag of a custom symbol instance
doubleangleInputdouble representing the new angle for this instance

 


 
UF_DRF_set_custom_symbol_scale (view source)
 
Defined in: uf_drf.h
 
Overview
Set the symbol scale for a custom symbol instance.

Environment
Internal and External

History
Originally released in v19.0
 
Required License(s)
drafting

 
int UF_DRF_set_custom_symbol_scale
(
tag_t symbol_tag,
double scale
)
tag_tsymbol_tagInputtag of a custom symbol instance
doublescaleInputdouble value of the symbol scale

 


 
UF_DRF_set_customer_sbf_file (view source)
 
Defined in: uf_drf.h
 
Overview
Sets as current the customer default symbol font definition file.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
drafting

 
int UF_DRF_set_customer_sbf_file
(
void
)

 


 
UF_DRF_set_cyl_dim (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

See Also
Refer to the example

History
Original release was in V14.0.
 
Required License(s)
drafting

 
int UF_DRF_set_cyl_dim
(
tag_t dim_obj,
int double_flag,
int * status
)
tag_tdim_objInputTarget cylindrical dimension object identifier.
intdouble_flagInputDouble 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 *statusOutputReturn 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Sets preferences for the display of radial dimensions.

Environment
Internal & External

See Also
UF_DRF_ask_diameter_radius_preferences

History
Originally released in V16.0
 
Required License(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_preferencesInputpointer
to preferences structure
to be used to set the
diameter/radius
preferences

 


 
UF_DRF_set_dim_appended_text_space_factor (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
NX 2.0 release.
 
Required License(s)
drafting

 
int UF_DRF_set_dim_appended_text_space_factor
(
tag_t dimension,
double space_factor
)
tag_tdimensionInputdimension tag
doublespace_factorInputfactor for spacing between dimension and appended text

 


 
UF_DRF_set_dim_dim_line_space_factor (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
NX 2.0 release.
 
Required License(s)
drafting

 
int UF_DRF_set_dim_dim_line_space_factor
(
tag_t dimension,
double space_factor
)
tag_tdimensionInputdimension tag
doublespace_factorInputfactor for spacing between dimension and dimension line

 


 
UF_DRF_set_dim_inspection_type (view source)
 
Defined in: uf_drf.h
 
Overview
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
 
Required License(s)
drafting

 
int UF_DRF_set_dim_inspection_type
(
tag_t dim_tag,
UF_DRF_inspection_type_t inspection_type
)
tag_tdim_tagInputdimension tag
UF_DRF_inspection_type_tinspection_typeInputinspection type for the give dimension

 


 
UF_DRF_set_dim_reference_type (view source)
 
Defined in: uf_drf.h
 
Overview
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
 
Required License(s)
drafting

 
int UF_DRF_set_dim_reference_type
(
tag_t dim_tag,
UF_DRF_reference_symbol_type_t ref_type
)
tag_tdim_tagInputdimension tag
UF_DRF_reference_symbol_type_tref_typeInputreference type to be set to dimension

 


 
UF_DRF_set_dim_tolerance_text_space_factor (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
NX 2.0 release.
 
Required License(s)
drafting

 
int UF_DRF_set_dim_tolerance_text_space_factor
(
tag_t dimension,
double space_factor
)
tag_tdimensionInputdimension tag
doublespace_factorInputfactor for spacing between dimension and tolerance text

 


 
UF_DRF_set_dimension_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets dimension preferences for arrow and line formatting, type of
placement, tolerance and precision, and text orientation.

Environment
Internal & External

See Also
UF_DRF_ask_dimension_preferences
UF_DRF_dimension_preferences_t

History
Originally released in V16.0
 
Required License(s)
drafting

 
int UF_DRF_set_dimension_preferences
(
UF_DRF_dimension_preferences_p_t dimension_preferences
)
UF_DRF_dimension_preferences_p_tdimension_preferencesInputpointer to preferences structure to
be used to set dimension preferences

 


 
UF_DRF_set_dimension_preferences1 (view source)
 
Defined in: uf_drf.h
 
Overview
Sets dimension preferences for arrow and line formatting, type of
placement, tolerance and precision, and text orientation.

Environment
Internal & External

See Also
UF_DRF_ask_dimension_preferences
UF_DRF_dimension_preferences_t

History
Originally released in V8.0.1
 
Required License(s)
drafting

 
int UF_DRF_set_dimension_preferences1
(
UF_DRF_dimension_preferences1_p_t dimension_preferences
)
UF_DRF_dimension_preferences1_p_tdimension_preferencesInputpointer to preferences1 structure to
be used to set dimension preferences

 


 
UF_DRF_set_dimension_set_offset (view source)
 
Defined in: uf_drf.h
 
Overview
Set the offset of the dimension in a dimension set or the offset of all dimensions in the dimension set.

Return
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

Environment
Internal and External

History
Originally released in v18.0
 
Required License(s)
drafting

 
int UF_DRF_set_dimension_set_offset
(
tag_t dimension,
double offset
)
tag_tdimensionInputTag of the given dimension. If this tag is a tag of dimension set,
it will set offset for all dimensions in the set.
doubleoffsetInputDimension set offset of the given dimension.

 


 
UF_DRF_set_draft_common (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

See Also
UF_DRF_count_text_substring
UF_DRF_ask_ann_data
UF_DRF_get_text_substring
UF_DRF_get_symbol_divider
 
Required License(s)
drafting

 
int UF_DRF_set_draft_common
(
tag_t * object
)
tag_t *objectInputTag of the object to set the drafting common for.

 


 
UF_DRF_set_hatch_fill_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the preferences for crosshatching and area fill

Environment
Internal & External

See Also
UF_DRF_ask_preferences

History
Originally released in V16.0
 
Required License(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_preferencesInputpointer to
structure to be used
to set the hatch/fill
preferences

 


 
UF_DRF_set_image_align_position (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_set_image_align_position
(
tag_t image,
UF_DRF_align_position_t align_position
)
tag_timageInputImage to edit
UF_DRF_align_position_talign_positionInputNew image alignment position

 


 
UF_DRF_set_image_aspect_ratio_lock (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_set_image_aspect_ratio_lock
(
tag_t image,
logical lock_aspect_ratio
)
tag_timageInputImage to edit
logicallock_aspect_ratioInputTRUE to not allow the image's aspect ratio
to change

 


 
UF_DRF_set_image_height (view source)
 
Defined in: uf_drf.h
 
Overview
Edit the image height

Returns
UF_DRF_NO_ERRORS if the image edit was successful

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_set_image_height
(
tag_t image,
double height
)
tag_timageInputImage to edit
doubleheightInputNew image height in drawing sheet units

 


 
UF_DRF_set_image_width (view source)
 
Defined in: uf_drf.h
 
Overview
Edit the image width

Returns
UF_DRF_NO_ERRORS if the image edit was successful

Environment
Internal and External

See Also
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

History
This function was originally released in NX2.0.
 
Required License(s)
drafting

 
int UF_DRF_set_image_width
(
tag_t image,
double width
)
tag_timageInputImage to edit
doublewidthInputNew image width in drawing sheet units

 


 
UF_DRF_set_lettering_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the lettering preferences for dimension, appended, tolerance and
general (notes, id symbols, etc,) text.

Environment
Internal & External

See Also
UF_DRF_ask_lettering_preferences
UF_DRF_lettering_preferences_t

History
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.
 
Required License(s)
drafting

 
int UF_DRF_set_lettering_preferences
(
UF_DRF_lettering_preferences_p_t lettering_preferences
)
UF_DRF_lettering_preferences_p_tlettering_preferencesInputpointer to
preferences structure
which will be used
to set the lettering
preferences

 


 
UF_DRF_set_line_arrow_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets preferences that apply to leaders, arrows and extension lines for both
dimensions and other annotations

Environment
Internal & External

See Also
UF_DRF_ask_line_arrow_preferences
UF_DRF_line_arrow_preferences_t

History
Originally released in V16.0
 
Required License(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_preferencesInputpointer to preferences structure to be
used to set the line/arrow preferences

 


 
UF_DRF_set_narrow_dimension_data (view source)
 
Defined in: uf_drf.h
 
Overview
Set narrow dimension parameters for a linear dimension.

Return
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

Environment
Internal and External

History
Originally released in V19.0
 
Required License(s)
drafting

 
int UF_DRF_set_narrow_dimension_data
(
tag_t dimension_tag,
UF_DRF_narrow_dimension_info_p_t narrow_data
)
tag_tdimension_tagInputObject tag of a linear dimension
UF_DRF_narrow_dimension_info_p_tnarrow_dataInputData of narrow dimension preferences

 


 
UF_DRF_set_object_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the object preferences for a specified annotation.

Return
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

Environment
Internal and External

See Also
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

History
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.
 
Required License(s)
drafting

 
int UF_DRF_set_object_preferences
(
tag_t drf_object_tag,
int mpi [ 100 ] ,
double mpr [ 70 ] ,
const char * radius_val,
const char * diameter_val
)
tag_tdrf_object_tagInputDrafting object Identifier
intmpi [ 100 ] InputMPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
doublempr [ 70 ] InputMPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
const char *radius_valInputRadius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_val[27];
const char *diameter_valInputDiameter 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Set the new origin of the annotation object.

Return
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

Environment
Internal and External

History
Written in V16.0
 
Required License(s)
drafting

 
int UF_DRF_set_origin
(
tag_t annotation,
double new_origin [ 3 ]
)
tag_tannotationInputTag of the annotation to modify.
doublenew_origin [ 3 ] InputNew origin in model coordinates for the annotation.

 


 
UF_DRF_set_plot_drawing_images (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal and External

See Also
UF_DRF_create_image_from_file
UF_DRF_create_image

History
This function was originally released in NX3.0.
 
Required License(s)
drafting

 
int UF_DRF_set_plot_drawing_images
(
logical plot_images
)
logicalplot_imagesInputTRUE to plot raster images on drawing sheets
FALSE to not plot raster images on drawing sheets

 


 
UF_DRF_set_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Uses the arrays and character strings to set the drafting parameters.

Return
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

Before NX5 there was only one preference for dimension text orientation. In NX5, a
separate preference for Ordinate dimension text orientation was added. The Open C API
was not enhanced. UF_DRF_set_preferences will set both the general text orientation
and the ordinate text orientation with the same value. This was done so legacy programs
would continue to work.

Environment
Internal and External

See Also
UF_DRF_ask_preferences
UF_DRF_ask_object_preferences
UF_DRF_set_object_preferences
Refer to the example
See drafting paramters

History
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.
 
Required License(s)
drafting

 
int UF_DRF_set_preferences
(
int mpi [ 100 ] ,
double mpr [ 70 ] ,
const char * radius_val,
const char * diameter_val
)
intmpi [ 100 ] InputMPI Array [100 elements]
The size of this array is defined by NUM_INT_PARAMS
doublempr [ 70 ] InputMPR Array [70 elements]
The size of this array is defined by NUM_REAL_PARAMS
const char *radius_valInputRadius Symbol String. This can be at most
six characters, however due to internal
requirements, the buffer must be allocated
as char radius_val[27];
const char *diameter_valInputDiameter 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the color, font and widths used for retained annotations.

Return
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

Environment
Internal and External
 
Required License(s)
drafting

 
int UF_DRF_set_retain_color_font_width
(
int color,
int font,
int width
)
intcolorInputColor to use for retained annotations
intfontInputFont to use for retained annotations
intwidthInputLine width to use for retained annotations

 


 
UF_DRF_set_retained_state (view source)
 
Defined in: uf_drf.h
 
Overview
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
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

Environment
Internal and External
 
Required License(s)
drafting

 
int UF_DRF_set_retained_state
(
UF_DRF_retained_state_t state
)
UF_DRF_retained_state_tstateInputBehavior state for retained annotations.
Either
'UF_DRF_KEEP_RETAINED_ANNOTATIONS' or
'UF_DRF_DELETE_RETAINED_ANNOTATIONS'

 


 
UF_DRF_set_specified_sbf_file (view source)
 
Defined in: uf_drf.h
 
Overview
Sets as current the specified symbol font definition file.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
drafting

 
int UF_DRF_set_specified_sbf_file
(
const char sbf_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ]
)
const charsbf_name [ UF_CFI_MAX_FILE_NAME_BUFSIZE ] Inputfile to be set

 


 
UF_DRF_set_suppress_pre_zeros (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the global preference for suppress preceding zeros.

Environment
Internal and External

See Also
UF_DRF_set_units_format_preferences
Refer to the example

History
This function was originally released in V15.0.
 
Required License(s)
drafting

 
int UF_DRF_set_suppress_pre_zeros
(
logical option
)
logicaloptionInputSuppress preceding zeros mode

 


 
UF_DRF_set_suppress_view_update (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal & External:

See Also
UF_DRF_ask_suppress_view_update
 
Required License(s)
drafting

 
int UF_DRF_set_suppress_view_update
(
logical suppress_view_update
)
logicalsuppress_view_updateInputthe new setting of view update
suppression

 


 
UF_DRF_set_symbol_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets preferences that apply to ID, User Defined, Centerline, Intersection,
Target and GD&T symbols.

Environment
Internal & External

See Also
UF_DRF_ask_symbol_preferences
UF_DRF_symbol_preferences_t

History
Originally released in V16.0
 
Required License(s)
drafting

 
int UF_DRF_set_symbol_preferences
(
UF_DRF_symbol_preferences_p_t symbol_preferences
)
UF_DRF_symbol_preferences_p_tsymbol_preferencesInputpointer to preferences
structure to be used to
set the symbol preferences

 


 
UF_DRF_set_text_above_leader (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External

History
This function was originally released in V15.0.
 
Required License(s)
drafting

 
int UF_DRF_set_text_above_leader
(
UF_DRF_text_above_leader_t option
)
UF_DRF_text_above_leader_toptionInputText 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 (view source)
 
Defined in: uf_drf.h
 
Overview
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

Environment
Internal & External

History
Created in NX4.0
 
Required License(s)
drafting

 
int UF_DRF_set_tolerance
(
float tolerance
)
floattoleranceInputTolerance to use when comparing real data

 


 
UF_DRF_set_uds_size (view source)
 
Defined in: uf_drf.h
 
Overview
The following function will set the global preferences for the user defined
symbol length / height or scale / aspect ratio.

Environment
Internal or External

History
Originally released in V19.0
 
Required License(s)
drafting

 
int UF_DRF_set_uds_size
(
UF_DRF_uds_size_p_t uds_size
)
UF_DRF_uds_size_p_tuds_sizeInputUser defined symbol scale / aspect ratio or length / height
parameters.

 


 
UF_DRF_set_ugdefault_sbf_file (view source)
 
Defined in: uf_drf.h
 
Overview
Sets as current the NX default symbol font
definition file.

Environment
Internal and External

See Also
Refer to the example
 
Required License(s)
drafting

 
int UF_DRF_set_ugdefault_sbf_file
(
void
)

 


 
UF_DRF_set_units_format_preferences (view source)
 
Defined in: uf_drf.h
 
Overview
Sets preferences for the display of linear and angular dimensions values
as well as dual dimension format.

Environment
Internal & External

See Also
UF_DRF_ask_units_format_preferences
UF_DRF_units_format_preferences_t

History
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.
 
Required License(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_preferencesInputpointer to
preferences structure to
used to set the units/
format preferences

 


 
UF_DRF_set_vertical_note (view source)
 
Defined in: uf_drf.h
 
Overview
This function will set a note to be either horizontal or vertical.

Environment
Internal and External

History
Created in V16.0
 
Required License(s)
drafting

 
int UF_DRF_set_vertical_note
(
tag_t note,
logical is_vertical
)
tag_tnoteInputTag of the note.
logicalis_verticalInputIf 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 (view source)
 
Defined in: uf_drf.h
 
Overview
Set the weld symbol standard

Return
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

Environment
Internal and External

History
Originally released in vNX1.0.2
 
Required License(s)
drafting

 
int UF_DRF_set_weld_symbol_standard
(
char * standard
)
char *standardInputstandard of the weld symbol

 


 
UF_DRF_set_xhatch_mat (view source)
 
Defined in: uf_drf.h
 
Overview
Sets the crosshatch material using the given name.

Return
void

Environment
Internal and External
 
Required License(s)
drafting

 
void UF_DRF_set_xhatch_mat
(
const char * file_name,
const char * material_name,
int * util,
int * error
)
const char *file_nameInputThe crosshatch definition file name
const char *material_nameInputThe desired crosshatch material name
int *utilInputFlag 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 *errorOutputError flag. Value > 0 indicates an error has
occurred.

 


 
UF_DRF_transfer_to_drawing (view source)
 
Defined in: uf_drf.h
 
Overview
This function will transfer an annotation view dependent in a drawing member
view or a model view to the drawing sheet specified.

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

Environment
Internal and External

History
Created in V16.0
 
Required License(s)
drafting

 
int UF_DRF_transfer_to_drawing
(
tag_t annotation,
tag_t member_view,
tag_t drawing,
logical in_drawing_plane
)
tag_tannotationInputAnnotation to transfer
tag_tmember_viewInputTag of the member view in which the
associativities should be related.
tag_tdrawingInputTag of the drawing on which the
annotation should now lie.
logicalin_drawing_planeInputIf TRUE, the annotation will lie in the drawing
plane, otherwise, the orientation will be
retained.

 


 
UF_DRF_update_views (view source)
 
Defined in: uf_drf.h
 
Overview
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.

Environment
Internal and External
 
Required License(s)
drafting

 
int UF_DRF_update_views
(
char * drawing_name,
int method,
char * view_name
)
char *drawing_nameInputname of drawing whose views are to be updated
intmethodInputone of 'UF_DRF_UPDATE_AUTO', 'UF_DRF_UPDATE_FORCE',
'UF_DRF_UPDATE_ALL', or 'UF_DRF_UPDATE_NAMED'
char *view_nameInputif method = 'UF_DRF_UPDATE_NAMED', the name of
the view to update