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">.