|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
9 e# o/ o5 M2 ]- E7 c4 |
% ^3 n/ v+ b. W9 |$ ~* K[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
" |0 M0 @' g$ a/ I4 E1 z, k! a{6 \/ q: z5 q/ q! l3 \7 C0 C# m
int
* J. R5 ]" p; Y% c subtype,+ x: ~! H8 j) Q* U, p+ v
type;0 Y: L3 v! \/ f& V+ {6 I
tag_t5 M" G5 X# @# g: T9 X* t, ^
object = NULL_TAG;. I! x# b* v4 R" B# i
uf_list_p_t! M6 `3 Q/ ~ G x) R/ T
list;9 r5 L( S; H& o5 ^; {" t
7 `9 x) k0 b8 P0 {' ?
UF_CALL(UF_MODL_create_list(&list));
/ d* c1 A& L1 [+ F5 h& ~% m! ]- Q4 I4 y$ J! S* ^( {* d& C
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))- @: `- Z# K* E2 S! _; P( B$ E
&& (object != NULL_TAG))
4 O7 b4 r9 Y* c: P% s: x {
6 [' o/ B! }' X- r% q1 Z1 V UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));- i3 \0 \. P: j2 U
if ((type == UF_drafting_entity_type) ||5 S0 P" C5 V' G, b9 h6 C
(type == UF_dimension_type) ||, ^" [6 e/ [/ }8 `' H( o
(type == UF_note_type) ||4 U g' i) i; G+ g7 j
(type == UF_tol_feature_instance_type) ||) l; V! Q3 q% O7 ]& J, y
((type == UF_tabular_note_type) &&+ E7 O+ `3 a3 s( s
(subtype == UF_tabular_note_section_subtype)) ||
# k) \. c- \' V& H4 r (type == UF_smart_model_instance_type) ||
3 C% B- o: F, y1 h+ V1 h (type == UF_pmi_filter_type))
! ~1 s4 Z( l) `- d9 `' b5 J# L UF_CALL(UF_MODL_put_list_item(list, object));( T. G1 c5 ~2 D9 H% S) W0 H
} f3 L% Z( @( [6 J
/ l5 h& o s- Y T9 g. n
return make_an_array(&list, objects);2 |& r6 [. O* }% b
}
$ i$ T- C, @# P! R9 j d% K[/mw_shl_code]2 P* I# J4 l2 m& j
|
|