![]() |
【转帖】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. |