当前位置: 首页 > news >正文

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_ttargetInputTarget body against which interference is checked
intnum_toolsInputNumber of tool bodies specified in tools array
tag_t *toolsInputTool bodies whose interference with target is inquired.
Dimensioned to num_tools
int *resultsOutputInterference 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 * *filenameOutput to UF_*free*pointer to dynamically allocated path
filename must be freed with UF_free()

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

相关文章:

  • QT 文件选择对话框 QFileDialog
  • # 如何使用OpenCV进行发票的透视变换和二值化处理
  • 如何观察epoll_threadpool_echo_server 线程的变化
  • 【HarmonyOS 5】App Linking 应用间跳转详解
  • CDN 回源:原理、作用与工作流程
  • 排序算法——基数排序
  • YY/T 1732-2020口腔曲面体层X射线模体
  • Nginx1.26.2安装包编译安装并配置stream模块
  • 101alpha_第6个
  • MYSQL 快速解析
  • k8s术语之DaemonSet
  • SEMI E40-0200 STANDARD FOR PROCESSING MANAGEMENT(加工管理标准)-(一)
  • Spark缓存--persist方法
  • 【C语言】文件操作(续)
  • AI原生手机:三大技术阵营的终极对决与未来展望
  • MyBatis(进阶)(xml标签)
  • 【Ubuntu】安裝向日葵远程控制
  • React Native基础环境配置
  • 【办公类-99-05】20250508 D刊物JPG合并PDF便于打印
  • CTF之常见的文件头和文件尾
  • 本科生已发14篇SCI论文被指由其教授父亲挂名,重庆大学成立工作组核实
  • 青岛双星名人集团管理权之争:公司迁址,管理层更迭
  • 习近平同俄罗斯总统普京举行会谈
  • 外交部答澎湃:美方攻击抹黑中加关系与合作的卑劣图谋不会得逞
  • 太原一高中生指出博物馆多件藏品标识不当,馆方已邀请他和专家共同探讨
  • 又一日军“慰安妇”制度受害者去世,大陆登记在册幸存者仅剩7人