几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】怎样创建文字样式? (http://www.dimcax.com/hust/showthread.php?t=7562)

yang686526 2009-04-18 01:36 PM

【转帖】怎样创建文字样式?
 
怎样创建文字样式?
怎样创建文字样式?
下面的代码有什么问题,为什么在acad2内不行(win0)?
void tufudlg::creattxtstyle() {//创建文字样式
acdbtextstyletable *ptxtstyletable;
acdbhostapplicationservices()->workingdatabase()
->getsymboltable(ptxtstyletable,acdb::kforwrite);
acdbtextstyletablerecord * ptxtstyletablerecord = new acdbtextstyletablerecord;
ptxtstyletablerecord->setname("fstxt");
ptxtstyletablerecord->setfilename("simsun.ttf");
ptxtstyletablerecord->settextsize(0);
ptxtstyletablerecord->setxscale(1);
ptxtstyletablerecord->setobliquingangle(0);
ptxtstyletable->add(ptxtstyletablerecord);
ptxtstyletablerecord->close();
ptxtstyletable->close();
}
帮你顶一下。楼主搞定?搞定了,贴出您的代码,谢谢。
qq:19154480
msn:freejustinji@hotmail.com
e-mail:justin3@citiz.net


所有的时间均为北京时间。 现在的时间是 09:39 PM.