查看单个帖子
旧 2009-04-18, 01:36 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】怎样创建文字样式?

怎样创建文字样式?
怎样创建文字样式?
下面的代码有什么问题,为什么在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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)