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

dwgdirect gives no oddbrasterimagedef - object
dwgdirect gives no oddbrasterimagedef - object
i have a problem reading a dwg with an image-entity.
oddbdatabase::getnamedobjectsdictionaryid() and
oddbrasterimagedef::imagedictionary(m_poddb.get())
both gives no oddbrasterimagedef - object.
the 'old' opendwg - lib does this ok with adgetobject().
i send you the dwg as attachment, say if you need the image-file itself.
the dwg was created with opendwg (adv63nd.lib).
thanx for help,
achim
attached files
the file is invalid:
- oddbrasterimage has reference (an image entity’s reactor) to odregapptablerecord instead of acdbrasterimagedefreactor object,
- there is a oddbrasterimagedef object in the file, but it is missed in the ownership tree (namedobjectsdictionary does not have reference to "acad_image_dict").
acad can load the file, but after resaving the rasterimage will be empty (oddbrasterimagedef object will be lost).
current ddt version can not repair this file.
regards,
sergey vishnevetsky
last edited by sergey vishnevetsky; 24th june 2004 at 04:08 amfff">.
ok, i think this will give me a way to solve the problem
in the application which creates the dwg.
thank you for analysing this one.
best regards,
achim
quote:
originally posted by sergey vishnevetsky
the file is invalid:
- oddbrasterimage has reference (an image entity’s reactor) to odregapptablerecord instead of acdbrasterimagedefreactor object,
- there is a oddbrasterimagedef object in the file, but it is missed in the ownership tree (namedobjectsdictionary does not have reference to "acad_image_dict").
acad can load the file, but after resaving the rasterimage will be empty (oddbrasterimagedef object will be lost).
current ddt version can not repair this file.
in this case, could i get a sourcefilename?
oddbrasterimagedef issue...
" i have a problem reading a dwg with an image-entity.
oddbdatabase::getnamedobjectsdictionaryid() and
oddbrasterimagedef::imagedictionary(m_poddb.get())
both gives no oddbrasterimagedef - object.
the 'old' opendwg - lib does this ok with adgetobject(). "
when are you going to fix this problem?
or in this case, could i get the sourcefilename?
please help me.
if i can get the sourcefilename, i create the new oddbrasterimagedef,
and i attach this new object to oddbrasterimage.
if i save the dwg file on adobe illustrator, and this file contain
some bitmap object. this problem occure.
if a file contains raster image but contains no named objects dictionary and imagedictionary the file is invalid. what does autocad's and odamfcapp recover say?
a sample file would be helpful.
btw, are you sure its raster image entity (a picture can present in dwg as ole object also).
sergey slezkin
i mean, can i know the sourcefilename (image) in invalid file?
dear sergey,
when i open the attached file on autocad 2002,
acad show the raster image file name.
even if the file is invalid, how can i know the name of raster image
in opendesign?
best regards
attached files (800.2 kb, 6 views)

both autocad and dwgdirect can't repair this file.
in dd you can't get the image file name from such invalid dwg.
btw, after the file is resaved by autocad autocad is unable to show raster image file name too.
sergey slezkin
thanks, i got it. but i can get the filename in the old version - opendwg.
hello again.
thanks, i got it.
but i can get the filename in the old version - opendwg library.
can i get the filename of invalid image as like opendwg (old version of dd) ?
hello again.
but i can get the filename in the old version - opendwg library.
can i get the filename of invalid image as like opendwg (old version of dd) ?
both autocad and dwgdirect can't repair this file.
in dd you can't get the image file name from such invalid dwg.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】can not set clip boundary type of wipe out objec yang686526 DirectDWG 0 2009-05-04 05:23 PM
【转帖】what is the error activex cant create the objec yang686526 SolidWorks二次开发 0 2009-04-13 03:24 PM
【转帖】api to create partdoc objec yang686526 SolidWorks二次开发 0 2009-04-13 08:59 AM
【转帖】ype casting of array of solidworks objec yang686526 SolidWorks二次开发 0 2009-04-12 10:43 PM
【转帖】net service instantiating sw objec yang686526 SolidWorks二次开发 0 2009-04-12 05:22 PM


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


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