|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
* U0 j7 B0 M5 d$ {% L9 W) `8 Q/ W) W7 m# K$ `6 h3 R% I$ z
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
0 S: d9 ^9 g& l{
, ]. U) f8 @9 r7 g# y- V# m int
$ \2 ^9 V; _) y! n0 | R subtype,' H, t% ^% d% R
type;
$ S9 {' {- J( n% j* S5 g/ t tag_t
( C! j- G$ W6 I+ t+ J5 i object = NULL_TAG;
& N- _, H4 q; \3 p- b uf_list_p_t
. b# o: |0 j/ G* Y9 ?) g( O; L list;$ Y) l" U! w$ n7 D
# m# q) r [: B3 Z UF_CALL(UF_MODL_create_list(&list));$ h9 D# f8 ~1 ]" H
/ W- g5 |5 u# }
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
G# u# q- K$ B6 B* d9 n! p; Q && (object != NULL_TAG))
3 G% t9 o$ N! j* T {
7 K" d7 b2 U4 Y( C: e UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));. }$ e& R* X5 [3 _$ F0 g
if ((type == UF_drafting_entity_type) ||
# s b a. ^" O (type == UF_dimension_type) ||
6 j" _3 j" \" u, z (type == UF_note_type) ||
6 h6 F7 \2 w t. Z# ^ (type == UF_tol_feature_instance_type) ||9 z# j5 Q4 e7 ?* L: i& B9 U* r
((type == UF_tabular_note_type) &&' Q. K% m1 c& M( c" y3 |1 o
(subtype == UF_tabular_note_section_subtype)) ||# Z( {: n8 W2 H- U* q4 ~3 P
(type == UF_smart_model_instance_type) ||$ G- v! }$ o0 h+ C5 A/ U# M0 ?
(type == UF_pmi_filter_type))
; m8 u1 @, S. x3 T4 s+ ` UF_CALL(UF_MODL_put_list_item(list, object));( {" n' e: D, O
}. Y* P* b# N' ]
& f' C1 }$ E- g& r
return make_an_array(&list, objects);
/ T0 o" o+ a; e: u}0 n3 }( q1 x8 Z4 n0 c$ y N/ H
[/mw_shl_code]
, [$ `- e% K" B) z% g; N |
|