|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
! S) L( [, \2 s( H6 q# q7 o4 D
' B, u% g c1 u[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
$ b! Z% N4 j( t" g+ _7 x, D{ H, Q6 ]! x. n) {
int
X) R+ P6 Q5 \7 i9 y" ~ L8 c4 ] subtype,$ A' @9 u7 }3 l6 G
type;
: n3 F5 {/ y+ D$ C tag_t
. ~( m/ m+ n) U' n6 b# r object = NULL_TAG;
5 {4 e# U1 h! X* J1 M8 X5 } uf_list_p_t1 m" b1 t7 P; e$ U, I' M. J O
list;
9 c: t+ L) C- H. i* V/ S; f P
# ~# }1 s, W* x( @, e' s UF_CALL(UF_MODL_create_list(&list));. v# E) A3 [# m4 k; n/ b
, a/ j; L; C; y- i' `% L2 ^: ~/ i, s while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))9 V0 G6 z4 k0 t1 @" E# O, E
&& (object != NULL_TAG)); J5 |5 ?' j' J. w+ |* Q% X
{/ R9 a9 ?9 S4 P8 c; h
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));
4 j2 K, ]* O+ X8 H. A D) Q if ((type == UF_drafting_entity_type) ||# X6 p6 ]) H6 l8 k. ^0 N; B9 l
(type == UF_dimension_type) ||
6 l$ ~% `6 j3 }4 h, T (type == UF_note_type) ||, x0 D+ r- g1 \9 l, V) {; s$ Q
(type == UF_tol_feature_instance_type) ||
" B' z7 W6 m' g; X ((type == UF_tabular_note_type) &&
1 {" y/ Q. y$ n& Z( u: I (subtype == UF_tabular_note_section_subtype)) ||
4 C0 p: l5 X" ?4 Z3 Q& Y (type == UF_smart_model_instance_type) ||6 G! O3 k# F3 d3 e+ h; G: ?
(type == UF_pmi_filter_type))/ U4 c" {! Z( _$ _
UF_CALL(UF_MODL_put_list_item(list, object));; j& t7 D r9 D3 J" j
}
' l) j* X- q1 p
1 v1 J- ]$ W: C return make_an_array(&list, objects);
5 M7 H% b, T' s}$ v( J; a9 ?. l g
[/mw_shl_code]
+ Y4 {( q* W$ q$ {% Q; p" ]7 k9 v |
|