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

created drawing crashes autocad
created drawing crashes autocad
has anyone run into this autocad internal error and know what could possibly be causing it?
internal error: !dbutil.cpp@705
we're creating large amounts of anon blocks. could there be a limit on the number blocks you can have?
using dwgdirect 2.0.3 opening in autocad mechanical 2005
regards,
mikael
was the file created from scratch or an exisiting file was modified?
does the file crash pure autocad 2005?
is dwgdirect able to load the file back?
what do autocad's and dwgdirect's recover say?
btw, dd 2.01 is more stable than 2.0.3 but most problems fixed for 2.01 were with writing 2007 files.
sergey slezkin
the file is created from scratch.
it will crash autocad 2005 without mech ext.
the drawing loads in dwgdirect without any problems what so ever. (i did manage to crash odamfcappdll_202.exe with an unhandeld exception but i can't easily reproduce that crash)
i can get it to work by reducing the number of exported entities. for large numbers of ents the drawing will crash with the first operation on the drawing surface. with lower numbers autocad will only crash after a few pan and zoom operations.
i've had a few different results while running recover for different versions of the file.
for the smaller files, recover will report no errors at all and then as usual promptly crash after the file has been recovered.
the larger files result in a huge number of duplicate names in the block symbol table. they are all names of anon blocks and as far as i can see we export every anon block with the name *c so i can't see how this could be. but recovery will fail for these files.
the sample "small" file contains 41698 anon blocks. the original file where several times larger.
the small file is still 14 mb in size and 4 mb zipped so i'm not sure that you would like to have it posted here on the board.
but the entire drawing is more or less a usage error, users shouldn't create drawings this way but they can (and obviously do) and it will then crash autocad.
sometimes autocad has strange behavior with anonymous blocks with "non-standard" names.
standard names are: *d for dimensions, *x for hatches saved to pre-r14 files, *u for other purposes.
could you try to export *u blocks instead of *c?
sergey slezkin
i've changed our export routine to create all anon blocks as *u now as suggested. but it looks like the error isn't related to this, only to the number of anon blocks created.
the autocad version we're running must have a hard internal limit at 32k anon blocks.
if i put a hard cap at 32k while exporting anon blocks the created drawing works just fine. exporting more then 32k anon blocks result in 'internal error: !dbutil.cpp@705' when the drawing is opened in autocad.
i've not been able to find any information on this limitation so i wonder if this is something you've seen before?
i have not seen this before. the file format stores number of table (including block table) entries as int32.
probably somewhere in acad code int16 is used... maybe this error happens only with anonymous blocks (acad converts names like *u into *unnn where nnn is index of the anonymous block in the block table.
but even if you change your code to create non-anonymous blocks:
if block table already contains more than 32k blocks and you draw a couple of dimensions - new anonimous blocks *d will need to have numbers more than 32k...
sergey slezkin
this is an obvious case of bad testing from my side. even creating a drawing with named blocks will crash autocad in the same manner.
any drawing with over 32768 blocks will crash period. now i just need to see if this is related to the way we create our drawings or if it's a hard limit in autocad.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】drawing number system - do you still indicate dwg sie in the yang686526 American standards 0 2009-04-29 07:45 PM
【转帖】decimal dimensioningfractional equivalents yang686526 American standards 0 2009-04-29 07:28 PM
【转帖】asme - where to star yang686526 American standards 0 2009-04-29 07:28 PM
【转帖】使用.net在在文档状态栏实现文档标签控件功能 - 精华帖集合 yang686526 ObjectARX(VB.NET/C#) 0 2009-04-29 05:17 PM
【转帖】[翻译] metaprogramming with autocad (二) - 精华帖集合 yang686526 ObjectARX(VB.NET/C#) 0 2009-04-29 05:02 PM


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


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