PDA

View Full Version : Publish - INTERNAL ERROR: !layoutbr.cpp@503: eWasOpenForWrite



mboyer
2006-11-09, 02:35 PM
Within the last couple of days, a few of my users are getting this message when they try to publish, "INTERNAL ERROR: !layoutbr.cpp@503: eWasOpenFor Write". Ironically, they are all trying to print from the same client's projects. The way we publish/print/etc., I have created page setups in template files. Also have created buttons that bring in these pagesetups. Therefore, when you publish, you select from these pagesetups to apply to all sheets. It is very wierd. First time you try to publish, selecting the pagesetup from the COVER sheet, you get the error. If you bring in the pagesetups to the next sheet and publish by browsing to that sheet and pulling in pagesetups, it works. I'm not sure if I've got a corrupt file w/ the COVER or not. This has now happened on 3 different projects under the same client. Anyone have a clue as to what this could be????

On a side note, I recently implemented an acad.dvb file into on of our common search paths to automatically set some system variables upon opening any drawing. I can't see how this would affect anything, but you never know.

Opie
2006-11-09, 02:37 PM
Have you run AUDIT or RECOVER on these drawings? Were there any errors?

mboyer
2006-11-09, 02:41 PM
Yeah, we've tried the obvious stuff. I even had them wblock out the info in the COVER to a new file and it still errors out.

The error seems to occur at about the 3rd file it comes across. We checked out that file as well. Nothing strikes us as odd w/ any of them.

We are using 2004 by the way. I failed to mention that.

Mike.Perry
2006-11-10, 07:40 AM
Hi

Maybe searching (http://forums.augi.com/search.php?) here on the forums OR the Autodesk Discussion Groups (http://discussion.autodesk.com/index.jspa) OR... for...

eWasOpenForWrite

The results returned may give you ideas / suggestions to try ( that you have not already ).

Have a good one, Mike

mboyer
2006-11-10, 02:29 PM
I figured out that the problem is stemming from my VBA program. It's a simple routine that pre-defines some system variables upon startup. When I remove the VBA, problem goes away.

I imagine that I need some sort of debuggin within the program so that things can continue should they hit something along the way.

Mike.Perry
2006-11-11, 06:19 AM
I figured out that the problem is stemming from my VBA program. It's a simple routine that pre-defines some system variables upon startup. When I remove the VBA, problem goes away.

I imagine that I need some sort of debuggin within the program so that things can continue should they hit something along the way.Hi

Good to hear you found the cause of the problem; and thanks for taking the time to post back.

When ( if ) you find a satisfactory solution, could you please take the time to post back again - so others may benefit from such information.

:beer: Mike

dnwal
2008-07-22, 06:06 PM
I have been getting a similar error which occurs when I try the "Jog dimension" command in AutoCAD 2008..it causes AutoCAD to crash---here is the erro message
"INTERNAL ERROR: !scandr.cpp@815: eWasOpenFor Write"
Is it also a VBA problem?

Mike.Craven
2009-05-26, 04:51 PM
I had a similar error.
INTERNAL ERROR: !scandr.cpp@815: eWasOpenForWrite
I received this when I was trying to run the audit command.

I had created a new file with a different filename
I eventually found a block that looked like it might be related, named
BAD AUDIT ERROR BLOCK_1. I opened it in block editor, deleted everything, purged the block, ran audit again, received another error that said it was a program error, did I want to save work. I replied no.

All the other times I had replied yes, and I received one of those dastardly FATAL ERRORs and then the program just shut down, this time I answered no, the program remained running. I ran audit again, and no shut down, no errors. I can't explain it...but for future inquirer's I thought I'd add my 2ยข.