- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
We've recently introduced a piece of code to clear and regenerate (from a SQL database) a set of images from an AutoCAD drawing.
Due to the XREFs being duplicated when we do this, we've found the only way to do this is fire a command at AutoCAD. The command is
thisdrawing.SendCommand("-IMAGE DETACH *" & vbCr)
When the user is interacting with AutoCAD and launches the routine to create a drawing from the database, all works OK and the command runs without issue and the old XREFs are cleared successfully.
The problem arises when we're running it in our batch processing application which launches AutoCAD, rebuilds the drawing from the database (running exactly the same code as in interactive) and then shuts down AutoCAD. In that mode, this command causes AutoCAD to freeze and ultimately crash out.
I was therefore wondering if anyone had seen anything similar? If so, is there a straightforward fix to sort it or is there a method we can call instead of firing the command at AutoCAD?
Any help or advice, greatly appreciated!
Many thanks,
Neil
Solved! Go to Solution.