查看单个帖子
旧 2009-05-04, 03:23 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)