Message 1 of 4
Delphi <---> AutoCAD Help

Not applicable
03-25-2004
07:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a few AutoCAD 2000 automation routines written in Delphi 6. They have been working without problem for the past two years.
One of the designers that I support recently experienced a hard-drive failure and we started experiencing problems after installing a new hard-drive and reloading all of the application software. Whenever the user attempts to use ANY of the software written in Delphi, the following message pops up: "Filer error."
According to the Delphi help, EFilerError is raised when an attempt is made to register the same class twice. I don't understand what is causing this error. The programs also establish connections to Excel (Office XP) and the Microsoft XML DOM. The only time that the error occurs though is after establishing a connection to AutoCAD and attempting to execute the following lines of code:
Acad.Application.Documents.Open(DWG_TEMPLATE, False); {Template opens fine}
ThisDrawing := Acad.Application.ActiveDocument; {Program stops here}
Does anybody have any ideas what could be causing this error? Again -- this error only occurs on one person's (new) system.
All user's are using:
* AutoCAD 2000
* Windows 2000
* Office XP
* IE 6.0
I wrote and compiled the programs on a similarly configured PC using Delphi Personal Edition 6.0
One of the designers that I support recently experienced a hard-drive failure and we started experiencing problems after installing a new hard-drive and reloading all of the application software. Whenever the user attempts to use ANY of the software written in Delphi, the following message pops up: "Filer error."
According to the Delphi help, EFilerError is raised when an attempt is made to register the same class twice. I don't understand what is causing this error. The programs also establish connections to Excel (Office XP) and the Microsoft XML DOM. The only time that the error occurs though is after establishing a connection to AutoCAD and attempting to execute the following lines of code:
Acad.Application.Documents.Open(DWG_TEMPLATE, False); {Template opens fine}
ThisDrawing := Acad.Application.ActiveDocument; {Program stops here}
Does anybody have any ideas what could be causing this error? Again -- this error only occurs on one person's (new) system.
All user's are using:
* AutoCAD 2000
* Windows 2000
* Office XP
* IE 6.0
I wrote and compiled the programs on a similarly configured PC using Delphi Personal Edition 6.0