|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
3 ~% E9 h" E0 x- F5 Y$ b/ k, {* O% k$ Y0 t0 H) x( @ }
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
y" U9 U! B' _. W{& G+ h3 V$ r( y2 }5 r) j
int- y- ]" @( e+ o' b) _% j7 P7 ^6 k( B
subtype,
( O0 v1 @; Y8 j" u$ N7 i type;
8 }* c1 m3 h- k' w. g. K tag_t4 N8 t% G/ e' j' [! s
object = NULL_TAG;/ g' j& s, {" V! y- V
uf_list_p_t, B: o, q6 P& o2 ]5 ]1 v- O
list;! L- T$ m0 s' k6 f$ I
1 t2 [3 l$ n: S2 W& w
UF_CALL(UF_MODL_create_list(&list));/ e" h7 \! J% Q
1 }- [& ~+ v$ @6 B; c) j5 L; f
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
) o/ o O; g! s; j9 `- ?8 _& {- @ && (object != NULL_TAG))
1 `: {' X9 _ s6 C* O, O {
6 J! @; w% h& m; b/ ]0 G UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));/ P" ?7 ~$ U, d8 ?0 k ]% o
if ((type == UF_drafting_entity_type) ||7 C" h. u& r' U! T! V
(type == UF_dimension_type) ||. l1 s% ~/ \ U U% V
(type == UF_note_type) ||8 y* ?! R0 {* U' T( \+ O, x( s
(type == UF_tol_feature_instance_type) ||
- R0 h% Q+ A: l8 w6 ^; Q. Y ((type == UF_tabular_note_type) &&) l8 H0 d; l+ p. n$ ?$ ~% G
(subtype == UF_tabular_note_section_subtype)) ||/ u2 g% @$ u `; @
(type == UF_smart_model_instance_type) ||
( b- g. @% _1 u3 P( n (type == UF_pmi_filter_type))0 t0 k& i+ |5 Z. f
UF_CALL(UF_MODL_put_list_item(list, object));0 U) t' \7 R/ k+ _' t$ Z8 d, a+ |
}
8 h+ H/ p; L6 E: ~3 s; I8 @5 s3 g( i# @* ]1 I
return make_an_array(&list, objects);
6 y( F, F+ M I$ P5 X5 U4 u, j3 q}0 K6 p( p7 e8 {2 n3 ~! h
[/mw_shl_code]
7 Z" @, p! ^$ S! q* W9 q& [) O8 h N) z. x |
|