AutoCAD Development; Moving from AutoLisp to C# .NET Environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am hoping this is the right place to post this sort of Question and I would be very grateful for any tips or hints in the right direction.
I’ve recently started working for a company that has been creating and using Plugins/Extensions for AutoCAD MAP 3D for almost 30 years now, they are involved in the cartography business and are a service company for the Oil and Gas Industry. It was all done by one old Mr. who has now gone into retirement with all of his knowledge left in cryptic autolisp notes, especially in the acad.lsp file. The wish of the company is to move from the AutoLisp environment into the .NET C# environment for better error handling as well as better extendibility in the future and distribution to other systems. I am trying to build an overview/understanding of the whole software that sits on AutoCAD, i.e which lisp files call which lisp files, for the fist part.
By the way I am a complete beginner to this whole world of AutoCAD/AutoLisp but find it extremely interesting.
The plan would be to start from the acad.lsp file and translate each of the lisp scripts into C# script and eventually build .dll files that AutoCAD can load, into the one drawing that we are always using.
My question is, will I always have to keep the acad.lsp file for initiation? I’m guessing probably yes? Like checking which version of AutoCAD I am using?
Perhaps, instead I could keep moving the routines and load instructions(for .lsp routines) slowly from the acad.lsp into a general autocad.dll file? Where for example try catch blocks would be easier to integrate, once all of the acad.lsp file has been “slimmed down” I guess I could move on with migrating the individual lisp scripts into dll files as well?
How would one proceed in this situation? Any suggestions or further questions are very welcome, thanks in advance and wishing everyone a beautiful day wherever they are!