Author Topic: AutoCAD 2012 version of this module load  (Read 2693 times)

0 Members and 1 Guest are viewing this topic.

cannorth

  • Guest
AutoCAD 2012 version of this module load
« on: November 15, 2013, 12:01:53 PM »
Hello,

  I have an AutoCAD 2013 version of a dll program that calls this function:

Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker.LoadModule("AcMPolygonObj19.dbx", False, False)
    End Sub

  How can I have this work for AutoCAD 2012?

Thanks,

cannorth

BlackBox

  • King Gator
  • Posts: 3770
Re: AutoCAD 2012 version of this module load
« Reply #1 on: November 15, 2013, 12:09:53 PM »
Have you tried compiling for .NET 4.0 framework using a 2012 template (i.e., without AcCoreMgd.dll, etc.)?

Your call to LoadModule() does not show any error in Visual Studio for one of my 2012 projects.
"How we think determines what we do, and what we do determines what we get."

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: AutoCAD 2012 version of this module load
« Reply #2 on: November 15, 2013, 12:18:04 PM »
For 2012 you will probably need to change the AcMPolygonObj19.dbx to AcMPolygonObj18.dbx

BlackBox

  • King Gator
  • Posts: 3770
Re: AutoCAD 2012 version of this module load
« Reply #3 on: November 15, 2013, 12:22:59 PM »
For 2012 you will probably need to change the AcMPolygonObj19.dbx to AcMPolygonObj18.dbx

 :-D Of course - good catch, Jeff!



I didn't even think about that, I was only recalling an app where I had to change (in 2010-2012):

Code - C#: [Select]
  1. SystemObjects.DynamicLinker.ProductKey

... To (to work with 2013-2014):

Code - C#: [Select]
  1. HostApplicationServices.Current.UserRegistryProductRootKey



Cheers
"How we think determines what we do, and what we do determines what we get."