几何尺寸与公差论坛------致力于产品几何量公差标准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, 10:27 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】export to dwf v6.0 not working in oddwfexportex - dd rel 2.2

export to dwf v6.0 not working in oddwfexportex - dd rel 2.2
export to dwf v6.0 not working in oddwfexportex - dd rel 2.20
hi,
using the example oddwfexportex to export a dwg to a dwf file version 6.0 both the ascii and binary (a6 & b6) fail to produce the dwf in debug or release mode.
but when using the example odamfcapp it produces a correct dwf v6.0 file both with export dwf and publish.
can someone shade some light what is missing in the file oddwfexportex.cpp?
i tried - similar to the odamfcapp - and i added to these two options (a6 & b6) the following:
dwfpagedata pagedata;
pagedata.slayout = lo_pdb->findactivelayout(true);
params.arpagedata.append(pagedata);
with no success. what else is needed?
any help would be appreciated.
sydiab
did you try to export only one dwg file or some files? try to play with odamfcapp using different files. i guess this sample doesn't use one of modules. odamfcapp sample is much more power. it is supplies all dd's modules. that's why one drawning could be exported to dwf by odamfcapp but not by oddwfexportex.
i've built oddwfexportex from delivery for vc6 release mode. it works exporting a6 but it is failed for several files. perhaps it happens because oddwfexportex doesn't use oleitemhandler.lib.
misha kuzinets
thank you for your reply,
i tried to export about 16 different dwg files. the first one was the dwg drawing produced odwriteex in dd r2.20, the rest are either different samples from autocad examples or other real architectural dwg drawing. all these file open fine in autocad. i am using vc6 release mode. i added the oleitemhandler.lib per your recommendation.
sample of the program arguments is:
"c:/sdiab/autocad/1st floor architectural.dwg" "c:/sdiab/syd2007.dwf" a6
this produce no dwf file at all, for all the dwgs i tried.
if i change the program arguments to:
"c:/sdiab/autocad/1st floor architectural.dwg" "c:/sdiab/syd2007.dwf" a5.5
all the files tested produce dwf files.
i noticed also that the running program displays, on the os prompt, the message:
揇eveloped using dwgdirect, 2.02?br /> i.e. the libraries in the dd package are r2.02 and not r2.20 as i downloaded it.
is that true or just a typo mistake. if it is true, this will hold us the developers using this dd in defiance of the us court order!!.
if you have any dwg drawing that works fine with the oddwfexportex to produce dwf relase 6.0, please send it to me.
thanks,
sydiab
last edited by sydiab; 16th december 2006 at 03:43 amfff">.
finally, i get it to work but only with library dd_vc6dbg.zip. the library dd_vc6.zip is buggy !!
i am publishing the solution to share it with all.
visibly there are some missing libraries in the oddwfexportex - using the library dd_vc6dbg.zip - and because i am only a sustaing member, and i do not have the source code. so i added ramdomly all the libraries availabe that where used in other dd examples. and it now works. we can translater a dwg with oddwfexportex to dwf release 6.0.
here is the list of libraries i used:
shlwapi.lib winbitmap.lib dd_vc6md_dwf7export.lib dd_vc6md_dwf7import.lib dd_vc6md_pdftoolkit.lib
dd_vc6md_plotsettingsvalidator.lib dd_vc6md_recomputedimblock.lib odcurvefunctions.lib
dd_vc6md_pdfexport.lib exdynamicblocks.lib excustobjs.lib dd_vc6md_rxrasterservices.lib
gs_winopengl.lib gs_wingdi.lib dd_vc6md_br.lib dd_vc6md_acisrenderer.lib dd_vc6md_acisbuilder.lib
dd_vc6md_modelergeometry.lib windirectx.lib dd_vc6md_dbcommands.lib dd_vc6md_alloc.lib
dd_vc6md_svgexport.lib dd_vc6md_gi.lib glu32.lib dd_vc6md_jpeg.lib dd_vc6md_db.lib dd_vc6md_ge.lib
dd_vc6md_gs.lib dd_vc6md_root.lib opengl32.lib dd_vc6md_zlib.lib dd_vc6md_zip.lib
dd_vc6md_grippoints.lib dd_vc6md_spatialindex.lib dd_vc6md_bmpexport.lib odbagfiler.lib
dd_vc6md_rxplotstyleservices.lib oleitemhandler.lib dd_vc6md_dynblocks.lib dd_vc6md_ave.lib
dd_vc6md_rxrasterprocessor.lib autosurfservices.lib dwfcore.lib whiptk.lib w3dtk.lib
dwftoolkit.lib rpcrt4.lib dd_vc6md_exfieldevaluator.lib winspool.lib comdlg32.lib shell32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib advapi32.lib
ole32.lib
using the release libraries in dd_vc6.zip is not working. apparently the libraries for dwf routines has never been upgrade and recompiled with dd2.20. please help, send to me these dwf libraries updated as attachments, as i have to release this dwf translator by tueday.
now, can some one of you guru who have access to the codes, help me clean up this long list above, and remove what is not needed?
also, i found - by trial and error (i cannot find any manual on that) - that:
dwfpagedata pagedata;
pagedata.slayout = <odstring "layout name">;
params.arpagedata.append(pagedata);
(repeat the last two lines as needed)
will add the layouts you want to translate. the default is "translate all layouts".
many thanks,
sydiab
last edited by sydiab; 17th december 2006 at 05:10 amfff">.
we use vc6 dll-libraries; vc6md(d). i got several link errors for the missing dwf functions in dd 2.2.0. i then took back the dd version 2.1.0 dlls and libs for dwfcore_dll.lib, dwftoolkit_dll.lib, w3dtk_dll.lib and whiptk_dll.lib. it would then link and run properly and i was able to export a dwf which looked as expected in a dwg-viewer.
our dwf build setup is not configured exactly as recommended from oda and that might be the reason for the build problems. but anyhow.
-rune jorgensen

quote:
originally posted by sydiab
i noticed also that the running program displays, on the os prompt, the message:
揇eveloped using dwgdirect, 2.02?br /> i.e. the libraries in the dd package are r2.02 and not r2.20 as i downloaded it.
is that true or just a typo mistake. if it is true, this will hold us the developers using this dd in defiance of the us court order!!.
version is 2.02 not 2.20. version 2.02 is a legal.
misha kuzinets
quote:
originally posted by rune jorgensen
we use vc6 dll-libraries; vc6md(d). i got several link errors for the missing dwf functions in dd 2.2.0.
a bit difficult to say something without seeing link errors and being unaware what recomendations were ignoreted. please let more details.
misha kuzinets
it is most probably related to: "the new 7.3 version of the dwf toolkit has been incorporated into this version of dwgdirect." we use the 7.0.2 version of the dwf include files. so no wonder i had to step back to the previous version of the dll/libs.
just happy that i got to build and run it at all!
-rune jorgensen

i totaly aggree with rune jorgensen, the new dwf 7.03 release lib has not been incorporated (or built) properly with the newest dd 2.20 release library.
somehow it disabled the export of dwg to dwf-v6 using the release version of dd 2.20 only, for both vc6 and vc2003. if i export to dwf less than v6.0 it works ok.
i was able to make it work in the debug mode to produce dwf v6.0 but never in the release mode.
i do not currently have the dwf toolkit version 7.0.2. how can i get the needed files?
sydiab
last edited by sydiab; 19th december 2006 at 11:24 amfff">.
our problems came because we use our own build setup for integrating the dwf toolkit v 7.0.2 with the oda dwg toolkit and its dwf layer (3ddwfexportimpl.cpp etc) with vc 6.0. it does not imply that there should problems for those who use the oda 2.2.0 setup for dwf libs and the dwf 7.0.3 toolkit. i have not tested it and i do not know.
but i miss a good description/guidelines for how to use the dwf and dwg toolkits together with various compilers. both include and link setup. maybe a description exists somewhere?
-rune jorgensen
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】dwf printing problems yang686526 DirectDWG 0 2009-05-05 07:51 AM
【转帖】dwf import projec yang686526 DirectDWG 0 2009-05-05 07:47 AM
【转帖】dwf forma yang686526 DirectDWG 0 2009-05-04 08:23 PM
【转帖】dwf export problem yang686526 DirectDWG 0 2009-05-04 08:19 PM
【转帖】attributes in dwf expor yang686526 DirectDWG 0 2009-05-04 04:24 PM


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


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