NX二次开发UF_MODL_ask_body_feats 函数介绍

164 阅读1分钟

UF_MODL_ask_body_feats

Defined in: uf_modl.h 
int UF_MODL_ask_body_feats(tag_t body, uf_list_p_t * feature_tag_list )

overview 概述

Calling UF_MODL_ask_body_feats, with a solid body (type 70, subtype 0) as input, returns a list of features associated to that body. The handling of this list can be done by using the UF_MODL__list routines. The appropriate input to this routine can be obtained by calling UF_MODL_ask_object() and inputting the above type, and subtype.

The features are returned in the current creation order.

No longer returns information about sketches or datum planes. Does not include features of type symbolic thread on the list since the symbolic thread feature is an annotation feature and does not have a body that contributes to the solid body. Use UF_MODL_ask_feat_relatives to obtain the symbolic thread feature.


调用 UF _ MODL _ ask _ body _ feats,以实体(类型70,子类型0)为输入,返回与该实体相关联的特性列表。可以使用 UF _ MODL _ _ list 例程来处理这个列表。可以通过调用 UF _ MODL _ ask _ object ()并输入上述类型和子类型来获得该例程的适当输入。特性以当前创建顺序返回。不再返回有关草图或基准面的信息。不包括列表中符号线程类型的特性,因为符号线程特性是一个注释特性,并且没有一个对实体有贡献的主体。可以使用 UF _ MODL _ ask _ fit _ 親戚获得符号线程特性。

UFUN例子

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

parameters 参数

tag_tbodyInputBody object identifier
身体对象标识符
uf_list_p_t *feature_tag_listOutput to UF_freeAddress of a pointer to a list of Feature tags. Null pointer is returned if an error occurs (`error' > 0). Use UF_MODL_delete_list to free space allocated for this linked list.
指向一列 Feature 标记的指针的地址。如果发生错误(‘ error’> 0) ,则返回空指针。使用 UF _ MODL _ delete _ list 释放为此链表分配的空间。