几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】problem exporting of oddbwipeoutentities (http://www.dimcax.com/hust/showthread.php?t=18021)

yang686526 2009-05-06 10:43 PM

【转帖】problem exporting of oddbwipeoutentities
 
problem exporting of oddbwipeoutentities
problem exporting of oddbwipeoutentities
hello,
the attached dwg and dxf file are exported with odwriteexample vc60,windowsxp, dwgdirect1.11 release 1.
acad2004 can load the dwg file, but crashes by loading of dxf file.
i have add the function addwipeoutentity() for exporting of oddbwipeout entities in modul dbfiller.cpp and call the function by
void dbfiller::filldatabase(oddbdatabase* pdb)
{
// paperspace & modelspace example
// viewports for both ps & ms
// set the drawing extents
...
...
...
//add some entities to model space
addentities1(pdb, pdb->getmodelspaceid(), newblockid1,newblockid2,..);
addwipeoutentity(pblock);
....
}
void addwipeoutentity(oddbblocktablerecord* pblock)
{
odgepoint2darray arr;
oddbwipeoutptr pwip = oddbwipeout::createobject();
pblock->appendoddbentity(pwip);
pwip->setorientation(odgepoint3d(0.0,0.0,0.0),odgevecto r3d(100.0,0.0,0.0),odgevector3d(0.0,100.0,0.0));
arr.append(odgepoint2d(-0.5,0.5));
arr.append(odgepoint2d(0.5,0.5));
arr.append(odgepoint2d(0.0,-0.5));
arr.append(odgepoint2d(-0.5,0.5));
pwip->setclipboundary(arr);
pwip->setclipped(true);
pwip->setdisplayopt(oddbrasterimage::imagedisplayopt::k show,true);
pwip->setdisplayopt(oddbrasterimage::imagedisplayopt::k clip,true);
pwip->setdisplayopt(oddbrasterimage::imagedisplayopt::k showunaligned,true);
pwip->setdisplayopt(oddbrasterimage::imagedisplayopt::k transparent,false);
}
do i miss something or is it a dd bug?.
best regards
mano
attached files
this is a dwgdirect bug--we will get it fixed in 1.12. thanks for reporting it.


所有的时间均为北京时间。 现在的时间是 05:34 AM.