|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
# C) v1 z+ y, Z0 C" c l/ T2 b' Y: M9 i. E" C% I: Q
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
3 t4 R+ E5 Y L{1 y4 M: z% ^8 e8 l) q) ?' Z+ i
int( O) l5 z4 i: {
subtype,
- n0 A9 n. c& v. Z( d type;$ m7 N2 F6 e- j; ]$ I
tag_t# x9 L& \3 t3 [
object = NULL_TAG;
* k8 m, ^% x3 A1 F3 S uf_list_p_t
, Y6 Z0 [/ w3 r- R N list;+ n2 F9 K; N" q2 }( j9 z
^! t! Y8 V5 l O$ T
UF_CALL(UF_MODL_create_list(&list));
9 _2 P/ a g E( Z' }! {! Y( Y- x
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object)); q3 T3 {6 @* G
&& (object != NULL_TAG))
/ \3 v n9 |8 i+ @; U {' F2 F: Y9 {) Y$ t: Y
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
E' u6 o# N8 t- |2 M ]4 H% [ if ((type == UF_drafting_entity_type) ||
C; g" H# G m) ]; X# @ (type == UF_dimension_type) ||
& x: J0 ~ ^) @ (type == UF_note_type) ||9 l5 E6 k- t! N) g2 T7 b
(type == UF_tol_feature_instance_type) ||
- C4 B. Z. a! u0 l7 |# i: ^: Z0 u ((type == UF_tabular_note_type) &&
# c) @& M. A4 ]7 Y (subtype == UF_tabular_note_section_subtype)) ||- a P2 Q1 G0 U
(type == UF_smart_model_instance_type) ||
, V5 U7 A2 T$ S" t! A (type == UF_pmi_filter_type))
6 ^9 I7 p( y* J9 c R7 l! b7 E+ C( P UF_CALL(UF_MODL_put_list_item(list, object));
# ~$ P! i: n9 i5 G }
0 j5 \$ C1 u! Z' t) ] a- d) M C! c4 B2 l$ }& W
return make_an_array(&list, objects);8 c3 }, F0 S2 [3 C. _
}
; U9 _0 o: h% B* W( n( W[/mw_shl_code]
0 z( V& t! T P. e4 y |
|