|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1 q% y$ s* f4 `5 s/ u
5 ~' ]( g8 A, f: _[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)# T% r7 K( u x+ C7 x7 D Y2 `
{4 f) b+ Z8 o' Q. \* ~# B* r
int" f% B% @3 v0 a' c* D
subtype,2 ~8 ~& x8 T# r7 \; Z
type;- }' w1 [" ~" i7 P
tag_t
9 F0 n8 T3 G; M$ a; @ object = NULL_TAG;
7 ^0 r* R8 j" t1 y uf_list_p_t
, G6 G5 A1 K% c) w9 } list;0 W; h/ e4 Q1 l/ a7 n
$ U' A0 Z3 O7 e9 A) J. `
UF_CALL(UF_MODL_create_list(&list));6 {' M1 b; d8 I
4 O2 d# X; ]0 a- j1 P4 d d while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
' h( u- c9 g, t && (object != NULL_TAG))
; @' c1 D& n0 u {
# f' p& G- N! b UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
7 C% D! w. R$ C& ^ l! P if ((type == UF_drafting_entity_type) ||; ]; `9 }: i! ]) }7 \
(type == UF_dimension_type) ||0 l/ p; M9 i; A8 q( ~' C
(type == UF_note_type) ||
' {. o# j2 n# R) I (type == UF_tol_feature_instance_type) ||1 u8 }+ a# z& \: E+ i4 c
((type == UF_tabular_note_type) &&
* e' d+ Z6 G9 G ] (subtype == UF_tabular_note_section_subtype)) ||
+ N+ G8 V- E! F7 m- @ (type == UF_smart_model_instance_type) ||3 `5 J) c) @* w
(type == UF_pmi_filter_type))
2 d3 n. }5 R; O4 x/ |4 x" N. A UF_CALL(UF_MODL_put_list_item(list, object));. D$ D. R6 V$ |. L
}
$ l J8 b* l( e: p9 j. l" J# s; \+ m/ j8 v, [9 e" h9 r% @- l
return make_an_array(&list, objects);
- p6 a! M3 o3 @, G# O$ Q; l1 b}7 }- t$ A r& i" V
[/mw_shl_code]) d$ c) v9 J- I; j% d, r
|
|