Delphi <---> AutoCAD Help

Delphi <---> AutoCAD Help

Anonymous
Not applicable
602 Views
3 Replies
Message 1 of 4

Delphi <---> AutoCAD Help

Anonymous
Not applicable
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
0 Likes
603 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Did you check if necessary AutoCAD Type Libraries (.TLBs) get loaded correctly? Regards, Maksim Sestic "Jackrabbit" wrote in message news:30335528.1080229883403.JavaMail.jive@jiveforum1.autodesk.com... > 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
0 Likes
Message 3 of 4

Anonymous
Not applicable
EFilerError and an EOleSysError (raised by an ActiveX call), whose message is "Filer error" are not the same error. The "Filer error" in this case, is coming from AutoCAD. I can't remember the exact circumstances under which I've gotten it, but I have gotten it. My first word of advice is to ditch Delphi 6. This was an extremely buggy release, and is associated with many problems that are not easily resolved. If you are using the AutoCAD type library import unit generated by Delphi 6, chances are you will experience many problems. Delphi 7 is my recommended release. Next, I would suggest reinstalling AutoCAD on the problem system, and see if that has any effect. -- http://www.caddzone.com AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 http://www.acadxtabs.com AcadX for AutoCAD 2004 Beta 1 http://mysite.verizon.net/~vze2vjds/acadx/AcadX16.zip "Jackrabbit" wrote in message news:30335528.1080229883403.JavaMail.jive@jiveforum1.autodesk.com... > 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
0 Likes
Message 4 of 4

Anonymous
Not applicable
Thanks for the help guys!
0 Likes