PMI列子1
遍历得到PMI中,是注释类型的,你可以参考一下。
int num_text, thetype, thesubtype;
tag_t draft_aid_tag = NULL_TAG;
UF_UI_open_listing_window();
UF_DRF_draft_aid_text_info_t * text_info;
UF_OBJ_cycle_objs_in_part( UF_ASSEM_ask_work_part(), UF_drafting_entity_type, &draft_aid_tag );
while ( draft_aid_tag != NULL_TAG )
{
UF_OBJ_ask_type_and_subtype( draft_aid_tag, &thetype, &thesubtype );
if ( thesubtype == UF_draft_label_subtype )
{
UF_DRF_ask_draft_aid_text_info ( draft_aid_tag, &num_text, &text_info );
UF_UI_write_listing_window( text_info->text->string );
UF_UI_write_listing_window( "\n" );
}
UF_OBJ_cycle_objs_in_part( UF_ASSEM_ask_work_part(), UF_drafting_entity_type, &draft_aid_tag );
UF_DRF_free_text( num_text, &text_info );
}