L
Leif
I'm using VBA and automation from Access 2003 on Windows XP Pro. I'm using
the Automation with AutoCAD 2002 to process about 75,000 drawing files.
This works most of the time. However, sometimes AutoCAD loads a drawing
file it cannot handle (corrupt). This stops the processing of further files.
I was thinking to try using a timer in my VBA program to detect if too much
time has elapsed. If the timer goes off I want to kill the AutoCAD task and
restart AutoCAD to process the next drawing. I will also record the problem
in an Access table to later review the bad drawing.
I've tried using acadApp.Application.quit, which sends a quit command to
AutoCAD (acadApp is the AutoCAD object I create when starting AutoCAD).
However this does not seem to work. I need a command the will force AutoCAD
to close, such as End Process in the Windows Task Manager.
Any help is appreciated. Thanks.
Regards,
Leif
the Automation with AutoCAD 2002 to process about 75,000 drawing files.
This works most of the time. However, sometimes AutoCAD loads a drawing
file it cannot handle (corrupt). This stops the processing of further files.
I was thinking to try using a timer in my VBA program to detect if too much
time has elapsed. If the timer goes off I want to kill the AutoCAD task and
restart AutoCAD to process the next drawing. I will also record the problem
in an Access table to later review the bad drawing.
I've tried using acadApp.Application.quit, which sends a quit command to
AutoCAD (acadApp is the AutoCAD object I create when starting AutoCAD).
However this does not seem to work. I need a command the will force AutoCAD
to close, such as End Process in the Windows Task Manager.
Any help is appreciated. Thanks.
Regards,
Leif