admin 发表于 2018-3-30 15:14:33

NX二次开发源码分享:移动视图



NX二次开发源码分享:移动视图

做个参考,自己改改!

static void do_it(void)
{
    char
      view_name="";
    double
      ref_pt,
      view_bounds;
   
    select_a_view("Select view to move to 0, 0",view_name);
    printf("\n The View Name is: %s\n",view_name);
   
    UF_CALL( uc6485(view_name,view_bounds));
    printf( "Left bound is %f\n",view_bounds);
    printf( "Bottom bound is %f\n",view_bounds);
    printf( "Right bound is %f\n",view_bounds);
    printf( "Top bound is %f\n",view_bounds);


    ref_pt=((view_bounds-view_bounds)/2);
    ref_pt=((view_bounds-view_bounds)/2);

    UF_CALL( uc6484("SHEET1",view_name,ref_pt));


}
页: [1]
查看完整版本: NX二次开发源码分享:移动视图