以下是帮助文档给出的例子:
/*
This example imports the BOTTOM view onto the drawing as an
active view, with a scale of 1.0, no anchor point. It uses the stored
reference point. The drawing member view inherits the model view's
boundary.
*/
#include <stdlib.h>
#include <stdio.h>
#include <uf.h>
#include <uf_defs.h>
#include <uf_draw.h>
#include <uf_draw_types.h>
#include <uf_obj.h>
#include <uf_part.h>
void ufusr(char *param, int *retcod, int param_len)
{
int ifail = 0;
double reference_point[2] = {10.0, 12.0};
tag_t drawing_tag = NULL_TAG;
tag_t part_tag = NULL_TAG;
tag_t view_tag = NULL_TAG;
tag_t draw_view_tag = NULL_TAG;
char error_message[133];
char *view_name = "BOTTOM";
UF_DRAW_view_info_t view_info;