|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
0 h( C8 G7 g& l/ }2 _% j3 y- _5 U( X% o5 z5 D
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)6 |; d* Z# p. k4 y5 M9 U
{' a( V+ i( L9 z2 {
int
/ O% U9 [) t k4 }# m2 ?' ^$ p# Q% F subtype,: B2 c0 z6 @0 w! a8 {
type;3 K% L$ ^0 B2 f
tag_t
1 [3 J& f- Z# x( d8 r; l t object = NULL_TAG;
- y5 V: r# T7 ?/ ~3 ]9 N- g uf_list_p_t
; n# u/ o( W( @) t Z' c* f$ _ list;
! {9 I T# u2 Q. Y R6 e( s: T Q. B7 a/ ?3 P& M& ^# ~( i
UF_CALL(UF_MODL_create_list(&list));
% x" i6 C7 ]- k2 {4 F/ E+ i- }9 u& j2 V& W/ o' u8 w
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
E9 i6 L- y, G && (object != NULL_TAG))) Z- `8 y# }3 t) c+ b/ T
{
8 r! ]8 B0 u( j2 D8 n5 A UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));2 i4 i2 `# T! {& W) K' t& d# u
if ((type == UF_drafting_entity_type) ||
% g! h8 y7 E, N" C (type == UF_dimension_type) ||+ m0 r @! o$ P6 ~5 l
(type == UF_note_type) ||
* V% z8 P# l% R4 Z m' @ (type == UF_tol_feature_instance_type) ||+ J2 g+ T) ^' x0 c9 d" G9 g
((type == UF_tabular_note_type) &&' M( H! O+ a: p- {, z+ b' W
(subtype == UF_tabular_note_section_subtype)) ||0 y8 V& b7 E V) \" }" x' I
(type == UF_smart_model_instance_type) ||4 H2 ^" ^. ]2 B4 Y( X/ ^
(type == UF_pmi_filter_type))
/ ^9 g' c. M0 N$ x: j" c+ y s UF_CALL(UF_MODL_put_list_item(list, object));
& U( _ D5 s+ S8 _! \8 | }+ y+ o' |. K) L! `2 Q/ k
# g0 U" M! G) { return make_an_array(&list, objects);
$ C) } G' Z% y; |; W { j6 H}
' ^8 z7 n5 O `[/mw_shl_code]
/ F: s$ V% M: p% t |
|