I have been using a lisp routine with no issues at all on many computers and many different drawings. Until recently. I have this one drawing that crashes when the LISP routine is run. This crash may happen or may not.....most of the time it does but at different points.
This happens on every computer I have used it on....which is 5 different computers using different versions of AutoCAd and windows.....so I am certain there is something seriously worng with the file
Basically this routine just scrolls through paper space layouts and exports them to a drawing file. This works fine on every other drawing I have ever used.
Also, exporting paper space layouts to the seperate drawings manually works no problem at all. So basically I think this drawing has problems already, and something in the routine triggers it.
I have put the routine below. Any ideas what could be causing a total AutoCAD crash when this routine is run? and only on this one drawing?
well I posted the routine as I thought there is obviously something in it causing a crash. I mean why would exporting the layouts manually work but using the LISP routine causes a crash? Although I feel there must be something wrong with the drawing too, its obvious this is something triggered by the LISP routine so thought it was worthputting up for review.
Unfortunately I cannot post the drawing due to privacy/legal etc, all that stuff.
I guess I misread this.....
"I have been using a lisp routine with no issues at all on many computers and many different drawings. Until recently. I have this one drawing that crashes when the LISP routine is run."
It's difficult to diagnose a problem when you do not have access to the drawing that the problem is evident in don't you agree?
I would compare the DWG you are using it on to other drawings as far as the file size. Looking at the LISP alone, I don't see anything there that would cause the crash other than the fact that exporting layouts takes up some ram. There may be something in the DWG that is making the file much larger. In that case I would take the usual steps to decrease the file size (dxfout/dxfin, purge, audit, etc) and see if you still have the issue.