点击查看详细介绍

UG编程,如何在KF中调用C函数?

martin120 20年前 10654 9

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


本人正在学习UG知识融接,欲在KF中调用C函数,请高手指点,谢谢!

0

最新回复 (9)
  • jnx001 20年前
    1

    KF能调用C函数吗,只知道API可以调用KF

  • martin120 20年前
    2

    可以呀,请看帮助文件上的内容:
    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 20年前
    3

    可以調用沒有問題 我見過老師用過

  • khzx 20年前
    4

    可以。

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

    Defun: your_kf_func( some input parameters )
    @{

  • YYHSU 20年前
    5

    請參考附件資料,其ug的help亦有相關說明

  • martin120 20年前
    6

    谢谢YYHSU

  • yshnuaa 17年前
    7

    6搂的很专业啊,谢谢

  • xtdwxk 17年前
    8

    谢谢看看学习

  • 无雨 17年前
    9

    受教了,非常感谢!

请登录后发表新帖