|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
6 N. `) Z+ J* Z
- d! W# k( _) D5 u
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)2 | w2 c2 Q6 x2 `
{
9 p7 Q1 D! z- W# Y% L( d int
* [* u7 j+ [: U: F' P+ p2 P4 a subtype,2 B8 F$ _9 G3 E7 L0 }7 B) s6 L
type;
# Q `* n2 E4 Y$ |. Q0 x$ u# d: S: q tag_t
8 J3 `& e4 {" ] U4 q) z }+ j object = NULL_TAG;
% l7 c1 V1 V0 j$ ]0 Q; W uf_list_p_t
# Q! n6 r; {3 @ \$ Y list;
/ ]& ^0 j2 D# y$ q& y& g
, @$ ]' W+ @% Y UF_CALL(UF_MODL_create_list(&list));2 y5 N6 F: O( O
4 ]+ R- _% n1 n; A/ { while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object)); C! f1 m6 }5 r) _. P
&& (object != NULL_TAG))
4 s$ M: C' [6 S, l( J- A7 j {& x# z0 M D5 q
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));' ?" ]: c) h" E$ |7 t. E
if ((type == UF_drafting_entity_type) ||5 }: x# V K( L w
(type == UF_dimension_type) ||
c, I+ D5 M7 `$ H; y (type == UF_note_type) || d& Q B' K- ^( i3 J2 w7 O# c" v
(type == UF_tol_feature_instance_type) ||
* @9 k3 k' }& R$ y ((type == UF_tabular_note_type) &&& o& S+ f: O$ O! I( e/ h
(subtype == UF_tabular_note_section_subtype)) ||
7 K, ~$ ~1 r- Z$ x) V5 M; c (type == UF_smart_model_instance_type) ||
: V. V @# q3 }& q (type == UF_pmi_filter_type))3 d7 y4 `' o7 o! ~
UF_CALL(UF_MODL_put_list_item(list, object));$ B- o" o/ w- x" X1 v5 m% A% ^
}
& G0 f5 a% Y- P
4 u1 q& \% p) r return make_an_array(&list, objects);) B8 L9 U# g$ u7 d V& W- j
}4 U4 d1 n2 V) _0 `1 h
[/mw_shl_code]
/ z; P/ m' X' o+ S5 u |
|