UF_MODL_show_parent_curves
Defined in: uf_modl_curves.h
int UF_MODL_show_parent_curves(tag_t feature_tag, logical selectable, int * n_unch_disp_stat, UF_MODL_disp_info_p_t * unch_parents_disp_status, int * n_ch_disp_stat, UF_MODL_disp_info_p_t * ch_parents_disp_status )
overview 概述
This routine shows the parent NX curves of an input feature. The customer default variable Solids_MoveCurvesToOtherLayer, defined in ug_english.def and ug_metric.def will control the behavior of this routine.
If Solids_MoveCurvesToOtherLayer = on, this routine
will unblank all parent NX curves of the selected feature,
and will move the parent NX curves that lie on the non-selectable
layers to the work layer.
If Solids_MoveCurvesToOtherLayer = off, this routine
unblank all parent NX curves of the selected feature, and
will change the mask of all non-selectable layers on which
the parent NX curves lie to be selectable layers.
If selectable is TRUE and the parent NX curves are on visible but
non-selectable layers, this routine will either move these
parent NX curves to the work layer or change the mask of the
layers according to the value of Solids_MoveCurvesToOtherLayer.
这个例程显示输入特性的父 NX 曲线。Customer 缺省变量 Solids _ MoveCurvesToOtherLayer,在 ug _ chinese 中定义。Def 和 ug _ meter。Def 将控制这个例程的行为。如果 Solids _ MoveCurvesToOtherLayer = on,这个例程将删除所选功能的所有父 NX 曲线,并将位于不可选层上的父 NX 曲线移动到工作层。如果 Solids _ MoveCurvesToOtherLayer = off,这个例程取消所选功能的所有父 NX 曲线的空白,并且将改变所有不可选层的掩码,父 NX 曲线位于其上成为可选层。如果可选择为 TRUE,并且父 NX 曲线在可见但不可选的图层上,这个例程将要么将这些父 NX 曲线移动到工作图层,要么根据 Solids _ MoveCurvesToOtherLayer 的值更改图层的掩码。
UFUN例子
获取源码例子请搜索 里海NX二次开发3000例专栏
parameters 参数
| tag_t | feature_tag | Input | Input feature record eid 输入特性记录 |
| logical | selectable | Input | The parent curves are to be selectable 父曲线是可选择的 |
| int * | n_unch_disp_stat | Output | The number of parent curves whose display status were unchanged after the show action 显示操作之后显示状态不变的父曲线的数量 |
| UF_MODL_disp_info_p_t * | unch_parents_disp_status | Input / Output to UF_free | If NULL is passed in, then nothing is returned. If a pointer is passed in, then an array of UF_MODL_disp_info_t structures will be allocated, one for each parent curve whose display status was unchanged. The UF_MODL_disp_info_t structure will have the original display information for the parent curve. This array can then be passed to UF_MODL_hide_parent_curves to restore the curves to their original display status. This array must be freed by the caller by calling UF_free. 如果传入 NULL,则不返回任何内容。如果传入一个指针,那么将分配一个 UF _ MODL _ disp _ info _ t 结构数组,其中一个数组对应于显示状态未变的每条父曲线。UF _ MODL _ disp _ info _ t 结构将拥有父曲线的原始显示信息。然后,可以将这个数组传递给 UF _ MODL _ hide _ father _ Curve,以将曲线恢复到其原始显示状态。调用方必须通过调用 UF _ free 释放此数组。 |
| int * | n_ch_disp_stat | Output | The number of parent curves whose display status were changed after the show action, i.e. the layer number or blank status was changed by this function. 在显示动作之后,显示状态被改变的父曲线的数量,也就是层数或空白状态被这个函数改变。 |
| UF_MODL_disp_info_p_t * | ch_parents_disp_status | Input / Output to UF_free | If NULL is passed in, then nothing is returned. If a pointer is passed in, then an array of UF_MODL_disp_info_t structures will be allocated, one for each parent curve whose display status was changed. The UF_MODL_disp_info_t structure will have the original display information for the parent curve.This array can then be passed to UF_MODL_hide_parent_curves to restore the curves to their original display status. This array must be freed by the caller by calling UF_free. 如果传入 NULL,则不返回任何内容。如果传入一个指针,那么将分配一个 UF _ MODL _ disp _ info _ t 结构数组,其中一个数组对应于显示状态被更改的每条父曲线。UF _ MODL _ disp _ info _ t 结构将拥有父曲线的原始显示信息。然后,可以将这个数组传递给 UF _ MODL _ hide _ father _ Curve,以将曲线恢复到其原始显示状态。调用方必须通过调用 UF _ free 释放此数组。 |