点击查看详细介绍

装配组件包容盒源码

pooltool 9年前 8536 74

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


装配组件包容盒源码

#include <stdio.h>
#include <uf.h>
#include <uf_obj.h>
#include <uf_modl.h>
#include <uf_object_types.h>
#include <uf_part.h>#define UF_CALL(X) (report_error( __FILE__, __LINE__, #X, (X)))
static int report_error( char *file, int line, char *call, int irc)
{
    if (irc)
    {
        char    messg[133];
        printf("%s, line %d:  %s\n", file, line, call);
        (UF_get_fail_message(irc, messg)) ?
            printf("    returned a %d\n", irc) :
            printf("    returned error %d:  %s\n", irc, messg);
    }
    return(irc);
}
static tag_t ask_a_body(tag_t part, tag_t body)
{
    int
        subtype,
        type;
    do
    {
        UF_CALL(UF_OBJ_cycle_objs_in_part(part, UF_solid_type, &body));
        if (body) UF_CALL(UF_OBJ_ask_type_and_subtype(body, &type, &subtype));
    } while (body && subtype);
    return (body);
}
static void mk_box(double *arr)
{
    char
        *len[3],
        len_t[3][20];
    tag_t
        box;
    len[0] = &len_t[0][0];
    len[1] = &len_t[1][0];
    len[2] = &len_t[2][0];

●●●请先 登陆注册 后查看●●●

void ufusr(char *param, int *retcode, int paramLen)
{
    if (!UF_CALL(UF_initialize()))
    {
        do_it();
        UF_CALL(UF_terminate());
    }
}
int ufusr_ask_unload(void)
{
    return (UF_UNLOAD_IMMEDIATELY);
}


4

最新回复 (74)
  • liss28 9年前
    1

    看看,谢谢分享

  • jimk 9年前
    2

    学习一下,谢谢分享。

  • feitian1987 9年前
    3

    回复:楼主
    看看一下

  • wagfeg 9年前
    4

    回复:楼主看看一下

  • q1355188058 8年前
    5

    学习一下,谢谢分享。

  • habref 8年前
    6

    谢谢分享。

  • wucrew 8年前
    7

    谢谢分享,学习,辛苦了

  • zhouyuxing 8年前
    8

    666666666666666666

  • lzhyi VIP会员 8年前
    9

    谢谢分享,学习,辛苦了

  • alen_923 8年前
    10

    谢谢分享,学习,辛苦了

  • yccong 8年前
    11

    学习中,谢谢楼主分享!!!

  • 2013jixieshi 8年前
    12

    感谢楼主,辛苦了,谢谢分享

  • z4439456 8年前
    13

    谢谢楼主分享,辛苦了

  • 化名走天下 8年前
    14

    谢谢楼主的分享多谢多谢

  • bbs1860 8年前
    15

    学习中,谢谢分享!!!

请登录后发表新帖