[求助]在ARX中怎么加载线型?
<P>请教一个小问题,在ARX怎么加载一个线型</P><P>比如:在现有的表中没有 “center”线型,那怎么加载进来呢?</P> bool addnewlinetype(char *linetype)<BR>{<BR> AcDbLinetypeTable *pLinetypeTbl;<BR> bool flag1=true;<BR> acdbHostApplicationServices()->workingDatabase()<BR> ->getSymbolTable(pLinetypeTbl, AcDb::kForRead);<BR> if(!pLinetypeTbl->has(linetype)) flag1=false;<BR> pLinetypeTbl->close();<BR> if(!flag1)<BR> {<BR> <BR> if(acedCommand(RTSTR,"LINETYPE",RTSTR,"L",RTSTR,linetype,RTSTR,"",RTSTR,"",0)!=RTNORM) <BR> acutPrintf("\n 调入线型%s时出现错误!",linetype);<BR> return false;<BR> }<BR> <BR> return true;<BR>} 谢谢了,<A name=83421><FONT color=#000066><B>lilq_78</B></FONT></A> 。
页:
[1]