Support for AutoCAD OEM

Started by kevinkitt, May 19, 2010, 11:51:16 AM

Previous topic - Next topic

kevinkitt

Hello we use OpenDCL in a handful of our stuff, and we are currently developing and AutoCAD OEM product using 2011.  Would it be possible to get a build of the opendcl18.arx (32 bit) made using the OEM SDK that Autodesk provides us?  Or some instructions on compiling just the runtime that I need.

Thanks.
Kevin

owenwengerd

#1
That's a good question. I'm only vaguely familiar with OEM, but I know enough about it to be dangerous.

Firstly, you will need an AutoCAD OEM license that includes the AutoLISP interpreter, otherwise the runtime won't be very useful. I don't know much about that, but I mention it just in case you didn't consider that.

Since the runtime links to the AutoCAD editor, you will need to build a custom version linked to your OEM license. This is not difficult if you have Visual Studio. I think Fred Tomke posted some detailed instructions for building the entire project. Those instructions would be a good starting point.

To build the custom runtime, you will need the OpenDCL source code on your computer along with Visual Studio 2008 and your OEM libraries and headers. You can download the source code from SourceForge in various ways. I use the TortoiseSVN SubVersion client.

You will need all the source code installed, but you'll only need to build the specific runtime modules that you need, so most of the project can be ignored. Off the top of my head, I think the only changes you should need to make to the stock project are to set the include and library directories to point to your OEM libraries.

Once the runtime modules are built, you'll need to figure out how to load them. I would use registry based demand loading to load them automatically.

That should be a fairly accurate, albeit brief, overview of the steps to take.
Owen Wengerd (Outside The Box) / ManuSoft

kevinkitt

I have the OEM ready to go and have already loaded and played with other non OpenDCL lsp files.  I also was in contact with the guys over at DOSLib and they were very helpful (and fast) in compiling me a version of DOSLib for the OEM. 
So the last third party link that i need is with OpenDCL.  I have downloaded the source code but honestly i am not a C guy, and the OpenDCL project is much larger than anythink i have played with before.

I will look and see if i can find instructions.  But my first couple of attempts in the dark have not worked.

owenwengerd

I dug around, but I can't find any step-by-step instructions, so maybe I'm wrong that Fred posted something. Which version(s) of OEM do you need to build for?  Do you have Visual Studio 2008 SP1 installed and working?  If so, let me know what happens when you try to build the runtime project.
Owen Wengerd (Outside The Box) / ManuSoft

kevinkitt

FYI I asked Fred about the instructions.  He has not finished the tutorial yet.  But said he would look into it.

kevinkitt

Sorry guys i got it working now.  Had linking issues with paths to the SDK.

cmwade77

I am curious about your AutoCAD OEM product, is this one that you are planning on selling or is it something for internal use only? If it is one you are planning on selling, I am curious what advantages it has over plain AutoCAD?