在ObjectArx中如何加载除"CONTINUOUS"之外的线型?
2个回答
2013-09-15
展开全部
#define CommandB() { struct resbuf rB_cmd,rB_usr; \ acedGetVar("CMDECHO", &rB_cmd); \ rB_usr.restype = RTSHORT; \ rB_usr.resval.rint = (int) (0); \ acedSetVar("CMDECHO", &rB_usr); #define CommandE() acedSetVar("CMDECHO", &rB_cmd); \}; //添加新线形bool addNewLineType(char *linetypename){ AcDbLinetypeTable *pLinetypeTbl; bool flag1=true; acdbHostApplicationServices()->workingDatabase() ->getSymbolTable(pLinetypeTbl, AcDb::kForRead); if(!pLinetypeTbl->has(linetypename)) flag1=false; pLinetypeTbl->close(); if(!flag1) { CommandB(); if(acedCommand(RTSTR,"LINETYPE",RTSTR,"L",RTSTR,linetypename,RTSTR,"",RTSTR,"",0)!=RTNORM) acutPrintf("\n 调入线型%s时出现错误!",linetypename); CommandE(); return false; } return true;}
2013-09-15
展开全部
es=acdbLoadLineTypeFile("HIDDEN","ACADISO.LIN",acdbHostApplicationServices()->workingDatabase());
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询