UF_MODL_ask_formable_feature_state
Defined in: uf_modl_smd.h
int UF_MODL_ask_formable_feature_state(const tag_t feature_tag, UF_MODL_state_e_t * const state, UF_MODL_state_info_t * const state_info )
overview 概述
This routine will return the current state of the given feature. The given feature tag must be the tag Flange, Inset Flange, General Flange, SMBridge, or SMBend feature.
The state returned will be either UF_MODL_formed_state, UF_MODL_unformed_state, or UF_MODL_other_state.
When UF_MODL_other_state is returned and a non-NULL pointer to a UF_MODL_state_info structure is given, this structure will be filled with the current intermediate state of the feature.
The UF_MODL_state_info structure will hold a Process Factor if the feature tag belongs to a Flange, Inset Flange feature. The Process Factor can be thought of as a percentage of the design angle of the feature. For example, a Process Factor of 1.0 represents a fully Flange. A Process Factor of 0.0 represents a fully unformed Flange. A Process Factor of 0.5 represents a Flange in an intermediate state that is half-formed.
The UF_MODL_state_info structure will hold a State Index if the feature tag belongs to a General Flange or SMBridge. The State Index represents an index into the array of states stored by the General Flange or SMBridge feature. Note: this value is currently not used.
If the given_feature is an SMBend, no state information other than UF_MODL_formed_state or UF_MODL_unfromed_state will be returned.
这个例程将返回给定特性的当前状态。给定的特性标记必须是标记法兰、插入法兰、一般法兰、 SMBridge 或 SMBend 特性。返回的状态将是 UF _ MODL _ form _ state、 UF _ MODL _ unform _ state 或 UF _ MODL _ other _ state。当返回 UF _ MODL _ other _ state 并给出一个非 NULL 指针指向一个 UF _ MODL _ state _ info 结构时,这个结构将被该特性的当前居间态填充。UF _ MODL _ state _ info 结构将保存一个 Process Factor,如果功能标签属于一个 Flange,Inset Flange 功能。过程因素可以被认为是一个百分比的设计角度的特点。例如,过程因子1.0表示一个完整的法兰。工艺系数为0.0表示完全未成形的法兰。过程系数为0.5表示半成形居间态中的法兰。如果功能标签属于通用法兰或 SMBridge,UF _ MODL _ State _ info 结构将保存一个状态索引。状态索引表示通用法兰或 SMBridge 特性存储的状态数组的索引。注意: 当前不使用此值。如果给定的特性是 SMBend,那么将不返回除 UF _ MODL _ form _ state 或 UF _ MODL _ unFromed _ state 之外的任何状态信息。
UFUN例子
获取源码例子请搜索 里海NX二次开发3000例专栏
parameters 参数
const tag_t | feature_tag | Input | The tag of a Flange, Inset Flange, General Flange, SMBridge, or SMBend feature. 标签的法兰,插入法兰,一般法兰,SMBridge,或 SMBend 功能。 |
UF_MODL_state_e_t * const | state | Output | The current state of an SMBend feature: either UF_MODL_formed_state, UF_MODL_unformed_state or UF_MODL_other_state. SMBend 特性的当前状态: UF _ MODL _ form _ state、 UF _ MODL _ unform _ state 或 UF _ MODL _ other _ state。 |
UF_MODL_state_info_t * const | state_info | Output | Optional. If a non-NULL pointer to a UF_MODL_state_info_t structure is given here, it will be filled with the state information of the feature. 可以选择。如果这里给出了一个指向 UF _ MODL _ state _ info _ t 结构的非 NULL 指针,那么它将填充该特性的状态信息。 |