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() |

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

相关推荐
榴莲CC3 分钟前
VK1620 抗噪数显LED驱动芯片数码管显示IC内置 RC振荡器/8级整体亮度可调
前端
@Autowire7 分钟前
Layout-box-sizing是 CSS 中控制元素盒模型计算方式的核心属性,直接决定了元素的 width/height 是否包含内边距和边框
前端
alamhubb8 分钟前
反感pnpm的全链路污染?可以了解下这个对原项目零侵入,零修改完全兼容npm的monorepo工具
前端·javascript·node.js
叁两8 分钟前
“死了么”用户数翻800倍,估值近1亿,那我来做个“活着呢”!
前端·人工智能·产品
2501_9481949830 分钟前
RN for OpenHarmony AnimeHub项目实战:正在热播页面开发
javascript·react native·react.js
2501_9445210031 分钟前
rn_for_openharmony商城项目app实战-语言设置实现
javascript·数据库·react native·react.js·harmonyos
AdleyTales36 分钟前
vscode识别不了@提示找不到路径解决
前端·javascript·vscode
去哪儿技术沙龙1 小时前
去哪儿网前端代码自动生成技术实践
前端·ai编程
前端九哥1 小时前
装个依赖把公司电脑干报废了?npm i 到底背着我干了啥?
前端·javascript
溪海莘1 小时前
React入门:跟读官方快速入门教程(前端小白)
前端·react.js·前端框架