|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( A8 n: }0 W; A
( F; m: b5 H8 I[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
% f8 `9 u8 b$ Z$ S4 g{2 G+ ^7 c/ A' W
int7 h8 v3 Y; Y/ ^2 P0 _/ J
subtype, ~3 w# X' R% }$ |1 B6 c$ x
type;. {& M5 D! J' |0 N* S
tag_t' [3 S8 }: L& ?+ T: d2 O; B& |
object = NULL_TAG;
' g/ @# l) \1 H. c uf_list_p_t4 m) m$ V" d1 u) g, a) v
list;' T+ p& J7 V: O0 h+ t2 s6 x
( L; p' T. v, @8 \
UF_CALL(UF_MODL_create_list(&list));* b2 Q S; h" w$ q h% d8 U) w
* Z) D6 J- v0 F$ j2 a4 w: h while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
8 z( t9 A7 R- ^2 v& s && (object != NULL_TAG))
* l% h: Z% q# q1 g8 Y. i2 ?% k( O/ F {( U% l, A8 v9 D6 i" r6 r, h' T. U
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
& t, t2 _6 o$ v8 c/ ^ if ((type == UF_drafting_entity_type) ||
( e- }$ |, S _2 } (type == UF_dimension_type) ||6 x3 U' l. M4 J/ P9 E9 ~
(type == UF_note_type) ||
7 Q: x8 f4 w7 | F( X% [& @ (type == UF_tol_feature_instance_type) ||) H5 P2 `; z/ E% b
((type == UF_tabular_note_type) &&# Z8 Y* Z( h' d; }: E M
(subtype == UF_tabular_note_section_subtype)) ||$ P( C! B Z' o" ~& q
(type == UF_smart_model_instance_type) ||
( n. ^; _' U! z8 K. l9 K) L (type == UF_pmi_filter_type))
1 g3 U: N7 a3 Z8 M3 A; ^ UF_CALL(UF_MODL_put_list_item(list, object));
# p4 R: C+ R# r, b% H/ h- @- n/ [ }" Q3 M( A; T; j9 t, \' o4 V3 q
! e* }7 v3 }; h return make_an_array(&list, objects);) q0 w* \+ I) ?. X
}
$ I& ~5 J. V: h6 c# c[/mw_shl_code]
- t0 D( O5 R0 A5 b |
|