UF_XS_extract_spreadsheet (查看源代码)
定义在: uf_xs.h
概述
Reads spreadsheet data from the work part and writes spreadsheet data
to the existing file name that you specify. The basic process used to
read data from the work part, would be to first establish the file
for the data, then call this Open API routine to create the file, then
read the data into the spreadsheet using an XESS routine, e.g.
This routine will extract either an XESS or Excel spreadsheet from the part.
NOTE: The Xess Developer's Library is required in order to access
the function xess_read_file.
环境
内部和外部
参见
The following is a
code
outline of how to use the extract function.
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_XS_extract_spreadsheet
(
char * spreadsheet_name,
char * file_name
)
| char * (字符型指针) | spreadsheet_name | Input(输入) | Spreadsheet object name: "MODELING_SHEET" - modeling spreadsheet data "DEFAULT_SHEET" - Gateway spreadsheet data "PART_FAMILY_SHEET" - Part Family spreadsheet data |
| char * (字符型指针) | file_name | Input(输入) | File name to write spreadsheet data to. |
UF_XS_store_spreadsheet (查看源代码)
定义在: uf_xs.h
概述
Store spreadsheet data into the work part. If the spreadsheet entity name does
not exist, it will be created. The normal process for saving spreadsheet
data would be to establish a file for the data, write the data file using
the XESS programming call, then store that data into the spreadsheet with
this Open API routine.
This routine will store an XESS or Excel spreadsheet into the part.
Excel spreadsheets can only be stored on the Windows platform.
If it is not a valkid spreadsheet the error UF_err_bad_parameter_number_2
is returned.
NOTE: The Xess Developer's Library is required in order to access
the function xess_write_file.
NOTE: Storing of the Part Family spreadsheet is not supported.
环境
内部和外部
参见
The following is a
code
outline of how to use the store function.
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)
int UF_XS_store_spreadsheet
(
char * spreadsheet_name,
char * file_name
)
| char * (字符型指针) | spreadsheet_name | Input(输入) | Name of the spreadsheet object: "MODELING_SHEET" - modeling spreadsheet data "DEFAULT_SHEET" - Gateway spreadsheet data |
| char * (字符型指针) | file_name | Input(输入) | Location of existing file name to read XESS spreadsheet data from. |