UF_LIB_ask_lib_attribute_values (查看源代码)
定义在: uf_lib.h
概述
This function provides a list of attribute values of an NX object that
was previously retrieved from a library. The library is referenced by the
specified UF_CAM_db_object_t. The values are the current values (in the
library) of the specified attributes of the NX object.
The caller should use UF_free_string_array to free these returned arrays.
环境
内部和外部
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_ask_lib_attribute_values
(
UF_CAM_db_object_t db,
tag_t ug_object,
int count,
const char * * db_alias,
char * * * values
)
| UF_CAM_db_object_t | db | Input(输入) | - the db object to query in |
| tag_t (tag_t类型) | ug_object | Input(输入) | - the NX object to query about |
| int (整数型) | count | Input(输入) | - the number of attribute to ask their values of |
| const char * * | db_alias | Input(输入) | - the list of attribute db aliases to ask the values of |
| char * * * | values | Output to be freed 输出并释放 | - the requested values. This is an array of strings that must be freed by calling UF_free_string_array. |
UF_LIB_ask_libref (查看源代码)
定义在: uf_lib.h
概述
This function provides the library reference (or libref) of the specified
NX object. The libref is an attribute which is returned for every record
in every record set. It is also the attribute which is used to retrieve
an object from a library. An NX object will only have a libref if it was
created by being retrieved from a library.
环境
内部和外部
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_ask_libref
(
tag_t ug_object,
const char * * libref
)
| tag_t (tag_t类型) | ug_object | Input(输入) | - the desired NX object |
| const char * * | libref | Output to be freed 输出并释放 | - the libref of the specified object |
UF_LIB_ask_record_in_rset (查看源代码)
定义在: uf_lib.h
概述
This function provides a record from a record set. The record is returned
as an array of strings. Each element of the array is the value of an
attribute of the specified record. The ith element of the array is the
value of the ith attribute returned from ask_rset_map. Note that all values
are returned as strings. If the value has type double or int the caller
will need to convert as required by the application.
The caller should use UF_free_string_array to free these returned arrays.
环境
内部和外部
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_ask_record_in_rset
(
UF_RSET_t rset,
int record_num,
int * count,
const char * * * values
)
| UF_RSET_t | rset | Input(输入) | - the desired record set |
| int (整数型) | record_num | Input(输入) | - the desired record number (0 based) |
| int * (整数型指针) | count | Output(输出) | - the number of values of attributes |
| const char * * * | values | Output to be freed 输出并释放 | - the values of the attributes. The caller should call UF_free_string_array to free this array. |
UF_LIB_ask_rset_count (查看源代码)
定义在: uf_lib.h
概述
This function returns the number of records that the specified UF_RSET_t
contains.
环境
内部和外部
历史
Released in V17.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_ask_rset_count
(
UF_RSET_t rset,
int * count
)
| UF_RSET_t | rset | Input(输入) | - the UF_RSET_t whose record count is desired |
| int * (整数型指针) | count | Output(输出) | - the number of records in the UF_RSET_t |
UF_LIB_ask_rset_map (查看源代码)
定义在: uf_lib.h
概述
This function provides a description (or map) of the contents of a record
set. It provides a list of the attributes that each record in the record
set has as well as the type of each of those attributes. One can think of
a record set as a table. The rows of the table are the individual records
in the record set. The columns headings are the attributes that are found
in the record set.
NOTE: Use UF_LIB_free_rset_map to free returned memory
See the
description
环境
内部和外部
参见
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_ask_rset_map
(
UF_RSET_t rset,
int * count,
const char * * * attr_names,
const char * * attr_types
)
| UF_RSET_t | rset | Input(输入) | - the record set of interest. This was returned by execute_query. |
| int * (整数型指针) | count | Output(输出) | - the number of attributes in the record set. |
| const char * * * | attr_names | Output to be freed 输出并释放 | count - the name of the attributes in the record set. |
| const char * * | attr_types | Output to be freed 输出并释放 | count - the types of the attributes. The ith attr_types is the type of the ith attr_names. |
UF_LIB_delete_rset (查看源代码)
定义在: uf_lib.h
概述
This function deletes the specified UF_RSET_t.
环境
内部和外部
历史
Released in V17.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_delete_rset
(
UF_RSET_t rset
)
| UF_RSET_t | rset | Input(输入) | - the record set to delete |
UF_LIB_execute_query (查看源代码)
定义在: uf_lib.h
概述
This function will execute a query in a library and return a record set
containing the objects in the library that satisfy the query.
See the above File Description for a discussion of the query syntax. The
Class Query in the Definition File is &&ed to the query specified here as
a parameter. The contents of the RSET returned is determined by the
RSET definition for the specified class name. This definition is found in the
Definition File.
环境
内部和外部
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_execute_query
(
UF_CAM_db_object_t db,
const char * cls_name,
const char * query,
int * count,
UF_RSET_t * rset
)
| UF_CAM_db_object_t | db | Input(输入) | - the library object in which to execute the query. |
| const char * | cls_name | Input(输入) | - the class name |
| const char * | query | Input(输入) | - the query |
| int * (整数型指针) | count | Output(输出) | - the number of objects satisfying the query |
| UF_RSET_t * | rset | Output(输出) | - the record of objects that satisfy the query |
UF_LIB_execute_query_for_count (查看源代码)
定义在: uf_lib.h
概述
This function will execute a query in a library and return a count of the
number of objects in the library that satisfy the query. See the above
File Description for a discussion of the query syntax. The Class Query in
the Definition File is &&ed to the query specified here as a parameter.
环境
内部和外部
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_execute_query_for_count
(
UF_CAM_db_object_t db,
const char * cls_name,
const char * query,
int * count
)
| UF_CAM_db_object_t | db | Input(输入) | - the library object in which to execute the query |
| const char * | cls_name | Input(输入) | - the class name |
| const char * | query | Input(输入) | - the query |
| int * (整数型指针) | count | Output(输出) | - the number of objects in the library that satisfy the query. |
UF_LIB_free_rset_map (查看源代码)
定义在: uf_lib.h
概述
This function frees the memory returned from UF_LIB_ask_rset_map
环境
内部和外部
参见
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_free_rset_map
(
int count,
const char * * attr_names,
const char * attr_types
)
| int (整数型) | count | Input(输入) | - the number of attributes in the record set. |
| const char * * | attr_names | Input(输入) | - the name of the attributes in the record set. |
| const char * | attr_types | Input(输入) | - the types of the attributes. The ith attr_types is the type of the ith attr_names. |
UF_LIB_merge_rsets (查看源代码)
定义在: uf_lib.h
概述
This function merges the contents of two record sets. The merged record set
contains the records of 'rset1' followed by the records of 'rset2'. The
records appear in the same order they did in their original record sets.
'rset1' and 'rset2' are unchanged.
环境
内部和外部
历史
Released in V17.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_merge_rsets
(
UF_RSET_t rset1,
UF_RSET_t rset2,
UF_RSET_t * merged_rset
)
| UF_RSET_t | rset1 | Input(输入) | - the record set to merge |
| UF_RSET_t | rset2 | Input(输入) | - the other record to merge |
| UF_RSET_t * | merged_rset | Output(输出) | - the merged record set |
UF_LIB_sort_rset (查看源代码)
定义在: uf_lib.h
概述
This function sorts the contents of a record set. The sort key is of the
form:
db_alias1/{ a|d },db_alias2/{ a|d },...,db_aliasN/{ a|d }
where a = ascending, d = descending. For example, if Diameter and Cost are
both DB Aliases that are found in the record set one could sort the set
primarily by Diameter in ascending order and then, within Diameter, sort by
Cost in decreasing order with a sort key of:
Diameter/a,Cost/d
Here Diameter is the primary key. Records of the set that have the same
Diameter are then sorted by Cost. The original record set is not changed.
环境
内部和外部
历史
Released in V17.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_LIB_sort_rset
(
UF_RSET_t rset,
const char * sort_key,
UF_RSET_t * sorted_rset
)
| UF_RSET_t | rset | Input(输入) | - the record set to sort |
| const char * | sort_key | Input(输入) | - the sort key to sort by |
| UF_RSET_t * | sorted_rset | Input(输入) | - the sorted record set |
UF_MCT_replace_machine (查看源代码)
定义在: uf_lib.h
概述
This function replaces the current Machine Tool with a specified machine
from the Machine Library (as defined in cam_config.dat) and creates an
NX Machine Tool Object based upon the values received from the library.
环境
内部和外部
历史
Released in NX3.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_MCT_replace_machine
(
char * libref,
int retrieve_opt,
UF_NCMCT_setup_replace_mode_t mounting_opt,
tag_t * ncmct_tag
)
| char * (字符型指针) | libref | Input(输入) | - the library reference of the desired machine tool. Can be gotten from a record set or an existing NX object |
| int (整数型) | retrieve_opt | Input(输入) | - Flag indicating whether tool pocket data is to be retrieved with new machine: 0 = No 1 = Yes |
| UF_NCMCT_setup_replace_mode_t | mounting_opt | Input(输入) | - Flag indicating how the machine is to be located with respect to the part if there is a part file associated with the machine: 0 = No mounting. Machine is loaded as defined. 1 = Mount the machine onto the workpiece. 2 = Mount the workpiece onto the machine. |
| tag_t * (tag_t型的指针) | ncmct_tag | Output(输出) | - the NX object created as a result of the retrieval |
UF_MCT_retrieve (查看源代码)
定义在: uf_lib.h
概述
This function retrieves a Machine Tool from the current Machine Tool
Library (as defined in cam_config.dat) and creates an NX Machine Tool
Object based upon the values received from the library.
环境
内部和外部
历史
Released in V16.0
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_MCT_retrieve
(
const char * libref,
tag_t * ncmct_tag
)
| const char * | libref | Input(输入) | - the library reference of the desired machine tool. Can be gotten from a record set or an existing NX object |
| tag_t * (tag_t型的指针) | ncmct_tag | Output(输出) | - the NX object created as a result of the retrieval |