uc6460 (view source)
 
Defined in: uf_layout.h
 
Overview
Create a layout. view_names must be dimensioned to the number of views
(or greater) specified in option layout_style. If any array value of view_names
is blank, the default view for that position is used. The first view
becomes the work view. The default views are:

layout_style Default Views
1 Top
2 Front, Right
3 Top, Front
4 Top, Front, TFR-ISO, Right
5 TFR-TRI, Left, Top, Front, TFR-ISO, Right

Return
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
12 = Invalid Layout Name
14 = Layout Already Exists
31 = Invalid Scale
32 = Invalid Scale Option
33 = Invalid Layout Style
34 = A sketch view may not exist in a layout
more than one time.
35 = Operation Not Allowed In Drafting

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6460
(
const char * layout_name,
int layout_style,
const char view_names [ ] [ UF_OBJ_NAME_BUFSIZE ] ,
int scale_option,
double scale
)
const char *layout_nameInputLayout Name (UF_OBJ_NAME_NCHARS char max)
intlayout_styleInputLayout Style
1 = Single View
2 = Side By Side
3 = Upper And Lower
4 = Four Views
5 = Six Views
const charview_names [ ] [ UF_OBJ_NAME_BUFSIZE ] InputView Names (UF_OBJ_NAME_NCHARS char max)
"" = Default Views
intscale_optionInputScale Option
1 = Retrieve As Saved
2 = Fit All Views
3 = Apply Scale parameter To All Views
doublescaleInputView Scale (If scale_option=3)

 


 
uc6462 (view source)
 
Defined in: uf_layout.h
 
Overview
Read view borders in a layout. Border values range from 0,0 (bottom-left
corner of the layout) to 1,1 (top-right corner of the layout).

Return
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
10 = View Not On Layout
11 = Layout Does Not Exist
12 = Invalid Layout Name
19 = No Current Layout

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6462
(
const char * layout_name,
const char * view_name,
double * border
)
const char *layout_nameInputLayout Name (UF_OBJ_NAME_NCHARS char max)
"" = Current Layout
const char *view_nameInputView Name (UF_OBJ_NAME_NCHARS char max)
"" = Work View
double *borderOutputView Borders On Layout (4 element array)
[0] Left Border
[1] Bottom Border
[2] Right Border
[3] Top Border

 


 
uc6463 (view source)
 
Defined in: uf_layout.h
 
Overview
Set view borders in a layout. The borders argument is any two diagonal
corners (X1,Y1,X2,Y2) of the view on the layout. The values range from
0,0 (bottom-left corner of the layout) to 1,1 (top-right corner of the layout).

Return
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
3 = Cannot Modify View On Drawing
10 = View Not On Layout
11 = Layout Does Not Exist
12 = Invalid Layout Name
31 = Invalid View Border
32 = Invalid Border Option

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6463
(
const char * layout_name,
const char * view_name,
const int option,
const double * borders
)
const char *layout_nameInputLayout Name (UF_OBJ_NAME_NCHARS char max)
"" = Current Layout
const char *view_nameInputView Name (UF_OBJ_NAME_NCHARS char max)
"" = Work View
const intoptionInputBorder Option
0 = Use View Borders In borders parameter
1 = Reserved For Future Use
const double *bordersInputView Borders On Layout (4 element array)
[0] Left Border
[1] Bottom Border
[2] Right Border
[3] Top Border

 


 
uc6464 (view source)
 
Defined in: uf_layout.h
 
Overview
Replace view in layout. If the layout_name parameter is blank, the current
layout is updated. If the old_view_name parameter is blank, the work view is
replaced. If the new_view_name parameter is blank, the view is duplicated on
the layout. If both old_view_name and new_view_name are blank, the work
view is updated. If the work view is replaced, the new view becomes
the work view.

Return
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
4 = Can Not Replace View On Drawing
10 = Old View Not In Layout
11 = Layout Does Not Exist
12 = Invalid Layout Name
19 = Drafting Layout Not Valid
23 = Current Drawing Contains Work View
34 = A sketch view may not exist in a layout
more than one time.

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6464
(
const char * layout_name,
const char * old_view_name,
const char * new_view_name
)
const char *layout_nameInputLayout Name (UF_OBJ_NAME_NCHARS char max)
"" = Current Layout
const char *old_view_nameInputOld View Name (UF_OBJ_NAME_NCHARS char max)
"" = Work View
const char *new_view_nameInputNew View Name (UF_OBJ_NAME_NCHARS char max)
"" = Work View

 


 
uc6466 (view source)
 
Defined in: uf_layout.h
 
Overview
Read current layout name and work view name.

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6466
(
char cr1 [ UF_OBJ_NAME_BUFSIZE ] ,
char cr2 [ UF_OBJ_NAME_BUFSIZE ]
)
charcr1 [ UF_OBJ_NAME_BUFSIZE ] OutputLayout Name
charcr2 [ UF_OBJ_NAME_BUFSIZE ] OutputWork View Name

 


 
uc6467 (view source)
 
Defined in: uf_layout.h
 
Overview
Save the current layout. The new_name parameter is the name to use when you
save the layout. If new_name is blank, the current layout name is used. A new
layout is created if new_name specifies a new name and a layout of
that name does not exist. An error is returned if new_name specifies a
new name and a layout with that name already exists.

Return
Return Code
0 = OK
12 = Invalid Layout Name
14 = New Layout Already Exists

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6467
(
const char * new_name
)
const char *new_nameInputName To Save Layout (UF_OBJ_NAME_NCHARS char max)
"" = Use Current Name

 


 
uc6468 (view source)
 
Defined in: uf_layout.h
 
Overview
Retrieve a layout. The view_scale parameter must be positive. In addition,
you cannot retrieve a layout if all of its views were deleted.

Return
Return Code
0 = OK
11 = Layout Does Not Exist
12 = Invalid Layout Name
13 = Layout Has No Views
31 = Invalid Scale
32 = Invalid Scale Option
35 = Operation Not Allowed In Drafting

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6468
(
const char * layout_name,
const int option,
const double view_scale
)
const char *layout_nameInputLayout Name (UF_OBJ_NAME_NCHARS char max)
const intoptionInputScale Option
1 = Retrieve As Saved
2 = Fit All Views
3 = Apply view_scale To All Views
const doubleview_scaleInputView Scale (If option=3)

 


 
uc6469 (view source)
 
Defined in: uf_layout.h
 
Overview
Delete a layout. You cannot delete the current layout, any
canned layout, or the GFEM post layout.

Return
Return Code
0 = OK
11 = Layout Does Not Exist
12 = Invalid Layout Name
13 = Can Not Delete Canned Layout
14 = Can Not Delete Current Layout
15 = Can Not Delete GFEM Post Layout

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6469
(
const char * layout_name
)
const char *layout_nameInputLayout Name (UF_OBJ_NAME_NCHARS char max)

 


 
uc6470 (view source)
 
Defined in: uf_layout.h
 
Overview
Rename a layout. If old_name is blank, the current layout is renamed. A
canned layout cannot be renamed.

Return
Return Code
0 = OK
11 = Old Layout Does Not Exist
12 = Invalid Layout Name
13 = Can Not Rename Canned Layout
14 = New Layout Already Exists

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6470
(
const char * old_name,
const char * new_name
)
const char *old_nameInputOld Layout Name (UF_OBJ_NAME_NCHARS char max)
"" = Current Layout
const char *new_nameInputNew Layout Name (UF_OBJ_NAME_NCHARS char max)

 


 
uc6471 (view source)
 
Defined in: uf_layout.h
 
Overview
Cycle layouts in the work part. This routine cycles the displayed part and
returns one layout name per cycle. To start the cycle, set ca1 to the null
string ("") before calling uc6471. The first layout name is returned in ca1.
The next call returns the second layout name in ca1. When ca1 returns with a
blank, all layout names have been returned.
NOTE: The cycle can continue even if the layout named in ca1 is
deleted during the cycle.

Return
Return Code
0 = OK
11 = Layout Does Not Exist
12 = Invalid Layout Name

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6471
(
char ca1 [ UF_OBJ_NAME_BUFSIZE ]
)
charca1 [ UF_OBJ_NAME_BUFSIZE ] Input / OutputLayout Name
On input the last layout name found. "" will start cycling.
On output the next layout name found. "" will be returned
when the cycle is done.

 


 
uc6472 (view source)
 
Defined in: uf_layout.h
 
Overview
Read the number of views in a layout.

Return
Return Code
0 = OK
11 = Layout Does Not Exist
12 = Invalid Layout Name

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6472
(
const char * layout_name,
int * number_of_views
)
const char *layout_nameInputLayout Name (UF_OBJ_NAME_NCHARS char max)
"" = Current Layout
int *number_of_viewsOutputNumber Of Views In Layout

 


 
uc6473 (view source)
 
Defined in: uf_layout.h
 
Overview
This routine cycles the layout and returns one view name per cycle. To
start the cycle, set ca2 to an empty string("") before calling uc6473. The
first view name returns in ca2. The next call returns the second view name
in ca2. When ca2 returns with an empty string, all view names have been
returned.

Return
Return Code
0 = OK
1 = View Does Not Exist
2 = Invalid View Name
10 = View Not On Layout
11 = Layout Does Not Exist
12 = Invalid Layout Name

Environment
Internal and External
 
Required License(s)
gateway

 
int uc6473
(
char * cp1,
char ca2 [ UF_OBJ_NAME_BUFSIZE ]
)
char *cp1InputLayout Name (UF_OBJ_NAME_NCHARS char max)
"" = Current Layout
charca2 [ UF_OBJ_NAME_BUFSIZE ] Input / OutputView Name
On input the last view name found. Pass in "" to start cycling.
On output the next view name found, "" when the cycle is complete.