iCAx开思网

标题: UG编程,如何在KF中调用C函数? [打印本页]

作者: martin120    时间: 2006-8-15 22:32
标题: UG编程,如何在KF中调用C函数?
本人正在学习UG知识融接,欲在KF中调用C函数,请高手指点,谢谢!
作者: jnx001    时间: 2006-8-17 11:27
KF能调用C函数吗,只知道API可以调用KF
作者: martin120    时间: 2006-8-17 23:18
可以呀,请看帮助文件上的内容:
These Open C programs are routines that follow the Open C guidelines and rules. See the Open C Help. The functions included in the Knowledge Fusion Open C API are documented here. There are two different user function APIs available. The UF_KF interface allows you to create user function programs that can call Unigraphics NX Knowledge Fusion functions from your user function program. See Calling UG/Open Knowledge Fusion from a UF for an explanation of this API. The UF_KF interface allows you to define your own Fusion function that will call your user function from UG/Knowledge Fusion when it is invoked, in order to execute your User function routine. See Calling UFs from UG/Knowledge Fusion for an explanation of this API. These APIs are known collectively as the UG/KF UG/Open API.
不过还没有试过。
作者: TY1869    时间: 2006-9-9 22:31
可以調用沒有問題 我見過老師用過
作者: khzx    时间: 2006-9-11 11:21
可以。

假设你的C是 your_c_func(),位于 libyour.dll. 你的C要能够接受KF过来的输入,至于怎么输入,你需要看些文档。输出是KF的各种类型,你要在C中设定。

Defun: your_kf_func( some input parameters )
@{
    CFunc( "your_c_func", "libyour" );
} Any;
作者: YYHSU    时间: 2006-10-13 22:31
請參考附件資料,其ug的help亦有相關說明
作者: martin120    时间: 2006-10-23 22:25
谢谢YYHSU
作者: yshnuaa    时间: 2009-5-20 14:42
6搂的很专业啊,谢谢
作者: xtdwxk    时间: 2009-7-3 11:20
谢谢看看学习
作者: 无雨    时间: 2009-12-27 19:32
受教了,非常感谢!




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3