查看单个帖子
旧 2009-05-04, 03:23 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】about the block referance

about the block referance...
about the block referance...
in the file "test0.dwg", i can find a block referance with the block name"a$c147f5e08". i find that only it's part which is in the circle is displayed .
what should i do if i want to create a block referance like that.
oddbblockreferenceptr pblkref = oddbblockreference::createobject();
// add the entity to the parent block.
brefid = block_table->appendoddbentity(pblkref);
// set the remaining entity properties.
pblkref->setblocktablerecord(blockid);
double scalex =insert->scale()[0]; if (scalex ==0) scalex =1;
double scaley =insert->scale()[1]; if (scaley ==0) scaley =1;
double scalez =insert->scale()[2]; if (scalez ==0) scalez =1;
pblkref->setscalefactors(odgescale3d(scalex,scaley,scalez) );
........what should i do then?
attached files
there is a spatial filter applied to the insert.
to add a filter, create new spatial filter (oddbspatialfilter::createobject), set its definition (oddbspatialfilter::setdefinition), and add it (via oddbindexfiltermanager::addfilter).
vladimir
thanks a lot.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)