Secondary development of AutoCAD using C # (1)
C # Talents We are known that the main tools for the second development of AutoCAD are: ObjectARX, VBA, VLISP. However, their advantages and disadvantages are obvious: ObjectARX is powerful, high programming efficiency, but its disadvantage is that the programmer must master VC , and this language is very difficult; VBA and VLISP are simple and easy to play, but they have a large-scale The program seems to be in powerless. Is there any language that can be used to combine their advantages and try to avoid their shortcomings? The answer is yes, that is, Microsoft's new 21st century programming language C #. For details on C #, you can refer to the relevant article. C # is communicating between the AUTOCAD ACTIVEX bridge and AutoCAD. AutoCAD ActiveX enables users to operate AutoCAD from the inside or outside of AutoCAD. It is this by displaying the AutoCAD object to the "external world". Once these objects are displayed, many different programming languages and environments can access them. With regard to AutoCAD ActiveX, you can refer to the help of AutoCAD. Oh, say so much boring, or let us explain how to use C # for secondary development with C # through a concrete example. Let's talk about the configuration before the presentation: (1) Visual Studio .NET (2003 and 2002 can, I am using 2002)