|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
static void do_ugopen_api(void)
{
char cue[] = "Select Objects";
char title[] = "User Title";
int response, count, i;
tag_p_t objects;
tag_t matrix;
double values[9];
/* Use multiple class selection with scope set to any object
in the work part and without using an initialization procedure.
*/
if((UF_CALL(UF_UI_select_with_class_dialog(
cue, title, UF_UI_SEL_SCOPE_WORK_PART,
NULL, NULL, &response, &count, &objects))) == 0)
{
printf("object count = %d\n",count);
if (response == UF_UI_OK && count > 0)
{
for (i=0; i<count; i++)
{
printf("object tag = %d\n", objects);
UF_DISP_set_highlight(objects, 0);
}
}
}
UF_CSYS_ask_matrix_of_object(objects[0],[$matrix)]
UF_CSYS_ask_matrix_values(matrix,values);
UF_free(objects);
UF_UI_open_listing_window();
for(i=0;i<=9;i++)
{
sprintf(buf,"%f\n",values);
UF_UI_write_listing_window(buf);
}
出来的数值:
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559631349317831000000000000000000000000000000000000000000000.000000
-92559592117431994000000000000000000000000000000000000000000000.000000
不知道哪里错了 |
|