.NET

Reply
Contributor
phives
Posts: 22
Registered: ‎08-25-2012
Message 1 of 4 (5,698 Views)

Drawing file is write protected. Why is ACAD throwing this mesage.

5698 Views, 3 Replies
09-07-2012 01:19 PM

I am building a standalone VB app to edit block attribute values. It works fine until I try to save the drawing(s) and ACAD give this message. See attached.

 

By the way. Only happens when I try to save it from VB. In ACAD I can open and save fine.

 

Done some research but haven't hit upon the full answer yet.

 

 

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 2 of 4 (5,683 Views)

Re: Drawing file is write protected. Why is ACAD throwing this mesage.

09-07-2012 02:52 PM in reply to: phives

I've had the same issue, the drawing file is in use by AutoCAD when it's opened and I can't resave it.

My Solution was to make a copy of the file in the users temp folder. open the drawing from that location , make my changes and then save it back to the original location.

Then keep track of the files and then when autocad is closed, delete the copies from the temp folder.

I can post some code if needed.

---------------------------



(defun botsbuildbots() (botsbuildbots))
Contributor
phives
Posts: 22
Registered: ‎08-25-2012
Message 3 of 4 (5,632 Views)

Re: Drawing file is write protected. Why is ACAD throwing this mesage.

09-11-2012 12:51 PM in reply to: phives

Solved. I was opening the drawing with a "True" option. Needed to open w/o any options.

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 4 of 4 (5,630 Views)

Re: Drawing file is write protected. Why is ACAD throwing this mesage.

09-11-2012 01:07 PM in reply to: phives

Glad I could be of no help what-so-ever.

---------------------------



(defun botsbuildbots() (botsbuildbots))
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!