点击查看详细介绍

UF_DRAW_ask_sxline_of_sxview() 函数的参数解释说明、函数详细用法,以及实例代码演示

misnn 8年前 613 0

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


函数结构:
UF_DRAW_ask_sxline_of_sxview
(
tag_t sxview_tag,
tag_t * sxline_tag
)

函数说明:
检索关联于给定的部分中的截面线标签 视图。

函数参数:
第1个参数为输入:
sxview_tag代表参数变量,tag_t 为输入参数类型,的剖视图标签

第2个参数为输出:
sxline_tag代表参数变量,tag_t * 为输出参数类型,相关剖面线的标签

UF_DRAW_ask_sxline_of_sxview函数实例代码演示:
下面的示例检索一个剖面视图的剖面线标记。
[quote]
#include <stdio.h>
#include <uf.h>
#include <uf_defs.h>
#include <uf_draw.h>
#include <uf_draw_types.h>
#include <uf_drf_types.h>
#include <uf_obj.h>
void ufusr(char *param, int *retcod, int param_len)
{
int ifail = 0;
tag_t sxview_tag = NULL_TAG;
tag_t sxline_tag;
char error_message[133];
char * sxview = "sx@2";
logical is_sxview;
ifail = UF_initialize();
if( ifail == 0 )
/* Find the tag of the section line from its name. */
ifail = UF_OBJ_cycle_by_name( sxview, &sxview_tag );
if( ifail == 0 )
{
/* Verify that the view is a section view. */
ifail = UF_DRAW_is_sxview( sxview_tag, &is_sxview );
}
if( ifail == 0 && is_sxview )
{
/* Get the sxline from the sxview tag. */
ifail = UF_DRAW_ask_sxline_of_sxview( sxview_tag,
&sxline_tag );
}
else if( !is_sxview )
printf( "Input view is not a section view.\n" );
printf( "UF_DRAW_ask_sxline_of_sxview sample " );
if( ifail != 0 )
{
ifail = UF_get_fail_message( ifail, error_message );
printf( "fails.\nError is: %s\n", error_message );
}
else
printf( "is successful.\n" );
ifail = UF_terminate();
}



[/quote]

0

最新回复 (0)
请登录后发表新帖