- 40
- 0
- 约5.21千字
- 约 8页
- 2019-10-10 发布于江西
- 举报
UG二次开发常用函数模板
1、 uc1600 //获取字符串
头文件:#include uf_ui.h
int res = 0;
int len = 0;
char string[100]=;
res = uc1600( ,string , len );//string:Input / Output
if ( res == 5 || ( res== 3 len 0 ) )
{
}
else
{
}
2、 uc1603 //
头文件:#include uf_ui.h
用法1:
char title [100] = 菜单;
char items [3] [ 38 ] = { 选项1,选项2,选项3};
choice = uc1603(title, 0, items, 3);
if (choice == 1 || choice == 2)
{
UF_terminate();
}
else
{
if (choice == )
{
}
}
用法2:
char items [3] [ 38 ] = { 选项1,选项2,选项3};
response = uc1603( 菜单, 0, items, 3 );
swit
原创力文档

文档评论(0)