|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
. W5 J9 K ]2 h0 g1 G# ]4 ]. o1 O# o N4 e
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
! B0 v: G2 v7 b{
3 g( K$ i# @; A2 j% J int/ w4 a( P( j' e$ T* \ p8 |: w
subtype,
8 K& O0 p+ }/ k& @/ Z type;& B) b7 ^6 F# Y6 z3 |; z& l
tag_t
0 y' O6 H( f! Z object = NULL_TAG;% T; M( o) B6 s j# c. z
uf_list_p_t, q; p0 @/ S! K Z! i0 P: [
list;
) J7 P. g! a6 k0 ~, g( T
3 y; e9 d: a3 q* G2 G# j& I UF_CALL(UF_MODL_create_list(&list));
# h M9 H# @1 ^$ G ~, h9 `' J. G" x# b* z+ }
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
. _ j" j7 `3 p' @: K: G && (object != NULL_TAG))
1 e' K* R' h' f% ~% | {
8 R( ]9 Z/ A c m) Q( { UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));' p: @9 q0 w4 B7 u
if ((type == UF_drafting_entity_type) ||( ^- u- Y9 e H3 q
(type == UF_dimension_type) ||
; h/ I3 a2 k$ J0 j0 e (type == UF_note_type) ||
& `0 }7 V& g% G/ ~ (type == UF_tol_feature_instance_type) ||
, H; g8 @4 x1 \( t0 V* ~ ((type == UF_tabular_note_type) &&
6 L z) h3 f( g! n0 ^5 l0 Q4 ]! d+ e (subtype == UF_tabular_note_section_subtype)) ||
+ ]! U4 v) A* S2 @7 `* q (type == UF_smart_model_instance_type) ||& M/ F0 \0 d6 {& T) ~! j
(type == UF_pmi_filter_type))
7 s9 _0 V, L! `6 x' b+ V* N( h% o UF_CALL(UF_MODL_put_list_item(list, object)); \0 _$ F2 _- h5 B& P
}
, p3 ?) N" l* I: Y
w: k( V. `/ A0 }( ~ return make_an_array(&list, objects);
) U$ v& P6 J, u; Y [}; s! N" F: o1 s# ~0 v6 O# n6 h/ m
[/mw_shl_code]
7 x0 R( _1 O5 ~- _6 B |
|