NX二次开发UF_MODL_ask_law_extension1 函数介绍

33 阅读1分钟

UF_MODL_ask_law_extension1

Defined in: uf_modl_freeform.h 
int UF_MODL_ask_law_extension1(tag_t law_extension, UF_MODL_lawext_data_p_t law_extension_data )

overview 概述

Inquires Law Extension feature and populates Law Extension Open API data structure. A copy of length and angle law is provided in the data structure. The memory allocated for the structure may be freed using UF_MODL_free_law_extension().

If this is a collector enabled Law Extension then the collection will be retuned instead of the array of faces. See UF_MODL_ask_law_extension() for the non-collector enabled version of this function.


查询法律扩展功能并填充法律扩展开放 API 数据结构。在数据结构中提供了长度和角度定律的副本。分配给结构的内存可以使用 UF _ MODL _ free _ law _ tended ()释放。如果这是一个收集器启用的法律扩展,那么收集将被重新优化,而不是面数组。有关此函数的非收集器启用版本,请参见 UF _ MODL _ ask _ law _ tended ()。

UFUN例子

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

parameters 参数

tag_tlaw_extensionInputLaw Extension feature object identifier.
法律扩展特征对象标识符。
UF_MODL_lawext_data_p_tlaw_extension_dataOutputLaw Extension Open API data structure.
法律扩展开放 API 数据结构。