extern "C" DllExport void ufsta( char *param, int *returnCode, int rlen )
{
UF_FEATURE_SIGN sign=UF_NULLSIGN;
UF_FEATURE_SIGN sign1=UF_POSITIVE;
double block_orig[3]={0.0,0.0,0.0};
double block_orig1[3]={0.0,0.0,2.5};
char *block_len[3]={"1","2","3"};
char *block_len1[3]={"1", "1", "1"};
tag_t blk_obj;
tag_t blk1_obj;
UF_initialize();
UF_MODL_create_block1(sign,block_orig,block_len, [$blk_obj)]
UF_MODL_create_block1(sign1,block_orig1,block_len1, [$blk1_obj)]
UF_terminate();
}
用的时候先建立一个part文件 然后执行*.dll 就可以了 |