![]() |
【转帖】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. |
所有的时间均为北京时间。 现在的时间是 06:12 PM. |