几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】about dimstyle111 (http://www.dimcax.com/hust/showthread.php?t=14977)

yang686526 2009-05-04 03:18 PM

【转帖】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


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