|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
' l; p" g+ I# {# E
1 r! u. P6 x2 V- Y& p! O3 d7 J) C[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects). ]: ^( |; y* \9 @8 J# M0 N+ b7 k
{
4 @% Y3 [) V" M int
: p$ m& k% V5 f subtype,
( T8 }3 T% m% ]6 r) U0 |/ A7 a* @ type;) y& m2 _( h4 ]6 V9 o
tag_t
1 F" N# Y/ K* ]; O$ A( W object = NULL_TAG;) G& M/ C7 a3 n/ s+ H5 u# R
uf_list_p_t8 \% M2 `) w, T& I
list;9 p S9 p' r% x
7 C7 w: g: f: ~! @; D* x# O
UF_CALL(UF_MODL_create_list(&list));
1 ^: j8 F( B) k! l. W, M j O1 V$ ^1 |. ~/ y! e/ M
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object)): o- l) ]! h- U r) R
&& (object != NULL_TAG))
2 U* k- ~$ f( L1 Y0 @/ { {
3 B$ s# J% U& n0 Y7 m UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));. L; }) m# Y5 x2 n( i
if ((type == UF_drafting_entity_type) ||
4 N7 L( A2 L" p; l7 ?4 J (type == UF_dimension_type) ||$ O+ N) j8 e. B
(type == UF_note_type) ||
( E$ v2 [# e3 c4 O5 a J8 w' D (type == UF_tol_feature_instance_type) ||. H/ f/ X4 O5 x9 h/ M# v
((type == UF_tabular_note_type) &&, C9 P# v. U$ f# g6 h! n* l9 J8 K2 r
(subtype == UF_tabular_note_section_subtype)) ||
{9 w5 P" ^6 w, X) ]3 S$ L2 }0 s: I (type == UF_smart_model_instance_type) ||( K! M5 a+ ^7 d2 L
(type == UF_pmi_filter_type))
1 l% L& u; H+ n r1 l! @# L UF_CALL(UF_MODL_put_list_item(list, object)); Q; \7 Q- |9 J2 N4 W$ ?
}
% k* c. L9 ^1 o9 A3 b
4 ^/ Y6 M- \6 |) f5 H1 G2 b: I, u return make_an_array(&list, objects);
! S. A2 I; q/ }) w! ]+ q9 s! x}! S3 @. {; Y+ {
[/mw_shl_code]
& |! ~2 R; {+ `5 b; R& S+ Q |
|