几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-05, 09:58 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】exception in materializefile loading dwf file

exception in materializefile loading dwf file
exception in materializefile loading dwf file
i am getting an exception thrown from:
dwfreader:wfreader::materializefile
dwfimporter::loadpackage
dwfimporter::import
from a very simple dwf file attached below.
does anyone have any ideas?
my calling code follows:
oddwfimportptr importer = createimporter();
if (!importer.isnull())
{
m_pdb = svcs.createdatabase();
importer->properties()->putat( "database", m_pdb );
importer->properties()->putat( "dwfpath", odrxvariantvalue( odstring(cadfilename.c_str()) ) );
importer->properties()->putat( "password", odrxvariantvalue( odstring("") ) );
importer->properties()->putat( "paperwidth", odrxvariantvalue( 297. ) );
importer->properties()->putat( "paperheight", odrxvariantvalue( 210. ) );
importer->import();
}
i have a valid path "c:\\autocad\\dan2.dwf".
attached files
i cannot reproduce the error.
what dd version do you use?
can you import the file in odamfcapp?
are you sure you pass correct file name?
vladimir
error building odamfc app
i am getting the following errors trying to build odamfcapp with the latest version of dd:
link : warning lnk4199: /delayloadleacc.dll ignored; no imports found from oleacc.dll
windirectx.lib(exgidirectxgeometry.obj) : error lnk2001: unresolved external symbol "public: virtual void __thiscall odgigeometrysimplifierlylineout(long,long const *)" (?polylineout@odgigeometrysimplifier@@uaexjpbj@z)
../../../../../exe/vc2003/release/odamfcapp.exe : fatal error lnk1120: 1 unresolved externals
build log was saved at "file://c:\devtools\opendesign\projectfiles\win32\msvc2003 \examples\odamfcapp\release\buildlog.htm"
odamfcapp - 2 error(s), 2 warning(s)
did you try to rebuild windirectx project?
vladimir
odamfcapp doesn't support dwf files
you were correct, i had mismatches between the odamfcapp and windirectx projects, thanks.
odamfcapp, however looks like it only supports dwg and dxf files. is there another project that i should try? or, where in odamfcapp should i go?
thanks,
dan
select "file/new","file/import dwf.."
vladimir
but where does the dwf file actually get read
ok, the mfc app works, but...
i am lost. i tried to debug through the code through onimportdwf() and executecommand(), but i can't find the code that loads the dwf file.
can anyone point me in the right direction?
importing code entry point is in
\imports\dwfimport\source\dwfimportimpl.cpp,291
see dwfimportcommand::execute
you may try to make some sample reproducing you problem and post it here. (modify existing sample perhaps)
vladimir
i can't figure this out
if i import a 4.2 or 5.5 dwf file everything works just fine, but the 6.0 versions do not work for binary or ascii.
exception:
class dwfresult::enum
i cannot set breakpoints in \imports\dwfimport\source\dwfimportimpl.cpp when running odamfcapp to see why it works.
i cannot step into dwfreader::materializefile to see why it fails. i am running borland builder 6 wm for my project which fails
and microsoft vs 2003.net for the odamfcapp that works.
you mean materializefile throws dwfresult::enum?
what value?
vladimir
the exception value is -15 temp file error
the exception value is -15 temp file error.
it means that dwf toolkit could not create temporary file within the temporary directory
you may try to change %temp% environment variable to something simple, like "c:\temp", and see if anything gets created there.
vladimir
directory created with no files
a dwf0 directory was created, but there is nothing in it.
the trouble is that we cannot builld a sampe with debug libraries with borland. it is caused by known limitation of their linker - it crashes whed debug info size exceeds ~32mb.
the problem seem to be in _tempnam or _wmkdir difference in borland and ms runtime.
vladimir
does this mean you have reproduced the problem?
does this mean you have reproduced the problem? will you have time to debug this the old fasioned way? if not, is there any way you can send me the borland project, and code to debug myself? this is a port of autodesk's code, right? so it shouldn't be too much of a trade secret. i would be perfectly willing to sign any agreement necessary.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】dwf printing problems yang686526 DirectDWG 0 2009-05-05 07:51 AM
【转帖】dwf forma yang686526 DirectDWG 0 2009-05-04 08:23 PM
【转帖】dwf export problem yang686526 DirectDWG 0 2009-05-04 08:19 PM
【转帖】debug assertion loading dxf file yang686526 DirectDWG 0 2009-05-04 07:13 PM


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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多