
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Trying to update an old VBA application - without rewriting the whole thing - which has a dependency on two libraries from AutoCAD Mechanical 2007 (GeAuto.dll and BrepAuto.dll). I thought I would just write some COM visible .NET dlls and replace the calls to the original libraries with the .NET components that do the same work. Probably not exactly that simple, but that is the idea. Anyway, starting simple, I created my replacement for GeAuto and put in a class called GePoint that will implement whatever methods I need, but use an encapsulated Autodesk.AutoCAD.Geometry.Point3d as a delegate for doing the actual work. Now, when I run RegAsm.exe, I get an error message like below and I don't know what to do next. I am including the command line in case I'm doing something wrong with that as well. Curiously, while I get the error when using Point3d or Vector3d, I do NOT get it when using CompositeCurve2d. I have tried setting CopyLocal to True for all of the referenced AutoCAD assemblies, but no change.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /codebase /tlb:C:\UDir\0Dev\Projects2012\GEAuto\GEAuto\bin\Debug\\GEAuto.tlb C:\UDi
r\0Dev\Projects2012\GEAuto\GEAuto\bin\Debug\\GEAuto.dll
Microsoft .NET Framework Assembly Registration Utility version 4.0.30319.34209
for Microsoft .NET Framework version 4.0.30319.34209
Copyright (C) Microsoft Corporation. All rights reserved.
RegAsm : warning RA0000 : Registering an unsigned assembly with /codebase can cause your assembly to interfere with other applications that may be installed onthe same computer. The /codebase switch is intended to be used only with signed assemblies. Please give your assembly a strong name and re-register it.
RegAsm : error RA0000 : Could not load file or assembly 'Acdbmgd, Version=20.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt
was made to load a program with an incorrect format.
Solved! Go to Solution.