|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
2 d8 }: B! ], S' D8 G+ ]
: W9 }2 K! a5 z/ [[mw_shl_code=c,true]static int ask_all_drf_objects(tag_t **objects)
- `/ @- a; i8 F7 ~: G. Q# {, o6 i2 U{- G" N. l. Z/ B9 g; T" ?
int5 i0 J' n- r6 i3 H- H! p' G
subtype," D' Y4 d9 H7 W+ W ^
type;. m7 s/ w! E' {0 p$ C
tag_t
# X% q( g$ n! y5 \ C; g, h N object = NULL_TAG; j% q) F; N i! e
uf_list_p_t
& _+ K6 q2 P+ u* l! ? list;2 Y& L& d6 I9 v) X7 G2 U
% X" a n' s$ w) q! |( R
UF_CALL(UF_MODL_create_list(&list));
7 F0 r$ V5 }+ Q0 x. a' I& ^3 a; G I$ z8 B f/ I- d
while (!UF_CALL(UF_LAYER_cycle_by_layer(0, &object))
) D/ Z# g% b+ [+ |0 O; N && (object != NULL_TAG))9 [- }0 u7 G8 V/ @
{; B! P3 q O8 \9 Z2 k) U$ m
UF_CALL(UF_OBJ_ask_type_and_subtype(object, &type, &subtype));8 s+ d2 b2 ]* h4 Y/ b3 S7 K5 `/ c
if ((type == UF_drafting_entity_type) ||
b# J* c: J# ?2 y (type == UF_dimension_type) ||& z( W' s9 x' L8 { r
(type == UF_note_type) ||1 Y( |; d! m' _: n v
(type == UF_tol_feature_instance_type) ||
1 ^* p4 ?/ S+ h* f; ?& P ((type == UF_tabular_note_type) &&' U; m$ e1 n; a- o D+ Z* F6 \
(subtype == UF_tabular_note_section_subtype)) ||
" j% D! o; `) q7 _' ]3 ]* ? (type == UF_smart_model_instance_type) || ~* z) o3 s4 B \& c
(type == UF_pmi_filter_type))4 q- l: I# S+ n
UF_CALL(UF_MODL_put_list_item(list, object));
( F( V1 c8 X+ l$ K& q }
: {& d! ]& g# N2 h; a: A: O
* J' e2 H7 s3 a5 L! a1 M return make_an_array(&list, objects);
! }# ?: S2 c2 v7 u8 p: X+ s}
1 s" P. s* b# \' B[/mw_shl_code]) V5 v# i8 s$ {- ~( J
|
|