C# NX二次开发:判断两个体是否干涉和获取系统日志的UFUN函数

大家好,今天要讲关于如何判断两个体是否干涉和获取系统日志的UFUN函数。

(1)UF_MODL_check_interference:这个函数的定义为根据单个目标体检查每个指定的工具体是否有干扰。

Defined in: uf_modl.h

Overview

Checks each specified tool body against the single target body for interference.

An interference status is returned for each tool body.

Objects may be created as part of the interference checking. These objects are

tagged for deletion, but to make sure the memory is freed and avoid memory overflow,

UF_MODL_update should be called following the call to UF_MODL_check_interference.

Environment

Internal and External

See Also

Refer to example

History

Originally released in V16.0

Required License(s)

solid_modeling

int UF_MODL_check_interference

(

tag_t target,

int num_tools,

tag_t * tools,

int * results

)

|-------------------------------------------|-----------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| tag_t | target | Input | Target body against which interference is checked |
| int | num_tools | Input | Number of tool bodies specified in tools array |
| tag_t * | tools | Input | Tool bodies whose interference with target is inquired. Dimensioned to num_tools |
| int * | results | Output | Interference status for each tool body. The caller is responsible for allocating it with an array size of num_tools. = 1 -> there is interference = 2 -> no interference = 3 -> touching, that is coincident faces |

第一个参数为目标体的Tag值

第二个参数为在工具数组中指定的工具体数目

第三个参数为与目标体干涉得到工具体

第四个参数为返回干涉状态

= 1 ->有干扰

= 2 ->无干扰

= 3 ->触碰,即重合面

(2)UF_ask_syslog_filename :这个函数的定义为获取NX系统日志文件。

Defined in: uf.h

Overview

Get name of the current syslog

Environment

Internal and External

History

Released in NX2.0.5

Required License(s)

gateway

int UF_ask_syslog_filename

(

char * * filename

)

|------------|----------|-----------------------|-----------------------------------------------------------------------------|
| char * * | filename | Output to UF_*free* | pointer to dynamically allocated path filename must be freed with UF_free() |

今天要介绍的就是这么多,我们下篇文章再见。

相关推荐
冴羽yayujs4 分钟前
JavaScript 9 个先有库再有 API 的故事
开发语言·javascript·ecmascript
油丶酸萝卜别吃22 分钟前
JavaScript 深度合并函数 deepMerge 实现指南(附完整测试用例)
开发语言·javascript·测试用例
问心无愧051323 分钟前
ctf show web 入门152
前端·笔记
kyriewen24 分钟前
Copilot下个月按Token收钱,我算了一笔账:重度用户一年要多花3000块
前端·javascript·openai
还有多久拿退休金1 小时前
dnd-kit 碰撞检测算法:你的订单为什么自己"跑"到了 1 号?
前端
qq_316837751 小时前
npm run tauri build Downloading下载超时
前端·npm·node.js
w_t_y_y1 小时前
VUE3(二)VUE2和VUE3区别
前端·javascript·vue.js
T-shmily1 小时前
使用svg图标
前端·css
阿明在折腾1 小时前
在浏览器里实现 PDF 合并与拆分:pdf-lib 实战指南
前端·javascript
米高梅狮子1 小时前
03.OpenStack使用
linux·前端·云原生·容器·架构·kubernetes·openstack