|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1 F4 q8 l: \2 M1 \ U) Y
& `+ w; K. Q1 s' g4 ?; e. l[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
& B1 F* o9 Y* k: m4 O# l{
$ X, |; i; } ~" U; Y int* `7 k# \7 [ p2 m8 n
subtype,
, \; B1 @, K/ i9 {4 I/ s0 V2 s type;+ `, A7 d* z! n# U
tag_t, m' c/ f) c8 Q, J
object = NULL_TAG;- t6 B1 p/ W5 W# @/ T+ m
uf_list_p_t- D2 f/ ^6 I& U; V! q
list;
) u" ]# {! f |" T0 P
/ q8 t( r# B# l, q; I9 Q UF_CALL(UF_MODL_create_list(&list));" j! t: M5 p. z/ g$ c, H2 n/ W0 M
# T8 {8 V8 T4 z0 t* j- ?
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
$ S9 ^& H/ O, z+ \4 Q! ] && (object != NULL_TAG))! ^) R* T4 l" @1 Z. H6 ?! L
{
& n, U) _0 A, B9 [" u% d/ {& g UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
& Y2 q Q7 J ]6 w8 c7 [" j: l if ((type == UF_drafting_entity_type) ||2 @- M) Q) d1 G2 `2 l% F
(type == UF_dimension_type) ||9 H, I3 p3 [; N* @4 ^ A" r3 x+ z
(type == UF_note_type) ||
6 E, e7 |9 @8 H& [" }/ T (type == UF_tol_feature_instance_type) ||
0 k- W' ?# _# y5 z7 g ((type == UF_tabular_note_type) &&
+ l- X9 r: n& M2 D. b7 L (subtype == UF_tabular_note_section_subtype)) ||" o# ], N1 `9 ?+ l8 D5 E! v( F
(type == UF_smart_model_instance_type) ||
( M' _( U% G- y3 `6 W (type == UF_pmi_filter_type))
: P; J- B+ {5 f% x' B N UF_CALL(UF_MODL_put_list_item(list, object));
6 p- R# N6 J2 `6 b1 o, | }
' c/ V8 z* S4 f) G
2 @5 \3 R: f* u0 v return make_an_array(&list, objects);
2 c6 S6 `% g" x) P d}
& |) Z. Z( ^) Z% s7 I5 y* ^[/mw_shl_code]; e' @4 o, @/ K: m; d* O
|
|