|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1 m/ ^ c5 |1 \# r) _& i1 I
3 |: f& \' v8 N7 ~[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
/ ?) Z/ K/ `! s{
. e3 D# w! B- b9 c6 P int
1 x* ?7 C/ _1 U. c subtype,) g' z5 j) }! W- C9 ]
type;
. P- b" p6 ]) ]+ l; K4 ^ tag_t0 s8 z# B( r+ ?# k
object = NULL_TAG;" P" c/ l+ j$ `) A; K
uf_list_p_t: f' q; B; b1 A0 `3 _
list;
. s' C$ E* ?+ C6 h
) Y! |1 n7 O1 Q) u1 _6 t, m UF_CALL(UF_MODL_create_list(&list));
. A+ j* S! [. H; `/ {4 W3 J
* }5 k4 Y. u- } while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))9 S0 M" J9 }$ l/ m. M. @$ V
&& (object != NULL_TAG))$ i- t1 D# h" G& q
{
$ @3 J# v8 p$ L- D- |* @6 b UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
0 ?8 F) y; ?$ m, ?- { if ((type == UF_drafting_entity_type) ||
+ B& e- P& {7 u (type == UF_dimension_type) ||5 r# V0 k" p' O+ C3 q; h2 E" c
(type == UF_note_type) ||
# E% }/ Q: @0 q" j D6 Z (type == UF_tol_feature_instance_type) ||
, z% ?6 E0 M3 B9 A% }1 E ((type == UF_tabular_note_type) &&% P; }0 j+ I/ \+ E9 E3 ?
(subtype == UF_tabular_note_section_subtype)) ||
! K o$ ?: X- v" u8 I0 N (type == UF_smart_model_instance_type) ||3 ^1 t: X; U3 T
(type == UF_pmi_filter_type))) ]* v2 V' i; C: M
UF_CALL(UF_MODL_put_list_item(list, object));7 K G2 m1 }' q2 ^! v/ R
}0 L, |" p- g; g a: G3 i* ?) I; ~* |
8 h) ~( k( }0 ^! I* ] return make_an_array(&list, objects);
0 o% R' ~) k6 e5 c7 ^* \2 d9 e6 r}
3 {! I/ d" |) v! Y4 x$ m1 b0 b[/mw_shl_code]& v; j, |+ n g
|
|