[求助]各位大哥,帮帮小妹吧!!!
怎么样在视图区中写入文本啊??我的程序没有出错,但在视图区就是不显示文本,各们大哥帮帮我了!!我的程序:void ACADwenzi()<BR>{<BR>#ifdef OARXWIZDEBUG<BR> acutPrintf ("\nOARXWIZDEBUG - ACADwenzi() called.");<BR>#endif // OARXWIZDEBUG
// TODO: Implement the command<BR> //ÊäÈëÎı¾<BR> AcDbBlockTable *pbt;<BR> acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pbt, AcDb::kForRead);<BR> AcDbBlockTableRecord *pbtr;<BR> pbt->getAt(ACDB_MODEL_SPACE,pbtr,AcDb::kForWrite);<BR> pbt->close();<BR> AcGePoint3d p2(542,431,0);<BR> AcDbObjectId textid;<BR> AcDbText *ptext=new AcDbText(p2,"ÎÒµÄСèÃÔ",textid,30,50);<BR> pbtr->appendAcDbEntity(textid,ptext);<BR> pbtr->close();<BR> return;
} 你可以去下面的连接去看
<A href="http://www.easylou.com/BBS/list.asp?boardid=8" target="_blank" >http://www.easylou.com/BBS/list.asp?boardid=8</A> AcDbText *ptext=new AcDbText(p2,"明经通道",NULL,30,50);<BR>pbtr->appendAcDbEntity(textid,ptext);<BR>pbtr->close();<BR>ptext->close();<BR>return;
页:
[1]