|
tag_t displayPart=UF_PART_ask_display_part(); //取到A+ u. R& q9 E0 K! M; q" G* N! U
tag_t rootoccs = UF_ASSEM_ask_root_part_occ(displayPart); //取A的根6 }1 h9 T9 f( b. R O
//获取下层结构
7 M7 w8 L f/ A6 b- }3 c& z) Mtag_t *child_part_occs;
- W, `9 z4 w8 U9 oint nCount = UF_ASSEM_ask_all_part_occ_children(rootoccs, &child_part_occs);# `0 ^ Q( l+ L, z% H3 d
for (int i = 0; i<nCount; i++) " R+ M* H3 [7 g5 d
{" L `7 ]9 L4 ]
tag_t child_occ = child_part_occs[i]; //取一个子 B ---1
/ k1 I$ }* o. C) P tag_t occinst = UF_ASSEM_ask_inst_of_part_occ(child_occ); //子事例% K; z& F% E2 Y: U* V1 B$ W* K8 [9 L% \
//...
8 ^! |: ?3 H& P6 N( }& r}# b/ X7 v# j, {6 \/ t- v+ @+ [9 z6 D
UF_free(child_part_occs); |
|