几何尺寸与公差论坛------致力于产品几何量公差标准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 the block (http://www.dimcax.com/hust/showthread.php?t=14991)

yang686526 2009-05-04 03:23 PM

【转帖】about the block
 
about the block......
about the block......
how can i get the block id(oddbobjectid) if i have saved a block with the name "*d1"?
i tyied this:
oddbblocktableptr ptable = pdb->getblocktableid().safeopenobject(oddb::kforwrite) ;
oddbobjectid blockid =ptable->getat("*d1",true);
but blockid is zero.
thanks.
anonymous block indices (digits after *d) are maintained by dwgdirect. you can specify the name as "*d" and digits will be appended.
safe way to access such blocks is to use objectid returned by oddbblocktablerecord::add() or stored in dimension entity.
sergey slezkin
thanks a lot!
about the hatch patternscale......
i have set the hatch patternscale with oddbhatch::setpatternscale().
but it seems that it's not right!
that's why?
thanks!


所有的时间均为北京时间。 现在的时间是 11:00 AM.