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