|  | 
 
| 本帖最后由 withheart 于 2015-1-8 11:16 编辑 
 ProErrorUserSectionBuild(ProSection section,ProSelection *sketch_refs,int index)
 {   ProError status=PRO_TK_NO_ERROR;
 int ent_id;
 ProWSecerror serrors;
 /*--------------------------------------------------------------------*\
 调用UsrCreateSection()函数作截面草图
 \*--------------------------------------------------------------------*/
 if(!UsrCreateSection(section,index,sketch_refs))
 {
 AfxMessageBox(_T("截面草图错误"));
 return status;
 }
 ProSectionEntityFromProjection(section,sketch_refs[1], &ent_id);
 status=ProSectionEntityFromProjection(section,sketch_refs[2], &ent_id);
 /*--------------------------------------------------------------------*\
 自动标注截面
 \*--------------------------------------------------------------------*/
 ProSecerrorAlloc(&serrors);
 status=ProSectionAutodim(section,&serrors);
 ProSecerrorFree(&serrors);
 returnstatus ;
 }
 ProErrorUserSectionBuild1(ProSection section,ProSelection *sketch_refs,int index)
 {   ProError status=PRO_TK_NO_ERROR;
 int ent_id;
 ProWSecerror serrors;
 /*--------------------------------------------------------------------*\
 调用UsrCreateSection()函数作截面草图
 \*--------------------------------------------------------------------*/
 if(!UsrCreateSection(section,index,sketch_refs))
 {
 AfxMessageBox(_T("截面草图错误"));
 return status;
 }
 ProSectionEntityFromProjection(section,sketch_refs[1], &ent_id);
 status=ProSectionEntityFromProjection(section,sketch_refs[2], &ent_id);
 /*--------------------------------------------------------------------*\
 自动标注截面
 \*--------------------------------------------------------------------*/
 ProSecerrorAlloc(&serrors);
 status=ProSectionAutodim(section,&serrors);
 ProSectionRegenerate(section, &serrors);
 ProSecerrorFree(&serrors);
 returnstatus ;
 }
 
 这是在一个完整程序里面取出的一段关于画草图的,这两个几乎一模一样的函数有什么作用?那个不一样的语句是什么意思?有什么作用?
 | 
 |