查看单个帖子
旧 2009-05-04, 03:18 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】about dimstyle111

about dimstyle!!!
about dimstyle!!!
hi`, everybody!
can you tell me how to get the current dimstylerecord in oddbdatabase object! and can give me an example!!
waiting for your answer!
oddbobjectid oddbdatabase::getdimstyle()
sergey slezkin
thank you, sergey slezkin! but i have another question: is the returen value oddbobjectid a oddbdimstyletable id, or a oddbdimstyletablerecord id?
hi,sergey slezkin !
i checked in the dwgdirect help document ,there are no getdimstyle() function in oddbdatabase, i think you make a mistake!
hi,sergey slezkin ! i find the getdimstyle function ,i made a mistake, thank you for your help!
hi sergey slezkin !
could you please give me the code snippet for use of getdimstyle api ?
thank you very much.
code:
oddbdatabaseptr pdb = ...;
oddbobjectid iddimstyle = pdb->getdimstyle();
oddbdimstyletablerecordptr pdimstyle = iddimstyle.openobject(); // for read
or
oddbdimstyletablerecordptr pdimstyle = iddimstyle.openobject(oddb::kforwrite); // for write
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)