If the code doesn't work either in a single command rather than in a event
handler, then there must be something else wrong. I noticed OpenForWrite
mode was always used no matter whether it's necessary in the code. I would
suggest changing them all to OpenForRead and updating the status to Write
when it's needed to see if it makes any difference. One other idea is to
just comment out those code regarding writing operation and see if the error
is still there. Once again, code works fine in a single command doesn't
necessarily meant it will work in an event handler or any other contexts. -
Bill
"perry"
wrote in message
news:5206079@discussion.autodesk.com...
Thanks for the tips guys, but I'm afraid neither helped.
Not sure why I didn't have the cast in there, but its there now.
No difference. As far as being called from within an event, thats
true, but even when I manually call the function when Acad is
"quiet", the same error occures. It should still work within the event
though as I have near duplicate code in an Arx version which is called
from within the "LoadDocument" event and it works fine. I have also
modified some other attributes from within an event handler.
Bummer, gonna have to keep digging 😞
Perry