我是在nx下试的,该函数只有在UG_APP_DRAFTING这个模块才管用,显示了模型,不过没有进入建模的状态。在其他模块就不起作用了(不过没有报错)。作者: hj-hanjun 时间: 2003-5-8 16:58
Here is a sample code for using UF_ask_application_module().
but it just tell what module you are using, not switching between module.
int module;
UF_CALL(UF_ask_application_module([$module))]
switch (module)
{
case UF_APP_DRAFTING:
uc1601("module = DRAFTING\n"); break;
case UF_APP_MECHANISMS:
uc1601("module = MECHANISMS\n"); break;
case UF_APP_CAM:
uc1601("module = CAM\n"); break;
case UF_APP_ICAD:
uc1601("module = ICAD\n"); break;
case UF_APP_MODELING:
uc1601("module = MODELING\n"); break;
}