查看单个帖子
旧 2009-05-06, 10:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)