Norman Yuan
Norman Yuan
Norman Yuan
What happens when sheet sets get thrown into the mix? I've got AutoCAD 2010 and 2011 installed on the machine, and i've downloaded both the 2010 and 2011 SDK's. When I add a reference to "acsmcomponents18.tlb" in the 2010 SDK, it automatically adds a reference to Autodesk.AutoCAD.Interop.Common due to dependancies, however for some reason it insists on referencing the 2011 version "C:\Windows\assembly\GAC_MSIL\Autodesk.AutoCAD.Interop.Common\18.1.0.0...". If i try to remove this reference and instead reference Autodesk.AutoCAD.Interop.Common from the 2010 SDK, I get compiler errors like this:
The project currently contains references to more than one version of Autodesk.AutoCAD.Interop.Common, a direct reference to version 18.0.0.0 and an indirect reference (through 'ACSMCOMPONENTS18Lib.IAcSmSheetSet.Sync') to version 18.1.0.0. Change the direct reference to use version 18.1.0.0 (or higher) of Autodesk.AutoCAD.Interop.Common.
I'm hesitant that if i change the direct reference to the version in the 2011 SDK, the application will no longer run on AutoCAD 2011. Any ideas on how I could get this work on both 2010 and 2011 without compiling different versions (for both 32-bit and 64-bit!). Is this just some problem with the sheet set COM API?
Thanks,
-Chris
Did you try removing the reference to AXDBLib from your project?
I have a project that uses AcSmComponents18 and I was able
to remove the reference to AXDBLib and compile and run it
without errors.
I would....unfortunately i'm making use of a method that requires a loaded AcadDatabase(ACSMCOMPONENTS18Lib.AcSmSheetSetClass.Sync(Autodesk.AutoCAD.Interop.Common.AcadDatabase) so even if i eliminated all other other code using ObectDBX i'd still need to keep the reference.
-Chris
What specifically is supposed to be fixed? I guess I still don't completely understand the problem....
Thanks everyone btw.
Quote from ADN
Unfortunately, the AutoCAD 2011 installer does not install the AutoCAD 2010 version (18.0.0.0) of the Autodesk.AutoCAD.Interop.dll. This has already been logged and is supposed to be remedied in the oncoming Update 1 for AutoCAD 2011.
Can't find what you're looking for? Ask the community or share your knowledge.