|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
% ]5 N5 y/ ]. M( Y8 ~6 B0 R6 | ^3 ]
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)& v* \1 Y+ {, O
{4 ]- B$ z6 D+ |$ j9 @) l- d% u" O
int
& X) i! D. C L% S" `2 T subtype,
; H# ~0 a1 p. |- t7 P9 O* f type;& d+ t+ @! {0 X y" \0 U* C# y( W
tag_t8 J9 P4 E7 u5 e$ c- k6 L9 }
object = NULL_TAG;6 u! E' r. s( U
uf_list_p_t. k0 P9 g- l. e; H+ @, P2 M
list;# C, d' m' B' w$ U: B
* u" c" M& N+ B0 r
UF_CALL(UF_MODL_create_list(&list));
. e' C+ }# D) K) u! A
: R% S# G8 h* {: g( U2 H while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
# x/ L" I, W" Y! l) ^ && (object != NULL_TAG)); f# m; u) c% V5 l
{
; P( G% i4 u) k& d UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
( C- m# Y5 D# r4 O if ((type == UF_drafting_entity_type) ||0 M( f: Y" c9 e8 k) K5 Z
(type == UF_dimension_type) ||* |4 E# e3 h/ C$ o; d
(type == UF_note_type) ||2 T" S! E2 h# J. j0 I
(type == UF_tol_feature_instance_type) ||+ z! e1 _3 Y6 W6 G+ L2 ]% F
((type == UF_tabular_note_type) &&- i* y3 ]* H5 C
(subtype == UF_tabular_note_section_subtype)) ||
" m+ m! T! T5 v; h: | (type == UF_smart_model_instance_type) || W9 R( U' {6 f" `, p0 z; l
(type == UF_pmi_filter_type))
4 F/ R3 I$ A+ x2 W. s UF_CALL(UF_MODL_put_list_item(list, object));' d5 P) ]- ?3 x' t) P
}3 w U+ A; i& \& L, U5 I" m+ }' s
! j' D1 A* b3 k& V
return make_an_array(&list, objects);/ e: \! K8 U" X
}- l! J2 X7 F# H: g# d/ l; N
[/mw_shl_code]: a O- t) n0 c- x
|
|