|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
3 R/ X8 V: |( C" c. q7 P; [
}& E7 s! u% V9 R" b% f' {[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
. Z7 E2 N: a, e3 N{
" u; d& {" R3 H8 u! D int
" Q- a- a5 x7 X subtype,/ n0 e; O1 a* P) T4 l/ ]
type;$ T- j$ H1 s7 \( b8 O1 {) Z
tag_t
/ h1 z% k# L- g; D object = NULL_TAG;
5 G; v5 u8 p6 Q1 V' C p0 c$ t uf_list_p_t o5 g$ h" X/ A; d% u
list;. e2 \8 b% J8 ~* K8 l# A5 V) {
+ z4 q! l% _* x! j# T
UF_CALL(UF_MODL_create_list(&list));0 r9 c3 q" S8 c b
- v- V T2 [) x0 g2 N
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object)), _# ~% S: U/ L5 V! Y
&& (object != NULL_TAG))
% v& N7 j$ I; p0 N8 T4 u _ {
0 G8 a, K+ J6 D% M UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
0 c- \$ D$ J0 B" F- ^% W9 M, R if ((type == UF_drafting_entity_type) ||
# P/ ~- @2 h5 I) F- P (type == UF_dimension_type) ||
9 n5 n: w7 g8 s/ k1 W D1 { (type == UF_note_type) ||
* Z6 n* O$ ^7 m0 t! _# ^8 M* h8 | (type == UF_tol_feature_instance_type) ||
; [& z. A+ [7 S ((type == UF_tabular_note_type) &&
& V/ _! |1 W( r. X6 C (subtype == UF_tabular_note_section_subtype)) ||: A, d4 ?* R8 d; A: @% r- |# e# g
(type == UF_smart_model_instance_type) ||/ K! O) H e' P7 Y% O! Q& p$ \
(type == UF_pmi_filter_type))* x* {5 W- e; r# D/ ~4 ^# Y `0 I, {
UF_CALL(UF_MODL_put_list_item(list, object));
2 I n+ P" a. n% g; V. V }# c% M, N8 g9 l, J0 Y
* n. c- G6 H9 |5 g7 `! R
return make_an_array(&list, objects);0 b3 ^% `! O4 y
}4 w* H& R7 I, o( u+ P
[/mw_shl_code]
2 @ Q v( |! h" g7 Z0 S |
|