Uploading Open Drawing file

Uploading Open Drawing file

Anonymous
Not applicable
897 Views
6 Replies
Message 1 of 7

Uploading Open Drawing file

Anonymous
Not applicable

Hi

i am developing an application using c#, application is using a third party file transfer control which upload files to a remote server.

Problem is when ever i try to upload a Drawing file, which is opened in autocad (using 2010).

i get Error Message  "File is used by another process". if i close drawing file and then upload, it works fine.

 

is ther any way i can upload my file without closing it first.

in other word making autocad to release file resources before upload.

 

Thanks

0 Likes
898 Views
6 Replies
Replies (6)
Message 2 of 7

michael_robertson
Collaborator
Collaborator

How are you "uploading" your file, are you using a FileSystem copy type command, an Autocad API command?

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer
0 Likes
Message 3 of 7

Anonymous
Not applicable

i am using third party file transfer control which takes the path of the file and upload it.

0 Likes
Message 4 of 7

michael_robertson
Collaborator
Collaborator

Just to check, Is the drawing actually open when you try to upload it?

 

I've noticed when I close a document in ACad that it sometimes takes a few seconds before the file is actually released before I can do things with it. I loop until windows says the file is not locked or fail after a set number of seconds.

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer
0 Likes
Message 5 of 7

Anonymous
Not applicable

Drawing is actually open in autocad and i want to upload it to the sever without closing it.

0 Likes
Message 6 of 7

fieldguy
Advisor
Advisor

Try a save as to a different folder and upload from there, then delete the copy.

 

Do you really need the third party app?  It is pretty easy to do it yourself with FtpWebRequest from System.Net namespace.

0 Likes
Message 7 of 7

Anonymous
Not applicable

Thanks Fieldguy

 

 i am doing that at the moment, wondering if ther is a better way to do that?

 any way its working and not giving any trouble.

 

Thanks

0 Likes