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

problem saving splines/nurbs to r14
problem saving splines/nurbs to r14
my app is having a problem when trying to write out a couple hundred splines to a r14 dxf file (using dd2.5.02). with the debug libraries loaded it's throwing an assertion which is telling me...
file: ..\..\..\..\..\source\database\dbfilerimpl.cpp
line: 1696
expression: dwgversion() > oddb::vac14
this pops up a couple dozen times and hitting 'retry' in the assertion dialog does not pop me back into the debugger. it doesn't pop up for every spline i'm writing, so maybe there's just a few "bad" ones.
i'm attaching the acad 2007 dxf file which i'm attempting to save as r14.
writing this file out to newer versions does not cause this assertion.
i also found that the odamfcapp example program does not have any problems writing this to r14.
anyone out there know what might cause this assertion in dbfilerimpl.cpp to pop up?
thanks in advance,
pete
attached files
this assert in 2.5 means that there are group codes unknown to autocad r14 - it won't load the file.
some objects in such files should be converted to a special kind of proxies, but i'm not sure if it is completely implemented in the current dd version.
btw - autocad 2008 won't load the file you attached - who produced them?
"...who produced them? ..."
our mastercam product did, using dd2.5.02.
i tried to open it in acad 2009 and you're right, it won't come in, but it seems to be having a problem with a layer name ("new method - rotated image, projected on cue"). is there a limit to the length of layer names?
last edited by pete.rimkus@mastercam.com; 5th september 2008 at 08:46 amfff">.
the layer name is incorrect because it contains "," - comma symbol.
btw, for r14 names more characters are prohibited:
allowed are a-z, 0-9, _ and $. the length in r14 is limited by 31 characters.
dwgdirect converts the names while saving to r14 to be valid and saves round-trip information to restore them.
last edited by sslezkin; 8th september 2008 at 05:01 amfff">.
"...the layer name is incorrect because it contains "," - comma symbol..."
"...the length in r14 is limited by 31 characters..."
i never knew that!
thanks - i'll try working around it.
pete
<edited>
i also found out that the acad2000 and beyond layer names are limited to 255 chars.
and that r14 and earlier also support '-' and '_' in layer names.
last edited by pete.rimkus@mastercam.com; 11th september 2008 at 04:41 pmfff">.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】r14支持滚轮缩放程序 yang686526 数据库ObjectDBX 0 2009-04-28 10:04 AM
r14支持滚轮缩放程序 yang686526 ObjectARX(AutoLISP) 0 2009-04-25 08:57 PM
【转帖】如何在r14中用vba开发 yang686526 ObjectARX(C++) 0 2009-04-16 11:10 PM
【转帖】[求助]:如何在r14下用vc读取dwgname环境变量的值? yang686526 ObjectARX(C++) 0 2009-04-16 03:45 PM
【转帖】[求助]r14版的arx中无acedgetvar函数 yang686526 ObjectARX(C++) 0 2009-04-16 02:25 PM


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


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