xiao2076 发表于 2014-10-31 17:56:20

切换模块

我想从制图模块切换回建模模块 有相关的函数么

admin 发表于 2014-10-31 19:20:53

UI *ui=UI::GetUI(); ui->MenuBarManager()->ApplicationSwiTChRequest("UG_APP_DRAFTING")

yuleihz 发表于 2016-1-8 22:48:48

老师怎么判定你在制图模块呢?

admin 发表于 2016-1-9 08:53:09

yuleihz 发表于 2016-1-8 14:48
老师怎么判定你在制图模块呢?

UF_ask_application_module (view source)


Defined in: uf.h



Overview


Returns the current application module. The value that is returned
maps to a string defined constant. You can find the string in the
header file uf.h. The strings are of the form UF_APP_<module>.
For example, UF_APP_DRAFTING represents the drafting module.

Note - if this function is called from an external program it will
always return a FALSE and an app id of APP_NONE.



Environment


Internal and External



Required License(s)


gateway




int UF_ask_application_module
(

int * module_id

)

int * module_id Output The module identification value of the
current application.

yuleihz 发表于 2016-1-10 16:01:33

测试中,非常感谢,没想到老师回帖的速度这么快
页: [1]
查看完整版本: 切换模块