|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
8 U* h+ R5 \- z* V0 k$ W, B
& v- z! u0 W. e" `[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
8 u- Z3 b$ m9 |( E4 \8 I: ^( A8 S{8 J. {# \: v0 N( v r
int
5 O0 Q( S* l w subtype,
% V9 ^: W/ U/ Q4 J& g type;
% ^5 \, q" ~1 [3 Y$ A2 F tag_t+ h7 y8 y- i8 S% T, o- L) J
object = NULL_TAG;
6 q; E! t. O+ F; I% I uf_list_p_t
+ I; U" k( y, l% S7 T% ~* T8 u# q list;
4 \% L/ T' P& E+ ?* h! R5 O% G l5 n$ y% j5 E- ]+ l, o- ] `1 [
UF_CALL(UF_MODL_create_list(&list));, z; v7 N) H! d; r
" j. Y9 i: c/ K3 P/ P$ d
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
- |4 e2 E; L, D* Y% F+ w && (object != NULL_TAG))! F2 V/ K; R0 p! v+ L5 }0 p
{$ |+ V! @& Q% }* u6 ?
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
+ \% O7 X" C8 b" S' o" i if ((type == UF_drafting_entity_type) ||/ }) Q% f, I N) P! o8 I
(type == UF_dimension_type) ||' \7 @# X; V9 ]! Y" Q
(type == UF_note_type) ||
% g- b5 s6 e: b# A/ ]: U (type == UF_tol_feature_instance_type) ||
6 [% K: c4 x/ |4 S0 D ((type == UF_tabular_note_type) &&& s6 i2 B0 @- _! M6 |1 K
(subtype == UF_tabular_note_section_subtype)) ||) T+ u7 z9 Z5 K6 l* p" b" R
(type == UF_smart_model_instance_type) ||! @% V2 a4 D$ K7 s8 l, J
(type == UF_pmi_filter_type))6 n; O& s) o: W8 i" {# i
UF_CALL(UF_MODL_put_list_item(list, object));3 D9 V0 ]' j$ Y4 n7 I& x* k
}. c: h0 m# z- k. |' q; F3 V
; ~2 n0 ?; V% E3 w) J, F8 q return make_an_array(&list, objects);2 X) ?) g6 R7 I! C4 d+ I( N5 B
}
8 i: H8 X) ]2 K! n1 v[/mw_shl_code]
* B! b9 ~( i) M6 x, Y7 C+ ` |
|