几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】about the block referance (http://www.dimcax.com/hust/showthread.php?t=14990)

yang686526 2009-05-04 03:23 PM

【转帖】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.