几何尺寸与公差论坛------致力于产品几何量公差标准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-04, 08:21 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】dwf exportimport raster images

dwf export/import & raster images
dwf export/import & raster images
i try implement dwf export/import functionality in our application. but during exporting dwg with raster image i get "access violation" in od2dexportview::rasterimageproc(...). in odamfcapp it works correctly so may be i need to do same extra initialization (rxrasterservices module already exist)?
ps: is any way to load rasters from dwf, may be with saving it to temporary files?
best regards,
ivan obraztsov
quote:
originally posted by ivan obraztsov
ps: is any way to load rasters from dwf, may be with saving it to temporary files?
there is a bug in importing files containing bitmaps exported by dd.
(will be fixed in 1.13)
with other raster types all should work fine, as well as with all files published
by autocad (not 3d ones though)
after importing dwf, rasters are saved in the directory, where database is saved (and only when it is saved).
quote:
originally posted by ivan obraztsov
but during exporting dwg with raster image i get "access violation" in od2dexportview::rasterimageproc(...). in odamfcapp it works correctly so may be i need to do same extra initialization (rxrasterservices module already exist)?
do you get it at the export to dwf from odamfcapp or using your implementation? could you send a sample file in case of odamfcapp.
misha kuzinets
thank you for replies.
to wvk:
i'll try it after implement loading raster from stream.
to misha kuzinets:
error is appeared in our application that used dd_xxx_dwfexport.lib, dd_xxx_dwfimport.lib and dd_xxx_dwftoolkit.lib. in odamfcapp it works correctly. so i think that i forgot make some initializations or anything else.
ps: could you please send me project files to build these libs (specified above). i already have dwf and whip toolkits.
best regards,
ivan obraztsov
there is one more bug with dwf import. the attached file contain 3 different rasters, but after import only one file is saved to disk and inserted in 3 different locations in dwg.
attached files (23.6 kb, 3 views)

best regards,
ivan obraztsov
this is a bug indeed.
it seems that nobody tried to import dwf with several images,
created by autocad.
bug will be fixed in 1.13
i may send you corrected sources though,
because they seem to have 'sample' status.
thank you wvk!
yes, send me please new sources: ivan(sobaka)csoftcom.com.
best regards,
ivan obraztsov

i have a strange bug with exporting dwg with rasters to dwf.
i implement own raster service derived from exrastermodule and override gsbitmapdevice() in class derived from exsystemservices. but loadrasterimage() doesn't called during export so oddwfdevice::dc_raster_image(...) get invalid pointer "praster". i try to explorer this situation with disassembler. it show that oddbrasterimagedefimpl::image() doesn't call oddbrasterimagedefimpl::load(). in odamfcapp it works fine... strange...
best regards,
ivan obraztsov

any ideas?
best regards,
ivan obraztsov
quote:
originally posted by ivan obraztsov
it show that oddbrasterimagedefimpl::image() doesn't call oddbrasterimagedefimpl::load()
please, check that the image was found. your case can happen if the image-is-loaded flag is false, or image file was not found, or oddbrasterimagedefimpl::setimage() happened before loading. if one of conditions is wrong the load() is ignored.
misha kuzinets
last edited by misha kuzinets; 19th november 2004 at 08:47 amfff">.
thank you!
i really create oddbrasterimagedef with dummy odgirasterimagedesc. so it wasn't loaded.
i add call:
code:
pimagedef->load();
after pimagedef->setimage(...) and now it works ok.
best regards,
ivan obraztsov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】clipping path in rasterimageproc yang686526 DirectDWG 0 2009-05-04 05:49 PM
【转帖】bitonal transparent images in dwf yang686526 DirectDWG 0 2009-05-04 04:44 PM
【转帖】photoview images yang686526 SolidWorks二次开发 0 2009-04-13 01:26 PM
【转帖】button images in command customize window yang686526 SolidWorks二次开发 0 2009-04-13 09:24 AM
【转帖】3D InterOp简介 yogy ACIS 0 2007-06-06 12:56 PM


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


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