高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|