|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
2 y4 b6 U- K$ @) W4 J: P% Q2 B, Z1 z; U5 y+ t2 c" P; }: D& G9 x
[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)1 q7 W, Z" A8 A+ L: f# y
{
0 S1 ^- b5 Q4 T0 @; e( z2 { int
, G+ i4 v) Q4 |( i subtype,( q1 C3 ~) I8 e* M& I
type;
2 l$ G8 g/ n n& t6 ^, Y tag_t( e! ~ w$ l e4 V
object = NULL_TAG;! \' o# k' n0 I& N! B
uf_list_p_t
# Q) n/ y' u$ h list;* w. L' H7 h+ E! F, N% S! U
3 g& ` s- M& F0 e
UF_CALL(UF_MODL_create_list(&list));3 \* v6 n; B7 |
8 u( u2 `1 t" e% e3 c, o1 e" U while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))# n; @. C, U# f2 V; w6 j
&& (object != NULL_TAG))
( \4 T# e9 j$ Z6 m$ M4 J/ N {
% [8 S* N8 \ H* w8 I. o% i; s UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
- Z) e2 j" r& ?8 t if ((type == UF_drafting_entity_type) ||7 v) l" m& w5 g5 P! ~
(type == UF_dimension_type) ||
6 n) Y4 ^0 _* R- b( w) o (type == UF_note_type) ||
4 B$ k. H5 }( @, d# |2 X (type == UF_tol_feature_instance_type) ||
# N G* a+ u0 v ((type == UF_tabular_note_type) &&
0 m; [2 k. ^1 ~6 G7 E8 N Y/ ] (subtype == UF_tabular_note_section_subtype)) ||; Z# x1 p" Y. {2 [% f& X5 t1 \
(type == UF_smart_model_instance_type) ||
' i5 g4 f; s# w% }5 u; m* ^ (type == UF_pmi_filter_type)) D; s* z- t# J+ R
UF_CALL(UF_MODL_put_list_item(list, object));
$ y# e) D1 b0 ~. H }+ G% A" M, W8 ^- j9 p5 h' r
4 F; W+ A8 w4 B U6 n0 f- @8 s return make_an_array(&list, objects);9 A/ P& O2 \3 j |9 x' o% L7 M8 I
}* o% k2 d( H3 Q: k1 t) [2 C3 j
[/mw_shl_code]. p" Y) v* ^4 O& H
|
|