This is driving me nuts! I create a line with EntMakeX and in the DXF list I have a routine that checks if a layer exists. If not it creates the layer and assignes it the color specified.
like this.
(EntMakeX (List '(0 . "LINE") (Cons 8 (CheckLayerName "Maintained"
) '(10 0.0 0.0 0.0) '(11 0.0 0.0 0.0)))
The layer is created correctly and the color is set, but when it gets back to the EntMakeX, it thows an exception:
; error: Exception occurred: 0xC0000005 (Access Violation)
; warning: unwind skipped on exception
; error: Exception occurred: 0xC0000005 (Access Violation)
when you try to save the drawing, AutoCAD crashes with a CER.
This is AutoCAD 2006
I have attached the file, let me know if you guy get the same result.