NX二次开发UF_MODL_update_all_features 函数介绍

109 阅读1分钟

UF_MODL_update_all_features

Defined in: uf_modl.h 
int UF_MODL_update_all_features(void )

overview 概述

Logs all the features in the current work part to the NX update list, then performs an update. You may use this function to check whether or not all the features in a part can be updated without modifying the part. This function is different from UF_MODL_update, which updates modified objects and dependent objects only. UF_MODL_update_all_features returns a value of zero if the update completes successfully. It returns the error code UF_MODL_ERR_PENDING_UPDATE, if it detects that the model has been modified and the corresponding update has not been performed yet. It also returns the error code of the first encountered failure, should the update fail.


将当前工作部件中的所有特性记录到 NX 更新列表中,然后执行更新。您可以使用此函数来检查是否可以在不修改零件的情况下更新零件中的所有特性。此函数不同于 UF _ MODL _ update,后者仅更新修改后的对象和依赖对象。如果更新成功,UF _ MODL _ update _ all _ properties 将返回零值。如果它检测到模型已被修改而相应的更新尚未执行,则返回错误代码 UF _ MODL _ ERR _ PENding _ UPDATE。如果更新失败,它还会返回第一次遇到的错误代码。

UFUN例子

获取源码例子请搜索 里海NX二次开发3000例专栏

parameters 参数