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

yang686526 2009-05-04 05:34 PM

【转帖】cant load dwg file
 
can't load dwg file
can't load dwg file
dwgdirect can't load the file i have send in the attachment. autocad 2002 and 2005 open it. seems the problem is inside of dd, it throw an exception ("ivalid index") when executes the ddbhostappservices::readfile function:
file "exhostappservices.cpp"
oddbdatabaseptr exhostappservices::readfile(const odchar* filename,
bool ballowcpconversion, bool bpartial, oda::filesharemode shmode, const odpassword& password)
{
oddbdatabaseptr pres = m_dwgcollection.lookup(filename);
if(pres.isnull())
{
// this function throws an exeption
pres = oddbhostappservices::readfile(filename, ballowcpconversion, bpartial, shmode,
password);
m_dwgcollection.add(pres.get());
}
return pres;
}
please, check it, if it is dd bug or mine?
attached files
this is dd bug (dd throws exception as hatch in the file contains invalid loops).
regards,
sergey vishnevetsky
do you plan to fix it in the next version?
by the way, old version of my program, which uses odt, can load this file.

we fixed this defect on current code. fix will be available in next release/update.
sincerely yours,
george udov


所有的时间均为北京时间。 现在的时间是 11:47 PM.