|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
: I9 J* k+ i" r% W
@* o0 j! n' v& X A; V- V
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)3 F, a+ E0 V; F# _+ V) a8 K! j8 n
{
5 p( {5 A$ @" q* g. d* s( c: g6 ^ int
2 ?, M) A; y! U5 R* V. \0 ?4 r subtype,
* S+ Y9 u+ O5 g( S. y type;
* s0 A6 I$ _2 |4 \, T: U tag_t
+ [7 ]* J3 |) S( b/ W object = NULL_TAG;" }) _, E* Q% n% y
uf_list_p_t; |& w: F, {$ L( c) g& T
list;2 a$ T& U6 q0 ~2 C
3 `8 Q+ _" z! D
UF_CALL(UF_MODL_create_list(&list));1 f1 [6 R$ O9 g% C) x) p2 z% X
, P' p. J9 n! C0 A2 [ while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))9 A7 `. t' a/ ^ Z3 i- P+ e
&& (object != NULL_TAG))
! ]/ z% g, j, G2 Q3 |" o {8 @2 {7 K+ H- ~! |$ _, C
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
' G! x- B. D- D5 D. D% F* [ if ((type == UF_drafting_entity_type) ||
' w' Z2 k+ ?2 E' h6 { (type == UF_dimension_type) ||' _; W& _- a( w2 |1 z$ i# Q! y% b/ V' i
(type == UF_note_type) ||2 y. N: b4 D4 i& t5 `
(type == UF_tol_feature_instance_type) ||
3 f( A) n( T4 f; b1 C ((type == UF_tabular_note_type) &&/ z; g3 D$ K* m P
(subtype == UF_tabular_note_section_subtype)) ||
. T6 |9 v9 R: R8 p2 }, W3 Q (type == UF_smart_model_instance_type) ||
5 z: o2 H# \8 U, n (type == UF_pmi_filter_type)) R6 |$ \8 c. j) F: d2 h+ _
UF_CALL(UF_MODL_put_list_item(list, object));7 `. o- k( [% Y
}: a4 F8 y$ C; N0 y- E
2 z; C3 x6 `0 D; v: {; M return make_an_array(&list, objects);
$ @; _. Z. \( B- |& @) y}
( B# P& _! h1 X. ~0 @[/mw_shl_code]
: j8 w/ m) }: V5 g0 N3 ? |
|