See the top rated post in this thread. Click here

Results 1 to 4 of 4

Thread: Configure to release file handles for open drawings?

  1. #1
    Login to Give a bone
    0

    Default Configure to release file handles for open drawings?

    Hey all,

    We use several CAD applications at once, alongside AutoCAD. We have a recurring nuisance where we export a DXF to our robot control CAD, and it fails to load the DXF because AutoCAD keeps the file handle open while the drawing is open. We need AutoCAD to not keep file handles open and instead open the file for reading when loading, and once loaded close the file handle while working in memory, likewise for saving open the file handle for writing, and then close it when done. The robot control CAD does not keep file handles open, it just loads the DXF into memory and closes the file handle right after. Basically the file stays "busy" while the drawing is open in AutoCAD, but it really doesn't need to be, other CAD programs don't do that.

    Is there a setting in AutoCAD for configuring file handle behavior?

    Insight is appreciated. Thanks!

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    1

    Default Re: Configure to release file handles for open drawings?

    AutoCAD does not do anything with file locking. True, it does keep the file locked when open, but the O/S is handing the file locks.
    There is no setting to tell AutoCAD to not tell the O/S to lock the file. What other CAD programs do not lock the file? I don't see how this would work, because then two people could open the same file and overwrite each others changes.

    One thought: I'm not sure of your exact command process when you say you "export a DXF", but if you were to use the SAVE command (not QSAVE, not SAVEAS) - this will write the file to a new file, but leave the CAD application in the previous file.
    For example, if you open "a.dwg" and then run the SAVE command and give it the name "b.dwg", then "b.dwg" is created, but AutoCAD keeps "a.dwg" open and locked. The same should apply regardless of the file type.
    R.K. McSwain | CAD Panacea |

  3. #3
    Login to Give a bone
    0

    Default Re: Configure to release file handles for open drawings?

    Quote Originally Posted by rkmcswain View Post
    AutoCAD does not do anything with file locking. True, it does keep the file locked when open, but the O/S is handing the file locks.
    There is no setting to tell AutoCAD to not tell the O/S to lock the file.
    Well of course. AutoCAD makes the system calls to open the file, but doesn't close the handle until the document is closed. I wanted it to close the handle as soon as it's done loading (or saving if writing).

    Quote Originally Posted by rkmcswain View Post
    What other CAD programs do not lock the file?
    A proprietary CAD program from our production robot's manufacturer. It releases the file handle as soon as it's finished loading the document.

    Quote Originally Posted by rkmcswain View Post
    I don't see how this would work, because then two people could open the same file and overwrite each others changes.
    Indeed that would be possible under that scenario. Each scenario has an upside and a downside. Hence why I asked if there is a setting that controls this behavior.

    Quote Originally Posted by rkmcswain View Post
    One thought: I'm not sure of your exact command process when you say you "export a DXF", but if you were to use the SAVE command (not QSAVE, not SAVEAS) - this will write the file to a new file, but leave the CAD application in the previous file.
    For example, if you open "a.dwg" and then run the SAVE command and give it the name "b.dwg", then "b.dwg" is created, but AutoCAD keeps "a.dwg" open and locked. The same should apply regardless of the file type.
    I use the "Save As" from the GUI, which is _SAVEAS command. This switches AutoCAD to the new saved file as the open document.

    I will have to try the other commands to see if they behave differently.

  4. #4
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    1

    Default Re: Configure to release file handles for open drawings?

    Quote Originally Posted by whackoprogrammer760234 View Post
    I use the "Save As" from the GUI, which is _SAVEAS command. This switches AutoCAD to the new saved file as the open document.
    Yeah, that is why I specifically said to not use SAVEAS. You're right, it switches to the new document.
    Use SAVE to write a new document but not open it.
    R.K. McSwain | CAD Panacea |

Similar Threads

  1. 2014: Trying to Configure Raster Design Everytime I open a Autodesk Product
    By phil.thrower389645 in forum AutoCAD General
    Replies: 3
    Last Post: 2013-08-30, 11:26 AM
  2. Replies: 3
    Last Post: 2012-06-17, 09:42 PM
  3. Multiple Drawings with Duplicate Handles
    By yellowplanet in forum AutoCAD General
    Replies: 1
    Last Post: 2008-03-04, 05:12 AM
  4. How to configure Index, Revision on drawings
    By Buffeldrek in forum CAD Management - General
    Replies: 17
    Last Post: 2007-06-19, 05:44 PM
  5. Replies: 22
    Last Post: 2006-07-27, 08:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •