高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|