iCAx开思工具箱
标题:
大家谁知道查询尺寸个数是用的哪个函数啊?知道的说下,谢谢啦
[打印本页]
作者:
86112zhao
时间:
2010-7-14 15:47
标题:
大家谁知道查询尺寸个数是用的哪个函数啊?知道的说下,谢谢啦
大家谁知道查询尺寸个数是用的哪个函数啊?知道的说下,谢谢啦
作者:
zjs
时间:
2010-7-14 19:31
用数据库循环,用这个类型筛选
#define UF_dimension_type 26
作者:
86112zhao
时间:
2010-7-15 09:41
2#
作者:
86112zhao
时间:
2010-7-15 09:45
谢谢zjs,我是刚学ug二次开发的,如果你有类似方面的例子给上传几个让我们这些新手学习学习,谢谢了,如果没有的话也没关系,我再找找。
2#
作者:
zjs
时间:
2010-7-22 00:35
这是report obj information 的,可以参考一下
static void report_object_info(char *what, tag_t object)
{
int
status,
subtype,
type;
tag_t
owner;
char
name[UF_OBJ_NAME_LEN + 1],
msg[133];
UF_OBJ_disp_props_t
disp_props;
UF_CALL(UF_UI_open_listing_window());
if (object != NULL_TAG)
{
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
sprintf(msg, "%s = %d, type = %d, subtype = %d, ", what, object, type,
subtype);
if (UF_OBJ_is_object_a_promotion(object)) strcat(msg, "promotion, ");
if (UF_ASSEM_is_occurrence(object)) strcat(msg, "occurrence, ");
UF_CALL(UF_UI_write_listing_window(msg));
if (!UF_CALL(UF_OBJ_ask_owning_part(object, &owner)))
{
sprintf(msg, "owned by %d, ", owner);
UF_CALL(UF_UI_write_listing_window(msg));
}
if (!uc6409(object, &status, name) && (status == 1))
{
sprintf(msg, "view dependent in %s, ", name);
UF_CALL(UF_UI_write_listing_window(msg));
}
if (!UF_OBJ_ask_name(object, name))
{
sprintf(msg, "named %s, ", name);
UF_CALL(UF_UI_write_listing_window(msg));
}
status = UF_OBJ_ask_status(object);
sprintf(msg, "status %d\n", status);
UF_CALL(UF_UI_write_listing_window(msg));
if (UF_OBJ_is_type_displayable(type))
{
UF_CALL(UF_OBJ_ask_display_properties(object, &disp_props));
sprintf(msg, " layer = %d, color = %d, blank = %d, width = %d, "
"font = %d, highlight = %d\n", disp_props.layer,
disp_props.color, disp_props.blank_status,
disp_props.line_width, disp_props.font,
disp_props.highlight_status);
UF_CALL(UF_UI_write_listing_window(msg));
}
}
else
{
sprintf(msg, "%s = %d (NULL_TAG)\n", what, object);
UF_CALL(UF_UI_write_listing_window(msg));
}
}
作者:
UG008
时间:
2010-7-24 08:39
UfS.Modl.AskBoundingBoxExact(object_tag, csys_tag, min_corner, direction, distances)创建最大包体返回最大外形尺寸
作者:
86112zhao
时间:
2010-8-12 10:09
谢谢
5#
作者:
SWORDINHAND
时间:
2012-6-12 16:09
学习了,谢谢
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3