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

yang686526 2009-05-06 09:42 PM

【转帖】parts fail to create database
 
parts fail to create database
parts fail to create database
hello,
the two parts in the attched zip file throw an unknown exception when using odreadex. both parts can be loaded into autocad 2004.
code:
try
{
// create a database and load the drawing into it.
pdb = _svcs.readfile( strfilename.c_str(), false, false, oda::ksharedenyno );
if (!pdb.isnull())
{
of << "file version: " << pdb->originalfileversion() << std(endl);
oddb::measurementvalue odunits = pdb->getmeasurement();
dbdumper dumper;
dumper.dump(pdb, &_svcs, of);
}
}
catch (oderror& e)
{
of << "dwgdirect error: " << _svcs.geterrordescription(e.code()).c_str()<< "\n" << std(endl);
}
the output of the catch statement is :-
quote:
developed using dwgdirect, version 1.10
dwgdirect error: invalid input
can anyone offer any help?
regards
derek.
attached files
your files contain invalid value for luprec variable. next release will contain the fix allowing loading of such files.
sergey slezkin

thanks for info and the prompt reply sergey.
my part also errors out with "invalid input" message
mchihds...sorry to hijack the thread...
sergey,
i have the same problem with my attached file. is it due to the same problem as mcjihds's sample parts?
attached files (377.3 kb, 3 views)

the problem is different - invalid color index in a few objects. recover also shows other errors.
dd 1.11 to be released tomorrow or early next week loads and recovers your file.
sergey slezkin
thanks sergey.


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